Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROD-7474] Group Header Backend settings #4415

Merged
merged 3 commits into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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