/** * Hook member activity feed to <head>. * * @since 1.5.0 */ function bp_members_activity_feed() { if (!bp_is_active('activity') || !bp_is_user()) { return; } ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname(); ?> | <?php _e('Activity RSS Feed', 'buddypress'); ?> " href="<?php bp_member_activity_feed_link(); ?> " /> <?php }
<?php bp_displayed_user_avatar('type=full'); ?> </a> </div><!-- #item-header-avatar --> <div id="item-header-content"> <h2> <a href="<?php bp_displayed_user_link(); ?> "><?php bp_displayed_user_fullname(); ?> </a> </h2> <span class="user-nicename">@<?php bp_displayed_user_username(); ?> </span> <span class="activity"><?php bp_last_activity(bp_displayed_user_id()); ?> </span> <?php do_action('bp_before_member_header_meta');
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php bp_page_title() ?></title> <?php do_action( 'bp_head' ) ?> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" /> <?php endif; ?> <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" /> <?php endif; ?> <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" /> <?php endif; ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head>
function profile_questions_loop() { global $dwqa_options; $submit_question_link = get_permalink($dwqa_options['pages']['submit-question']); $questions = get_posts(array('posts_per_page' => 1, 'author' => bp_displayed_user_id(), 'post_type' => 'dwqa-question')); if (!empty($questions)) { ?> <div class="dwqa-container"> <div class="dwqa-list-question"> <div class="dw-question" id="archive-question"> <?php foreach ($questions as $q) { ?> <article id="question-18267" class="dwqa-question"> <header class="dwqa-header"> <a class="dwqa-title" href="<?php echo get_post_permalink($q->ID); ?> " title="Permalink to <?php echo $q->post_title; ?> " rel="bookmark"><?php echo $q->post_title; ?> </a> <div class="dwqa-meta"> <?php dwqa_question_print_status($q->ID); ?> <span><?php echo get_the_time('M d, Y, g:i a', $q->ID); ?> </span> • <?php echo get_the_term_list($q->ID, 'dwqa-question_category', '<span>Category: ', ', ', '</span>'); ?> </div> </header> </article> <?php } ?> </div> </div> </div> <?php } else { ?> <div class="info" id="message"> <?php if (get_current_user_id() == bp_displayed_user_id()) { ?> Why don't you have question for us. <a href="<?php echo $submit_question_link; ?> ">Start asking</a>! <?php } else { ?> <p><strong><?php bp_displayed_user_fullname(); ?> </strong> has not asked any question.</p> <?php } ?> </div> <?php } }
/** * Outputs the secondary title. Used in the second part of the <title> attribute. * * @since 1.1 * @author r-a-y */ function bplf_feed_secondary_title() { global $this_bp_feed; switch ($this_bp_feed) { case 'member_comments': case 'member_blog_posts': case 'member_updates': case 'friendships': case 'member_topics': case 'member_replies': case 'member_forums': bp_displayed_user_fullname(); break; case 'group_updates': case 'group_topics': case 'group_replies': case 'group_forums': case 'group_membership': echo bp_get_current_group_name(); break; case 'forum_topic': global $bplf_topic; echo $bplf_topic->topic_title; break; } }
/** * members home: add the sidebars and their default widgets to the members header * * located: members/home.php do_action( 'bp_before_member_home_content' ) * * @package Custom Community * @since 1.8.3 */ function before_member_home_content() { global $cap; if ($cap->bp_profile_header == false || $cap->bp_profile_header == 'on' || $cap->bp_profile_header == __('on', 'cc')) { ?> <div id="item-header"> <?php if (!dynamic_sidebar('memberheader')) { ?> <?php locate_template(array('members/single/member-header.php'), true); ?> <?php } ?> <div class="clear"></div> <?php if (is_active_sidebar('memberheaderleft')) { ?> <div class="widgetarea cc-widget span4"> <?php dynamic_sidebar('memberheaderleft'); ?> </div> <?php } ?> <?php if (is_active_sidebar('memberheadercenter')) { ?> <div class="<?php if (!is_active_sidebar('memberheaderleft')) { echo 'style="group-header-left'; } ?> widgetarea cc-widget span4"> <?php dynamic_sidebar('memberheadercenter'); ?> </div> <?php } ?> <?php if (is_active_sidebar('memberheaderright')) { ?> <div class="widgetarea cc-widget cc-widget-right span4"> <?php dynamic_sidebar('memberheaderright'); ?> </div> <?php } ?> </div> <?php } else { ?> <div id="item-header"> <h2 class="fn"><a href="<?php bp_user_link(); ?> "><?php bp_displayed_user_fullname(); ?> </a> <span class="highlight">@<?php bp_displayed_user_username(); ?> <span>?</span></span></h2> </div> <?php } ?> <?php if ($cap->bp_default_navigation == true) { ?> <div id="item-nav"> <div class="item-list-tabs no-ajax" id="object-nav"> <ul> <?php bp_get_displayed_user_nav(); ?> <?php do_action('bp_member_options_nav'); ?> </ul> </div> </div><!-- #item-nav --> <?php } }
<?php do_action( 'bp_before_member_header' ) ?> <div id="item-header-avatar"> <a href="<?php bp_user_link() ?>"> <?php bp_displayed_user_avatar( 'type=full' ) ?> </a> </div><!-- #item-header-avatar --> <div id="item-header-content"> <h2 class="fn"><a href="<?php bp_displayed_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2> <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span> <?php do_action( 'bp_before_member_header_meta' ) ?> <div id="item-meta"> <?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?> <div id="latest-update"> <?php bp_activity_latest_update( bp_displayed_user_id() ) ?> </div> <?php endif; ?> <div id="item-buttons"> <?php do_action( 'bp_member_header_actions' ); ?> </div><!-- #item-buttons --> <?php /*** * If you'd like to show specific profile fields here use: