本文整理汇总了PHP中BYT_Theme_Utils::display_pager方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::display_pager方法的具体用法?PHP BYT_Theme_Utils::display_pager怎么用?PHP BYT_Theme_Utils::display_pager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::display_pager方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
<p><?php
_e('We apologize for any inconvenience, please hit back on your browser or if you are an admin, enter some content.', 'bookyourtravel');
?>
</p>
</div>
</article>
<?php
}
?>
<!--bottom navigation-->
<nav class="page-navigation bottom-nav">
<a href="#" class="scroll-to-top" title="<?php
esc_attr_e('Back up', 'bookyourtravel');
?>
"><?php
_e('Back up', 'bookyourtravel');
?>
</a>
<div class="pager">
<?php
global $wp_query;
BYT_Theme_Utils::display_pager($wp_query->max_num_pages);
?>
</div>
</nav>
<!--//bottom navigation-->
</section>
<!--//three-fourth content-->
<?php
get_sidebar('right');
get_footer();
示例2: esc_attr_e
</div>
<nav class="page-navigation bottom-nav">
<!--back up button-->
<a href="#" class="scroll-to-top" title="<?php
esc_attr_e('Back up', 'bookyourtravel');
?>
"><?php
_e('Back up', 'bookyourtravel');
?>
</a>
<!--//back up button-->
<!--pager-->
<div class="pager">
<?php
$total_results = $accommodation_results['total'];
BYT_Theme_Utils::display_pager(ceil($total_results / $posts_per_page));
?>
</div>
</nav>
<?php
}
// end if ( $query->have_posts() )
?>
</div><!--//deals clearfix-->
</section>
<?php
wp_reset_postdata();
wp_reset_query();
if ($page_sidebar_positioning == 'both' || $page_sidebar_positioning == 'right') {
get_sidebar('right');
}
示例3: foreach
<section id="car_rentals" class="tab-content <?php
echo $first_display_tab == 'car_rentals' ? 'initial' : '';
?>
">
<div class="deals">
<?php
$car_rental_results = $byt_car_rentals_post_type->list_car_rentals(0, -1, 'post_title', 'ASC', $location_id);
if (count($car_rental_results) > 0 && $car_rental_results['total'] > 0) {
foreach ($car_rental_results['results'] as $car_rental_result) {
global $post, $car_rental_class;
$post = $car_rental_result;
setup_postdata($post);
$car_rental_class = 'full-width';
get_template_part('includes/parts/car_rental', 'item');
}
} else {
echo '<p>' . __('Unfortunately there are no car rental offers at this location at the moment.', 'bookyourtravel') . '</p>';
}
?>
<?php
BYT_Theme_Utils::render_tab_extra_fields('location_extra_fields', $location_extra_fields, 'car_rentals', $location_obj);
?>
</div>
</section>
<!--/Car rentals-->
<?php
}
?>
<?php
foreach ($tab_array as $tab) {