本文整理汇总了PHP中bp_is_user_forums函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_is_user_forums函数的具体用法?PHP bp_is_user_forums怎么用?PHP bp_is_user_forums使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_is_user_forums函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
<?php
do_action('bp_before_member_body');
if (bp_is_user_activity() || !bp_current_component()) {
bp_get_template_part('members/single/activity');
} elseif (bp_is_user_blogs()) {
bp_get_template_part('members/single/blogs');
} elseif (bp_is_user_friends()) {
bp_get_template_part('members/single/friends');
} elseif (bp_is_user_groups()) {
bp_get_template_part('members/single/groups');
} elseif (bp_is_user_messages()) {
bp_get_template_part('members/single/messages');
} elseif (bp_is_user_profile()) {
bp_get_template_part('members/single/profile');
} elseif (bp_is_user_forums()) {
bp_get_template_part('members/single/forums');
} elseif (bp_is_user_notifications()) {
bp_get_template_part('members/single/notifications');
} elseif (bp_is_user_settings()) {
bp_get_template_part('members/single/settings');
// If nothing sticks, load a generic template
} else {
bp_get_template_part('members/single/plugins');
}
do_action('bp_after_member_body');
?>
</div>
<!-- #item-body -->
示例2: bp_is_user_forums_replied_to
/**
* Is this a user's "Replied To" page?
*
* Eg http://example.com/members/joe/forums/replies/.
*
* @since 1.5.0
*
* @return bool True if the current page is a user's Replied To forums page.
*/
function bp_is_user_forums_replied_to()
{
return (bool) (bp_is_user_forums() && bp_is_current_action('replies'));
}
示例3: bp_is_user_forums_replied_to
/**
* Is this a user's "Replied To" page?
*
* @package BuddyPress
* @since 1.5
*
* @return bool
*/
function bp_is_user_forums_replied_to()
{
if (bp_is_user_forums() && bp_is_current_action('replies')) {
return true;
}
return false;
}
示例4: _e
_e('Groups', 'framemarket');
?>
"><?php
_e('Groups', 'framemarket');
?>
</a>
</li>
<?php
}
?>
<?php
if (bp_is_active('forums') && bp_is_active('groups') && (function_exists('bp_forums_is_installed_correctly') && !(int) bp_get_option('bp-disable-forum-directory')) && bp_forums_is_installed_correctly()) {
?>
<li<?php
if (bp_is_forums_component() && !bp_is_user_forums()) {
?>
class="selected"<?php
}
?>
>
<a href="<?php
echo site_url();
?>
/<?php
echo bp_forums_root_slug();
?>
/" title="<?php
_e('Forums', 'framemarket');
?>
"><?php
示例5: bp_the_topic_title
<?php
bp_the_topic_title();
?>
</a>
<p class="topic-meta">
<span class="topic-by"><?php
/* translators: "started by [poster] in [forum]" */
printf(__('Started by %1$s', 'buddypress'), bp_get_the_topic_poster_avatar('height=20&width=20') . bp_get_the_topic_poster_name());
?>
</span>
<?php
if (bp_is_directory() || bp_is_user_forums()) {
?>
<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', 'buddypress'), $topic_in);
?>
</span>
<?php
}
?>