本文整理汇总了PHP中toolbox_content_nav函数的典型用法代码示例。如果您正苦于以下问题:PHP toolbox_content_nav函数的具体用法?PHP toolbox_content_nav怎么用?PHP toolbox_content_nav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了toolbox_content_nav函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: toolbox_post_list
function toolbox_post_list()
{
rewind_posts();
?>
<?php
if (have_posts()) {
?>
<?php
/* Start the Loop */
?>
<?php
while (have_posts()) {
the_post();
?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part('content', get_post_format());
?>
<?php
}
?>
<?php
toolbox_content_nav('nav-below');
?>
<?php
} else {
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php
_e('Nothing Found', 'jan1');
?>
</h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php
_e('It seems we can\'t find what you\'re looking for. Perhaps searching can help.', 'jan1');
?>
</p>
<?php
get_search_form();
?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php
}
}
开发者ID:neapel,项目名称:wp-theme-green,代码行数:58,代码来源:functions.php
示例2: get_template_part
?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part('content', get_post_format());
?>
<?php
}
?>
<?php
toolbox_content_nav('nav-below');
?>
<?php
} else {
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php
_e('Nothing Found', 'toolbox');
?>
</h1>
</header><!-- .entry-header -->
<div class="entry-content">
开发者ID:danaiser,项目名称:hollandLawns,代码行数:31,代码来源:archive.php
示例3: bloginfo
bloginfo('template_directory');
?>
/images/BG_LOGO.png" alt="Blank Wall" id="Background" width="60%" />
<div id="primary">
<div id="content" role="main">
<?php
if (have_posts()) {
?>
<?php
toolbox_content_nav('nav-above');
?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php
}
?>
</div><!-- #content -->
</div><!-- #primary -->
开发者ID:rep1946,项目名称:TBW_toolbox,代码行数:31,代码来源:index.php
注:本文中的toolbox_content_nav函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论