From 84a4be5e87664bec3f370a16cf30569db1e9d89e Mon Sep 17 00:00:00 2001 From: esaia Date: Mon, 9 Feb 2026 18:11:36 +0400 Subject: [PATCH 1/7] synchronize blog layout and hide page title configs --- assets/js/minified/sidebar-controls.min.js | 2 +- assets/js/unminified/plugins.js | 2 +- assets/js/unminified/scripts.js | 2 +- assets/js/unminified/sidebar-controls.js | 4 +-- inc/classes/class-inspiro-enqueue-scripts.php | 4 +-- .../class-inspiro-blog-layout-config.php | 28 +++++++++++++++---- .../assets/js/unminified/custom-controls.js | 2 +- 7 files changed, 31 insertions(+), 13 deletions(-) diff --git a/assets/js/minified/sidebar-controls.min.js b/assets/js/minified/sidebar-controls.min.js index 704ef0c7..23a51508 100644 --- a/assets/js/minified/sidebar-controls.min.js +++ b/assets/js/minified/sidebar-controls.min.js @@ -1 +1 @@ -(e=>{var t=e.plugins.registerPlugin,n=e.editPost.PluginDocumentSettingPanel,o=e.element.createElement,s=e.components.PanelRow,a=e.components.ToggleControl,r=e.data.useSelect,d=e.data.useDispatch;t("inspiro-sidebar-panel",{render:function(){var t=r(function(e){return e("core/editor").getEditedPostAttribute("meta")}),i=d("core/editor").editPost,e=!!t&&!!t._inspiro_hide_title;return e?document.body.classList.add("inspiro-hide-page-title"):document.body.classList.remove("inspiro-hide-page-title"),o(n,{name:"inspiro-settings-panel",title:"Page Settings"},[o(s,{},o(a,{label:"Hide Page Title",checked:e,onChange:function(e){i({meta:{...t,_inspiro_hide_title:e}})}}))])}})})(window.wp); \ No newline at end of file +(e=>{var t=e.plugins.registerPlugin,n=e.editPost.PluginDocumentSettingPanel,o=e.element.createElement,s=e.components.PanelRow,a=e.components.ToggleControl,r=e.data.useSelect,d=e.data.useDispatch;t("inspiro-sidebar-panel",{render:function(){var t=r(function(e){return e("core/editor").getEditedPostAttribute("meta")}),i=d("core/editor").editPost,e=!!t&&!!t.inspiro_hide_title;return e?document.body.classList.add("inspiro-hide-page-title"):document.body.classList.remove("inspiro-hide-page-title"),o(n,{name:"inspiro-settings-panel",title:"Page Settings"},[o(s,{},o(a,{label:"Hide Page Title",checked:e,onChange:function(e){i({meta:{...t,inspiro_hide_title:e}})}}))])}})})(window.wp); \ No newline at end of file diff --git a/assets/js/unminified/plugins.js b/assets/js/unminified/plugins.js index d27ea7ac..4bc1c9ae 100644 --- a/assets/js/unminified/plugins.js +++ b/assets/js/unminified/plugins.js @@ -1,5 +1,5 @@ /*! WPZOOM - * inspiro - v2.1.9 + * inspiro - v2.1.10 * Author website: https://wpzoom.com/ * This file is automatically created! Do not edit this file directly! */ /*! diff --git a/assets/js/unminified/scripts.js b/assets/js/unminified/scripts.js index 19f6c83c..27828eb6 100644 --- a/assets/js/unminified/scripts.js +++ b/assets/js/unminified/scripts.js @@ -1,5 +1,5 @@ /*! WPZOOM - * inspiro - v2.1.9 + * inspiro - v2.1.10 * Author website: https://wpzoom.com/ * This file is automatically created! Do not edit this file directly! */ /* global jQuery */ diff --git a/assets/js/unminified/sidebar-controls.js b/assets/js/unminified/sidebar-controls.js index 5a16c903..438f0526 100644 --- a/assets/js/unminified/sidebar-controls.js +++ b/assets/js/unminified/sidebar-controls.js @@ -15,7 +15,7 @@ var editPost = useDispatch("core/editor").editPost; var isTitleHidden = postMeta - ? !!postMeta["_inspiro_hide_title"] + ? !!postMeta["inspiro_hide_title"] : false; // Apply class to the editor body so CSS can dim the title @@ -42,7 +42,7 @@ editPost({ meta: { ...postMeta, - _inspiro_hide_title: value, + inspiro_hide_title: value, }, }); }, diff --git a/inc/classes/class-inspiro-enqueue-scripts.php b/inc/classes/class-inspiro-enqueue-scripts.php index 47f9014e..c2d4243f 100644 --- a/inc/classes/class-inspiro-enqueue-scripts.php +++ b/inc/classes/class-inspiro-enqueue-scripts.php @@ -42,7 +42,7 @@ public function __construct() { * Registers custom meta field for the 'page' post type. */ public function register_pages_settings_meta() { - register_post_meta( 'page', '_inspiro_hide_title', array( + register_post_meta( 'page', 'inspiro_hide_title', array( 'type' => 'boolean', 'single' => true, 'show_in_rest' => true, @@ -57,7 +57,7 @@ public function register_pages_settings_meta() { */ public function add_hide_title_class( $classes ) { - if ( is_page() && get_post_meta( get_the_ID(), '_inspiro_hide_title', true ) ) { + if ( is_page() && get_post_meta( get_the_ID(), 'inspiro_hide_title', true ) ) { $classes[] = 'inspiro-hide-page-title'; } diff --git a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php index 1da9ae71..927f7c49 100644 --- a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php +++ b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php @@ -1,4 +1,5 @@ add_setting( 'blog_layout', @@ -67,5 +73,17 @@ public function register_configuration( $wp_customize ) { ) ); } + + + public function update_wpzoom_post_view($manager) + { + $layout = get_theme_mod('blog_layout', 'list'); + + if ('grid' === $layout) { + update_option('wpzoom_post_view_blog', '3-columns'); + } else { + update_option('wpzoom_post_view_blog', 'big-image'); + } + } } new Inspiro_Blog_Layout_Config(); diff --git a/inc/customizer/custom-controls/assets/js/unminified/custom-controls.js b/inc/customizer/custom-controls/assets/js/unminified/custom-controls.js index d2e5764d..51b7620d 100644 --- a/inc/customizer/custom-controls/assets/js/unminified/custom-controls.js +++ b/inc/customizer/custom-controls/assets/js/unminified/custom-controls.js @@ -1,5 +1,5 @@ /*! WPZOOM - * inspiro - v2.1.9 + * inspiro - v2.1.10 * Author website: https://wpzoom.com/ * This file is automatically created! Do not edit this file directly! */ /* global jQuery, inspiroCustomControl, InspiroFontFamilies */ From 95887b71fb9d942aaf2cd899cd49fc0dfdf4c0e5 Mon Sep 17 00:00:00 2001 From: esaia Date: Tue, 10 Feb 2026 11:31:30 +0400 Subject: [PATCH 2/7] sync display_content config to premium inspiro --- inc/customizer-functions.php | 4 ++-- .../class-inspiro-blog-layout-config.php | 15 ++++++++------- .../class-inspiro-post-options-config.php | 10 +++++----- template-parts/post/content.php | 4 ++-- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/inc/customizer-functions.php b/inc/customizer-functions.php index 3adbf247..cb57f2b4 100644 --- a/inc/customizer-functions.php +++ b/inc/customizer-functions.php @@ -61,13 +61,13 @@ function inspiro_sanitize_color_palette( $input ) { * @param string $input Content to display. */ function inspiro_sanitize_display_content( $input ) { - $valid = array( 'excerpt', 'full-content', 'none' ); + $valid = array( 'Excerpt', 'Full Content', 'None' ); if ( in_array( $input, $valid, true ) ) { return $input; } - return 'excerpt'; + return 'Excerpt'; } diff --git a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php index 927f7c49..a38dcf29 100644 --- a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php +++ b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php @@ -27,7 +27,7 @@ public function __construct() { add_action('customize_register', array($this, 'register_configuration'), 10); - add_action('customize_save_after', array($this, 'update_wpzoom_post_view')); + add_action('customize_save_after', array($this, 'sync_configs_for_premium_theme')); } /** @@ -75,15 +75,16 @@ public function register_configuration($wp_customize) } - public function update_wpzoom_post_view($manager) + public function sync_configs_for_premium_theme() { + $display_content = get_theme_mod('display_content', 'Excerpt'); $layout = get_theme_mod('blog_layout', 'list'); - if ('grid' === $layout) { - update_option('wpzoom_post_view_blog', '3-columns'); - } else { - update_option('wpzoom_post_view_blog', 'big-image'); - } + update_option('wpzoom_post_view_blog', ('grid' === $layout) ? '3-columns' : 'big-image'); + + $content = ('grid' === $layout && 'Full Content' === $display_content) ? 'Excerpt' : $display_content; + + update_option('wpzoom_display_content', $content); } } new Inspiro_Blog_Layout_Config(); diff --git a/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php b/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php index 6b69f015..e63bb04a 100644 --- a/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php +++ b/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php @@ -55,7 +55,7 @@ public static function config() { array( 'id' => 'display_content', 'args' => array( - 'default' => 'excerpt', + 'default' => 'Excerpt', 'sanitize_callback' => 'inspiro_sanitize_display_content', 'transport' => 'refresh', ), @@ -83,11 +83,11 @@ public static function config() { 'priority' => 6, 'label' => esc_html__( 'Content to Display in Archive Pages', 'inspiro' ), 'section' => 'blog_page_section', - 'type' => 'radio', + 'type' => 'select', 'choices' => array( - 'excerpt' => esc_html__( 'Excerpt', 'inspiro' ), - 'full-content' => esc_html__( 'Full Content', 'inspiro' ), - 'none' => esc_html__( 'None', 'inspiro' ), + 'Excerpt' => esc_html__( 'Excerpt', 'inspiro' ), + 'Full Content' => esc_html__( 'Full Content', 'inspiro' ), + 'None' => esc_html__( 'None', 'inspiro' ), ), 'active_callback' => 'inspiro_is_blog_layout_list', ), diff --git a/template-parts/post/content.php b/template-parts/post/content.php index 2adcd425..656c9052 100644 --- a/template-parts/post/content.php +++ b/template-parts/post/content.php @@ -16,7 +16,7 @@ - +
@@ -28,7 +28,7 @@ } ?> - +
Date: Tue, 10 Feb 2026 11:40:22 +0400 Subject: [PATCH 3/7] refactor: if display_content is Full Content and blog_layout is grid then display_content should be Excerpt --- assets/js/minified/customize-controls.min.js | 2 +- assets/js/unminified/customize-controls.js | 4 ++++ .../configs/blog-post/class-inspiro-blog-layout-config.php | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/js/minified/customize-controls.min.js b/assets/js/minified/customize-controls.min.js index 6d802b5a..36aba8c5 100644 --- a/assets/js/minified/customize-controls.min.js +++ b/assets/js/minified/customize-controls.min.js @@ -1 +1 @@ -((r,c)=>{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0 Date: Tue, 10 Feb 2026 14:02:21 +0400 Subject: [PATCH 4/7] sync blog_show_excerpt and display_content after switching blog layout --- assets/js/minified/customize-controls.min.js | 2 +- assets/js/unminified/customize-controls.js | 8 ++++++++ .../class-inspiro-blog-layout-config.php | 18 ++++++++++-------- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/assets/js/minified/customize-controls.min.js b/assets/js/minified/customize-controls.min.js index 36aba8c5..a727ca1d 100644 --- a/assets/js/minified/customize-controls.min.js +++ b/assets/js/minified/customize-controls.min.js @@ -1 +1 @@ -((r,c)=>{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0 Date: Tue, 10 Feb 2026 16:29:42 +0400 Subject: [PATCH 5/7] chore: small tweaks --- assets/js/minified/customize-controls.min.js | 2 +- assets/js/unminified/customize-controls.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/js/minified/customize-controls.min.js b/assets/js/minified/customize-controls.min.js index a727ca1d..bd52a025 100644 --- a/assets/js/minified/customize-controls.min.js +++ b/assets/js/minified/customize-controls.min.js @@ -1 +1 @@ -((r,c)=>{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0 Date: Tue, 10 Feb 2026 21:16:03 +0400 Subject: [PATCH 6/7] fix: premium theme upgrade configs --- assets/js/minified/customize-controls.min.js | 2 +- assets/js/unminified/customize-controls.js | 10 +----- inc/classes/class-inspiro-theme-upgrader.php | 30 +++++++++++++++++ inc/customizer-functions.php | 4 +-- .../class-inspiro-blog-layout-config.php | 32 ++++++++++--------- .../class-inspiro-post-options-config.php | 8 ++--- template-parts/post/content.php | 4 +-- 7 files changed, 57 insertions(+), 33 deletions(-) diff --git a/assets/js/minified/customize-controls.min.js b/assets/js/minified/customize-controls.min.js index bd52a025..a7bb154e 100644 --- a/assets/js/minified/customize-controls.min.js +++ b/assets/js/minified/customize-controls.min.js @@ -1 +1 @@ -((r,c)=>{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0{r.bind("ready",function(){r("colorscheme",function(t){r.control("colorscheme_hex",function(e){function n(){"custom"===t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("external_header_video",function(t){r.control("external_header_video_full_height",function(e){function n(){""!==t.get()?e.container.slideDown(180):e.container.slideUp(180)}n(),t.bind(n)})}),r("header_video",function(t){c.each(["external_header_video","external_header_video_full_height"],function(e,n){r.control(n,function(e){function n(){0strings['migrate_customizer_settings'] ); + + $this->sync_blog_configs_for_premium_theme(); $customizer_data = Inspiro_Customizer::$customizer_data; $theme_mods = get_theme_mods(); @@ -756,6 +758,34 @@ public function migrate_customizer_settings() { } } + + public function sync_blog_configs_for_premium_theme() + { + $layout = get_theme_mod('blog_layout', 'list'); + $display_content = get_theme_mod('display_content', 'excerpt'); + $blog_show_excerpt = get_theme_mod('blog_show_excerpt', true); + $display_featured_image = get_theme_mod('display_featured_image', true); + + update_option('wpzoom_post_view_blog', ('grid' === $layout) ? '3-columns' : 'big-image'); + + $content_mapping = [ + 'excerpt' => 'Excerpt', + 'full-content' => 'Full Content', + 'none' => 'None' + ]; + + + if($layout === 'grid' && !$blog_show_excerpt){ + $display_content = 'None'; + } else { + $display_content = isset($content_mapping[$display_content]) ? $content_mapping[$display_content] : 'Excerpt'; + } + + set_theme_mod('display_content', $display_content); + update_option('wpzoom_display_content', $display_content); + update_option('wpzoom_single_post_header_image', $display_featured_image ? 'on' : 'off'); + } + /** * Convert custom header media to custom post type slider * This is necessary because premium version use slider items in header section on homepage diff --git a/inc/customizer-functions.php b/inc/customizer-functions.php index cb57f2b4..3adbf247 100644 --- a/inc/customizer-functions.php +++ b/inc/customizer-functions.php @@ -61,13 +61,13 @@ function inspiro_sanitize_color_palette( $input ) { * @param string $input Content to display. */ function inspiro_sanitize_display_content( $input ) { - $valid = array( 'Excerpt', 'Full Content', 'None' ); + $valid = array( 'excerpt', 'full-content', 'none' ); if ( in_array( $input, $valid, true ) ) { return $input; } - return 'Excerpt'; + return 'excerpt'; } diff --git a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php index 49196f3e..f91eda04 100644 --- a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php +++ b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php @@ -27,7 +27,7 @@ public function __construct() { add_action('customize_register', array($this, 'register_configuration'), 10); - add_action('customize_save_after', array($this, 'sync_configs_for_premium_theme')); + // add_action('customize_save_after', array($this, 'sync_configs_for_premium_theme')); } /** @@ -75,22 +75,24 @@ public function register_configuration($wp_customize) } - public function sync_configs_for_premium_theme() - { - $layout = get_theme_mod('blog_layout', 'list'); - $display_content = get_theme_mod('display_content', 'Excerpt'); - $blog_show_excerpt = get_theme_mod('blog_show_excerpt', true); + // public function sync_configs_for_premium_theme() + // { + // $layout = get_theme_mod('blog_layout', 'list'); + // $display_content = get_theme_mod('display_content', 'excerpt'); + // $blog_show_excerpt = get_theme_mod('blog_show_excerpt', true); + // $display_featured_image = get_theme_mod('display_featured_image', true); - update_option('wpzoom_post_view_blog', ('grid' === $layout) ? '3-columns' : 'big-image'); + // update_option('wpzoom_post_view_blog', ('grid' === $layout) ? '3-columns' : 'big-image'); - if (! $blog_show_excerpt) { - $display_content = 'None'; - } elseif ('grid' === $layout && 'Full Content' === $display_content) { - $display_content = 'Excerpt'; - } + // if (! $blog_show_excerpt) { + // $display_content = 'none'; + // } elseif ('grid' === $layout && 'Full Content' === $display_content) { + // $display_content = 'excerpt'; + // } - set_theme_mod('display_content', $display_content); - update_option('wpzoom_display_content', $display_content); - } + // set_theme_mod('display_content', $display_content); + // update_option('wpzoom_display_content', $display_content); + // update_option('wpzoom_single_post_header_image', $display_featured_image ? 'on' : 'off'); + // } } new Inspiro_Blog_Layout_Config(); diff --git a/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php b/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php index e63bb04a..1bad390a 100644 --- a/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php +++ b/inc/customizer/configs/blog-post/class-inspiro-post-options-config.php @@ -55,7 +55,7 @@ public static function config() { array( 'id' => 'display_content', 'args' => array( - 'default' => 'Excerpt', + 'default' => 'excerpt', 'sanitize_callback' => 'inspiro_sanitize_display_content', 'transport' => 'refresh', ), @@ -85,9 +85,9 @@ public static function config() { 'section' => 'blog_page_section', 'type' => 'select', 'choices' => array( - 'Excerpt' => esc_html__( 'Excerpt', 'inspiro' ), - 'Full Content' => esc_html__( 'Full Content', 'inspiro' ), - 'None' => esc_html__( 'None', 'inspiro' ), + 'excerpt' => esc_html__( 'Excerpt', 'inspiro' ), + 'full-content' => esc_html__( 'Full Content', 'inspiro' ), + 'none' => esc_html__( 'None', 'inspiro' ), ), 'active_callback' => 'inspiro_is_blog_layout_list', ), diff --git a/template-parts/post/content.php b/template-parts/post/content.php index 656c9052..2adcd425 100644 --- a/template-parts/post/content.php +++ b/template-parts/post/content.php @@ -16,7 +16,7 @@ - +
@@ -28,7 +28,7 @@ } ?> - +
Date: Tue, 10 Feb 2026 21:20:07 +0400 Subject: [PATCH 7/7] chore: remove extra code --- .../class-inspiro-blog-layout-config.php | 39 +++---------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php index f91eda04..6f4a143c 100644 --- a/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php +++ b/inc/customizer/configs/blog-post/class-inspiro-blog-layout-config.php @@ -1,5 +1,4 @@ add_setting( 'blog_layout', @@ -73,26 +67,5 @@ public function register_configuration($wp_customize) ) ); } - - - // public function sync_configs_for_premium_theme() - // { - // $layout = get_theme_mod('blog_layout', 'list'); - // $display_content = get_theme_mod('display_content', 'excerpt'); - // $blog_show_excerpt = get_theme_mod('blog_show_excerpt', true); - // $display_featured_image = get_theme_mod('display_featured_image', true); - - // update_option('wpzoom_post_view_blog', ('grid' === $layout) ? '3-columns' : 'big-image'); - - // if (! $blog_show_excerpt) { - // $display_content = 'none'; - // } elseif ('grid' === $layout && 'Full Content' === $display_content) { - // $display_content = 'excerpt'; - // } - - // set_theme_mod('display_content', $display_content); - // update_option('wpzoom_display_content', $display_content); - // update_option('wpzoom_single_post_header_image', $display_featured_image ? 'on' : 'off'); - // } } -new Inspiro_Blog_Layout_Config(); +new Inspiro_Blog_Layout_Config(); \ No newline at end of file