function public_nav_main_bootstrap()
{
    $partial = array('common/menu-partial.phtml', 'default');
    $nav = public_nav_main();
    // this looks like $this->navigation()->menu() from Zend
    $nav->setPartial($partial);
    return $nav->render();
}
        </article>

       <!-- <footer id="footer">

            <nav id="bottom-nav">
                <?php 
echo public_nav_main();
?>
            </nav>

            <div class="footer">
                <a href="<?php 
echo WEB_ROOT;
?>
"><img src="<?php 
echo img('sub.png');
?>
" alt="Scribe: an Omeka theme" title="Scribe: an Omeka theme" width="960" height="80" border="0"></a>
            </div>

            <div id="footer-text">
                <//?php echo get_theme_option('Footer Text'); ?>
                <//?php if ((get_theme_option('Display Footer Copyright') == 1) && $copyright = option('copyright')): ?>
                    <p><//?php echo $copyright; ?></p>
                <//?php endif; ?>
                <p><//?php echo __('Proudly powered by <a href="http://omeka.org">Omeka</a>.'); ?></p>
            </div>

            <//?php fire_plugin_hook('public_footer', array('view'=>$this)); ?>

        </footer>-->
?>
<div class="wrapper">
	<nav class="navbar navbar-inverse navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-button">
                    <span class="sr-only">Menu</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="search-overlay-button navbar-toggle"><span class="glyphicon glyphicon-search"></span></a>
            </div>
            <div class="collapse navbar-collapse" id="navbar-collapse-button">
                <?php 
$nav = public_nav_main();
echo $nav->setUlClass('nav navbar-nav');
?>
                <ul class="nav navbar-nav navbar-right hidden-xs">
                    <li><a class="search-overlay-button"><span class="glyphicon glyphicon-search"></span> Search Archive</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <header>
        <div class="overlay"></div>
        <div class="container">
            <?php 
if (!get_theme_option('Theme: Show')) {
    ?>
                <div class="logo">
    ?>
">
                        <?php 
    echo empty($style['logo']['navbar']) ? __('Home') : $style['logo']['navbar'];
    ?>
                    </a>
                </div>
                <div class="collapse navbar-collapse">
                    <div class="navbar-search hidden-sm hidden-md hidden-lg" role="search">
                        <?php 
    echo search_form(array('form_attributes' => array('id' => 'search-bar-nav', 'class' => 'navbar-form'), 'limiters' => @$style['search']));
    ?>
                    </div>
                    <?php 
    if ($style['navbar'] === true) {
        $navbar = public_nav_main();
    } else {
        $navbar = (include $style['navbar']);
    }
    echo $navbar->setUlClass('nav navbar-nav navbar-right');
    ?>
                </div>
            </nav>
        <?php 
}
?>

        <main id="content">
            <div class="wrapper clearfix">
                <?php 
fire_plugin_hook('public_content_top', array('view' => $this));
Exemple #5
0
        </div>
        <?php 
}
?>
        <?php 
if (get_theme_option('Display Footer Copyright') == 1 && ($copyright = option('copyright'))) {
    ?>
        <p><?php 
    echo $copyright;
    ?>
</p>
        <?php 
}
?>
        <nav><?php 
echo public_nav_main()->setMaxDepth(0);
?>
</nav>
        <p><?php 
echo __('Proudly powered by <a href="http://omeka.org">Omeka</a>.');
?>
</p>

    </div><!-- end footer-content -->

     <?php 
fire_plugin_hook('public_footer', array('view' => $this));
?>

</footer>
function mh_global_nav($includeExtra = true)
{
    if (get_theme_option('default_nav') == 1) {
        $navLinks = array(array('label' => 'Home', 'uri' => url('/')), array('label' => mh_item_label('plural'), 'uri' => url('items/browse')), array('label' => 'About', 'uri' => url('/about')), array('label' => 'FAQs', 'uri' => url('/faq')), array('label' => 'Education', 'uri' => url('/education')), array('label' => 'Tumblr', 'uri' => 'http://communityofgardens.tumblr.com/', 'target' => '_blank'), array('label' => 'Share A Story', 'uri' => url('/contribution')));
        if ($includeExtra == true) {
            $navLinks[] = array('label' => 'Share A Story', 'uri' => url('/contribution?nav-sign'), 'class' => 'nav-share-a-story');
        }
        return nav($navLinks);
    } else {
        return public_nav_main();
    }
}
Exemple #7
0
        <header role="banner">
            <?php 
fire_plugin_hook('public_header', array('view' => $this));
?>
            <div id="site-title"><?php 
echo link_to_home_page(theme_logo());
?>
</div>
        </header>
            
        <div class="menu-button button">Menu</div>
            
        <div id="wrap">
            <nav id="primary-nav" role="navigation">
                <?php 
echo public_nav_main(array('role' => 'navigation'));
?>
                <div id="search-container" role="search">
                    <?php 
if (get_theme_option('use_advanced_search') === null || get_theme_option('use_advanced_search')) {
    ?>
                    <?php 
    echo search_form(array('show_advanced' => true));
    ?>
                    <?php 
} else {
    ?>
                    <?php 
    echo search_form();
    ?>
                    <?php 
?>
  
</head>
  
<?php 
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
    
  <input type="checkbox" id="nav-drawer-toggle" class="checkbox-hidden">
  <label class="nav-drawer-shade" for="nav-drawer-toggle" onclick></label>
  <div class="nav-drawer">
    <div class="nav-container">
      <div class="container">
        <nav id="primary-nav" role="navigation" class="col-md-12">
          <?php 
$menu = public_nav_main();
$menu->setUlClass('col-md-6 col-md-offset-1 navigation');
echo $menu;
?>
          
          <div id="search-container" role="search" class="col-md-4">
            <?php 
if (get_theme_option('use_advanced_search') === null || get_theme_option('use_advanced_search')) {
    echo search_form(array('show_advanced' => true, 'submit_value' => 'Search'));
} else {
    echo search_form();
}
?>
          </div>
          
        </nav>