本文整理汇总了PHP中theme_pagination函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_pagination函数的具体用法?PHP theme_pagination怎么用?PHP theme_pagination使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了theme_pagination函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: theme_paging_nav
/**
* Display navigation.
*/
function theme_paging_nav()
{
$mid = 2;
// Total of items that will show along with the current page.
$end = 1;
// Total of items displayed for the last few pages.
$show = false;
// Show all items.
echo theme_pagination($mid, $end, false);
}
示例2: the_permalink
<div class="post-content" style="margin-top:5px; padding :5px;">
<a href="<?php
the_permalink();
?>
"><?php
echo wp_trim_words(the_title(), 60, '...');
?>
</a>
</div>
</div>
</div>
<?php
}
?>
<div class="col-md-12">
<?php
theme_pagination();
?>
</div>
<?php
}
?>
</div>
</div>
<?php
get_sidebar();
?>
<?php
get_footer();
示例3: _e
</article>
</div>
<?php
}
} else {
?>
<div class="small-12 medium-3 small-centered columns">
<p><?php
_e('Please select Portfolio Categories for this page', THB_THEME_NAME);
?>
</p>
</div>
<?php
}
?>
<?php
wp_reset_query();
?>
</div>
<?php
theme_pagination($query->max_num_pages, 1, true);
?>
</section>
<?php
if ($sidebar) {
get_sidebar('page');
}
?>
</div>
<?php
get_footer();
示例4: the_excerpt
</a></h2>
<?php
the_excerpt();
?>
</div>
<?php
}
} else {
?>
<div class="no-post">
<h3><?php
_e('No, Results Found', 'language');
?>
</h3>
<p><?php
_e('Sorry, No Posts found!', 'language');
?>
</p>
</div>
<?php
}
?>
<?php
theme_pagination($wp_query->max_num_pages);
?>
</div>
</div><!--end of content div-->
<div class="clearfix"></div>
</div><!--end of container div-->
<?php
get_footer();
示例5: theme_pagination
</article>
<?php
if (in_array($i + 1, $counter)) {
echo '</div>';
}
?>
<?php
$i++;
}
?>
<div class="small-12 columns">
<?php
theme_pagination($all_posts->max_num_pages, 1, true);
?>
</div>
<?php
} else {
?>
<p><?php
_e('Please add posts from your WordPress admin page.', THB_THEME_NAME);
?>
</p>
<?php
}
?>
</section>
</div>
<?php
示例6: wp_reset_query
</div>
<?php
}
wp_reset_query();
} else {
?>
<div class="alert-wrapper">
<h5><?php
_e('No Properties Found!', 'framework');
?>
</h5>
</div>
<?php
}
theme_pagination($my_properties_query->max_num_pages);
} else {
?>
<div class="alert-wrapper">
<h5><?php
_e('Please, Log in to view your properties!', 'framework');
?>
</h5>
</div>
<?php
}
?>
</div><!-- End Main Content -->
示例7: wp_reset_query
</p>
</div><!--/ post-tags -->
<?php
}
?>
<div class="kids_clear"></div>
</div><!--/ post-footer-->
</article><!--/ post-item-->
<?php
$loop_cont++;
}
}
// LOOP END
wp_reset_query();
theme_pagination('pagenavi', $r);
comments_template();
?>
</main>
<?php
if (($blog_template == 'sb_double' || $blog_template == 'sb_right') && function_exists('dynamic_sidebar') && $custom_sidebar_r) {
echo '<aside id="sidebar-right">';
dynamic_sidebar($custom_sidebar_r);
echo "</aside>";
}
?>
<div class="kids_clear"></div>
</div><!-- .entry-container -->
示例8: wp_reset_query
wp_reset_query();
} else {
?>
<h4><?php
_e('Sorry No Results Found', 'framework');
?>
</h4>
<?php
}
?>
</div>
<?php
theme_pagination($agent_listing_query->max_num_pages);
?>
</section>
</div><!-- End Main Content -->
</div> <!-- End span9 -->
<?php
get_sidebar('pages');
?>
</div><!-- End contents row -->
示例9: wp_reset_query
}
}
wp_reset_query();
} else {
?>
<div class="alert-wrapper"><h4><?php
_e('No Properties Found!', 'framework');
?>
</h4></div><?php
}
?>
</div>
<?php
theme_pagination($search_query->max_num_pages);
?>
</section>
</div><!-- End Main Content -->
</div> <!-- End span12 -->
</div><!-- End row -->
</div><!-- End content -->
<?php
get_footer();
示例10: the_ID
the_ID();
?>
">
<?php
get_template_part('inc/postformats/' . $format);
?>
</article>
<?php
}
?>
<?php
}
?>
<?php
theme_pagination($query->max_num_pages, 3, false);
?>
<?php
} else {
?>
<p><?php
_e('Please add posts from your WordPress admin page.', THB_THEME_NAME);
?>
</p>
<?php
}
?>
</section>
</div>
<?php
get_footer();
示例11: _e
?>
<div class="alert-wrapper">
<h4><?php
_e('Sorry No Results Found', 'framework');
?>
</h4>
</div>
<?php
}
?>
</div>
<?php
theme_pagination($property_listing_query->max_num_pages);
?>
</section>
</div><!-- End Main Content -->
</div> <!-- End span9 -->
<?php
get_sidebar('property-listing');
?>
</div><!-- End contents row -->
</div><!-- End Content -->
示例12: the_ID
the_ID();
?>
">
<?php
get_template_part('inc/postformats/' . $format);
?>
</article>
<?php
}
?>
<?php
}
?>
<?php
theme_pagination($query->max_num_pages, 3, 'style2');
?>
<?php
} else {
?>
<p><?php
_e('Please add posts from your WordPress admin page.', THB_THEME_NAME);
?>
</p>
<?php
}
?>
</section>
</div>
<?php
get_footer();
示例13: multitranslate
<div class="holder404">
<div class="description_error">
<p>
<?php
multitranslate(__('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'happykids'), '_tr_nothing_search');
?>
</p>
</div>
</div>
<?php
}
?>
<?php
theme_pagination('pagenavi gl');
comments_template();
?>
</main>
<?php
if (function_exists('dynamic_sidebar') && $gen_side_r) {
echo '<aside id="sidebar-right">';
dynamic_sidebar($gen_side_r);
echo "</aside>";
}
?>
<div class="kids_clear"></div>
</div><!-- .entry-container -->
</div>
<div class="bg-level-2 second-part"></div>