本文整理汇总了PHP中hybrid_get_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_get_menu函数的具体用法?PHP hybrid_get_menu怎么用?PHP hybrid_get_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hybrid_get_menu函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hybrid_site_title
>
<?php
hybrid_site_title();
?>
<?php
hybrid_site_description();
?>
</div><!-- #branding -->
<?php
hybrid_get_menu('social');
// Loads the menu/social.php template.
?>
<?php
hybrid_get_menu('primary');
// Loads the menu/primary.php template.
?>
</header><!-- #header -->
<?php
//hybrid_get_menu( 'secondary' ); // Loads the menu/secondary.php template.
?>
<div id="main" class="main">
<?php
hybrid_get_menu('breadcrumbs');
// Loads the menu/breadcrumbs.php template.
示例2: hybrid_attr
<div <?php
hybrid_attr('branding');
?>
>
<?php
hybrid_site_title();
?>
<?php
hybrid_site_description();
?>
</div><!-- #branding -->
<?php
hybrid_get_sidebar('header-right');
?>
<?php
tha_header_bottom();
?>
</div>
</header><!-- #header -->
<?php
tha_header_after();
?>
<?php
hybrid_get_menu('after-header');
示例3: wp_head
wp_head();
// Hook required for scripts, styles, and other <head> items.
?>
</head>
<body <?php
hybrid_attr('body');
?>
>
<div id="container">
<header id="header">
<div id="branding">
<?php
hybrid_site_title();
?>
<?php
hybrid_site_description();
?>
</div><!-- #branding -->
</header><!-- #header -->
<?php
hybrid_get_menu('primary');
// Loads the menu/primary.php template.
?>
<div id="main">
示例4: hybrid_get_sidebar
hybrid_get_sidebar('primary');
// Loads the sidebar/primary.php template.
?>
</div><!-- #main -->
<?php
//hybrid_get_sidebar( 'footer' ); // Loads the sidebar/subsidiary.php template.
?>
<footer <?php
hybrid_attr('footer');
?>
>
<?php
hybrid_get_menu('social');
// Loads the menu/social.php template.
?>
<p class="credit">
<?php
printf(esc_html__('Copyright © %1$s %2$s', 'magik'), date_i18n('Y'), hybrid_get_site_link());
?>
</p><!-- .credit -->
<p class="credit">
<?php
echo __('Built with <big>♥</big> at <a href="https://magikpress.com">MagikPress</a>', 'magik');
?>
</p>
</footer><!-- #footer -->
示例5: hybrid_get_sidebar
</div><!-- #content -->
<?php
hybrid_get_sidebar('subsidiary');
// Loads the sidebar/subsidiary.php template.
?>
<footer <?php
hybrid_attr('footer');
?>
>
<div class="row">
<?php
hybrid_get_menu('subsidiary');
// Loads the menu/subsidiary.php template.
?>
<div class="site-info">
<div class="copyright">
<?php
printf(esc_html__('Copyright © %1$s %2$s', 'croft'), date_i18n('Y'), hybrid_get_site_link());
?>
</div><!-- .copyright -->
<div class="credit">
<?php
printf(esc_html__('Powered by %1$s and %2$s', 'croft'), hybrid_get_wp_link(), hybrid_get_theme_link());
?>
</div><!-- .credit -->
</div><!-- .site-info -->
示例6: get_header
<?php
get_header();
// Loads the header.php template.
?>
<div id="primary" class="content-area">
<main class="site-main" <?php
hybrid_attr('content');
?>
>
<?php
hybrid_get_menu('secondary');
// Loads the menu/secondary.php template.
?>
<?php
if (!is_front_page() && hybrid_is_plural()) {
// If viewing a multi-post page
?>
<?php
locate_template(array('misc/archive-header.php'), true);
// Loads the misc/archive-header.php template.
?>
<?php
}
// End check for multi-post page.
示例7: hybrid_attr
<footer <?php
hybrid_attr('footer');
?>
>
<div class="wrap">
<p class="credit">
<?php
echo hybrid_get_site_link() . ' © ' . date_i18n('Y');
?>
<?php
hybrid_get_menu('footer');
?>
</p><!-- .credit -->
</div><!-- .wrap -->
</footer><!-- #footer -->
示例8: get_header
<?php
get_header();
// Loads the header.php template.
?>
<main <?php
hybrid_attr('content');
?>
>
<?php
hybrid_get_menu('portfolio');
// Loads the menu/primary.php template.
?>
<?php
if (have_posts()) {
// Checks if any posts were found.
?>
<ul class="loop-entries-gallery">
<?php
while (have_posts()) {
// Begins the loop through found posts.
?>
<?php
the_post();
// Loads the post data.
示例9: hybrid_attr
<h1 <?php
hybrid_attr('loop-title');
?>
><?php
hybrid_loop_title();
?>
</h1>
<?php
if (is_category() || is_tax()) {
// If viewing a category or custom taxonomy.
?>
<?php
hybrid_get_menu('sub-terms');
// Loads the menu/sub-terms.php template.
?>
<?php
}
// End taxonomy check.
?>
<?php
if (!is_paged() && ($desc = hybrid_get_loop_description())) {
// Check if we're on page/1.
?>
<div <?php
hybrid_attr('loop-description');
示例10: hybrid_attr
<div <?php
hybrid_attr('branding');
?>
>
<?php
hybrid_site_title();
?>
<p id="site-description" class="site-description"><?php
bloginfo('description');
?>
</p>
</div><!-- #branding -->
</div><!-- .wrap -->
</header><!-- #header -->
<?php
hybrid_get_menu('primary');
// Loads the menu/primary.php template.
?>
<?php
hybrid_get_menu('primary-mobile');
// Loads the menu/primary-mobile.php template.
?>
<div id="main" class="main">
<div class="wrap">
示例11: hybrid_get_menu
</div><!-- .entry-content -->
<?php
hybrid_get_menu('formats');
// Loads the menu/formats.php template
?>
</article><!-- .entry -->
<?php
} else {
// If the page doesn't have content.
?>
<?php
hybrid_get_menu('formats');
// Loads the menu/formats.php template
?>
<?php
}
// End check for page content.
?>
<?php
}
// End found posts loop.
?>
<?php
}