From e32dd895c9f650a6c14ced198fe856a55d469782 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 20 Apr 2020 09:31:41 -0300 Subject: [PATCH] Groups Tainacan Related Settings into one page. --- src/functions/customizer.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/functions/customizer.php b/src/functions/customizer.php index a82d0a0..ab44628 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -225,13 +225,21 @@ function tainacan_customize_register( $wp_customize ) { /** * Bellow are customizer options exclusivelly related to Tainacan pages. */ - if ( defined ( 'TAINACAN_VERSION' ) ) { + if ( defined ( 'TAINACAN_VERSION' ) ) { + + $wp_customize->add_panel( 'tainacan_pages', array( + 'title' => __( 'Tainacan Pages' ), + 'description' => __('Settings related only to Tainacan plugin such as the items page.'), + 'priority' => 160, // Mixed with top-level-section hierarchy. + ) ); + /** * Adds section to control singe items page. */ $wp_customize->add_section( 'tainacan_single_item_page', array( 'title' => __( 'Tainacan single item page', 'tainacan-interface' ), 'description' => __( 'Settings related to Tainacan single Items page only.', 'tainacan-interface' ), + 'panel' => 'tainacan_pages', 'priority' => 160, 'capability' => 'edit_theme_options' ) ); @@ -546,6 +554,7 @@ function tainacan_customize_register( $wp_customize ) { $wp_customize->add_section( 'tainacan_items_page', array( 'title' => __( 'Tainacan items list page', 'tainacan-interface' ), 'description' => __( 'Settings related to Tainacan items list pages.', 'tainacan-interface' ), + 'panel' => 'tainacan_pages', 'priority' => 161, 'capability' => 'edit_theme_options' ) );