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


PHP bones_page_navi函数代码示例

本文整理汇总了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(__('&laquo; Older Entries', 'anp-main-theme'));
        ?>
</li>
										<li class="next-link"><?php 
        previous_posts_link(__('Newer Entries &raquo;', 'anp-main-theme'));
        ?>
</li>
									</ul>
开发者ID:misfist,项目名称:anp-network-main-theme-redux,代码行数:30,代码来源:archive-custom_type.php

示例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(__('&laquo; Older Entries', 'adap_sc'));
                ?>
</li>
					<li class="next-link"><?php 
                previous_posts_link(__('Newer Entries &raquo;', '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;
    }
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:101,代码来源:blog.php

示例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('&laquo; Older Entries', 'bonestheme')) ?></li>
								        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', 'bonestheme')) ?></li>
							        </ul>
						        </nav>
					        <?php } ?>		
					      -->
					
					    <?php else : ?>
					    
					        <article id="post-not-found" class="hentry clearfix">
					            <header class="article-header">
开发者ID:nackjicholson,项目名称:project-poppycock,代码行数:31,代码来源:index.php

示例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">
开发者ID:jimshare,项目名称:basic-income-createathon,代码行数:31,代码来源:archive.php

示例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(__('&laquo; Older Entries', 'adap_sc'));
                    ?>
</li>
						<li class="next-link"><?php 
                    previous_posts_link(__('Newer Entries &raquo;', '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;
    }
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:101,代码来源:portfolio.php


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