Example #1
0
					
				<h3>Cite this Page</h3>
				<?php 
echo mh_item_citation();
?>
			
				</div>	
					
				<div class="item-related-links">
				<?php 
mh_related_links();
?>
				</div>
				
				<?php 
echo random_item_link(null, 'big-button');
?>
				
				<div class="comments">
				<?php 
mh_disquss_comments();
?>
				</div>				
									
			</section>	
				
			
		</div>	
		

<div class="clearfix"></div>
<footer class="main">
	<nav id="footer-nav">
	    	<?php 
echo mh_global_nav(false);
?>
	    
    	<div id="search-wrap">
	    	<?php 
echo mh_simple_search($formProperties = array('id' => 'footer-search'));
?>
	    </div>  
	    
	    <?php 
echo random_item_link();
?>
	
	    
        <div class="social-media">
    		<?php 
echo social_media();
?>
    	</div>
    
    	<ul class="navigation navigation-legal">
	    	<?php 
echo mh_legal_nav();
?>
      	
		</ul>
        
    </nav>
function mh_global_header()
{
    $html = '<h1 id="site-title" class="visuallyhidden">' . link_to_home_page() . '</h1>';
    $html .= '<div id="mobile-logo-container" class="clearfix">';
    $html .= '<div id="logo">';
    $html .= link_to_home_page(mh_the_logo());
    $html .= '</div>';
    $html .= '<div id="mobile-menu-button"><a class="icon-reorder"><span class="visuallyhidden"> Menu</span></a></div>';
    $html .= '</div>';
    $html .= '<div id="mobile-menu-cluster" class="active">';
    $html .= '<nav id="primary-nav">';
    $html .= mh_global_nav();
    $html .= '</nav>';
    $html .= '<div id="search-wrap">';
    $html .= mh_simple_search($formProperties = array('id' => 'header-search'));
    $html .= '</div>';
    $html .= random_item_link();
    $html .= '</div>';
    // end mobile-menu-cluster
    return $html;
}
if (get_theme_option('stealth_mode') == 1 && is_allowed('Items', 'edit') !== true) {
    include_once 'stealth-index.php';
} else {
    //if not stealth mode, do everything else
    echo head(array('maptype' => 'focusarea', 'bodyid' => 'home', 'bodyclass' => 'home'));
    ?>

	
<div id="content">
<article id="homepage">

	<div id="desktop-block">
			<section id="custom-block">
				<?php 
    mh_custom_content();
    echo random_item_link("View A Random " . mh_item_label('singular'), 'big-button');
    $text = 'View all <span>' . total_records('Item') . ' ' . mh_item_label('plural') . '</span>';
    echo '<p class="view-more-link">' . link_to_items_browse($text) . '</p>';
    ?>
					
			</section>
				
			<section id="featured-story"> 
				<?php 
    echo mh_display_random_featured_item(true);
    ?>
			</section>	
					
	</div>	
			<section id="home-tours">
				<?php