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


PHP bbp_topic_freshness_link函数代码示例

本文整理汇总了PHP中bbp_topic_freshness_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_topic_freshness_link函数的具体用法?PHP bbp_topic_freshness_link怎么用?PHP bbp_topic_freshness_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bbp_topic_freshness_link函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: bbp_show_lead_topic

?>
</li>

	<li class="bbp-topic-reply-count"><?php 
bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count();
?>
</li>

	<li class="bbp-topic-freshness">

		<?php 
do_action('bbp_theme_before_topic_freshness_link');
?>

		<?php 
bbp_topic_freshness_link();
?>

		<?php 
do_action('bbp_theme_after_topic_freshness_link');
?>

		<p class="bbp-topic-meta">

			<?php 
do_action('bbp_theme_before_topic_freshness_author');
?>

			<span class="bbp-topic-freshness-author"><?php 
bbp_author_link(array('post_id' => bbp_get_topic_last_active_id(), 'type' => 'name'));
?>
开发者ID:berniecultess,项目名称:infirev,代码行数:31,代码来源:loop-single-topic.php

示例2: ipt_kb_bbp_forum_freshness_in_list

function ipt_kb_bbp_forum_freshness_in_list($forum_id = 0)
{
    $og_forum_last_topic_id = bbp_get_forum_last_topic_id($forum_id);
    $og_last_topic_id = bbp_get_topic_last_active_id($og_forum_last_topic_id);
    $author_link = bbp_get_author_link(array('post_id' => $og_last_topic_id, 'type' => 'name'));
    $freshness = bbp_get_author_link(array('post_id' => $og_last_topic_id, 'size' => 32, 'type' => 'avatar'));
    if (!empty($freshness)) {
        ?>
<span class="pull-left thumbnail">
        <?php 
        echo $freshness;
        ?>
</span>
<?php 
    }
    do_action('bbp_theme_before_forum_freshness_link');
    ?>
<ul class="list-unstyled ipt_kb_forum_freshness_meta">
        <li class="bbp-topic-freshness-link"><?php 
    echo bbp_topic_freshness_link($og_forum_last_topic_id);
    ?>
  </li>
        <li class="bbp-topic-freshness-author">
                <?php 
    do_action('bbp_theme_before_topic_author');
    ?>
                <?php 
    if (!empty($author_link)) {
        printf(__('by %s', 'ipt_kb'), $author_link);
    }
    ?>
                <?php 
    do_action('bbp_theme_after_topic_author');
    ?>
        </li>
</ul>
<?php 
    do_action('bbp_theme_after_forum_freshness_link');
    ?>
        <?php 
}
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:41,代码来源:functions.php

示例3: edd_bbp_dashboard_shortcode


//.........这里部分代码省略.........
            while ($assigned_tickets->have_posts()) {
                $assigned_tickets->the_post();
                ?>
							<?php 
                $parent = get_post_field('post_parent', get_the_ID());
                ?>
							<?php 
                $row_class = $parent == 499 ? 'danger' : '';
                ?>
							<?php 
                $last_reply_id = bbp_get_topic_last_reply_id(get_the_ID());
                ?>
							<?php 
                $last_reply_data = get_post($last_reply_id);
                ?>
							<tr class = "<?php 
                echo $row_class;
                ?>
">
								<td>
								<a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a>
								</td>
								<td><?php 
                the_author_meta('display_name', $last_reply_data->post_author);
                ?>
</td>
								<td><?php 
                bbp_topic_freshness_link();
                ?>
</td>
								<td><?php 
                bbp_topic_post_count(get_the_ID());
                ?>
</td>
							</tr>
						<?php 
            }
            ?>
					<?php 
            wp_reset_postdata();
            ?>
					</table>
			<?php 
        } else {
            ?>
				<div>This mod has no assigned tickets.</div>
			<?php 
        }
        ?>
		</div>
		<?php 
        return ob_get_clean();
    }
    // Get tickets awaiting answer
    $args = array('post_type' => 'topic', 'meta_query' => array('relation' => 'AND', array('key' => '_bbps_topic_pending'), array('key' => '_bbps_topic_status', 'value' => '1'), array('key' => 'bbps_topic_assigned', 'value' => $user_ID)), 'order' => 'ASC', 'orderby' => 'meta_value', 'meta_key' => '_bbp_last_active_time', 'posts_per_page' => -1, 'post_parent__not_in' => array(318));
    $waiting_tickets = new WP_Query($args);
    // Get open, assigned tickets
    $args = array('post_type' => 'topic', 'meta_query' => array('relation' => 'AND', array('key' => '_bbps_topic_status', 'value' => '1'), array('key' => 'bbps_topic_assigned', 'value' => $user_ID)), 'order' => 'ASC', 'orderby' => 'meta_value', 'meta_key' => '_bbp_last_active_time', 'posts_per_page' => -1, 'post_parent__not_in' => array(318));
    $assigned_tickets = new WP_Query($args);
    // Get unassigned tickets
开发者ID:Section214,项目名称:EDD-bbPress-Support,代码行数:67,代码来源:shortcodes.php

示例4: do_action

</span>
<!--              <span class="bbp-topic-freshness-author">--><?php 
                //echo bbp_get_author_link( array( 'post_id' => $sub_forum->ID, 'size' => 14 ) );
                ?>
<!--</span>-->

              <?php 
                do_action('bbp_theme_after_topic_freshness_author');
                ?>

              <?php 
                do_action('bbp_theme_before_topic_freshness_link');
                ?>

              <p><?php 
                bbp_topic_freshness_link($sub_forum->ID);
                ?>
</p>

              <?php 
                do_action('bbp_theme_after_topic_freshness_link');
                ?>

            </div>

          </li>
</div>
        </ul>

      <?php 
            }
开发者ID:hakkens,项目名称:davehakkens,代码行数:31,代码来源:loop-forums.php


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