Fixes some bugs on the light color scheme option.

This commit is contained in:
mateuswetah 2021-09-08 11:31:15 -03:00
parent 4c2810a5a2
commit c2cc9f7ccc
4 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ if ( !function_exists('tainacan_blocksy_gallery_light_color_scheme') ) {
$prefix = blocksy_manager()->screen->get_prefix();
$has_light_dark_color_scheme = get_theme_mod( $prefix . '_gallery_color_scheme', 'dark' ) == 'light';
if (!$has_light_dark_color_scheme)
return;

View File

@ -5,7 +5,7 @@ if (! isset($prefix)) {
}
$options = [
$prefix . 'galery_color_scheme' => [
$prefix . 'gallery_color_scheme' => [
'label' => __('Media gallery color scheme', 'tainacan-blocksy'),
'type' => 'ct-radio',
'value' => 'dark',

View File

@ -9,8 +9,8 @@
$hide_file_caption_main = get_theme_mod( $prefix . '_hide_files_caption_main', 'yes') == 'yes';
$hide_file_description_main = get_theme_mod( $prefix . '_hide_files_description_main', 'yes') == 'yes';
$hide_download_button = get_theme_mod( $prefix . '_hide_download_button', 'no' ) == 'yes';
$disable_gallery_lightbox = get_theme_mod( $prefix . '_disable_gallery_lightbox', 'no');
$disable_gallery_lightbox = get_theme_mod( $prefix . '_disable_gallery_lightbox', 'no') == 'yes';
global $post;
if ( function_exists('tainacan_the_media_component') && ( !empty( $attachments ) || ( $is_gallery_mode && tainacan_has_document() ) ) ) {

View File

@ -7,7 +7,7 @@
$hide_file_caption_main = get_theme_mod( $prefix . '_hide_files_caption_main', 'yes') == 'yes';
$hide_file_description_main = get_theme_mod( $prefix . '_hide_files_description_main', 'yes') == 'yes';
$hide_download_button = get_theme_mod( $prefix . '_hide_download_button', 'no' ) == 'yes';
$disable_gallery_lightbox = get_theme_mod( $prefix . '_disable_gallery_lightbox', 'no');
$disable_gallery_lightbox = get_theme_mod( $prefix . '_disable_gallery_lightbox', 'no') == 'yes';
global $post;