<?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 -->
/** * 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')); }
/** * 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; }
_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
<?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 } ?>