本文整理汇总了PHP中bp_get_the_topic_object_permalink函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_the_topic_object_permalink函数的具体用法?PHP bp_get_the_topic_object_permalink怎么用?PHP bp_get_the_topic_object_permalink使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_get_the_topic_object_permalink函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_the_topic_object_permalink
/**
* Output the permalink of the object associated with the current topic in the loop.
*/
function bp_the_topic_object_permalink()
{
echo bp_get_the_topic_object_permalink();
}
示例2: printf
<p class="topic-meta">
<span class="topic-by"><?php
/* translators: "started by [poster] in [forum]" */
printf(__('Started by %1$s', 'wplms_modern'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
?>
</span>
<?php
if (!bp_is_group_forum()) {
?>
<span class="topic-in">
<?php
$topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar('type=thumb&width=20&height=20') . '</a>' . '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() . '</a>';
/* translators: "started by [poster] in [forum]" */
printf(__('in %1$s', 'wplms_modern'), $topic_in);
?>
</span>
<?php
}
?>
</p>
</td>
<td class="td-postcount">
<?php
bp_the_topic_total_posts();
示例3: bp_the_topic_object_avatar
<p class="topic-meta">
<?php
bp_the_topic_object_avatar('width=35&height=35');
?>
<span><?php
_e('Posted in Group', 'huddle');
?>
</span>
</p>
<p class="topic-meta">
<span>
<?php
$topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() . '</a>';
printf(__('%1$s', 'huddle'), $topic_in);
?>
</span>
</p>
<?php
}
?>
</td>
<td class="td-freshness">
<?php
bp_the_topic_last_poster_avatar('width=35&height=35');
?>