本文整理汇总了PHP中bp_messages_pagination函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_messages_pagination函数的具体用法?PHP bp_messages_pagination怎么用?PHP bp_messages_pagination使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_messages_pagination函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
do_action('bp_before_member_messages_loop');
?>
<?php
if (bp_has_message_threads()) {
?>
<div class="pagination no-ajax" id="user-pag">
<div class="pag-count" id="messages-dir-count">
<?php
bp_messages_pagination_count();
?>
</div>
<div class="pagination-links" id="messages-dir-pag">
<?php
bp_messages_pagination();
?>
</div>
</div><!-- .pagination -->
<?php
do_action('bp_after_member_messages_pagination');
do_action('bp_before_member_messages_threads');
?>
<table id="message-threads" class="messages-notices">
<?php
while (bp_message_threads()) {
bp_message_thread();
?>
<tr id="m-<?php
示例2: do_action
<?php do_action( 'bp_before_notices_loop' ) ?>
<?php if ( bp_has_message_threads() ) : ?>
<div class="pagination" id="user-pag">
<div class="pag-count" id="messages-dir-count">
<?php bp_messages_pagination_count() ?>
</div>
<div class="pagination-links" id="messages-dir-pag">
<?php bp_messages_pagination() ?>
</div>
</div><!-- .pagination -->
<?php do_action( 'bp_after_notices_pagination' ) ?>
<?php do_action( 'bp_before_notices' ) ?>
<table id="message-threads" class="zebra">
<?php while ( bp_message_threads() ) : bp_message_thread(); ?>
<tr>
<td width="1%">
</td>
<td width="38%">
<strong><?php bp_message_notice_subject() ?></strong>
<?php bp_message_notice_text() ?>
</td>
<td width="21%">
<strong><?php bp_message_is_active_notice() ?></strong>
<span class="activity"><?php _e("Sent:", "buddypress"); ?> <?php bp_message_notice_post_date() ?></span>