<?php 
/** 
* @package WordPress 
* @subpackage Restaurant_Gray 
*/ 
//========= put you custom code here ============ 

// error_reporting(E_ALL & ~(E_STRICT|E_NOTICE|E_WARNING|E_DEPRECATED));
// ini_set("display_errors", 1);
$page_url = siteSelfURL(false,false);
//.............................................................................
//	CSS STYLE

function addCssStyle(){
	echo "<style type='text/css'>\n";
		if ( function_exists('bm_write_current_bg')) echo bm_write_current_bg('body.custom','repeat-x');
	echo "</style> \n";
}
add_action('wp_head', 'addCssStyle');


//.............................................................................
//	CUSTOM HEADER

function hook_header(){
?>
	<div id="custom_header" class ="custom_header level2 level3 level4" >
		<div id="header_logo">
			<div class="one"><?php if ( function_exists('custom_header_logo_hook')) custom_header_logo_hook(); ?></div>		
		</div>
		<div id="header_content">
			<div class="one"><?php if ( function_exists('custom_header_content_one_hook')) custom_header_content_one_hook(); ?></div>
			<div class="two"><?php if ( function_exists('custom_header_content_two_hook')) custom_header_content_two_hook(); ?></div>
			<div class="three"><?php if ( function_exists('custom_header_content_three_hook')) custom_header_content_three_hook(); ?></div>
			<div class="four"><?php if ( function_exists('custom_header_content_four_hook')) custom_header_content_four_hook(); ?></div>
		</div>
	</div>
	<div class="clear"></div>
<?php
} 
add_action('thesis_hook_header', 'hook_header');


//.............................................................................
//	CUSTOM MENU

function custom_menu(){
?>	
	<div id="custom_menu" class ="custom_menu level2 level3 level4">
		<?php wp_nav_menu(); ?>
	</div>
	<div class="clear"></div>
<?php
}
add_action('thesis_hook_header', 'custom_menu');


//.............................................................................
//	CUSTOM Dennison+Wolfe PAGE TEMPLATE//
//.............................................................................

function custom_template(){	
	global $page_url;
	$pathToImageFolder = getImagePath(__FILE__);
	if (is_home() || is_front_page())  {// this is the home page template 
?>
	<div id="home_page"  class="home_page all_template level2 level3 level4" >
		<div id="top_content" class="top_content" >
			<div class="one">
				<?php if ( function_exists('home_page_top_content_one_hook')) home_page_top_content_one_hook(); ?>
			</div>
			<div class="two">
				<?php if ( function_exists('home_page_top_content_two_hook')) home_page_top_content_two_hook(); ?>
			</div>
			<div class="three">
				<?php if ( function_exists('home_page_top_content_three_hook')) home_page_top_content_three_hook(); ?>
			</div>
			<div class="four">
				<?php if ( function_exists('home_page_top_content_four_hook')) home_page_top_content_four_hook(); ?>
			</div>
			<div class="clear"></div>
		</div>
		<div id="bottom_content" class="bottom_content" >
			<div id="left_content" class="left_content" >
				<div class="one"><?php if ( function_exists('home_page_left_content_one_hook')) home_page_left_content_one_hook(); ?></div>					
				<div class="two"><?php if ( function_exists('home_page_left_content_two_hook')) home_page_left_content_two_hook(); ?></div>
				<div class="three"><?php if ( function_exists('home_page_left_content_three_hook')) home_page_left_content_three_hook(); ?></div>
				<div class="four"><?php if ( function_exists('home_page_left_content_four_hook')) home_page_left_content_four_hook(); ?></div>
				<div class="clear"></div>	
			</div>
			<div id="center_content" class="center_content" >
					<div class="one">
						<?php if ( function_exists('home_page_center_content_one_hook')) home_page_center_content_one_hook(); ?>
					</div>
					<div class="two">
						<?php if ( function_exists('home_page_center_content_two_hook')) home_page_center_content_two_hook(); ?>
					</div>
					<div class="three">
						<?php if ( function_exists('home_page_center_content_three_hook')) home_page_center_content_three_hook(); ?>
					</div>
					<div class="four">
						<?php if ( function_exists('home_page_center_content_four_hook')) home_page_center_content_four_hook(); ?>
					</div>
					<div class="clear"></div>
				</div>
			<div id="right_content" class="right_content" >			
				<div class="one"><?php if ( function_exists('home_page_right_content_one_hook')) home_page_right_content_one_hook(); ?></div>
				<div class="two"><?php if ( function_exists('home_page_right_content_two_hook')) home_page_right_content_two_hook(); ?></div>
				<div class="three"><?php if ( function_exists('home_page_right_content_three_hook')) home_page_right_content_three_hook(); ?></div>
				<div class="four"><?php if ( function_exists('home_page_right_content_four_hook')) home_page_right_content_four_hook(); ?></div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
<?php	
	}else if(strpos($page_url, '/event/', 0)){// for event single
?>
	<div id="other_page"  class="other_page event all_template level2 level3 level4" >
		<div id="left_content" class="left_content" >
			<div class="one"><?php if ( function_exists('event_single_left_content_one_hook')) event_single_left_content_one_hook(); ?></div>
			<div class="two"><?php if ( function_exists('event_single_left_content_two_hook')) event_single_left_content_two_hook(); ?></div>				
			<div class="clear"></div>	
		</div>
		<div id="right_content" class="right_content" >
			<div class="one"><?php if ( function_exists('other_page_right_content_one_hook')) other_page_right_content_one_hook(); ?></div>
			<div class="clear"></div>
		</div>	
		<div class="clear"></div>
	</div>
<?php
	}else if(strpos($page_url, '/events/', 0)){// for event archive
?>
	<div id="other_page"  class="other_page events all_template level2 level3 level4" >
		<div id="left_content" class="left_content" >
			<div class="one"><?php if ( function_exists('event_archive_left_content_one_hook')) event_archive_left_content_one_hook(); ?></div>
			<div class="two"><?php if ( function_exists('event_archive_left_content_two_hook')) event_archive_left_content_two_hook(); ?></div>				
			<div class="clear"></div>	
		</div>
		<div id="right_content" class="right_content" >
			<div class="one"><?php if ( function_exists('other_page_right_content_one_hook')) other_page_right_content_one_hook(); ?></div>
			<div class="clear"></div>
		</div>	
		<div class="clear"></div>
	</div>
<?php
	}else{
?>
	<div id="other_page"  class="other_page all_template level2 level3 level4" >
		<div id="top_content" class="top_content" >
			<div class="one">
				<?php if ( function_exists('other_page_top_content_one_hook')) other_page_top_content_one_hook(); ?>
			</div>
			<div class="two">
				<?php if ( function_exists('other_page_top_content_two_hook')) other_page_top_content_two_hook(); ?>
			</div>
			<div class="three">
				<?php if ( function_exists('other_page_top_content_three_hook')) other_page_top_content_three_hook(); ?>
			</div>
			<div class="four">
				<?php if ( function_exists('other_page_top_content_four_hook')) other_page_top_content_four_hook(); ?>
			</div>
			<div class="clear"></div>
		</div>
		<div id="bottom_content" class="bottom_content" >
			<div id="left_content" class="left_content" >
				<div class="one">
					<?php if ( function_exists('other_page_left_content_one_hook')) other_page_left_content_one_hook(); ?>
				</div>
				<div class="two">
					<?php if ( function_exists('other_page_left_content_two_hook')) other_page_left_content_two_hook(); ?>
				</div>
				<div class="three">
					<?php if ( function_exists('other_page_left_content_three_hook')) other_page_left_content_three_hook(); ?>
				</div>
				<div class="four">
					<?php if ( function_exists('other_page_left_content_four_hook')) other_page_left_content_four_hook(); ?>
				</div>
				<div class="clear"></div>
			</div>
			<div id="center_content" class="center_content" >
				<div class="one">
					<?php if ( function_exists('other_page_center_content_one_hook')) other_page_center_content_one_hook(); ?>
				</div>
				<div class="two">
					<?php if ( function_exists('other_page_center_content_two_hook')) other_page_center_content_two_hook(); ?>
				</div>
				<div class="three">
					<?php if ( function_exists('other_page_center_content_three_hook')) other_page_center_content_three_hook(); ?>
				</div>
				<div class="four">
					<?php if ( function_exists('other_page_center_content_four_hook')) other_page_center_content_four_hook(); ?>
				</div>
				<div class="clear"></div>
			</div>
			<div id="right_content" class="right_content" >	
				<div class="one">
					<?php if ( function_exists('other_page_right_content_one_hook')) other_page_right_content_one_hook(); ?>
				</div>
				<div class="two">
					<?php if ( function_exists('other_page_right_content_two_hook')) other_page_right_content_two_hook(); ?>
				</div>
				<div class="three">
					<?php if ( function_exists('other_page_right_content_three_hook')) other_page_right_content_three_hook(); ?>
				</div>
				<div class="four">
					<?php if ( function_exists('other_page_right_content_four_hook')) other_page_right_content_four_hook(); ?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
<?php
	}
}


//.............................................................................
// CUSTOM TEMPLATE IMPLEMENT

remove_action('thesis_hook_custom_template', 'thesis_custom_template_sample');
add_action('thesis_hook_custom_template', 'custom_template');


//.............................................................................
//	begining of side bars 
//.............................................................................

function do_register_sidebar()
{
	register_sidebar(array('name' => 'Multimedia Box', 'id'=>'dw-multimedia-box', 'before_widget' => '<li class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
    register_sidebar(array('name'=>'Homepage - Contact', 'id'=>'homepage-contact', 'before_title'=>'<h2>', 'after_title'=>'</h2>')); 
	register_sidebar(array('name'=>'Homepage - Hours', 'id'=>'homepage-hours', 'before_title'=>'<h2>', 'after_title'=>'</h2>'));
	register_sidebar(array('name'=>'Homepage - Location', 'id'=>'homepage-location', 'before_title'=>'<h2>', 'after_title'=>'</h2>'));
	register_sidebar(array('name'=>'Homepage - Menus', 'id'=>'homepage-menus', 'before_title'=>'<h2>', 'after_title'=>'</h2>'));
	register_sidebar(array('name'=>'Homepage - Footer Location 01', 'id'=>'homepage-footer-01', 'before_title'=>'<div id="homepage-footer-image-1"></div><h2>', 'after_title'=>'</h2>'));
	register_sidebar(array('name'=>'Homepage - Footer Location 02', 'id'=>'homepage-footer-02', 'before_title'=>'<div id="homepage-footer-image-2"></div><h2>', 'after_title'=>'</h2>'));
	register_sidebar(array('name'=>'Homepage - Footer Location 03', 'id'=>'homepage-footer-03', 'before_title'=>'<div id="homepage-footer-image-3"></div><h2>', 'after_title'=>'</h2>'));
	register_sidebar(array('name'=>'Calender', 'id'=>'Calender', 'before_title'=>'<div id="Calender"></div><h2>', 'after_title'=>'</h2>'));
}

//.............................................................................
// Homepage - Contact

function homepage_contact(){
	?>
		<div class="homepage-contact">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Contact') ){ ?>
				<ul><li class="widget"><h3>Homepage - Contact</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li></ul>
			<?php } ?>
		</div>
	<?php
}

//.............................................................................
// Homepage - Hours

function homepage_hours(){
	?>
		<div class="homepage-hours">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Hours') ){ ?>
				<ul><li class="widget"><h3>Homepage - Hours</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li></ul>
			<?php } ?>
		</div>
	<?php
}

//.............................................................................
// Homepage - Location

function homepage_location(){
	?>
		<div class="homepage-location">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Location') ){ ?>
				<ul><li class="widget"><h3>Homepage - Location</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li></ul>
			<?php } ?>
		</div>
	<?php
}

//.............................................................................
// Homepage - Menus

function homepage_menus(){
	?>
		<ul class="homepage-menus">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Menus') ){ ?>
				<ul><li class="widget"><h3>Homepage - Menus</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li></ul>
			<?php } ?>
		</ul>
	<?php
}

//.............................................................................
// Homepage - Footer Location 01

function homepage_footer_01(){
	?>
		<div class="homepage-footer-01">
			<ul><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Footer Location 01') ){ ?>
				<li class="widget"><h3>Homepage - Footer Location 01</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li>
			<?php } ?>
                </ul></div>
	<?php
}

//.............................................................................
// Homepage - Footer Location 02

function homepage_footer_02(){
	?>
		<div class="homepage-footer-02">
			<ul><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Footer Location 02') ){ ?>
				<li class="widget"><h3>Homepage - Footer Location 02</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li>
			<?php } ?>
		</ul></div>
	<?php
}

//.............................................................................
// Homepage - Footer Location 03

function homepage_footer_03(){
	?>
		<div class="homepage-footer-03">
			<ul><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Footer Location 03') ){ ?>
				<li class="widget"><h3>Homepage - Footer Location 03</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li>
			<?php } ?>
		</ul></div>
	<?php
}
//.............................................................................
// Calender

function Calender(){
	?>
		<div class="Calender">
			<ul><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Calender') ){ ?>
				<ul><li class="widget"><h3>Calender</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li></ul>
			<?php } ?>
		</ul></div>
	<?php
}
//	end of side bars 
//.............................................................................


/* CUSTOM Dennison+Wolfe FOOTER HOOK */

function add_custom_footer () { 
$pathToImageFolder = getImagePath(__FILE__);
?>
	<div class="footer level2 level3 level4">
		<div id="footer-custom">
			<?php if ( function_exists('custom_footer')) custom_footer(); ?>
		</div>		
	</div>
<?php }

add_action('thesis_hook_footer', 'add_custom_footer');




//.............................................................................
/* Custom 404 Hooks */
function custom_thesis_404_title() {	
	
?>
You have reached a page that does not exist.
<?php
}
add_action('thesis_hook_404_title', 'custom_thesis_404_title');

function custom_thesis_404_content() {
global $page_url;
?>


<?php
}
add_action('thesis_hook_404_content', 'custom_thesis_404_content');


//.............................................................................
// REGISTER THE SIDEBARS

//do_register_sidebar();

add_action( 'wp_loaded', 'do_register_sidebar' );


//.............................................................................
// HOME PAGE CUSTOM TEMPLATE
function home_page_right_content_one_hook(){
	 do_action('home_page_right_content_one_hook');
}
add_action('home_page_right_content_one_hook','home_page_right_content_one',10);
function home_page_right_content_one(){
?>
	<div id="homepage-menu-wrapper">
		<?php homepage_menus(); ?>
		<ul id="contact-info-wrapper">
		<?php homepage_contact(); ?>
		</ul>
		<ul id="hours-info-wrapper">
		<?php homepage_hours(); ?>
		</ul>
		<ul id="location-info-wrapper">
		<?php homepage_location(); ?>
		</ul>
	</div>
<?php
}
function home_page_left_content_one_hook(){
	 do_action('home_page_left_content_one_hook');
}
add_action('home_page_left_content_one_hook','home_page_left_content_one',10);
function home_page_left_content_one(){
	if (have_posts()) :
		while (have_posts()) : the_post(); ?>												
			<div id="home_top_message">
				<div id="homepage-imagewrap">
					<?php thesis_hook_multimedia_box(); ?>
				</div>
				<div id="home_center_column">
					<div id="homepage-welcome-text">
						<?php the_title('<h2>', '</h2>'); ?>
						<?php the_content( ); ?>
					</div>
				</div>	
			</div>
<?php 	endwhile; 
	endif; 
}



//.............................................................................
//	OTHER PAGES. ANYTHING NOT THE HOMEPAGE

function other_page_left_content_one_hook(){
	 do_action('other_page_left_content_one_hook');
}
add_action('other_page_left_content_one_hook','other_page_left_content_one',10);
function other_page_left_content_one() {
    global $post;

    thesis_content_column();

}

//.............................................................................
//	EVENT ARCHIVE

function event_archive_left_content_one_hook(){
	 do_action('event_archive_left_content_one_hook');
}
add_action('event_archive_left_content_one_hook','event_archive_left_content_one',10);
function event_archive_left_content_one() { 
global $sp_ecp;
echo stripslashes(sp_get_option('spEventsBeforeHTML'));
?>

<div id="tec-content" class="grid">
		<div id='tec-events-calendar-header' class="clearfix">
			<h2 class="tec-cal-title"><?php sp_events_title(); ?></h2>
			<span class='tec-month-nav'>
				<span class='tec-prev-month'>
					<a href='<?php echo sp_get_previous_month_link(); ?>'>
					&#x2190; <?php echo sp_get_previous_month_text(); ?>
					</a>
				</span>

				<?php sp_month_year_dropdowns( "tec-" ); ?>
	
				<span class='tec-next-month'>
					<a href='<?php echo sp_get_next_month_link(); ?>'>				
					<?php echo sp_get_next_month_text(); ?> &#x2192; 
					</a>
				</span>
			</span>

			<span class='tec-calendar-buttons'> 
				<a class='tec-button-off' href='<?php echo sp_get_listview_link(); ?>'><?php _e('Event List', $sp_ecp->pluginDomain)?></a>
				<a class='tec-button-on' href='<?php echo sp_get_gridview_link(); ?>'><?php _e('Calendar', $sp_ecp->pluginDomain)?></a>
			</span>

		</div><!-- tec-events-calendar-header -->
		<?php sp_calendar_grid(); // See the views/table.php template for customization ?>
		<a title="<?php esc_attr_e('iCal Import', $sp_ecp->pluginDomain) ?>" class="ical" href="<?php echo sp_get_ical_link(); ?>"><?php _e('iCal Import', $sp_ecp->pluginDomain) ?></a>
	</div>

<?php 
echo stripslashes(sp_get_option('spEventsAfterHTML'));
}

//.............................................................................
//	EVENT SINGLE
function event_single_left_content_one_hook(){
	 do_action('event_single_left_content_one_hook');
}
add_action('event_single_left_content_one_hook','event_single_left_content_one',10);
function event_single_left_content_one() { 
global $sp_ecp;
echo stripslashes(sp_get_option('spEventsBeforeHTML'));
?>
<div id="container">
	<div id="content" class="tec-event widecolumn">
	<?php the_post(); global $post; ?>
			<div id="post-<?php the_ID() ?>" <?php post_class() ?>>
				<span class="back"><a href="<?php echo sp_get_events_link(); ?>"><?php _e('&laquo; Back to Events', $sp_ecp->pluginDomain); ?></a></span>
				<h2 class="entry-title"><?php the_title() ?></h2>
				<?php if (sp_get_end_date() > time()  ) { ?><small><?php  _e('This event has passed.', $sp_ecp->pluginDomain) ?></small> <?php } ?>
				<div id="tec-event-meta">
					<dl class="column">
						<dt><?php _e('Start:', $sp_ecp->pluginDomain) ?></dt> 
							<dd><?php echo sp_get_start_date(); ?></dd>
						<?php if (sp_get_start_date() !== sp_get_end_date() ) { ?>
							<dt><?php _e('End:', $sp_ecp->pluginDomain) ?></dt>
							<dd><?php echo sp_get_end_date();  ?></dd>						
						<?php } ?>
						<?php if ( sp_get_cost() ) : ?>
							<dt><?php _e('Cost:', $sp_ecp->pluginDomain) ?></dt>
							<dd><?php echo sp_get_cost(); ?></dd>
						<?php endif; ?>
						<?php sp_meta_event_cats(); ?>
					</dl>
					<dl class="column">
						<?php if(sp_get_venue()) : ?>
						<dt><?php _e('Venue:', $sp_ecp->pluginDomain) ?></dt> 
							<dd><?php echo sp_get_venue(); ?></dd>
						<?php endif; ?>
						<?php if(sp_get_phone()) : ?>
						<dt><?php _e('Phone:', $sp_ecp->pluginDomain) ?></dt> 
							<dd><?php echo sp_get_phone(); ?></dd>
						<?php endif; ?>
						<?php if( sp_address_exists( $post->ID ) ) : ?>
						<dt>
							<?php _e('Address:', $sp_ecp->pluginDomain) ?><br />
							<?php if( get_post_meta( $post->ID, '_EventShowMapLink', true ) == 'true' ) : ?>
								<a class="gmap" href="<?php sp_the_map_link() ?>" title="<?php _e('Click to view a Google Map', $sp_ecp->pluginDomain); ?>" target="_blank"><?php _e('Google Map', $sp_ecp->pluginDomain ); ?></a>
							<?php endif; ?>
						</dt>
							<dd>
							<?php sp_the_full_address( $post->ID ); ?>
							</dd>
						<?php endif; ?>
					</dl>
				</div>
				<?php if( get_post_meta( $post->ID, '_EventShowMap', true ) == 'true' ) : ?>
					<?php if( sp_address_exists( $post->ID ) ) sp_the_embedded_map(); ?>
				<?php endif; ?>
				<div class="entry">
					<?php
					if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) {?>
						<?php the_post_thumbnail(); ?>
					<?php } ?>
					<?php the_content() ?>	
					<?php if (function_exists('sp_get_ticket_form')) { sp_get_ticket_form(); } ?>		
				</div>
				<a class="ical single" href="<?php echo sp_get_single_ical_link(); ?>"><?php _e('iCal Import', $sp_ecp->pluginDomain); ?></a>
				<a href="<?php echo sp_get_add_to_gcal_link() ?>" class="gcal-add" title="<?php _e('Add to Google Calendar', $sp_ecp->pluginDomain); ?>"><?php _e('+ Google Calendar', $sp_ecp->pluginDomain); ?></a>
				<?php edit_post_link('Edit', '<span class="edit-link">', '</span>'); ?>
			</div><!-- post -->

		<?php if(sp_get_option('showComments','no') == 'yes'){ comments_template();} ?>

	</div><!-- #content -->
	</div><!--#container-->
<?php 
echo stripslashes(sp_get_option('spEventsAfterHTML'));
}

//.............................................................................
//	RIGHT SIDEBAR 1

function other_page_right_content_one_hook(){
	 do_action('other_page_right_content_one_hook');
}
add_action('other_page_right_content_one_hook','other_page_right_content_one',10);
function other_page_right_content_one() {
?>

    <div id="sidebars">
        <?php thesis_build_sidebars(); ?>
    </div>

<?php }

//.............................................................................
//	Custom Footer

function custom_footer(){
?>
<div id="home_bottom_content_row">
	<?php 	
		homepage_footer_01(); 
		homepage_footer_02(); 
		homepage_footer_03(); 
	?>
<div class="clear"></div>
</div>

<?php }

//.............................................................................
//	Filter the default welcome page title to replace [site_name] with the actual site name

function dw_filter_welcome_title($the_title) {
    global $current_blog;

    if(!is_admin()){
        if(strpos($the_title, '[site_name]')){
            $blog_name = get_blog_option( $current_blog->blog_id, 'blogname' );

            $the_title = str_replace('[site_name]', $blog_name, $the_title);
        }
    }
    return $the_title;
}
add_filter('the_title','dw_filter_welcome_title');


//.............................................................................
// CREATING A WIDGETIZED MULTIMEDIA BOX


function multimedia_box_widgets() {
	?>
		<ul class="sidebar_list">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Multimedia Box') ){ ?>
				<li class="widget"><h3>Multimedia Box</h3><img class="no_widget" src="/wp-content/themes/skins/images/dw_no_widget.png" width="128" height="176" alt="No widgets"/></li>
			<?php } ?>
		</ul>
	<?php
}
add_action('thesis_hook_multimedia_box', 'multimedia_box_widgets');

?>

