Skip to content

Commit

Permalink
Merge pull request #4415 from buddyboss/PROD-7474
Browse files Browse the repository at this point in the history
[PROD-7474] Group Header Backend settings
  • Loading branch information
KartikSuthar authored May 30, 2024
2 parents cbcd2ff + 597188e commit 82ba7da
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/bp-core/admin/bp-core-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,13 +1087,6 @@ function bp_admin_setting_callback_preview_group_avatar_cover() {

<div class="preview-switcher-main">

<div class="button-group preview-switcher">
<?php if ( $live_preview_settings['is_buddyboss_app_plugin_active'] ) : ?>
<a href="#web-preview" class="button button-large button-primary"><?php esc_html_e( 'Browser', 'buddyboss' ); ?></a>
<a href="#app-preview" class="button button-large"><?php esc_html_e( 'App', 'buddyboss' ); ?></a>
<?php endif; ?>
</div>

<div class="web-preview-wrap preview-block active" id="web-preview">
<div class="preview-item-cover <?php echo esc_attr( bb_get_profile_cover_image_height() . '-image' ); ?>" style="background-color: <?php echo esc_attr( $live_preview_settings['web_background_color'] ); ?>">
<img src="<?php echo esc_url( $web_cover_preview ); ?>" alt="" data-buddyboss-cover="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/cover-image.png' ); ?>">
Expand All @@ -1103,17 +1096,6 @@ function bp_admin_setting_callback_preview_group_avatar_cover() {
</div>
</div>

<?php if ( $live_preview_settings['is_buddyboss_app_plugin_active'] ) : ?>
<div class="app-preview-wrap preview-block" id="app-preview">
<div class="preview-item-cover" style="background-color: <?php echo esc_attr( $live_preview_settings['app_background_color'] ); ?>">
<img src="<?php echo esc_url( $app_cover_preview ); ?>" alt="" data-buddyboss-cover="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/cover-image.png' ); ?>">
</div>
<div class="preview-item-avatar">
<img src="<?php echo esc_url( $avatar ); ?>" alt="" class="group-custom-avatar" data-blank-avatar="<?php echo esc_url( bb_get_blank_profile_avatar() ); ?>">
</div>
</div>
<?php endif; ?>

</div>

</div>
Expand Down Expand Up @@ -2291,7 +2273,7 @@ function bb_admin_setting_group_header_style() {
);
?>
</div>
<p class="description"><?php echo esc_html__( 'Select the style of your group headers. Group avatars and cover images will only be displayed if they are enabled.', 'buddyboss' ); ?></p>
<p class="description"><?php echo esc_html__( 'Select the style of your group header. Group avatars and cover images will only be displayed if they are enabled. This setting does not apply to the App style.', 'buddyboss' ); ?></p>
<?php
}

Expand Down

0 comments on commit 82ba7da

Please sign in to comment.