File manager - Edit - /home/theblueo/tv/fb4e3b/configurations.tar
Back
colors-background/class-astra-advanced-footer-colors-configs.php 0000666 00000011006 15214246134 0021100 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since 1.4.3 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Adv_Footer_Colors_Configs' ) ) { /** * Register Advanced Footer Color Customizer Configurations. */ class Astra_Advanced_Footer_Colors_Configs extends Astra_Customizer_Config_Base { /** * Register Advanced Footer Color Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Footer Widget Color & Background Section heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-color-background-heading-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-footer-adv', 'title' => __( 'Colors & Background', 'astra' ), 'priority' => 46, 'settings' => array(), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-background-group]', 'default' => astra_get_option( 'footer-widget-background-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Background', 'astra' ), 'section' => 'section-footer-adv', 'transport' => 'postMessage', 'priority' => 46, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'default' => astra_get_option( 'footer-widget-content-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Content', 'astra' ), 'section' => 'section-footer-adv', 'transport' => 'postMessage', 'priority' => 46, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), ), /** * Option: Widget Title Color */ array( 'name' => 'footer-adv-wgt-title-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Title Color', 'astra' ), 'default' => '', ), /** * Option: Text Color */ array( 'name' => 'footer-adv-text-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), 'default' => '', ), /** * Option: Link Color */ array( 'name' => 'footer-adv-link-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Link Color', 'astra' ), 'default' => '', ), /** * Option: Link Hover Color */ array( 'name' => 'footer-adv-link-h-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Link Color', 'astra' ), 'default' => '', ), /** * Option: Footer widget Background */ array( 'name' => 'footer-adv-bg-obj', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-background-group]', 'section' => 'section-footer-adv', 'control' => 'ast-background', 'default' => astra_get_option( 'footer-adv-bg-obj' ), 'label' => __( 'Background', 'astra' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Advanced_Footer_Colors_Configs(); colors-background/class-astra-body-colors-configs.php 0000666 00000005051 15214246134 0016777 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since 1.4.3 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Body_Colors_Configs' ) ) { /** * Register Body Color Customizer Configurations. */ class Astra_Body_Colors_Configs extends Astra_Customizer_Config_Base { /** * Register Body Color Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Text Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[text-color]', 'default' => '#3a3a3a', 'type' => 'control', 'control' => 'ast-color', 'section' => 'section-colors-body', 'priority' => 5, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Theme Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => 'section-colors-body', 'default' => '#0274be', 'priority' => 5, 'title' => __( 'Theme Color', 'astra' ), ), /** * Option: Link Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[link-color]', 'section' => 'section-colors-body', 'type' => 'control', 'control' => 'ast-color', 'default' => '#0274be', 'priority' => 5, 'title' => __( 'Link Color', 'astra' ), ), /** * Option: Link Hover Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[link-h-color]', 'section' => 'section-colors-body', 'default' => '#3a3a3a', 'type' => 'control', 'control' => 'ast-color', 'priority' => 15, 'title' => __( 'Link Hover Color', 'astra' ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-outside-bg-color]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-colors-body', 'priority' => 20, 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Body_Colors_Configs(); colors-background/class-astra-footer-colors-configs.php 0000666 00000005152 15214246134 0017342 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since 1.4.3 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Footer_Colors_Configs' ) ) { /** * Register Footer Color Configurations. */ class Astra_Footer_Colors_Configs extends Astra_Customizer_Config_Base { /** * Register Footer Color Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Color */ array( 'name' => 'footer-color', 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra' ), 'priority' => 5, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'section' => 'section-footer-small', 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), 'default' => '', ), /** * Option: Link Color */ array( 'name' => 'footer-link-color', 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra' ), 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'section' => 'section-footer-small', 'control' => 'ast-color', 'default' => '', 'title' => __( 'Link Color', 'astra' ), ), /** * Option: Link Hover Color */ array( 'name' => 'footer-link-h-color', 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra' ), 'priority' => 5, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'section' => 'section-footer-small', 'control' => 'ast-color', 'title' => __( 'Link Color', 'astra' ), 'default' => '', ), /** * Option: Footer Background */ array( 'name' => 'footer-bg-obj', 'type' => 'sub-control', 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-background-group]', 'section' => 'section-footer-small', 'control' => 'ast-background', 'default' => astra_get_option( 'footer-bg-obj' ), 'label' => __( 'Background', 'astra' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Footer_Colors_Configs(); class-astra-customizer-config-base.php 0000666 00000004662 15214246134 0014065 0 ustar 00 <?php /** * Astra Theme Customizer Configuration Base. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.4.3 */ // No direct access, please. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Customizer Sanitizes * * @since 1.0.0 */ if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { /** * Customizer Sanitizes Initial setup */ class Astra_Customizer_Config_Base { /** * Constructor */ public function __construct() { add_filter( 'astra_customizer_configurations', array( $this, 'register_configuration' ), 30, 2 ); } /** * Base Method for Registering Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { return $configurations; } /** * Section Description * * @since 1.4.3 * * @param array $args Description arguments. * @return mixed Markup of the section description. */ public function section_get_description( $args ) { // Return if white labeled. if ( class_exists( 'Astra_Ext_White_Label_Markup' ) ) { if ( ! empty( Astra_Ext_White_Label_Markup::$branding['astra']['name'] ) ) { return ''; } } // Description. $content = '<div class="astra-section-description">'; $content .= wp_kses_post( astra_get_prop( $args, 'description' ) ); // Links. if ( astra_get_prop( $args, 'links' ) ) { $content .= '<ul>'; foreach ( $args['links'] as $index => $link ) { if ( astra_get_prop( $link, 'attrs' ) ) { $content .= '<li>'; // Attribute mapping. $attributes = ' target="_blank" '; foreach ( astra_get_prop( $link, 'attrs' ) as $attr => $attr_value ) { $attributes .= ' ' . $attr . '="' . esc_attr( $attr_value ) . '" '; } $content .= '<a ' . $attributes . '>' . esc_html( astra_get_prop( $link, 'text' ) ) . '</a></li>'; $content .= '</li>'; } } $content .= '</ul>'; } $content .= '</div><!-- .astra-section-description -->'; return $content; } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Config_Base(); typography/class-astra-body-typo-configs.php 0000666 00000022506 15214246134 0015265 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.15 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Body_Typo_Configs' ) ) { /** * Customizer Sanitizes Initial setup */ class Astra_Body_Typo_Configs extends Astra_Customizer_Config_Base { /** * Register Body Typography Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Body & Content Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-base-typo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-body-typo', 'priority' => 4, 'title' => __( 'Body & Content', 'astra' ), 'settings' => array(), 'separator' => false, ), /** * Option: Font Family */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-font-family]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-family', 'ast_inherit' => __( 'Default System Font', 'astra' ), 'default' => astra_get_option( 'body-font-family' ), 'section' => 'section-body-typo', 'priority' => 5, 'title' => __( 'Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[body-font-weight]', 'variant' => ASTRA_THEME_SETTINGS . '[body-font-variant]', ), /** * Option: Font Variant */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-font-variant]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-variant', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_variant' ), 'default' => astra_get_option( 'body-font-variant' ), 'ast_inherit' => __( 'Default', 'astra' ), 'section' => 'section-body-typo', 'priority' => 10, 'title' => __( 'Variants', 'astra' ), 'variant' => ASTRA_THEME_SETTINGS . '[body-font-family]', ), /** * Option: Font Weight */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-font-weight]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( 'body-font-weight' ), 'ast_inherit' => __( 'Default', 'astra' ), 'section' => 'section-body-typo', 'priority' => 15, 'title' => __( 'Weight', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[body-font-family]', ), /** * Option: Body Text Transform */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-text-transform]', 'type' => 'control', 'control' => 'select', 'section' => 'section-body-typo', 'default' => astra_get_option( 'body-text-transform' ), 'priority' => 20, 'title' => __( 'Text Transform', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'none' => __( 'None', 'astra' ), 'capitalize' => __( 'Capitalize', 'astra' ), 'uppercase' => __( 'Uppercase', 'astra' ), 'lowercase' => __( 'Lowercase', 'astra' ), ), ), /** * Option: Body Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-body]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-body-typo', 'default' => astra_get_option( 'font-size-body' ), 'priority' => 10, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', ), ), /** * Option: Body Line Height */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-line-height]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-body-typo', 'default' => '', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'priority' => 25, 'title' => __( 'Line Height', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 1, 'step' => 0.01, 'max' => 5, ), ), /** * Option: Paragraph Margin Bottom */ array( 'name' => ASTRA_THEME_SETTINGS . '[para-margin-bottom]', 'type' => 'control', 'control' => 'ast-slider', 'default' => '', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'transport' => 'postMessage', 'section' => 'section-body-typo', 'priority' => 25, 'title' => __( 'Paragraph Margin Bottom', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 0.5, 'step' => 0.01, 'max' => 5, ), ), /** * Option: Body & Content Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-headings-typo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 3, 'title' => __( 'Headings ( H1 - H6 )', 'astra' ), 'settings' => array(), 'separator' => false, ), /** * Option: Headings Font Family */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-font-family]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-family', 'default' => astra_get_option( 'headings-font-family' ), 'title' => __( 'Family', 'astra' ), 'section' => 'section-content-typo', 'priority' => 3, 'connect' => ASTRA_THEME_SETTINGS . '[headings-font-weight]', 'variant' => ASTRA_THEME_SETTINGS . '[headings-font-variant]', ), /** * Option: Font Variant */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-font-variant]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-variant', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_variant' ), 'default' => astra_get_option( 'headings-font-variant' ), 'ast_inherit' => __( 'Default', 'astra' ), 'section' => 'section-content-typo', 'priority' => 3, 'title' => __( 'Variants', 'astra' ), 'variant' => ASTRA_THEME_SETTINGS . '[headings-font-family]', ), /** * Option: Headings Font Weight */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-font-weight]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( 'headings-font-weight' ), 'title' => __( 'Weight', 'astra' ), 'section' => 'section-content-typo', 'priority' => 3, 'connect' => ASTRA_THEME_SETTINGS . '[headings-font-family]', ), /** * Option: Headings Text Transform */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-text-transform]', 'type' => 'control', 'control' => 'select', 'section' => 'section-content-typo', 'title' => __( 'Text Transform', 'astra' ), 'default' => astra_get_option( 'headings-text-transform' ), 'priority' => 3, 'choices' => array( '' => __( 'Inherit', 'astra' ), 'none' => __( 'None', 'astra' ), 'capitalize' => __( 'Capitalize', 'astra' ), 'uppercase' => __( 'Uppercase', 'astra' ), 'lowercase' => __( 'Lowercase', 'astra' ), ), ), /** * Option: Heading <H1> Line Height */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-line-height]', 'section' => 'section-content-typo', 'default' => astra_get_option( 'headings-line-height' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'type' => 'control', 'control' => 'ast-slider', 'title' => __( 'Line Height', 'astra' ), 'transport' => 'postMessage', 'priority' => 4, 'suffix' => '', 'input_attrs' => array( 'min' => 1, 'step' => 0.01, 'max' => 5, ), 'section' => 'section-content-typo', 'transport' => 'postMessage', ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Body_Typo_Configs(); typography/class-astra-header-typo-configs.php 0000666 00000004274 15214246134 0015562 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.15 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Header_Typo_Configs' ) ) { /** * Customizer Sanitizes Initial setup */ class Astra_Header_Typo_Configs extends Astra_Customizer_Config_Base { /** * Register Header Typography Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Site Title Font Size */ array( 'name' => 'font-size-site-title', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[site-title-typography]', 'section' => 'title_tagline', 'control' => 'ast-responsive', 'default' => astra_get_option( 'font-size-site-title' ), 'transport' => 'postMessage', 'priority' => 9, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Site Tagline Font Size */ array( 'name' => 'font-size-site-tagline', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[site-tagline-typography]', 'section' => 'title_tagline', 'control' => 'ast-responsive', 'default' => astra_get_option( 'font-size-site-tagline' ), 'transport' => 'postMessage', 'priority' => 15, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Header_Typo_Configs(); typography/class-astra-archive-typo-configs.php 0000666 00000011071 15214246134 0015744 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.15 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Archive_Typo_Configs' ) ) { /** * Customizer Sanitizes Initial setup */ class Astra_Archive_Typo_Configs extends Astra_Customizer_Config_Base { /** * Register Archive Typography Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Blog Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-typography-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-blog', 'title' => __( 'Typography', 'astra' ), 'priority' => 135, 'settings' => array(), ), /** * Option: Blog / Archive Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-content-archive-summary-typo]', 'default' => astra_get_option( 'blog-content-archive-summary-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Archive Title', 'astra' ), 'section' => 'section-blog', 'transport' => 'postMessage', 'priority' => 140, ), array( 'name' => ASTRA_THEME_SETTINGS . '[blog-content-blog-post-title-typo]', 'default' => astra_get_option( 'blog-content-blog-post-title-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Post Title', 'astra' ), 'section' => 'section-blog', 'transport' => 'postMessage', 'priority' => 140, ), /** * Option: Blog - Post Title Font Size */ array( 'name' => 'font-size-page-title', 'parent' => ASTRA_THEME_SETTINGS . '[blog-content-blog-post-title-typo]', 'section' => 'section-blog', 'type' => 'sub-control', 'control' => 'ast-responsive', 'transport' => 'postMessage', 'priority' => 2, 'default' => astra_get_option( 'font-size-page-title' ), 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Archive Summary Box Title Font Size */ array( 'name' => 'font-size-archive-summary-title', 'parent' => ASTRA_THEME_SETTINGS . '[blog-content-archive-summary-typo]', 'section' => 'section-blog', 'type' => 'sub-control', 'control' => 'ast-responsive', 'transport' => 'postMessage', 'default' => astra_get_option( 'font-size-archive-summary-title' ), 'priority' => 8, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-blog-typography-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Contant Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-blog-typography-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-blog', 'priority' => 999, 'title' => '', 'help' => '<p>' . __( 'More Options Available in Astra Pro!', 'astra' ) . '</p><a href="' . astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ) . '" class="button button-secondary" target="_blank" rel="noopener">' . __( 'Learn More', 'astra' ) . '</a>', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Archive_Typo_Configs(); typography/class-astra-content-typo-configs.php 0000666 00000016664 15214246134 0016012 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.15 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Content_Typo_Configs' ) ) { /** * Customizer Sanitizes Initial setup */ class Astra_Content_Typo_Configs extends Astra_Customizer_Config_Base { /** * Register Content Typography Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Heading 1 (H1) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h1]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 4, 'title' => __( 'Heading 1', 'astra' ), 'settings' => array(), ), /** * Option: Heading 1 (H1) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h1]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h1' ), 'transport' => 'postMessage', 'priority' => 6, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 2 (H2) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h2]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 9, 'title' => __( 'Heading 2', 'astra' ), 'settings' => array(), ), /** * Option: Heading 2 (H2) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h2]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h2' ), 'transport' => 'postMessage', 'priority' => 11, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 3 (H3) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h3]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 15, 'title' => __( 'Heading 3', 'astra' ), 'settings' => array(), ), /** * Option: Heading 3 (H3) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h3]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'priority' => 16, 'default' => astra_get_option( 'font-size-h3' ), 'transport' => 'postMessage', 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 4 (H4) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h4]', 'type' => 'control', 'title' => __( 'Heading 4', 'astra' ), 'section' => 'section-content-typo', 'control' => 'ast-heading', 'priority' => 20, 'settings' => array(), ), /** * Option: Heading 4 (H4) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h4]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h4' ), 'transport' => 'postMessage', 'priority' => 21, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 5 (H5) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h5]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 25, 'title' => __( 'Heading 5', 'astra' ), 'settings' => array(), ), /** * Option: Heading 5 (H5) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h5]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h5' ), 'transport' => 'postMessage', 'priority' => 26, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 6 (H6) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h6]', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Heading 6', 'astra' ), 'section' => 'section-content-typo', 'priority' => 30, 'settings' => array(), ), /** * Option: Heading 6 (H6) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h6]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h6' ), 'transport' => 'postMessage', 'priority' => 31, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-content-typography-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-content-typo', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Contant Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-content-typography-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-content-typo', 'priority' => 999, 'title' => '', 'help' => '<p>' . __( 'More Options Available in Astra Pro!', 'astra' ) . '</p><a href="' . astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ) . '" class="button button-secondary" target="_blank" rel="noopener">' . __( 'Learn More', 'astra' ) . '</a>', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Content_Typo_Configs(); typography/class-astra-single-typo-configs.php 0000666 00000006703 15214246134 0015612 0 ustar 00 <?php /** * Styling Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.15 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Single_Typo_Configs' ) ) { /** * Customizer Single Typography Configurations. * * @since 1.4.3 */ class Astra_Single_Typo_Configs extends Astra_Customizer_Config_Base { /** * Register Single Typography configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-single-post-typo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-blog-single', 'priority' => 13, 'title' => __( 'Typography', 'astra' ), 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-title-typo]', 'type' => 'control', 'priority' => 13, 'control' => 'ast-settings-group', 'title' => __( 'Post / Page Title', 'astra' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', ), /** * Option: Single Post / Page Title Font Size */ array( 'name' => 'font-size-entry-title', 'parent' => ASTRA_THEME_SETTINGS . '[blog-single-title-typo]', 'section' => 'section-blog-single', 'type' => 'sub-control', 'control' => 'ast-responsive', 'default' => astra_get_option( 'font-size-entry-title' ), 'transport' => 'postMessage', 'priority' => 8, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-sngle-blog-typography-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog-single', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-sngle-blog-typography-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-blog-single', 'priority' => 999, 'title' => '', 'help' => '<p>' . __( 'More Options Available in Astra Pro!', 'astra' ) . '</p><a href="' . astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ) . '" class="button button-secondary" target="_blank" rel="noopener">' . __( 'Learn More', 'astra' ) . '</a>', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Single_Typo_Configs(); layout/class-astra-footer-layout-configs.php 0000666 00000046416 15214246134 0015265 0 ustar 00 <?php /** * Bottom Footer Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Footer_Layout_Configs' ) ) { /** * Register Footer Layout Configurations. */ class Astra_Footer_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Footer Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Footer Bar Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'default' => astra_get_option( 'footer-sml-layout' ), 'section' => 'section-footer-small', 'priority' => 5, 'title' => __( 'Layout', 'astra' ), 'choices' => array( 'disabled' => array( 'label' => __( 'Disabled', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"> <g> <g> <path fill="#0085BA" d="M116.701,80.796H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.753c0-1.957,1.592-3.549,3.549-3.549h112.902 c1.956,0,3.549,1.592,3.549,3.549v73.494C120.25,79.204,118.657,80.796,116.701,80.796z M3.799,1.979 c-0.979,0-1.773,0.797-1.773,1.774v73.494c0,0.979,0.795,1.772,1.773,1.772h112.902c0.979,0,1.773-0.797,1.773-1.772V3.753 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/> </g> </g> <path fill="#0085BA" d="M60.25,19.5c-11.581,0-21,9.419-21,21c0,11.578,9.419,21,21,21c11.578,0,21-9.422,21-21 C81.25,28.919,71.828,19.5,60.25,19.5z M42.308,40.5c0-9.892,8.05-17.942,17.942-17.942c4.412,0,8.452,1.6,11.578,4.249 L46.557,52.078C43.908,48.952,42.308,44.912,42.308,40.5z M60.25,58.439c-4.385,0-8.407-1.579-11.526-4.201l25.265-25.265 c2.622,3.12,4.201,7.141,4.201,11.526C78.189,50.392,70.142,58.439,60.25,58.439z"/> </svg>', ), 'footer-sml-layout-1' => array( 'label' => __( 'Footer Bar Layout 1', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"><g><path fill="#0085BA" d="M3.799,0.204h112.902c1.958,0,3.549,1.593,3.549,3.55v73.494c0,1.957-1.592,3.549-3.549,3.549H3.799 c-1.957,0-3.549-1.592-3.549-3.549V3.754C0.25,1.797,1.842,0.204,3.799,0.204z M116.701,79.021c0.979,0,1.774-0.795,1.774-1.773 l0.001-73.494c0-0.979-0.797-1.774-1.775-1.774H3.799c-0.979,0-1.773,0.795-1.773,1.774v73.494c0,0.979,0.795,1.773,1.773,1.773 H116.701z"/></g><line fill="none" stroke="#0085BA" stroke-miterlimit="10" x1="120.25" y1="58.659" x2="0.965" y2="58.659"/><g><g><path fill="#0085BA" d="M26.805,64.475h66.89c0.98,0,1.774,0.628,1.774,1.4s-0.794,1.4-1.774,1.4h-66.89 c-0.98,0-1.773-0.628-1.773-1.4C25.031,65.102,25.826,64.475,26.805,64.475z"/></g></g><g><ellipse fill="#0085BA" cx="72.604" cy="72.174" rx="2.146" ry="2.108"/><ellipse fill="#0085BA" cx="64.37" cy="72.174" rx="2.147" ry="2.108"/><ellipse fill="#0085BA" cx="56.132" cy="72.174" rx="2.145" ry="2.108"/><ellipse fill="#0085BA" cx="47.896" cy="72.174" rx="2.146" ry="2.108"/></g></svg>', ), 'footer-sml-layout-2' => array( 'label' => __( 'Footer Bar Layout 2', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"><g><path fill="#0085BA" d="M120.25,3.754v73.494c0,1.957-1.592,3.549-3.549,3.549H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.754 c0-1.957,1.591-3.55,3.549-3.55h112.902C118.658,0.204,120.25,1.797,120.25,3.754z M116.701,79.021 c0.979,0,1.773-0.795,1.773-1.773V3.754c0-0.979-0.795-1.774-1.773-1.774H3.799c-0.979,0-1.775,0.795-1.775,1.774l0.001,73.494 c0,0.979,0.796,1.773,1.774,1.773H116.701z"/></g><g><g><path fill="#0085BA" d="M120.25,3.754v73.494c0,1.957-1.592,3.549-3.549,3.549H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.754 c0-1.957,1.591-3.55,3.549-3.55h112.902C118.658,0.204,120.25,1.797,120.25,3.754z M116.701,79.021 c0.979,0,1.773-0.795,1.773-1.773V3.754c0-0.979-0.795-1.774-1.773-1.774H3.799c-0.979,0-1.775,0.795-1.775,1.774l0.001,73.494 c0,0.979,0.796,1.773,1.774,1.773H116.701z"/></g></g><g><g><g><path fill="#0085BA" d="M63.184,69.175c0,0.979-0.793,1.774-1.773,1.774h-46.89c-0.98,0-1.774-0.795-1.774-1.774 S13.54,67.4,14.521,67.4h46.89C62.389,67.4,63.184,68.194,63.184,69.175z"/></g></g><g><ellipse fill="#0085BA" cx="79.872" cy="69.175" rx="2.228" ry="2.188"/><ellipse fill="#0085BA" cx="88.422" cy="69.175" rx="2.229" ry="2.188"/><ellipse fill="#0085BA" cx="96.974" cy="69.175" rx="2.227" ry="2.188"/><ellipse fill="#0085BA" cx="105.525" cy="69.175" rx="2.229" ry="2.188"/></g></g><line fill="none" stroke="#0085BA" stroke-miterlimit="10" x1="120.25" y1="58.659" x2="0.965" y2="58.659"/></svg>', ), ), 'partial' => array( 'selector' => '.ast-small-footer', 'container_inclusive' => false, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-ast-small-footer-layout-info]', 'control' => 'ast-divider', 'type' => 'control', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'section' => 'section-footer-small', 'priority' => 10, 'settings' => array(), ), /** * Section: Section 1 */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-1]', 'control' => 'select', 'default' => astra_get_option( 'footer-sml-section-1' ), 'type' => 'control', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'section' => 'section-footer-small', 'priority' => 15, 'title' => __( 'Section 1', 'astra' ), 'choices' => array( '' => __( 'None', 'astra' ), 'custom' => __( 'Text', 'astra' ), 'widget' => __( 'Widget', 'astra' ), 'menu' => __( 'Footer Menu', 'astra' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-footer-widget-1-area .ast-no-widget-row, .ast-small-footer .ast-container .ast-small-footer-section-1 .footer-primary-navigation .nav-menu', 'container_inclusive' => false, ), ), /** * Option: Section 1 Custom Text */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-1-credit]', 'default' => astra_get_option( 'footer-sml-section-1-credit' ), 'type' => 'control', 'control' => 'textarea', 'transport' => 'postMessage', 'section' => 'section-footer-small', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[footer-sml-section-1]', '==', array( 'custom' ) ), ), ), 'priority' => 20, 'title' => __( 'Section 1 Custom Text', 'astra' ), 'choices' => array( '' => __( 'None', 'astra' ), 'custom' => __( 'Custom Text', 'astra' ), 'widget' => __( 'Widget', 'astra' ), 'menu' => __( 'Footer Menu', 'astra' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-small-footer-section.ast-small-footer-section-1:has(> .ast-footer-site-title)', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_footer_sml_section_1_credit' ), ), ), /** * Option: Section 2 */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-2]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'footer-sml-section-2' ), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'section' => 'section-footer-small', 'priority' => 25, 'title' => __( 'Section 2', 'astra' ), 'choices' => array( '' => __( 'None', 'astra' ), 'custom' => __( 'Text', 'astra' ), 'widget' => __( 'Widget', 'astra' ), 'menu' => __( 'Footer Menu', 'astra' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-footer-widget-2-area .ast-no-widget-row, .ast-small-footer .ast-container .ast-small-footer-section-2 .footer-primary-navigation .nav-menu', 'container_inclusive' => false, ), ), /** * Option: Section 2 Custom Text */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-2-credit]', 'type' => 'control', 'control' => 'textarea', 'transport' => 'postMessage', 'default' => astra_get_option( 'footer-sml-section-2-credit' ), 'section' => 'section-footer-small', 'priority' => 30, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-section-2]', '==', 'custom' ), 'title' => __( 'Section 2 Custom Text', 'astra' ), 'partial' => array( 'selector' => '.ast-small-footer-section-2', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_footer_sml_section_2_credit' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-small-footer-section.ast-small-footer-section-2:has(> .ast-footer-site-title)', 'container_inclusive' => false, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-ast-small-footer-typography]', 'control' => 'ast-divider', 'type' => 'control', 'section' => 'section-footer-small', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'priority' => 35, 'settings' => array(), ), /** * Option: Footer Top Border */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-divider]', 'type' => 'control', 'control' => 'ast-slider', 'default' => astra_get_option( 'footer-sml-divider' ), 'section' => 'section-footer-small', 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'title' => __( 'Border Size', 'astra' ), 'transport' => 'postMessage', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Footer Top Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-divider-color]', 'section' => 'section-footer-small', 'default' => '#7a7a7a', 'type' => 'control', 'control' => 'ast-color', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-divider]', '>=', 1 ), 'priority' => 45, 'title' => __( 'Border Color', 'astra' ), 'transport' => 'postMessage', ), /** * Option: Footer Bar Color & Background Section heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-bar-color-background-heading-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-footer-small', 'title' => __( 'Colors & Background', 'astra' ), 'priority' => 46, 'settings' => array(), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-bar-background-group]', 'default' => astra_get_option( 'footer-bar-background-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Background', 'astra' ), 'section' => 'section-footer-small', 'transport' => 'postMessage', 'priority' => 47, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'default' => astra_get_option( 'footer-bar-content-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Content', 'astra' ), 'section' => 'section-footer-small', 'transport' => 'postMessage', 'priority' => 47, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), /** * Option: Header Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-layout-width]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'footer-layout-width' ), 'section' => 'section-footer-small', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[site-layout]', '!=', 'ast-box-layout' ), array( ASTRA_THEME_SETTINGS . '[site-layout]', '!=', 'ast-fluid-width-layout' ), array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), ), 'priority' => 35, 'title' => __( 'Width', 'astra' ), 'choices' => array( 'full' => __( 'Full Width', 'astra' ), 'content' => __( 'Content Width', 'astra' ), ), ), /** * Option: Footer Widgets Layout Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-adv]', 'type' => 'control', 'control' => 'ast-radio-image', 'default' => astra_get_option( 'footer-adv' ), 'title' => __( 'Layout', 'astra' ), 'section' => 'section-footer-adv', 'choices' => array( 'disabled' => array( 'label' => __( 'Disable', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"> <g> <g> <path fill="#0085BA" d="M116.701,80.796H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.753c0-1.957,1.592-3.549,3.549-3.549h112.902 c1.956,0,3.549,1.592,3.549,3.549v73.494C120.25,79.204,118.657,80.796,116.701,80.796z M3.799,1.979 c-0.979,0-1.773,0.797-1.773,1.774v73.494c0,0.979,0.795,1.772,1.773,1.772h112.902c0.979,0,1.773-0.797,1.773-1.772V3.753 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/> </g> </g> <path fill="#0085BA" d="M60.25,19.5c-11.581,0-21,9.419-21,21c0,11.578,9.419,21,21,21c11.578,0,21-9.422,21-21 C81.25,28.919,71.828,19.5,60.25,19.5z M42.308,40.5c0-9.892,8.05-17.942,17.942-17.942c4.412,0,8.452,1.6,11.578,4.249 L46.557,52.078C43.908,48.952,42.308,44.912,42.308,40.5z M60.25,58.439c-4.385,0-8.407-1.579-11.526-4.201l25.265-25.265 c2.622,3.12,4.201,7.141,4.201,11.526C78.189,50.392,70.142,58.439,60.25,58.439z"/> </svg>', ), 'layout-4' => array( 'label' => __( 'Layout 4', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"><g><g><g><g><path fill="#0085BA" d="M116.701,80.796H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.753c0-1.957,1.592-3.549,3.549-3.549h112.902 c1.956,0,3.549,1.592,3.549,3.549v73.494C120.25,79.204,118.657,80.796,116.701,80.796z M3.799,1.979 c-0.979,0-1.773,0.797-1.773,1.774v73.494c0,0.979,0.795,1.772,1.773,1.772h112.902c0.979,0,1.773-0.797,1.773-1.772V3.753 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/></g></g></g></g><g><path fill="#0085BA" d="M28.064,70c0,1.657-1.354,3-3.023,3H12.458c-1.669,0-3.023-1.343-3.023-3V58.25c0-1.656,1.354-3,3.023-3 h12.583c1.67,0,3.023,1.344,3.023,3V70z"/></g><g><path fill="#0085BA" d="M55.731,70c0,1.657-1.354,3-3.023,3H40.125c-1.669,0-3.023-1.343-3.023-3V58.25c0-1.656,1.354-3,3.023-3 h12.583c1.67,0,3.023,1.344,3.023,3V70z"/></g><g><path fill="#0085BA" d="M83.397,70c0,1.657-1.354,3-3.023,3H67.791c-1.669,0-3.022-1.343-3.022-3V58.25c0-1.656,1.354-3,3.022-3 h12.583c1.67,0,3.023,1.344,3.023,3V70z"/></g><g><path fill="#0085BA" d="M111.064,70c0,1.657-1.354,3-3.023,3H95.458c-1.669,0-3.022-1.343-3.022-3V58.25c0-1.656,1.354-3,3.022-3 h12.583c1.67,0,3.023,1.344,3.023,3V70z"/></g><g><rect x="0.607" y="48" fill="#0085BA" width="119.285" height="1"/></g></svg>', ), ), 'partial' => array( 'selector' => '.footer-adv .ast-container', 'container_inclusive' => false, ), ), /** * Option: Footer Top Border */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-adv-border-width]', 'type' => 'control', 'control' => 'ast-slider', 'transport' => 'postMessage', 'section' => 'section-footer-adv', 'default' => astra_get_option( 'footer-adv-border-width' ), 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), 'title' => __( 'Top Border Size', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Footer Top Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-adv-border-color]', 'section' => 'section-footer-adv', 'title' => __( 'Top Border Color', 'astra' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-color', 'default' => astra_get_option( 'footer-adv-border-color' ), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), 'priority' => 45, ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $config = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-footer-widget-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-footer-adv', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Footer Widget */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-footer-widget-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-footer-adv', 'priority' => 999, 'label' => '', 'help' => '<p>' . __( 'More Options Available in Astra Pro!', 'astra' ) . '</p><a href="' . astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ) . '" class="button button-secondary" target="_blank" rel="noopener">' . __( 'Learn More', 'astra' ) . '</a>', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Footer_Layout_Configs(); layout/class-astra-blog-single-layout-configs.php 0000666 00000007517 15214246134 0016170 0 ustar 00 <?php /** * Bottom Footer Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Blog_Single_Layout_Configs' ) ) { /** * Register Blog Single Layout Configurations. */ class Astra_Blog_Single_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Blog Single Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Single Post Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-width]', 'type' => 'control', 'control' => 'select', 'section' => 'section-blog-single', 'default' => astra_get_option( 'blog-single-width' ), 'priority' => 5, 'title' => __( 'Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'partial' => array( 'selector' => '.ast-single-post .site-content .ast-container .content-area .entry-title', 'container_inclusive' => false, ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-blog-single', 'transport' => 'postMessage', 'default' => 1200, 'required' => array( ASTRA_THEME_SETTINGS . '[blog-single-width]', '===', 'custom' ), 'priority' => 5, 'title' => __( 'Custom Width', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-styling-section-blog-single-width]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog-single', 'priority' => 5, 'settings' => array(), ), /** * Option: Display Post Structure */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-blog-single', 'default' => astra_get_option( 'blog-single-post-structure' ), 'priority' => 5, 'title' => __( 'Structure', 'astra' ), 'choices' => array( 'single-image' => __( 'Featured Image', 'astra' ), 'single-title-meta' => __( 'Title & Blog Meta', 'astra' ), ), ), /** * Option: Single Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-meta]', 'type' => 'control', 'control' => 'ast-sortable', 'default' => astra_get_option( 'blog-single-meta' ), 'required' => array( ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'contains', 'single-title-meta' ), 'section' => 'section-blog-single', 'priority' => 5, 'title' => __( 'Meta', 'astra' ), 'choices' => array( 'comments' => __( 'Comments', 'astra' ), 'category' => __( 'Category', 'astra' ), 'author' => __( 'Author', 'astra' ), 'date' => __( 'Publish Date', 'astra' ), 'tag' => __( 'Tag', 'astra' ), ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Blog_Single_Layout_Configs(); layout/class-astra-site-identity-configs.php 0000666 00000017033 15214246134 0015240 0 ustar 00 <?php /** * Bottom Footer Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Site_Identity_Configs' ) ) { /** * Register Astra Customizerr Site identity Customizer Configurations. */ class Astra_Site_Identity_Configs extends Astra_Customizer_Config_Base { /** * Register Astra Customizerr Site identity Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-site-identity-logo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'title_tagline', 'title' => __( 'Site Logo', 'astra' ), 'priority' => 2, 'settings' => array(), ), /** * Option: Different retina logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[different-retina-logo]', 'type' => 'control', 'control' => 'checkbox', 'section' => 'title_tagline', 'title' => __( 'Different Logo For Retina Devices?', 'astra' ), 'default' => false, 'priority' => 5, ), /** * Option: Retina logo selector */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-header-retina-logo]', 'default' => astra_get_option( 'ast-header-retina-logo' ), 'type' => 'control', 'control' => 'image', 'section' => 'title_tagline', 'required' => array( ASTRA_THEME_SETTINGS . '[different-retina-logo]', '!=', 0 ), 'priority' => 5, 'title' => __( 'Retina Logo', 'astra' ), 'library_filter' => array( 'gif', 'jpg', 'jpeg', 'png', 'ico' ), ), /** * Option: Inherit Desktop logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[different-mobile-logo]', 'type' => 'control', 'control' => 'checkbox', 'default' => false, 'section' => 'title_tagline', 'title' => __( 'Different Logo For Mobile Devices?', 'astra' ), 'priority' => 5, ), /** * Option: Mobile header logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-logo]', 'default' => astra_get_option( 'mobile-header-logo' ), 'type' => 'control', 'control' => 'image', 'required' => array( ASTRA_THEME_SETTINGS . '[different-mobile-logo]', '==', '1' ), 'section' => 'title_tagline', 'priority' => 5, 'title' => __( 'Mobile Logo (optional)', 'astra' ), 'library_filter' => array( 'gif', 'jpg', 'jpeg', 'png', 'ico' ), ), /** * Option: Logo Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-header-responsive-logo-width]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'section' => 'title_tagline', 'transport' => 'postMessage', 'default' => array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ), 'priority' => 5, 'title' => __( 'Logo Width', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-site-logo-divider]', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Site Icon', 'astra' ), 'section' => 'title_tagline', 'priority' => 5, 'settings' => array(), ), /** * Option: Display Title */ array( 'name' => ASTRA_THEME_SETTINGS . '[display-site-title]', 'type' => 'control', 'control' => 'checkbox', 'default' => astra_get_option( 'display-site-title' ), 'section' => 'title_tagline', 'title' => __( 'Display Site Title', 'astra' ), 'priority' => 7, 'transport' => 'postMessage', 'partial' => array( 'selector' => '.main-header-bar .site-branding .ast-site-title-wrap', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_site_title_tagline' ), ), ), /** * Option: Display Tagline */ array( 'name' => ASTRA_THEME_SETTINGS . '[display-site-tagline]', 'type' => 'control', 'control' => 'checkbox', 'transport' => 'postMessage', 'default' => astra_get_option( 'display-site-tagline' ), 'section' => 'title_tagline', 'title' => __( 'Display Site Tagline', 'astra' ), 'partial' => array( 'selector' => '.main-header-bar .site-branding .ast-site-title-wrap', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_site_title_tagline' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[logo-title-inline]', 'default' => astra_get_option( 'logo-title-inline' ), 'type' => 'control', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[display-site-title]', '==', true ), array( ASTRA_THEME_SETTINGS . '[display-site-tagline]', '==', true ), ), 'operator' => 'OR', ), 'control' => 'checkbox', 'section' => 'title_tagline', 'title' => __( 'Inline Logo & Site Title', 'astra' ), 'priority' => 7, ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-site-icon-divider]', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Site Title', 'astra' ), 'section' => 'title_tagline', 'priority' => 6, 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-title-typography]', 'default' => astra_get_option( 'site-title-typography' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Typography', 'astra' ), 'section' => 'title_tagline', 'transport' => 'postMessage', 'priority' => 9, 'required' => array( ASTRA_THEME_SETTINGS . '[display-site-title]', '==', true, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-site-title-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'title_tagline', 'title' => __( 'Site Tagline', 'astra' ), 'priority' => 9, 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-tagline-typography]', 'default' => astra_get_option( 'site-tagline-typography' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Typography', 'astra' ), 'section' => 'title_tagline', 'transport' => 'postMessage', 'priority' => 16, 'required' => array( ASTRA_THEME_SETTINGS . '[display-site-tagline]', '==', true, ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Site_Identity_Configs(); layout/class-astra-sidebar-layout-configs.php 0000666 00000011417 15214246134 0015371 0 ustar 00 <?php /** * Bottom Footer Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Sidebar_Layout_Configs' ) ) { /** * Register Astra Sidebar Layout Configurations. */ class Astra_Sidebar_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Astra Sidebar Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Default Sidebar Position */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'section' => 'section-sidebars', 'default' => astra_get_option( 'site-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Default Layout', 'astra' ), 'choices' => array( 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-sidebar-layout-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-sidebars', 'priority' => 5, 'settings' => array(), ), /** * Option: Page */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'section' => 'section-sidebars', 'default' => astra_get_option( 'single-page-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Pages', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Blog Post */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'single-post-sidebar-layout' ), 'section' => 'section-sidebars', 'priority' => 5, 'title' => __( 'Blog Posts', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Blog Post Archive */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-post-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'archive-post-sidebar-layout' ), 'section' => 'section-sidebars', 'priority' => 5, 'title' => __( 'Archives', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-sidebar-width]', 'type' => 'control', 'section' => 'section-sidebars', 'control' => 'ast-divider', 'priority' => 10, 'settings' => array(), ), /** * Option: Primary Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-width]', 'type' => 'control', 'control' => 'ast-slider', 'default' => 30, 'section' => 'section-sidebars', 'priority' => 15, 'title' => __( 'Sidebar Width', 'astra' ), 'suffix' => '%', 'input_attrs' => array( 'min' => 15, 'step' => 1, 'max' => 50, ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-width-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-sidebars', 'priority' => 15, 'title' => '', 'help' => __( 'Sidebar width will apply only when one of the above sidebar is set.', 'astra' ), 'settings' => array(), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Sidebar_Layout_Configs(); layout/class-astra-header-layout-configs.php 0000666 00000064404 15214246134 0015214 0 ustar 00 <?php /** * General Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Header_Layout_Configs' ) ) { /** * Register Header Layout Customizer Configurations. */ class Astra_Header_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Header Layout Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $header_rt_sections = array( 'none' => __( 'None', 'astra' ), 'search' => __( 'Search', 'astra' ), 'text-html' => __( 'Text / HTML', 'astra' ), 'widget' => __( 'Widget', 'astra' ), ); $_configs = array( /** * Option: Header Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-layouts]', 'default' => astra_get_option( 'header-layouts' ), 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Layout', 'astra' ), 'type' => 'control', 'control' => 'ast-radio-image', 'choices' => array( 'header-main-layout-1' => array( 'label' => __( 'Logo Left', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"><g><g><path fill="#0085BA" d="M116.701,80.797H3.799c-1.958,0-3.549-1.593-3.549-3.55V3.753c0-1.957,1.592-3.549,3.549-3.549h112.902 c1.957,0,3.549,1.592,3.549,3.549v73.494C120.25,79.204,118.658,80.797,116.701,80.797z M3.799,1.979 c-0.979,0-1.775,0.795-1.775,1.774v73.494c0,0.979,0.796,1.774,1.775,1.774h112.902c0.979,0,1.773-0.795,1.773-1.774V3.753 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/></g><g><g><path fill="#0085BA" d="M107.275,16.6H48.385c-0.98,0-1.774-0.794-1.774-1.774s0.794-1.774,1.774-1.774h58.891 c0.979,0,1.773,0.794,1.773,1.774S108.254,16.6,107.275,16.6z"/></g><g><path fill="#0085BA" d="M34.511,16.689c0,0.989-0.929,1.789-2.074,1.789H16.116c-1.146,0-2.075-0.8-2.075-1.789v-3.727 c0-0.989,0.929-1.79,2.075-1.79h16.321c1.146,0,2.074,0.801,2.074,1.79V16.689z"/></g></g></g><line fill="none" stroke="#0085BA" stroke-miterlimit="10" x1="0.25" y1="28.342" x2="119.535" y2="28.342"/></svg>', ), 'header-main-layout-2' => array( 'label' => __( 'Logo Center', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"><line fill="none" stroke="#0085BA" stroke-miterlimit="10" x1="0.607" y1="28.341" x2="119.893" y2="28.341"/><g><path fill="#0085BA" d="M116.701,80.795H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.752c0-1.957,1.592-3.549,3.549-3.549h112.902 c1.955,0,3.549,1.592,3.549,3.549v73.494C120.25,79.203,118.656,80.795,116.701,80.795z M3.799,1.978 c-0.979,0-1.773,0.797-1.773,1.774v73.494c0,0.98,0.795,1.775,1.773,1.775h112.902c0.979,0,1.773-0.797,1.773-1.775V3.752 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/></g><g><g><path fill="#0085BA" d="M69.314,12.413c0,1.014-0.822,1.837-1.836,1.837H53.021c-1.015,0-1.837-0.823-1.837-1.837V8.586 c0-1.015,0.822-1.837,1.837-1.837h14.458c1.014,0,1.836,0.822,1.836,1.837V12.413z"/></g></g><g><path fill="#0085BA" d="M99.697,22.067H20.804c-0.98,0-1.774-0.672-1.774-1.5c0-0.828,0.794-1.5,1.774-1.5h78.894 c0.979,0,1.772,0.672,1.772,1.5C101.471,21.395,100.676,22.067,99.697,22.067z"/></g></svg>', ), 'header-main-layout-3' => array( 'label' => __( 'Logo Right', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="120.5px" height="81px" viewBox="0 0 120.5 81" enable-background="new 0 0 120.5 81" xml:space="preserve"><g><g><path fill="#0085BA" d="M0.25,77.247V3.753c0-1.957,1.592-3.549,3.549-3.549h112.902c1.957,0,3.549,1.592,3.549,3.549v73.494 c0,1.957-1.592,3.55-3.549,3.55H3.799C1.842,80.797,0.25,79.204,0.25,77.247z M3.799,1.979c-0.979,0-1.774,0.795-1.774,1.774 v73.494c0,0.979,0.796,1.774,1.774,1.774h112.902c0.979,0,1.773-0.795,1.773-1.774V3.753c0-0.979-0.795-1.774-1.773-1.774H3.799z"/></g><g><g><path fill="#0085BA" d="M13.225,16.6h58.891c0.979,0,1.774-0.794,1.774-1.774s-0.795-1.774-1.774-1.774H13.225 c-0.979,0-1.773,0.794-1.773,1.774C11.451,15.806,12.246,16.6,13.225,16.6z"/></g><g><path fill="#0085BA" d="M85.988,16.689c0,0.989,0.93,1.789,2.074,1.789h16.321c1.146,0,2.074-0.8,2.074-1.789v-3.727 c0-0.989-0.929-1.79-2.074-1.79H88.063c-1.145,0-2.073,0.801-2.073,1.79L85.988,16.689L85.988,16.689z"/></g></g></g><line fill="none" stroke="#0085BA" stroke-miterlimit="10" x1="120.25" y1="28.342" x2="0.965" y2="28.342"/></svg>', ), ), ), /** * Option: Header Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-layout-width]', 'default' => astra_get_option( 'header-main-layout-width' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Width', 'astra' ), 'choices' => array( 'full' => __( 'Full Width', 'astra' ), 'content' => __( 'Content Width', 'astra' ), ), ), /** * Option: Bottom Border Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-sep]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-sep' ), 'type' => 'control', 'control' => 'number', 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Bottom Border Size', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Bottom Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-sep-color]', 'transport' => 'postMessage', 'default' => '', 'type' => 'control', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-sep]', '>=', 1 ), 'control' => 'ast-color', 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Bottom Border Color', 'astra' ), ), array( 'name' => 'primary-header-menu-label-divider', 'type' => 'control', 'control' => 'ast-heading', 'priority' => 5, 'title' => __( 'Menu', 'astra' ), 'section' => 'section-primary-menu', 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[disable-primary-nav]', 'default' => astra_get_option( 'disable-primary-nav' ), 'type' => 'control', 'control' => 'checkbox', 'section' => 'section-primary-menu', 'title' => __( 'Disable Menu', 'astra' ), 'priority' => 5, 'partial' => array( 'selector' => '.main-header-bar .main-navigation', 'container_inclusive' => false, ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section]', 'default' => astra_get_option( 'header-main-rt-section' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'priority' => 7, 'title' => __( 'Last Item in Menu', 'astra' ), 'choices' => apply_filters( 'astra_header_section_elements', array( 'none' => __( 'None', 'astra' ), 'search' => __( 'Search', 'astra' ), 'button' => __( 'Button', 'astra' ), 'text-html' => __( 'Text / HTML', 'astra' ), 'widget' => __( 'Widget', 'astra' ), ), 'primary-header' ), 'partial' => array( 'selector' => '.main-header-bar .main-navigation .main-header-menu .ast-masthead-custom-menu-items.search-custom-menu-item .ast-search-icon .astra-search-icon, .main-header-bar .main-navigation .main-header-menu .ast-masthead-custom-menu-items.woocommerce-custom-menu-item, .main-header-bar .ast-masthead-custom-menu-items.widget-custom-menu-item .ast-header-widget-area .widget.ast-no-widget-row, .main-header-bar .main-navigation .main-header-menu .ast-masthead-custom-menu-items.edd-custom-menu-item', 'container_inclusive' => false, ), ), /** * Option: Button Text */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-text]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-section-button-text' ), 'type' => 'control', 'control' => 'text', 'section' => 'section-primary-menu', 'partial' => array( 'selector' => '.button-custom-menu-item', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_main_rt_section_button_text' ), ), 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), 'priority' => 10, 'title' => __( 'Button Text', 'astra' ), ), /** * Option: Button Link */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-link-option]', 'default' => astra_get_option( 'header-main-rt-section-button-link-option' ), 'type' => 'control', 'control' => 'ast-link', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), 'priority' => 10, 'title' => __( 'Button Link', 'astra' ), ), /** * Option: Button Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', 'default' => astra_get_option( 'header-main-rt-section-button-style' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), 'priority' => 10, 'choices' => array( 'theme-button' => __( 'Theme Button', 'astra' ), 'custom-button' => __( 'Header Button', 'astra' ), ), 'title' => __( 'Button Style', 'astra' ), ), /** * Option: Theme Button Style edit link */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-button-style-link]', 'default' => astra_get_option( 'header-button-style-link' ), 'type' => 'control', 'control' => 'ast-customizer-link', 'section' => 'section-primary-menu', 'required' => array( array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'theme-button' ), ), 'priority' => 10, 'link_type' => 'section', 'linked' => 'section-buttons', 'link_text' => __( 'Customize Button Style.', 'astra' ), ), /** * Option: Right Section Text / HTML */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-html]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-section-html' ), 'type' => 'control', 'control' => 'textarea', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'text-html' ), 'priority' => 10, 'partial' => array( 'selector' => '.main-header-bar .ast-masthead-custom-menu-items .ast-custom-html', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_main_rt_section_html' ), ), 'title' => __( 'Custom Menu Text / HTML', 'astra' ), ), array( 'name' => 'primary-header-sub-menu-label-divider', 'type' => 'control', 'control' => 'ast-heading', 'priority' => 30, 'title' => __( 'Sub Menu', 'astra' ), 'section' => 'section-primary-menu', 'settings' => array(), ), /** * Option: Submenu Container Animation */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-submenu-container-animation]', 'default' => astra_get_option( 'header-main-submenu-container-animation' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[disable-primary-nav]', '!=', true, ), 'priority' => 30, 'title' => __( 'Container Animation', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'slide-down' => __( 'Slide Down', 'astra' ), 'slide-up' => __( 'Slide Up', 'astra' ), 'fade' => __( 'Fade', 'astra' ), ), ), // Option: Primary Menu Border. array( 'type' => 'control', 'control' => 'ast-border', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-border]', 'section' => 'section-primary-menu', 'linked_choices' => true, 'priority' => 30, 'default' => astra_get_option( 'primary-submenu-border' ), 'title' => __( 'Container Border', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), // Option: Submenu Container Border Color. array( 'type' => 'control', 'control' => 'ast-color', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-b-color]', 'default' => '', 'title' => __( 'Border Color', 'astra' ), 'section' => 'section-primary-menu', 'priority' => 30, ), array( 'type' => 'control', 'control' => 'checkbox', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-item-border]', 'section' => 'section-primary-menu', 'priority' => 30, 'default' => astra_get_option( 'primary-submenu-item-border' ), 'title' => __( 'Submenu Divider', 'astra' ), ), // Option: Submenu item Border Color. array( 'type' => 'control', 'control' => 'ast-color', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-item-b-color]', 'default' => '', 'title' => __( 'Divider Color', 'astra' ), 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[primary-submenu-item-border]', '==', true, ), 'priority' => 30, ), /** * Option: Mobile Menu Label Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-menu-label-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-header', 'priority' => 35, 'title' => __( 'Mobile Header', 'astra' ), 'settings' => array(), ), /** * Option: Mobile Menu Alignment */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-menu-align]', 'default' => astra_get_option( 'header-main-menu-align' ), 'type' => 'control', 'control' => 'ast-radio-image', 'choices' => array( 'inline' => array( 'label' => __( 'Inline', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="60.5px" height="81px" viewBox="0 0 60.5 81" enable-background="new 0 0 60.5 81" xml:space="preserve"><g><g><g><path fill="#0085BA" d="M51.602,12.975H40.884c-0.493,0-0.892-0.429-0.892-0.959c0-0.529,0.396-0.959,0.892-0.959h10.718 c0.496,0,0.896,0.432,0.896,0.959C52.496,12.546,52.098,12.975,51.602,12.975z"/></g></g><g><g><path fill="#0085BA" d="M51.602,17.205H40.884c-0.493,0-0.892-0.429-0.892-0.959c0-0.529,0.396-0.959,0.892-0.959h10.718 c0.496,0,0.896,0.432,0.896,0.959C52.496,16.775,52.098,17.205,51.602,17.205z"/></g></g><g><g><path fill="#0085BA" d="M51.602,21.435H40.884c-0.493,0-0.892-0.429-0.892-0.959c0-0.529,0.396-0.959,0.892-0.959h10.718 c0.496,0,0.896,0.432,0.896,0.959C52.496,21.004,52.098,21.435,51.602,21.435z"/></g></g></g><g><path fill="#0085BA" d="M25.504,20.933c0,1.161-0.794,2.099-1.773,2.099H9.777c-0.979,0-1.773-0.938-1.773-2.099V11.56 c0-1.16,0.795-2.1,1.773-2.1H23.73c0.979,0,1.772,0.94,1.772,2.1L25.504,20.933L25.504,20.933z"/></g><g><path fill="#0085BA" d="M56.701,80.796H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.753c0-1.957,1.592-3.549,3.549-3.549h52.902 c1.956,0,3.549,1.592,3.549,3.549v73.494C60.25,79.204,58.657,80.796,56.701,80.796z M3.799,1.979 c-0.979,0-1.773,0.797-1.773,1.774v73.494c0,0.979,0.795,1.774,1.773,1.774h52.902c0.979,0,1.773-0.797,1.773-1.774V3.753 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/></g></svg>', ), 'stack' => array( 'label' => __( 'Stack', 'astra' ), 'path' => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" role="img" id="Layer_1" x="0px" y="0px" width="60.5px" height="81px" viewBox="0 0 60.5 81" enable-background="new 0 0 60.5 81" xml:space="preserve"><g><path fill="#0085BA" d="M56.701,80.796H3.799c-1.957,0-3.549-1.592-3.549-3.549V3.753c0-1.957,1.592-3.549,3.549-3.549h52.902 c1.956,0,3.549,1.592,3.549,3.549v73.494C60.25,79.204,58.657,80.796,56.701,80.796z M3.799,1.979 c-0.979,0-1.773,0.797-1.773,1.774v73.494c0,0.979,0.795,1.774,1.773,1.774h52.902c0.979,0,1.773-0.797,1.773-1.774V3.753 c0-0.979-0.795-1.774-1.773-1.774H3.799z"/></g><g><g><g><path fill="#0085BA" d="M35.607,29.821H24.889c-0.493,0-0.892-0.429-0.892-0.959c0-0.529,0.396-0.959,0.892-0.959h10.718 c0.496,0,0.896,0.432,0.896,0.959C36.502,29.392,36.104,29.821,35.607,29.821z"/></g></g><g><g><path fill="#0085BA" d="M35.607,34.051H24.889c-0.493,0-0.892-0.429-0.892-0.959c0-0.529,0.396-0.959,0.892-0.959h10.718 c0.496,0,0.896,0.432,0.896,0.959C36.502,33.621,36.104,34.051,35.607,34.051z"/></g></g><g><g><path fill="#0085BA" d="M35.607,38.281H24.889c-0.493,0-0.892-0.429-0.892-0.959c0-0.529,0.396-0.959,0.892-0.959h10.718 c0.496,0,0.896,0.432,0.896,0.959C36.502,37.85,36.104,38.281,35.607,38.281z"/></g></g></g><g><path fill="#0085BA" d="M39,20.933c0,1.161-0.794,2.099-1.773,2.099H23.273c-0.979,0-1.773-0.938-1.773-2.099V11.56 c0-1.16,0.795-2.1,1.773-2.1h13.954c0.979,0,1.771,0.94,1.771,2.1L39,20.933L39,20.933z"/></g></svg>', ), ), 'section' => 'section-header', 'priority' => 40, 'title' => __( 'Layout', 'astra' ), ), /** * Option: Hide Last item in Menu on mobile device */ array( 'name' => ASTRA_THEME_SETTINGS . '[hide-custom-menu-mobile]', 'default' => astra_get_option( 'hide-custom-menu-mobile' ), 'type' => 'control', 'control' => 'checkbox', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '!=', 'none' ), 'section' => 'section-primary-menu', 'title' => __( 'Hide Last Item in Menu on Mobile', 'astra' ), 'priority' => 7, ), /** * Option: Display outside menu */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-display-outside-menu]', 'type' => 'control', 'control' => 'checkbox', 'required' => array( ASTRA_THEME_SETTINGS . '[hide-custom-menu-mobile]', '!=', '1' ), 'default' => astra_get_option( 'header-display-outside-menu' ), 'section' => 'section-primary-menu', 'title' => __( 'Take Last Item Outside Menu', 'astra' ), 'priority' => 7, ), array( 'name' => 'primary-menu-label-divider', 'type' => 'control', 'control' => 'ast-heading', 'priority' => 39, 'title' => __( 'Mobile Menu', 'astra' ), 'section' => 'section-primary-menu', 'settings' => array(), ), /** * Option: Mobile Header Breakpoint */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-breakpoint]', 'default' => '', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-primary-menu', 'priority' => 40, 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'title' => __( 'Menu Breakpoint', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 0, 'step' => 10, 'max' => 6000, ), ), /** * Option: Toggle on click of button or link. */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target]', 'default' => astra_get_option( 'mobile-header-toggle-target' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-header', 'priority' => 42, 'title' => __( 'Dropdown Target', 'astra' ), 'suffix' => '', 'choices' => array( 'icon' => __( 'Icon', 'astra' ), 'link' => __( 'Link', 'astra' ), ), ), /** * Option: Notice to add # link to parent menu when Link option selected in Dropdown Target. */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target-link-notice]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-header', 'priority' => 41, 'title' => '', 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target]', '==', 'link' ), 'help' => __( 'The parent menu should have a # link for the submenu to open on a link.', 'astra' ), 'settings' => array(), ), /** * Option: Mobile Menu Label */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-menu-label]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-menu-label' ), 'section' => 'section-primary-menu', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '!=', array( 'none' ) ), array( ASTRA_THEME_SETTINGS . '[disable-primary-nav]', '!=', array( '1' ) ), ), 'operator' => 'OR', ), 'priority' => 40, 'title' => __( 'Menu Label', 'astra' ), 'type' => 'control', 'control' => 'text', 'partial' => array( 'selector' => '.ast-mobile-menu-buttons', 'container_inclusive' => false, ), ), /** * Option: Toggle Button Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', 'default' => astra_get_option( 'mobile-header-toggle-btn-style' ), 'section' => 'section-primary-menu', 'title' => __( 'Toggle Button Style', 'astra' ), 'type' => 'control', 'control' => 'select', 'priority' => 42, 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-menu-style]', '!=', 'no-toggle' ), 'choices' => array( 'fill' => __( 'Fill', 'astra' ), 'outline' => __( 'Outline', 'astra' ), 'minimal' => __( 'Minimal', 'astra' ), ), ), /** * Option: Toggle Button Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style-color]', 'default' => astra_get_option( 'mobile-header-toggle-btn-style-color' ), 'type' => 'control', 'control' => 'ast-color', 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-menu-style]', '!=', 'no-toggle' ), 'title' => __( 'Toggle Button Color', 'astra' ), 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'priority' => 42, ), /** * Option: Border Radius */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-border-radius]', 'default' => astra_get_option( 'mobile-header-toggle-btn-border-radius' ), 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-primary-menu', 'title' => __( 'Border Radius', 'astra' ), 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', '!=', 'minimal' ), 'priority' => 42, 'suffix' => '', 'transport' => 'postMessage', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), /** * Option: Toggle on click of button or link. */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target]', 'default' => astra_get_option( 'mobile-header-toggle-target' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'priority' => 42, 'title' => __( 'Dropdown Target', 'astra' ), 'suffix' => '', 'choices' => array( 'icon' => __( 'Icon', 'astra' ), 'link' => __( 'Link', 'astra' ), ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $config = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-header', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Mobile Header */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-header', 'priority' => 999, 'title' => '', 'help' => '<p>' . __( 'More Options Available in Astra Pro!', 'astra' ) . '</p><a href="' . astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ) . '" class="button button-secondary" target="_blank" rel="noopener">' . __( 'Learn More', 'astra' ) . '</a>', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Header_Layout_Configs(); layout/class-astra-blog-layout-configs.php 0000666 00000010452 15214246134 0014701 0 ustar 00 <?php /** * Bottom Footer Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Blog_Layout_Configs' ) ) { /** * Register Blog Layout Customizer Configurations. */ class Astra_Blog_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Blog Layout Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-styling-section-blog-width]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'priority' => 60, 'settings' => array(), ), /** * Option: Blog Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-width]', 'default' => astra_get_option( 'blog-width' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-blog', 'priority' => 50, 'title' => __( 'Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-blog', 'transport' => 'postMessage', 'default' => 1200, 'priority' => 50, 'required' => array( ASTRA_THEME_SETTINGS . '[blog-width]', '===', 'custom' ), 'title' => __( 'Custom Width', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-styling-section-blog-width-end]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'priority' => 50, 'settings' => array(), ), /** * Option: Blog Post Content */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-content]', 'section' => 'section-blog', 'title' => __( 'Post Content', 'astra' ), 'default' => astra_get_option( 'blog-post-content' ), 'type' => 'control', 'control' => 'select', 'priority' => 75, 'choices' => array( 'full-content' => __( 'Full Content', 'astra' ), 'excerpt' => __( 'Excerpt', 'astra' ), ), ), /** * Option: Display Post Structure */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'default' => astra_get_option( 'blog-post-structure' ), 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-blog', 'priority' => 50, 'title' => __( 'Post Structure', 'astra' ), 'choices' => array( 'image' => __( 'Featured Image', 'astra' ), 'title-meta' => __( 'Title & Blog Meta', 'astra' ), ), ), /** * Option: Display Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-meta]', 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-blog', 'default' => astra_get_option( 'blog-meta' ), 'priority' => 50, 'required' => array( ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'contains', 'title-meta' ), 'title' => __( 'Meta', 'astra' ), 'choices' => array( 'comments' => __( 'Comments', 'astra' ), 'category' => __( 'Category', 'astra' ), 'author' => __( 'Author', 'astra' ), 'date' => __( 'Publish Date', 'astra' ), 'tag' => __( 'Tag', 'astra' ), ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Blog_Layout_Configs(); layout/class-astra-site-layout-configs.php 0000666 00000003045 15214246134 0014722 0 ustar 00 <?php /** * Site Layout Option for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Site_Layout_Configs' ) ) { /** * Register Site Layout Customizer Configurations. */ class Astra_Site_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Site Layout Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( array( 'name' => ASTRA_THEME_SETTINGS . '[site-content-width]', 'type' => 'control', 'control' => 'ast-slider', 'default' => 1200, 'section' => 'section-container-layout', 'priority' => 10, 'title' => __( 'Width', 'astra' ), 'required' => array( ASTRA_THEME_SETTINGS . '[site-layout]', '==', 'ast-full-width-layout' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Site_Layout_Configs(); layout/class-astra-site-container-layout-configs.php 0000666 00000013443 15214246134 0016705 0 ustar 00 <?php /** * General Options for Astra Theme. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Site_Container_Layout_Configs' ) ) { /** * Register Astra Site Container Layout Customizer Configurations. */ class Astra_Site_Container_Layout_Configs extends Astra_Customizer_Config_Base { /** * Register Astra Site Container Layout Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-content-layout-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-container-layout', 'priority' => 50, 'settings' => array(), ), /** * Option: Single Page Content Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-content-layout]', 'type' => 'control', 'default' => astra_get_option( 'site-content-layout' ), 'control' => 'select', 'section' => 'section-container-layout', 'priority' => 50, 'title' => __( 'Layout', 'astra' ), 'choices' => array( 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-content-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'single-page-content-layout' ), 'section' => 'section-container-layout', 'title' => __( 'Page Layout', 'astra' ), 'priority' => 55, 'choices' => array( 'default' => __( 'Default', 'astra' ), 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-content-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'single-post-content-layout' ), 'section' => 'section-container-layout', 'priority' => 60, 'title' => __( 'Blog Post Layout', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), /** * Option: Archive Post Content Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-post-content-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'archive-post-content-layout' ), 'section' => 'section-container-layout', 'priority' => 65, 'title' => __( 'Archives Layout', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), /** * Option: Body Background */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-outside-bg-obj-responsive]', 'type' => 'control', 'control' => 'ast-responsive-background', 'default' => astra_get_option( 'site-layout-outside-bg-obj-responsive' ), 'section' => 'section-colors-body', 'transport' => 'postMessage', 'priority' => 25, 'title' => __( 'Background', 'astra' ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $config = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-container-more-feature-divider]', 'type' => 'control', 'default' => astra_get_option( 'site-content-layout' ), 'control' => 'ast-divider', 'section' => 'section-container-layout', 'priority' => 999, 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-container-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-container-layout', 'priority' => 999, 'title' => '', 'help' => '<p>' . __( 'More Options Available in Astra Pro!', 'astra' ) . '</p><a href="' . astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ) . '" class="button button-secondary" target="_blank" rel="noopener">' . __( 'Learn More', 'astra' ) . '</a>', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Site_Container_Layout_Configs(); buttons/class-astra-customizer-button-configs.php 0000666 00000053062 15214246134 0016345 0 ustar 00 <?php /** * Astra Theme Customizer Configuration Base. * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.4.3 */ // No direct access, please. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Button_Configs' ) ) { /** * Register Button Customizer Configurations. */ class Astra_Customizer_Button_Configs extends Astra_Customizer_Config_Base { /** * Register Button Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( array( 'name' => ASTRA_THEME_SETTINGS . '[button-color-styling-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-buttons', 'title' => __( 'Colors and Border', 'astra' ), 'priority' => 17, 'settings' => array(), ), /** * Group: Theme Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'default' => astra_get_option( 'theme-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Color', 'astra' ), 'section' => 'section-buttons', 'transport' => 'postMessage', 'priority' => 18, ), /** * Group: Theme Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'default' => astra_get_option( 'theme-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra' ), 'section' => 'section-buttons', 'transport' => 'postMessage', 'priority' => 19, ), /** * Option: Button Color */ array( 'name' => 'button-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Hover Color */ array( 'name' => 'button-h-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Background Color */ array( 'name' => 'button-bg-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Button Background Hover Color */ array( 'name' => 'button-bg-h-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Global Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-border', 'name' => 'theme-button-border-group-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'theme-button-border-group-border-size' ), 'title' => __( 'Width', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Global Button Border Color */ array( 'name' => 'theme-button-border-group-border-color', 'default' => astra_get_option( 'theme-button-border-group-border-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-color', 'priority' => 12, 'title' => __( 'Color', 'astra' ), ), /** * Option: Global Button Border Hover Color */ array( 'name' => 'theme-button-border-group-border-h-color', 'default' => astra_get_option( 'theme-button-border-group-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-color', 'priority' => 14, 'title' => __( 'Hover Color', 'astra' ), ), /** * Option: Global Button Radius */ array( 'name' => 'button-radius', 'default' => astra_get_option( 'button-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-slider', 'title' => __( 'Border Radius', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), ), /** * Option: Button Padding Section */ array( 'name' => ASTRA_THEME_SETTINGS . '[button-padding-styling-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-buttons', 'title' => __( 'Spacing', 'astra' ), 'priority' => 30, 'settings' => array(), ), /** * Option: Theme Button Padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-button-padding]', 'default' => astra_get_option( 'theme-button-padding' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'section' => 'section-buttons', 'title' => __( 'Padding', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'priority' => 35, ), /** * Option: Primary Header Button Colors Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-primary-menu', 'title' => __( 'Header Button', 'astra' ), 'settings' => array(), 'priority' => 17, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Primary Header Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'default' => astra_get_option( 'primary-header-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Colors', 'astra' ), 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'priority' => 18, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Primary Header Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'default' => astra_get_option( 'primary-header-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra' ), 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'priority' => 19, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Option: Button Text Color */ array( 'name' => 'header-main-rt-section-button-text-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-section-button-text-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Text Hover Color */ array( 'name' => 'header-main-rt-section-button-text-h-color', 'default' => astra_get_option( 'header-main-rt-section-button-text-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Background Color */ array( 'name' => 'header-main-rt-section-button-back-color', 'default' => astra_get_option( 'header-main-rt-section-button-back-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Button Button Hover Color */ array( 'name' => 'header-main-rt-section-button-back-h-color', 'default' => astra_get_option( 'header-main-rt-section-button-back-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), // Option: Custom Menu Button Border. array( 'type' => 'control', 'control' => 'ast-responsive-spacing', 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-padding]', 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 20, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), 'default' => astra_get_option( 'header-main-rt-section-button-padding' ), 'title' => __( 'Padding', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-border', 'name' => 'header-main-rt-section-button-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'header-main-rt-section-button-border-size' ), 'title' => __( 'Width', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Color */ array( 'name' => 'header-main-rt-section-button-border-color', 'default' => astra_get_option( 'header-main-rt-section-button-border-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-color', 'priority' => 12, 'title' => __( 'Color', 'astra' ), ), /** * Option: Button Border Hover Color */ array( 'name' => 'header-main-rt-section-button-border-h-color', 'default' => astra_get_option( 'header-main-rt-section-button-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-color', 'priority' => 14, 'title' => __( 'Hover Color', 'astra' ), ), /** * Option: Button Border Radius */ array( 'name' => 'header-main-rt-section-button-border-radius', 'default' => astra_get_option( 'header-main-rt-section-button-border-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-slider', 'transport' => 'postMessage', 'priority' => 16, 'title' => __( 'Border Radius', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), /** * Option: Transparent Header Button Colors Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-transparent-header', 'title' => __( 'Header Button', 'astra' ), 'settings' => array(), 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Transparent Header Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'default' => astra_get_option( 'transparent-header-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Colors', 'astra' ), 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Transparent Header Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'default' => astra_get_option( 'transparent-header-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra' ), 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Option: Button Text Color */ array( 'name' => 'header-main-rt-trans-section-button-text-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-trans-section-button-text-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Text Hover Color */ array( 'name' => 'header-main-rt-trans-section-button-text-h-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-text-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Background Color */ array( 'name' => 'header-main-rt-trans-section-button-back-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-back-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Button Button Hover Color */ array( 'name' => 'header-main-rt-trans-section-button-back-h-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-back-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), // Option: Custom Menu Button Border. array( 'type' => 'control', 'control' => 'ast-responsive-spacing', 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-trans-section-button-padding]', 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), 'default' => astra_get_option( 'header-main-rt-trans-section-button-padding' ), 'title' => __( 'Padding', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'section' => 'section-transparent-header', 'control' => 'ast-border', 'name' => 'header-main-rt-trans-section-button-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-size' ), 'title' => __( 'Width', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Color */ array( 'name' => 'header-main-rt-trans-section-button-border-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'control' => 'ast-color', 'priority' => 12, 'title' => __( 'Color', 'astra' ), ), /** * Option: Button Border Hover Color */ array( 'name' => 'header-main-rt-trans-section-button-border-h-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'control' => 'ast-color', 'priority' => 14, 'title' => __( 'Hover Color', 'astra' ), ), /** * Option: Button Border Radius */ array( 'name' => 'header-main-rt-trans-section-button-border-radius', 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'section' => 'section-transparent-header', 'control' => 'ast-slider', 'transport' => 'postMessage', 'priority' => 16, 'title' => __( 'Border Radius', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Button_Configs();
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings