Skip to:
Content

BuddyPress.org

Ticket #6673: 6673.01.patch

File 6673.01.patch, 8.9 KB (added by r-a-y, 10 years ago)
  • src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

     
    1313 */
    1414do_action( 'bp_before_group_header' ); ?>
    1515
    16 <a id="header-cover-image" href="<?php bp_group_permalink(); ?>"></a>
     16<div id="cover-image-container">
     17        <a id="header-cover-image" href="<?php bp_group_permalink(); ?>"></a>
    1718
    18 <div id="item-header-cover-image">
    19         <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
    20                 <div id="item-header-avatar">
    21                         <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
     19        <div id="item-header-cover-image">
     20                <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
     21                        <div id="item-header-avatar">
     22                                <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
    2223
    23                                 <?php bp_group_avatar(); ?>
     24                                        <?php bp_group_avatar(); ?>
    2425
    25                         </a>
    26                 </div><!-- #item-header-avatar -->
    27         <?php endif; ?>
     26                                </a>
     27                        </div><!-- #item-header-avatar -->
     28                <?php endif; ?>
    2829
    29         <div id="item-header-content">
     30                <div id="item-header-content">
    3031
    31                 <div id="item-buttons">
     32                        <div id="item-buttons">
    3233
    33                         <?php
    34 
    35                         /**
    36                          * Fires in the group header actions section.
    37                          *
    38                          * @since 1.2.6
    39                          */
    40                         do_action( 'bp_group_header_actions' ); ?>
    41 
    42                 </div><!-- #item-buttons -->
     34                                <?php
    4335
    44                 <?php
    45 
    46                 /**
    47                  * Fires before the display of the group's header meta.
    48                  *
    49                  * @since 1.2.0
    50                  */
    51                 do_action( 'bp_before_group_header_meta' ); ?>
     36                                /**
     37                                 * Fires in the group header actions section.
     38                                 *
     39                                 * @since 1.2.6
     40                                 */
     41                                do_action( 'bp_group_header_actions' ); ?>
    5242
    53                 <div id="item-meta">
     43                        </div><!-- #item-buttons -->
    5444
    5545                        <?php
    5646
    5747                        /**
    58                          * Fires after the group header actions section.
     48                         * Fires before the display of the group's header meta.
    5949                         *
    6050                         * @since 1.2.0
    6151                         */
    62                         do_action( 'bp_group_header_meta' ); ?>
     52                        do_action( 'bp_before_group_header_meta' ); ?>
    6353
    64                         <span class="highlight"><?php bp_group_type(); ?></span>
    65                         <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
     54                        <div id="item-meta">
    6655
    67                         <?php bp_group_description(); ?>
     56                                <?php
    6857
    69                 </div>
    70         </div><!-- #item-header-content -->
     58                                /**
     59                                 * Fires after the group header actions section.
     60                                 *
     61                                 * @since 1.2.0
     62                                 */
     63                                do_action( 'bp_group_header_meta' ); ?>
    7164
    72         <div id="item-actions">
     65                                <span class="highlight"><?php bp_group_type(); ?></span>
     66                                <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
    7367
    74                 <?php if ( bp_group_is_visible() ) : ?>
     68                                <?php bp_group_description(); ?>
    7569
    76                         <h3><?php _e( 'Group Admins', 'buddypress' ); ?></h3>
     70                        </div>
     71                </div><!-- #item-header-content -->
    7772
    78                         <?php bp_group_list_admins();
     73                <div id="item-actions">
    7974
    80                         /**
    81                          * Fires after the display of the group's administrators.
    82                          *
    83                          * @since 1.1.0
    84                          */
    85                         do_action( 'bp_after_group_menu_admins' );
     75                        <?php if ( bp_group_is_visible() ) : ?>
     76
     77                                <h3><?php _e( 'Group Admins', 'buddypress' ); ?></h3>
    8678
    87                         if ( bp_group_has_moderators() ) :
     79                                <?php bp_group_list_admins();
    8880
    8981                                /**
    90                                  * Fires before the display of the group's moderators, if there are any.
     82                                 * Fires after the display of the group's administrators.
    9183                                 *
    9284                                 * @since 1.1.0
    9385                                 */
    94                                 do_action( 'bp_before_group_menu_mods' ); ?>
     86                                do_action( 'bp_after_group_menu_admins' );
    9587
    96                                 <h3><?php _e( 'Group Mods' , 'buddypress' ); ?></h3>
     88                                if ( bp_group_has_moderators() ) :
    9789
    98                                 <?php bp_group_list_mods();
     90                                        /**
     91                                         * Fires before the display of the group's moderators, if there are any.
     92                                         *
     93                                         * @since 1.1.0
     94                                         */
     95                                        do_action( 'bp_before_group_menu_mods' ); ?>
    9996
    100                                 /**
    101                                  * Fires after the display of the group's moderators, if there are any.
    102                                  *
    103                                  * @since 1.1.0
    104                                  */
    105                                 do_action( 'bp_after_group_menu_mods' );
     97                                        <h3><?php _e( 'Group Mods' , 'buddypress' ); ?></h3>
     98
     99                                        <?php bp_group_list_mods();
     100
     101                                        /**
     102                                         * Fires after the display of the group's moderators, if there are any.
     103                                         *
     104                                         * @since 1.1.0
     105                                         */
     106                                        do_action( 'bp_after_group_menu_mods' );
    106107
    107                         endif;
     108                                endif;
    108109
    109                 endif; ?>
     110                        endif; ?>
    110111
    111         </div><!-- #item-actions -->
     112                </div><!-- #item-actions -->
    112113
    113 </div><!-- #item-header-cover-image -->
     114        </div><!-- #item-header-cover-image -->
     115</div><!-- #cover-image-container -->
    114116
    115117<?php
    116118
  • src/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php

     
    1717 */
    1818do_action( 'bp_before_member_header' ); ?>
    1919
    20 <a id="header-cover-image" href="<?php bp_displayed_user_link(); ?>"></a>
     20<div id="cover-image-container">
     21        <a id="header-cover-image" href="<?php bp_displayed_user_link(); ?>"></a>
    2122
    22 <div id="item-header-cover-image">
    23         <div id="item-header-avatar">
    24                 <a href="<?php bp_displayed_user_link(); ?>">
     23        <div id="item-header-cover-image">
     24                <div id="item-header-avatar">
     25                        <a href="<?php bp_displayed_user_link(); ?>">
    2526
    26                         <?php bp_displayed_user_avatar( 'type=full' ); ?>
     27                                <?php bp_displayed_user_avatar( 'type=full' ); ?>
    2728
    28                 </a>
    29         </div><!-- #item-header-avatar -->
     29                        </a>
     30                </div><!-- #item-header-avatar -->
    3031
    31         <div id="item-header-content">
     32                <div id="item-header-content">
    3233
    33                 <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
    34                         <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
    35                 <?php endif; ?>
     34                        <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
     35                                <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
     36                        <?php endif; ?>
    3637
    37                 <div id="item-buttons">
     38                        <div id="item-buttons">
    3839
    39                         <?php
     40                                <?php
    4041
    41                         /**
    42                         * Fires in the member header actions section.
    43                         *
    44                         * @since 1.2.6
    45                         */
    46                         do_action( 'bp_member_header_actions' ); ?>
     42                                /**
     43                                * Fires in the member header actions section.
     44                                *
     45                                * @since 1.2.6
     46                                */
     47                                do_action( 'bp_member_header_actions' ); ?>
    4748
    48                 </div><!-- #item-buttons -->
     49                        </div><!-- #item-buttons -->
    4950
    50                 <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
     51                        <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    5152
    52                 <?php
     53                        <?php
    5354
    54                 /**
    55                 * Fires before the display of the member's header meta.
    56                 *
    57                 * @since 1.2.0
    58                 */
    59                 do_action( 'bp_before_member_header_meta' ); ?>
     55                        /**
     56                        * Fires before the display of the member's header meta.
     57                        *
     58                        * @since 1.2.0
     59                        */
     60                        do_action( 'bp_before_member_header_meta' ); ?>
    6061
    61                 <div id="item-meta">
     62                        <div id="item-meta">
    6263
    63                         <?php if ( bp_is_active( 'activity' ) ) : ?>
     64                                <?php if ( bp_is_active( 'activity' ) ) : ?>
    6465
    65                                 <div id="latest-update">
     66                                        <div id="latest-update">
    6667
    67                                         <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
     68                                                <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
    6869
    69                                 </div>
     70                                        </div>
    7071
    71                         <?php endif; ?>
     72                                <?php endif; ?>
    7273
    73                         <?php
     74                                <?php
    7475
    75                         /**
    76                           * Fires after the group header actions section.
    77                           *
    78                           * If you'd like to show specific profile fields here use:
    79                           * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    80                           *
    81                           * @since 1.2.0
    82                           */
    83                         do_action( 'bp_profile_header_meta' );
     76                                /**
     77                                  * Fires after the group header actions section.
     78                                  *
     79                                  * If you'd like to show specific profile fields here use:
     80                                  * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
     81                                  *
     82                                  * @since 1.2.0
     83                                  */
     84                                do_action( 'bp_profile_header_meta' );
    8485
    85                         ?>
     86                                ?>
    8687
    87                 </div><!-- #item-meta -->
     88                        </div><!-- #item-meta -->
    8889
    89         </div><!-- #item-header-content -->
     90                </div><!-- #item-header-content -->
    9091
    91 </div><!-- #item-header-cover-image -->
     92        </div><!-- #item-header-cover-image -->
     93</div><!-- #cover-image-container -->
    9294
    9395<?php
    9496
  • src/bp-templates/bp-legacy/css/buddypress.css

     
    11751175}
    11761176#buddypress div#item-header {
    11771177        overflow: hidden;
    1178         position: relative;
    11791178}
    11801179#buddypress div#item-header div#item-header-content {
    11811180        float: left;
     
    140814073.8.1 - Cover Image
    14091408--------------------------------------------------------------*/
    14101409
     1410#buddypress #cover-image-container {
     1411        position: relative;
     1412}
     1413
    14111414#buddypress #header-cover-image {
    14121415        background-color: #c5c5c5;
    14131416        background-position: center top;