本文整理汇总了PHP中bones_page_navi函数的典型用法代码示例。如果您正苦于以下问题:PHP bones_page_navi函数的具体用法?PHP bones_page_navi怎么用?PHP bones_page_navi使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bones_page_navi函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bones_page_navi
<footer class="article-footer">
</footer>
</article>
<?php
}
?>
<?php
if (function_exists('bones_page_navi')) {
?>
<?php
bones_page_navi();
?>
<?php
} else {
?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php
next_posts_link(__('« Older Entries', 'anp-main-theme'));
?>
</li>
<li class="next-link"><?php
previous_posts_link(__('Newer Entries »', 'anp-main-theme'));
?>
</li>
</ul>
示例2: grid_blog
//.........这里部分代码省略.........
<!-- end article header -->
<div class="entry-content clearfix">
<?php
if ($grid_show_excerpt != 'false') {
the_excerpt();
}
?>
</div>
<!-- end article section -->
<footer class="article-footer">
<p class="tags"><?php
the_tags('<span class="tags-title">' . __('Tags:', 'adap_sc') . '</span> ', ', ', '');
?>
</p>
</footer>
<!-- end article footer -->
<?php
// comments_template(); // uncomment if you want to use them
?>
</article>
<!-- end article -->
</section>
<?php
if ($new_row) {
?>
</div>
<div class="row-fluid">
<?php
}
?>
<?php
}
?>
<?php
if (function_exists('bones_page_navi')) {
?>
<?php
bones_page_navi('', '', 'Newer Posts', 'Older Posts');
?>
<?php
} else {
?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php
next_posts_link(__('« Older Entries', 'adap_sc'));
?>
</li>
<li class="next-link"><?php
previous_posts_link(__('Newer Entries »', 'adap_sc'));
?>
</li>
</ul>
</nav>
<?php
}
?>
<?php
} else {
?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php
_e("Oops, Post Not Found!", 'adap_sc');
?>
</h1>
</header>
<section class="entry-content">
<p><?php
_e("Uh Oh. Something is missing. Try double checking things.", 'adap_sc');
?>
</p>
</section>
<footer class="article-footer">
<p><?php
_e("This is the error message from the Adaptive Shortcodes' Blog Shortcode ", 'adap_sc');
?>
</p>
</footer>
</article>
<?php
}
?>
</div>
<?php
$ret_val = ob_get_contents();
ob_end_clean();
wp_reset_query();
return $ret_val;
}
示例3: the_time
<p>
<time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time(get_option('date_format')); ?></time>
</p>
</div>
</section> <!-- end article section -->
</header> <!-- end article header -->
</article> <!-- end article -->
<?php endwhile; ?>
<!--
TODO: Erase bones_page_navi stuff on the home page
<?php if (function_exists('bones_page_navi')) { // if experimental feature is active ?>
<?php bones_page_navi(); // use the page navi function ?>
<?php } else { // if it is disabled, display regular wp prev & next links ?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php next_posts_link(_e('« Older Entries', 'bonestheme')) ?></li>
<li class="next-link"><?php previous_posts_link(_e('Newer Entries »', 'bonestheme')) ?></li>
</ul>
</nav>
<?php } ?>
-->
<?php else : ?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
示例4: _e
<?php
_e('Sorry, no results were found.', 'sage');
?>
</div>
<?php
get_search_form();
?>
<?php
}
?>
<?php
while (have_posts()) {
the_post();
//Only show posts not case-studies or other post types
if (get_post_type(get_the_ID()) == 'post') {
get_template_part('templates/content', get_post_type() != 'post' ? get_post_type(get_the_ID()) : get_post_format());
}
?>
<?php
}
?>
</div><!--.contents-->
</section><!--.content-->
<?php
bones_page_navi('', '', $wp_query);
?>
<div class="clear-fix">
示例5: shortcode_handler
//.........这里部分代码省略.........
<?php
if ($show_item_categories !== 'false') {
echo '<div class="portfolio-categories">';
echo get_the_term_list($pid, $taxonomy, '', ', ', '');
echo '</div>';
}
?>
<?php
if ($show_excerpt != 'false') {
?>
<div class="portfolio-item-excerpt">
<?php
echo get_the_excerpt();
?>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
<?php
//replace the portfolio handling
remove_shortcode($this->sc_handle);
$this->register_shortcode();
$more = $orig_more;
?>
</div>
<!--End Thumbnails--></div>
<?php
if ($show_pagination != 'false') {
?>
<?php
if (function_exists('bones_page_navi')) {
?>
<div class="portfolio-pagination-links">
<?php
bones_page_navi();
?>
</div>
<?php
} else {
?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php
next_posts_link(__('« Older Entries', 'adap_sc'));
?>
</li>
<li class="next-link"><?php
previous_posts_link(__('Newer Entries »', 'adap_sc'));
?>
</li>
</ul>
</nav>
<?php
}
?>
<?php
}
?>
<?php
} else {
?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php
_e("Oops, Post Not Found!", 'adap_sc');
?>
</h1>
</header>
<section class="entry-content">
<p><?php
_e("Uh Oh. Something is missing. Try double checking things.", 'adap_sc');
?>
</p>
</section>
</article>
<?php
}
?>
<?php
$ret_val = ob_get_contents();
ob_end_clean();
wp_reset_query();
return $ret_val;
}