Ejemplo n.º 1
0
    /**
     * 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 
        }
    }
Ejemplo n.º 2
0
</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');
?>

	<div id="item-meta">

		<?php 
if (bp_is_active('activity')) {
Ejemplo n.º 3
0
<?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: