diff --git src/bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php src/bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php
index cd5f54c2c..0c794a307 100644
|
|
|
|
| 3 | 3 | * BuddyPress - Groups Cover Image Header. |
| 4 | 4 | * |
| 5 | 5 | * @since 3.0.0 |
| 6 | | * @version 3.1.0 |
| | 6 | * @version 3.2.0 |
| 7 | 7 | */ |
| 8 | 8 | ?> |
| 9 | 9 | |
| … |
… |
|
| 55 | 55 | |
| 56 | 56 | </div><!-- #cover-image-container --> |
| 57 | 57 | |
| 58 | | <?php if ( ! bp_nouveau_groups_front_page_description() ) : ?> |
| 59 | | <?php if ( ! empty( bp_nouveau_group_meta()->description ) ) : ?> |
| 60 | | <div class="desc-wrap"> |
| 61 | | <div class="group-description"> |
| 62 | | <?php echo esc_html( bp_nouveau_group_meta()->description ); ?> |
| | 58 | <?php if ( ! bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?> |
| | 59 | <div class="desc-wrap"> |
| | 60 | <div class="group-description"> |
| | 61 | <?php bp_group_description(); ?> |
| 63 | 62 | </div><!-- //.group_description --> |
| 64 | 63 | </div> |
| 65 | | <?php endif; ?> |
| 66 | 64 | <?php endif; ?> |
diff --git src/bp-templates/bp-nouveau/buddypress/groups/single/default-front.php src/bp-templates/bp-nouveau/buddypress/groups/single/default-front.php
index 43871c3fa..8ac52591c 100644
|
|
|
|
| 3 | 3 | * BP Nouveau Default group's front template. |
| 4 | 4 | * |
| 5 | 5 | * @since 3.0.0 |
| 6 | | * @version 3.0.0 |
| | 6 | * @version 3.2.0 |
| 7 | 7 | */ |
| 8 | 8 | ?> |
| 9 | 9 | |
| … |
… |
|
| 30 | 30 | <?php endif; ?> |
| 31 | 31 | <?php endif; ?> |
| 32 | 32 | |
| 33 | | <?php if ( bp_nouveau_groups_front_page_description() ) : ?> |
| | 33 | <?php if ( bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?> |
| 34 | 34 | <div class="group-description"> |
| 35 | 35 | |
| 36 | 36 | <?php bp_group_description(); ?> |
diff --git src/bp-templates/bp-nouveau/buddypress/groups/single/group-header.php src/bp-templates/bp-nouveau/buddypress/groups/single/group-header.php
index 1ec05d318..d62d6f5b6 100644
|
|
|
|
| 3 | 3 | * BuddyPress - Groups Header |
| 4 | 4 | * |
| 5 | 5 | * @since 3.0.0 |
| 6 | | * @version 3.1.0 |
| | 6 | * @version 3.2.0 |
| 7 | 7 | */ |
| 8 | 8 | ?> |
| 9 | 9 | |
| … |
… |
|
| 46 | 46 | <?php endif; ?> |
| 47 | 47 | |
| 48 | 48 | |
| 49 | | <?php if ( ! bp_nouveau_groups_front_page_description() ) { ?> |
| 50 | | <?php if ( bp_nouveau_group_meta()->description ) { ?> |
| 51 | | <div class="group-description"> |
| 52 | | <?php echo bp_nouveau_group_meta()->description; ?> |
| 53 | | </div><!-- //.group_description --> |
| 54 | | <?php } ?> |
| 55 | | <?php } ?> |
| | 49 | <?php if ( ! bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?> |
| | 50 | <div class="group-description"> |
| | 51 | <?php bp_group_description(); ?> |
| | 52 | </div><!-- //.group_description --> |
| | 53 | <?php endif; ?> |
| 56 | 54 | |
| 57 | 55 | </div><!-- #item-header-content --> |
| 58 | 56 | |
diff --git src/bp-templates/bp-nouveau/common-styles/_bp_group_header.scss src/bp-templates/bp-nouveau/common-styles/_bp_group_header.scss
index 7d55feba4..a60670fba 100644
|
|
|
|
| 94 | 94 | @include box-shadow(inset 0 0 9px $primary-grey); |
| 95 | 95 | padding: $pad-med; |
| 96 | 96 | text-align: left; |
| | 97 | |
| | 98 | p { |
| | 99 | margin: 0; |
| | 100 | padding: 0; |
| | 101 | } |
| 97 | 102 | } |
| 98 | 103 | } |
| 99 | 104 | } // close groups-header |
diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css
index ab48c55d1..a9c61e3e2 100644
|
|
|
body.no-js .single-item-header .js-self-profile-button {
|
| 2293 | 2293 | text-align: left; |
| 2294 | 2294 | } |
| 2295 | 2295 | |
| | 2296 | .groups-header .desc-wrap .group-description p { |
| | 2297 | margin: 0; |
| | 2298 | padding: 0; |
| | 2299 | } |
| | 2300 | |
| 2296 | 2301 | /** |
| 2297 | 2302 | *----------------------------------------------------- |
| 2298 | 2303 | * @subsection 5.1.2 - Item Header User Accounts |
diff --git src/bp-templates/bp-nouveau/includes/groups/template-tags.php src/bp-templates/bp-nouveau/includes/groups/template-tags.php
index 456d0c56b..223c80e90 100644
|
|
|
function bp_nouveau_groups_manage_members_buttons( $args = array() ) {
|
| 1048 | 1048 | } |
| 1049 | 1049 | |
| 1050 | 1050 | /** |
| 1051 | | * Does the group has meta. |
| | 1051 | * Does the group has metas or a specific meta value. |
| 1052 | 1052 | * |
| 1053 | 1053 | * @since 3.0.0 |
| | 1054 | * @since 3.2.0 Adds the $meta_key argument. |
| 1054 | 1055 | * |
| 1055 | | * @return bool True if the group has meta. False otherwise. |
| | 1056 | * @param string $meta_key The key of the meta to check the value for. |
| | 1057 | * @return bool True if the group has meta. False otherwise. |
| 1056 | 1058 | */ |
| 1057 | | function bp_nouveau_group_has_meta() { |
| 1058 | | return (bool) bp_nouveau_get_group_meta(); |
| | 1059 | function bp_nouveau_group_has_meta( $meta_key = '' ) { |
| | 1060 | $group_meta = bp_nouveau_get_group_meta(); |
| | 1061 | |
| | 1062 | if ( ! $meta_key ) { |
| | 1063 | return (bool) $group_meta; |
| | 1064 | } |
| | 1065 | |
| | 1066 | return ! empty( $group_meta[ $meta_key ] ); |
| 1059 | 1067 | } |
| 1060 | 1068 | |
| 1061 | 1069 | /** |