From 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 16:19:29 -0500 Subject: dos2unix on all .php files, begin paring down admin page and site branding. --- ...s-astra-customizer-register-sections-panels.php | 778 ++++++++++----------- 1 file changed, 389 insertions(+), 389 deletions(-) (limited to 'inc/customizer/class-astra-customizer-register-sections-panels.php') diff --git a/inc/customizer/class-astra-customizer-register-sections-panels.php b/inc/customizer/class-astra-customizer-register-sections-panels.php index 1212216..f8362c0 100644 --- a/inc/customizer/class-astra-customizer-register-sections-panels.php +++ b/inc/customizer/class-astra-customizer-register-sections-panels.php @@ -1,389 +1,389 @@ - 'panel-global', - 'type' => 'panel', - 'priority' => 10, - 'title' => __( 'Global', 'astra' ), - ), - - array( - 'name' => 'section-container-layout', - 'type' => 'section', - 'priority' => 17, - 'title' => __( 'Container', 'astra' ), - 'panel' => 'panel-global', - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Site Layout Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/site-layout-overview/', 'customizer', 'site-layout', 'helpful-information' ), - ), - ), - array( - 'text' => __( 'Container Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/container-overview/', 'customizer', 'container', 'helpful-information' ), - ), - ), - ), - ) - ), - ), - - /* - * Header section - * - * @since 1.4.0 - */ - array( - 'name' => 'panel-header-group', - 'type' => 'panel', - 'priority' => 20, - 'title' => __( 'Header', 'astra' ), - ), - - /* - * Update the Site Identity section inside Layout -> Header - * - * @since 1.4.0 - */ - array( - 'name' => 'title_tagline', - 'type' => 'section', - 'priority' => 5, - 'title' => __( 'Site Identity', 'astra' ), - 'panel' => 'panel-header-group', - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Site Identity Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/site-identity-free/', 'customizer', 'site-identity', 'helpful-information' ), - ), - ), - ), - ) - ), - ), - - /* - * Update the Primary Header section - * - * @since 1.4.0 - */ - array( - 'name' => 'section-header', - 'type' => 'section', - 'priority' => 15, - 'title' => __( 'Primary Header', 'astra' ), - 'panel' => 'panel-header-group', - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Primary Header Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/header-overview/', 'customizer', 'primary-header', 'helpful-information' ), - ), - ), - ), - ) - ), - ), - - array( - 'name' => 'section-primary-menu', - 'type' => 'section', - 'priority' => 15, - 'title' => __( 'Primary Menu', 'astra' ), - 'panel' => 'panel-header-group', - ), - array( - 'name' => 'section-footer-group', - 'type' => 'section', - 'title' => __( 'Footer', 'astra' ), - 'priority' => 55, - ), - - array( - 'name' => 'section-separator', - 'type' => 'section', - 'ast_type' => 'ast-section-separator', - 'priority' => 70, - 'section_callback' => 'Astra_WP_Customize_Separator', - ), - - /** - * Footer Widgets Section - */ - - array( - 'name' => 'section-footer-adv', - 'type' => 'section', - 'title' => __( 'Footer Widgets', 'astra' ), - 'section' => 'section-footer-group', - 'priority' => 5, - ), - - array( - 'name' => 'section-footer-small', - 'type' => 'section', - 'title' => __( 'Footer Bar', 'astra' ), - 'section' => 'section-footer-group', - 'priority' => 10, - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Footer Bar Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/footer-bar/', 'customizer', 'footer-bar', 'helpful-information' ), - ), - ), - ), - ) - ), - ), - - array( - 'name' => 'section-blog-group', - 'type' => 'section', - 'priority' => 40, - 'title' => __( 'Blog', 'astra' ), - ), - array( - 'name' => 'section-blog', - 'type' => 'section', - 'priority' => 5, - 'title' => __( 'Blog / Archive', 'astra' ), - 'section' => 'section-blog-group', - ), - array( - 'name' => 'section-blog-single', - 'type' => 'section', - 'priority' => 10, - 'title' => __( 'Single Post', 'astra' ), - 'section' => 'section-blog-group', - ), - - array( - 'name' => 'section-sidebars', - 'type' => 'section', - 'priority' => 50, - 'title' => __( 'Sidebar', 'astra' ), - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Sidebar Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/sidebar-free/', 'customizer', 'sidebar', 'helpful-information' ), - ), - ), - ), - ) - ), - ), - - /** - * Performance Panel - * - * @since 3.6.0 - */ - array( - 'name' => 'section-performance', - 'type' => 'section', - 'priority' => 65, - 'title' => __( 'Performance', 'astra' ), - ), - - /** - * Colors Panel - */ - array( - 'name' => 'section-colors-background', - 'type' => 'section', - 'priority' => 16, - 'title' => __( 'Colors', 'astra' ), - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Colors & Background Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/colors-background/', 'customizer', 'colors-background', 'helpful-information' ), - ), - ), - ), - ) - ), - 'panel' => 'panel-global', - ), - - array( - 'name' => 'section-colors-body', - 'type' => 'section', - 'title' => __( 'Base Colors', 'astra' ), - 'panel' => 'panel-global', - 'priority' => 1, - 'section' => 'section-colors-background', - ), - - array( - 'name' => 'section-footer-adv-color-bg', - 'type' => 'section', - 'title' => __( 'Footer Widgets', 'astra' ), - 'panel' => 'panel-colors-background', - 'priority' => 55, - ), - - /** - * Typography Panel - */ - array( - 'name' => 'section-typography', - 'type' => 'section', - 'title' => __( 'Typography', 'astra' ), - 'priority' => 15, - 'description_hidden' => true, - 'description' => $this->section_get_description( - array( - 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', - 'links' => array( - array( - 'text' => __( 'Typography Overview', 'astra' ) . ' »', - 'attrs' => array( - 'href' => astra_get_pro_url( 'https://wpastra.com/docs/typography-free/', 'customizer', 'typography', 'helpful-information' ), - ), - ), - ), - ) - ), - 'panel' => 'panel-global', - ), - - array( - 'name' => 'section-body-typo', - 'type' => 'section', - 'title' => __( 'Base Typography', 'astra' ), - 'section' => 'section-typography', - 'priority' => 1, - 'panel' => 'panel-global', - ), - - array( - 'name' => 'section-content-typo', - 'type' => 'section', - 'title' => __( 'Headings', 'astra' ), - 'section' => 'section-typography', - 'priority' => 35, - 'panel' => 'panel-global', - ), - - /** - * Buttons Section - */ - array( - 'name' => 'section-buttons', - 'type' => 'section', - 'priority' => 50, - 'title' => __( 'Buttons', 'astra' ), - 'panel' => 'panel-global', - ), - - /** - * Header Buttons - */ - array( - 'name' => 'section-header-button', - 'type' => 'section', - 'priority' => 10, - 'title' => __( 'Header Button', 'astra' ), - 'section' => 'section-buttons', - ), - - /** - * Header Button - Default - */ - array( - 'name' => 'section-header-button-default', - 'type' => 'section', - 'priority' => 10, - 'title' => __( 'Primary Header Button', 'astra' ), - 'section' => 'section-header-button', - ), - - /** - * Header Button - Transparent - */ - array( - 'name' => 'section-header-button-transparent', - 'type' => 'section', - 'priority' => 10, - 'title' => __( 'Transparent Header Button', 'astra' ), - 'section' => 'section-header-button', - ), - - ); - return array_merge( $configurations, $configs ); - } - } -} - - -/** - * Kicking this off by calling 'get_instance()' method - */ -new Astra_Customizer_Register_Sections_Panels(); + 'panel-global', + 'type' => 'panel', + 'priority' => 10, + 'title' => __( 'Global', 'astra' ), + ), + + array( + 'name' => 'section-container-layout', + 'type' => 'section', + 'priority' => 17, + 'title' => __( 'Container', 'astra' ), + 'panel' => 'panel-global', + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Site Layout Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/site-layout-overview/', 'customizer', 'site-layout', 'helpful-information' ), + ), + ), + array( + 'text' => __( 'Container Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/container-overview/', 'customizer', 'container', 'helpful-information' ), + ), + ), + ), + ) + ), + ), + + /* + * Header section + * + * @since 1.4.0 + */ + array( + 'name' => 'panel-header-group', + 'type' => 'panel', + 'priority' => 20, + 'title' => __( 'Header', 'astra' ), + ), + + /* + * Update the Site Identity section inside Layout -> Header + * + * @since 1.4.0 + */ + array( + 'name' => 'title_tagline', + 'type' => 'section', + 'priority' => 5, + 'title' => __( 'Site Identity', 'astra' ), + 'panel' => 'panel-header-group', + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Site Identity Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/site-identity-free/', 'customizer', 'site-identity', 'helpful-information' ), + ), + ), + ), + ) + ), + ), + + /* + * Update the Primary Header section + * + * @since 1.4.0 + */ + array( + 'name' => 'section-header', + 'type' => 'section', + 'priority' => 15, + 'title' => __( 'Primary Header', 'astra' ), + 'panel' => 'panel-header-group', + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Primary Header Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/header-overview/', 'customizer', 'primary-header', 'helpful-information' ), + ), + ), + ), + ) + ), + ), + + array( + 'name' => 'section-primary-menu', + 'type' => 'section', + 'priority' => 15, + 'title' => __( 'Primary Menu', 'astra' ), + 'panel' => 'panel-header-group', + ), + array( + 'name' => 'section-footer-group', + 'type' => 'section', + 'title' => __( 'Footer', 'astra' ), + 'priority' => 55, + ), + + array( + 'name' => 'section-separator', + 'type' => 'section', + 'ast_type' => 'ast-section-separator', + 'priority' => 70, + 'section_callback' => 'Astra_WP_Customize_Separator', + ), + + /** + * Footer Widgets Section + */ + + array( + 'name' => 'section-footer-adv', + 'type' => 'section', + 'title' => __( 'Footer Widgets', 'astra' ), + 'section' => 'section-footer-group', + 'priority' => 5, + ), + + array( + 'name' => 'section-footer-small', + 'type' => 'section', + 'title' => __( 'Footer Bar', 'astra' ), + 'section' => 'section-footer-group', + 'priority' => 10, + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Footer Bar Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/footer-bar/', 'customizer', 'footer-bar', 'helpful-information' ), + ), + ), + ), + ) + ), + ), + + array( + 'name' => 'section-blog-group', + 'type' => 'section', + 'priority' => 40, + 'title' => __( 'Blog', 'astra' ), + ), + array( + 'name' => 'section-blog', + 'type' => 'section', + 'priority' => 5, + 'title' => __( 'Blog / Archive', 'astra' ), + 'section' => 'section-blog-group', + ), + array( + 'name' => 'section-blog-single', + 'type' => 'section', + 'priority' => 10, + 'title' => __( 'Single Post', 'astra' ), + 'section' => 'section-blog-group', + ), + + array( + 'name' => 'section-sidebars', + 'type' => 'section', + 'priority' => 50, + 'title' => __( 'Sidebar', 'astra' ), + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Sidebar Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/sidebar-free/', 'customizer', 'sidebar', 'helpful-information' ), + ), + ), + ), + ) + ), + ), + + /** + * Performance Panel + * + * @since 3.6.0 + */ + array( + 'name' => 'section-performance', + 'type' => 'section', + 'priority' => 65, + 'title' => __( 'Performance', 'astra' ), + ), + + /** + * Colors Panel + */ + array( + 'name' => 'section-colors-background', + 'type' => 'section', + 'priority' => 16, + 'title' => __( 'Colors', 'astra' ), + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Colors & Background Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/colors-background/', 'customizer', 'colors-background', 'helpful-information' ), + ), + ), + ), + ) + ), + 'panel' => 'panel-global', + ), + + array( + 'name' => 'section-colors-body', + 'type' => 'section', + 'title' => __( 'Base Colors', 'astra' ), + 'panel' => 'panel-global', + 'priority' => 1, + 'section' => 'section-colors-background', + ), + + array( + 'name' => 'section-footer-adv-color-bg', + 'type' => 'section', + 'title' => __( 'Footer Widgets', 'astra' ), + 'panel' => 'panel-colors-background', + 'priority' => 55, + ), + + /** + * Typography Panel + */ + array( + 'name' => 'section-typography', + 'type' => 'section', + 'title' => __( 'Typography', 'astra' ), + 'priority' => 15, + 'description_hidden' => true, + 'description' => $this->section_get_description( + array( + 'description' => '

' . __( 'Helpful Information', 'astra' ) . '

', + 'links' => array( + array( + 'text' => __( 'Typography Overview', 'astra' ) . ' »', + 'attrs' => array( + 'href' => astra_get_pro_url( 'https://wpastra.com/docs/typography-free/', 'customizer', 'typography', 'helpful-information' ), + ), + ), + ), + ) + ), + 'panel' => 'panel-global', + ), + + array( + 'name' => 'section-body-typo', + 'type' => 'section', + 'title' => __( 'Base Typography', 'astra' ), + 'section' => 'section-typography', + 'priority' => 1, + 'panel' => 'panel-global', + ), + + array( + 'name' => 'section-content-typo', + 'type' => 'section', + 'title' => __( 'Headings', 'astra' ), + 'section' => 'section-typography', + 'priority' => 35, + 'panel' => 'panel-global', + ), + + /** + * Buttons Section + */ + array( + 'name' => 'section-buttons', + 'type' => 'section', + 'priority' => 50, + 'title' => __( 'Buttons', 'astra' ), + 'panel' => 'panel-global', + ), + + /** + * Header Buttons + */ + array( + 'name' => 'section-header-button', + 'type' => 'section', + 'priority' => 10, + 'title' => __( 'Header Button', 'astra' ), + 'section' => 'section-buttons', + ), + + /** + * Header Button - Default + */ + array( + 'name' => 'section-header-button-default', + 'type' => 'section', + 'priority' => 10, + 'title' => __( 'Primary Header Button', 'astra' ), + 'section' => 'section-header-button', + ), + + /** + * Header Button - Transparent + */ + array( + 'name' => 'section-header-button-transparent', + 'type' => 'section', + 'priority' => 10, + 'title' => __( 'Transparent Header Button', 'astra' ), + 'section' => 'section-header-button', + ), + + ); + return array_merge( $configurations, $configs ); + } + } +} + + +/** + * Kicking this off by calling 'get_instance()' method + */ +new Astra_Customizer_Register_Sections_Panels(); -- cgit v1.2.3-70-g09d2