当前位置: 首页>>代码示例>>PHP>>正文


PHP public_nav_main函数代码示例

本文整理汇总了PHP中public_nav_main函数的典型用法代码示例。如果您正苦于以下问题:PHP public_nav_main函数的具体用法?PHP public_nav_main怎么用?PHP public_nav_main使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了public_nav_main函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: public_nav_main_bootstrap

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();
}
开发者ID:jeau,项目名称:omeka-starter-theme,代码行数:8,代码来源:functions.php

示例2: public_nav_main

        </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>-->
开发者ID:HCDigitalScholarship,项目名称:ticha-scribe,代码行数:31,代码来源:footer.php

示例3: public_nav_main

?>
<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">
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:31,代码来源:header.php

示例4: empty

    ?>
">
                        <?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));
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:header.php

示例5: public_nav_main

        </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>
开发者ID:charvolant,项目名称:bigstuff,代码行数:30,代码来源:footer.php

示例6: mh_global_nav

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();
    }
}
开发者ID:ebellempire,项目名称:curatescape_gardens,代码行数:12,代码来源:custom.php

示例7: fire_plugin_hook

        <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 
开发者ID:patrickmj,项目名称:default-mod,代码行数:31,代码来源:header.php

示例8: body_tag

?>
  
</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>
开发者ID:patrova,项目名称:denison-expanding-archives-omeka-theme,代码行数:31,代码来源:header.php


注:本文中的public_nav_main函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。