PK \QtO O class-astra-font-families.phpnu W+A array( 'fallback' => 'Verdana, Arial, sans-serif', 'weights' => array( '300', '400', '700', ), ), 'Verdana' => array( 'fallback' => 'Helvetica, Arial, sans-serif', 'weights' => array( '300', '400', '700', ), ), 'Arial' => array( 'fallback' => 'Helvetica, Verdana, sans-serif', 'weights' => array( '300', '400', '700', ), ), 'Times' => array( 'fallback' => 'Georgia, serif', 'weights' => array( '300', '400', '700', ), ), 'Georgia' => array( 'fallback' => 'Times, serif', 'weights' => array( '300', '400', '700', ), ), 'Courier' => array( 'fallback' => 'monospace', 'weights' => array( '300', '400', '700', ), ), ); } return apply_filters( 'astra_system_fonts', self::$system_fonts ); } /** * Custom Fonts * * @since 1.0.19 * * @return Array All the custom fonts in Astra */ public static function get_custom_fonts() { $custom_fonts = array(); return apply_filters( 'astra_custom_fonts', $custom_fonts ); } /** * Google Fonts used in astra. * Array is generated from the google-fonts.json file. * * @since 1.0.19 * * @return Array Array of Google Fonts. */ public static function get_google_fonts() { if ( empty( self::$google_fonts ) ) { $google_fonts_file = apply_filters( 'astra_google_fonts_json_file', ASTRA_THEME_DIR . 'assets/fonts/google-fonts.json' ); if ( ! file_exists( ASTRA_THEME_DIR . 'assets/fonts/google-fonts.json' ) ) { return array(); } $file_contants = astra_filesystem()->get_contents( $google_fonts_file ); $google_fonts_json = json_decode( $file_contants, 1 ); foreach ( $google_fonts_json as $key => $font ) { $name = key( $font ); foreach ( $font[ $name ] as $font_key => $single_font ) { if ( 'variants' === $font_key ) { foreach ( $single_font as $variant_key => $variant ) { if ( 'regular' == $variant ) { $font[ $name ][ $font_key ][ $variant_key ] = '400'; } } } self::$google_fonts[ $name ] = array_values( $font[ $name ] ); } } } return apply_filters( 'astra_google_fonts', self::$google_fonts ); } } endif; PK \n ) ) class-astra-fonts.phpnu W+A (array) $variants, ); } } /** * Get Fonts */ public static function get_fonts() { do_action( 'astra_get_fonts' ); return apply_filters( 'astra_add_fonts', self::$fonts ); } /** * Renders the tag for all fonts in the $fonts array. * * @since 1.0.16 Added the filter 'astra_render_fonts' to support custom fonts. * @since 1.0.0 * @return void */ public static function render_fonts() { $font_list = apply_filters( 'astra_render_fonts', self::get_fonts() ); $google_fonts = array(); $font_subset = array(); $system_fonts = Astra_Font_Families::get_system_fonts(); foreach ( $font_list as $name => $font ) { if ( ! empty( $name ) && ! isset( $system_fonts[ $name ] ) ) { // Add font variants. $google_fonts[ $name ] = $font['variants']; // Add Subset. $subset = apply_filters( 'astra_font_subset', '', $name ); if ( ! empty( $subset ) ) { $font_subset[] = $subset; } } } $google_font_url = self::google_fonts_url( $google_fonts, $font_subset ); wp_enqueue_style( 'astra-google-fonts', $google_font_url, array(), ASTRA_THEME_VERSION, 'all' ); } /** * Google Font URL * Combine multiple google font in one URL * * @link https://shellcreeper.com/?p=1476 * @param array $fonts Google Fonts array. * @param array $subsets Font's Subsets array. * * @return string */ public static function google_fonts_url( $fonts, $subsets = array() ) { /* URL */ $base_url = '//fonts.googleapis.com/css'; $font_args = array(); $family = array(); // This is deprecated filter hook. $fonts = apply_filters( 'astra_google_fonts', $fonts ); $fonts = apply_filters( 'astra_google_fonts_selected', $fonts ); /* Format Each Font Family in Array */ foreach ( $fonts as $font_name => $font_weight ) { $font_name = str_replace( ' ', '+', $font_name ); if ( ! empty( $font_weight ) ) { if ( is_array( $font_weight ) ) { $font_weight = implode( ',', $font_weight ); } $font_family = explode( ',', $font_name ); $font_family = str_replace( "'", '', astra_get_prop( $font_family, 0 ) ); $family[] = trim( $font_family . ':' . rawurlencode( trim( $font_weight ) ) ); } else { $family[] = trim( $font_name ); } } /* Only return URL if font family defined. */ if ( ! empty( $family ) ) { /* Make Font Family a String */ $family = implode( '|', $family ); /* Add font family in args */ $font_args['family'] = $family; /* Add font subsets in args */ if ( ! empty( $subsets ) ) { /* format subsets to string */ if ( is_array( $subsets ) ) { $subsets = implode( ',', $subsets ); } $font_args['subset'] = rawurlencode( trim( $subsets ) ); } $font_args['display'] = astra_get_fonts_display_property(); return add_query_arg( $font_args, $base_url ); } return ''; } } PK \>q class-astra-fonts-data.phpnu W+A '; $content .= wp_kses_post( astra_get_prop( $args, 'description' ) ); // Links. if ( astra_get_prop( $args, 'links' ) ) { $content .= '
' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Footer_Layout_Configs(); PK \ʍi i ; configurations/layout/class-astra-header-layout-configs.phpnu W+A __( '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' => '', ), 'header-main-layout-2' => array( 'label' => __( 'Logo Center', 'astra' ), 'path' => '', ), 'header-main-layout-3' => array( 'label' => __( 'Logo Right', 'astra' ), 'path' => '', ), ), ), /** * 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' => '', ), 'stack' => array( 'label' => __( 'Stack', 'astra' ), 'path' => '', ), ), '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' => '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Header_Layout_Configs(); PK \,* * 9 configurations/layout/class-astra-blog-layout-configs.phpnu W+A 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(); PK \G O O @ configurations/layout/class-astra-blog-single-layout-configs.phpnu W+A 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(); PK \NcU% % 9 configurations/layout/class-astra-site-layout-configs.phpnu W+A 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(); PK \%2 <