File manager - Edit - /home/xfekoga/rooftopcleaners/wp-includes/widgets/customizer-settings.tar
Back
consultstreet-customize-base-customizer-settings.php 0000644 00000012333 15174424627 0017201 0 ustar 00 <?php /** * Header top options. * * @package consultstreet */ defined( 'ABSPATH' ) || exit; /** * Class ConsultStreet_Customize_Base_Option */ class ConsultStreet_Customize_Base_Option { /** * Array to create customizer options. * * @var array */ protected $elements = array(); /** * Active callback array provided in $elements array. * * @var array */ protected $active_callback_old = array(); /** * Record the count of array provided for active callback. * * @var int */ protected $ac_arr_count = 0; /** * Record the count of evaluate() method called. * * @var int */ private $count_evaluate = 0; /** * Setting's default values. * * @var array */ protected $ac_default = array(); /** * ConsultStreet_Customize_Base_Option constructor. */ public function __construct() { // Register customizer options. add_action( 'customize_register', array( $this, 'consultstreet_customizer_options' ) ); // Get array of elements for particular class. $this->elements = $this->elements(); } /** * Provides an array of Menu slug => name for dropdown. * * @return array */ protected function get_menu_options() { $all_menus = get_terms( array( 'taxonomy' => 'nav_menu', 'hide_empty' => true, ) ); $menu_options = array(); $menu_options['none'] = esc_html__( 'None', 'consultstreet' ); foreach ( $all_menus as $menu_item ) { $menu_options[ $menu_item->slug ] = esc_html( $menu_item->name ); } return $menu_options; } /** * Register customizer option. * * @param WP_Customize_Manager $wp_customize Manager instance. */ public function consultstreet_customizer_options( $wp_customize ) { // Loop through array elements. foreach ( $this->elements as $el_key => $el_data ) : /** * Setting. */ $setting_args = $el_data['setting']; $default = isset( $setting_args['default'] ) ? $setting_args['default'] : ''; $option_type = isset( $el_data['setting']['type'] ) ? $el_data['setting']['type'] : 'theme_mod'; $sanitize_callback = isset( $setting_args['sanitize_callback'] ) ? $setting_args['sanitize_callback'] : ''; $wp_customize->add_setting( $el_key, array( 'default' => $default, 'type' => $option_type, 'capability' => 'edit_theme_options', 'sanitize_callback' => $sanitize_callback, ) ); /** * Control. */ $control_args = $el_data['control']; $control_type = $control_args['type']; // Is custom control? $is_custom_control = ( isset( $control_args['is_default_type'] ) && true === $control_args['is_default_type'] ) ? $control_args['is_default_type'] : 0; $control_args['setting'] = $el_key; // If array provided for active callback modify it to function reference. if ( isset( $control_args['active_callback'] ) && is_array( $control_args['active_callback'] ) ) { $this->active_callback_old[] = $control_args['active_callback']; $cb_setting_id = $this->active_callback_old[ $this->ac_arr_count ][0]['setting']; if ( 'consultstreet_pro' === substr( $cb_setting_id, 0, 9 ) && function_exists( 'consultstreet_pro_options' ) ) { $this->ac_default[] = $wp_customize->get_setting( 'consultstreet_pro[' . $cb_setting_id . ']' )->default; } else { $this->ac_default[] = $wp_customize->get_setting( $cb_setting_id )->default; } $control_args['active_callback'] = array( $this, 'evaluate' ); $this->ac_arr_count++; } // If custom control, unset type and use object, else... if ( ! $is_custom_control ) { unset( $control_args['type'] ); $control_type_uc = implode( '_', array_map( 'ucfirst', explode( '_', $control_type ) ) ); $control_type = 'ConsultStreet_Customize_' . $control_type_uc . '_Control'; $wp_customize->add_control( new $control_type( $wp_customize, $el_key, $control_args ) ); } else { $wp_customize->add_control( $el_key, $control_args ); } endforeach; } /** * Evaluates the active callback array. * * @return bool */ public function evaluate() { foreach ( $this->active_callback_old[ ( $this->count_evaluate ) ] as $count => $ruleset ) : $ac_setting_id = $ruleset['setting']; $operator = $ruleset['operator']; if ( 'consultstreet_pro' === substr( $ac_setting_id, 0, 9 ) && function_exists( 'consultstreet_pro_options' ) ) { $option_val = consultstreet_pro_options( $ac_setting_id, 'text_html' ); } else { $option_val = get_theme_mod( $ac_setting_id, 'text_html' ); } $check_val = $ruleset['value']; switch ( $operator ) { case '===': $show[] = ( $option_val === $check_val ) ? true : false; break; case '==': $show[] = ( $option_val == $check_val ) ? true : false; break; case '!==': $show[] = ( $option_val !== $check_val ) ? true : false; break; case '!=': $show[] = ( $option_val != $check_val ) ? true : false; break; default: $show[] = ( $option_val == $check_val ) ? true : false; break; } endforeach; // Evaluate final result. if ( isset( $show ) ) { $this->count_evaluate++; foreach ( $show as $result ) { if ( ! $result ) { return false; } } } return true; } } theme-settings/consultstreet-blog-general-customizer-settings.php 0000644 00000011106 15174424627 0021542 0 ustar 00 <?php /** * General Blog. * * @package consultstreet */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'ConsultStreet_Customize_Blog_General_Option' ) ) : /** * General Blog.. */ class ConsultStreet_Customize_Blog_General_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_general_arcive_single_blog_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 1, 'label' => esc_html__( 'Blog/Archive/Single', 'consultstreet' ), 'section' => 'consultstreet_blog_general', ), ), 'consultstreet_general_blog_arcive_single_content_ordering' => array( 'setting' => array( 'default' => array( 'meta-one', 'title', 'meta-two', 'image', ), 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_sortable' ), ), 'control' => array( 'type' => 'sortable', 'priority' => 5, 'label' => esc_html__( 'General Post', 'consultstreet' ), 'description' => esc_html__( 'Drag & Drop post items to re-arrange the order', 'consultstreet' ), 'section' => 'consultstreet_blog_general', 'choices' => array( 'meta-one' => esc_attr__( 'Meta One', 'consultstreet' ), 'title' => esc_attr__( 'Title', 'consultstreet' ), 'meta-two' => esc_attr__( 'Meta Two', 'consultstreet' ), 'image' => esc_attr__( 'Image', 'consultstreet' ), ), ), ), 'consultstreet_archive_blog_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 15, 'label' => esc_html__( 'Archive Blog Pages', 'consultstreet' ), 'section' => 'consultstreet_blog_general', ), ), 'consultstreet_archive_blog_pages_layout' => array( 'setting' => array( 'default' => 'consultstreet_right_sidebar', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_radio' ), ), 'control' => array( 'type' => 'radio_image', 'priority' => 20, 'label' => esc_html__( 'Layout', 'consultstreet' ), 'section' => 'consultstreet_blog_general', 'choices' => array( 'consultstreet_right_sidebar' => CONSULTSTREET_PARENT_INC_ICON_URI . '/theme-right-sidebar.png', 'consultstreet_left_sidebar' => CONSULTSTREET_PARENT_INC_ICON_URI . '/theme-left-sidebar.png', 'consultstreet_no_sidebar' => CONSULTSTREET_PARENT_INC_ICON_URI . '/theme-fullwidth.png', ), ), ), 'consultstreet_single_blog_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 30, 'label' => esc_html__( 'Single Blog Pages', 'consultstreet' ), 'section' => 'consultstreet_blog_general', ), ), 'consultstreet_single_blog_pages_layout' => array( 'setting' => array( 'default' => 'consultstreet_right_sidebar', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_radio' ), ), 'control' => array( 'type' => 'radio_image', 'priority' => 35, 'label' => esc_html__( 'Layout', 'consultstreet' ), 'section' => 'consultstreet_blog_general', 'choices' => array( 'consultstreet_right_sidebar' => CONSULTSTREET_PARENT_INC_ICON_URI . '/theme-right-sidebar.png', 'consultstreet_left_sidebar' => CONSULTSTREET_PARENT_INC_ICON_URI . '/theme-left-sidebar.png', 'consultstreet_no_sidebar' => CONSULTSTREET_PARENT_INC_ICON_URI . '/theme-fullwidth.png', ), ), ), 'consultstreet_custom_logo_size' => array( 'setting' => array( 'default' => array( 'slider' => 257, 'suffix' => 'px', ), 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_slider' ), ), 'control' => array( 'type' => 'slider', 'priority' => 55, 'label' => esc_html__( 'Logo Width', 'consultstreet' ), 'section' => 'title_tagline', 'input_attrs' => array( 'min' => 0, 'max' => 600, 'step' => 3, ), ), ), ); } } new ConsultStreet_Customize_Blog_General_Option(); endif; theme-settings/consultstreet-footer-copyright-customizer-settings.php 0000644 00000001632 15174424627 0022513 0 ustar 00 <?php /** * Footer Copyright. * * @package consultstreet */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'ConsultStreet_Customize_Footer_Copyright_Option' ) ) : /** * Footer Copyright. */ class ConsultStreet_Customize_Footer_Copyright_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_footer_copright_enabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 5, 'label' => esc_html__( 'Footer Copyright Enable/Disable', 'consultstreet' ), 'section' => 'consultstreet_footer_copyright', ), ), ); } } new ConsultStreet_Customize_Footer_Copyright_Option(); endif; theme-settings/consultstreet-typography-customizer-settings.php 0000644 00000002126 15174424627 0021414 0 ustar 00 <?php /** * Typography. * @package consultstreet */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /*========================================== TYPOGRAPHY ==========================================*/ if ( ! class_exists( 'ConsultStreet_Customize_Theme_Typography_Option' ) ) : /** * Theme Typography option. */ class ConsultStreet_Customize_Theme_Typography_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( /* ---------- Enable/Disable TYPOGRAPHY -------------- */ 'consultstreet_typography_disabled' => array( 'setting' => array( 'default' => false, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 2, 'label' => esc_html__( 'Enable Typography', 'consultstreet' ), 'section' => 'consultstreet_enable_disable_typography', ), ), ); } } new ConsultStreet_Customize_Theme_Typography_Option(); endif; theme-settings/consultstreet-footer-widget-customizer-settings.php 0000644 00000003202 15174424627 0021761 0 ustar 00 <?php /** * Footer widgets. * * @package consultstreet */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'ConsultStreet_Customize_Footer_Widget_Option' ) ) : /** * Option: Footer widget. */ class ConsultStreet_Customize_Footer_Widget_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_footer_widgets_enabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 10, 'label' => esc_html__( 'Footer Widget Area Enable/Disable', 'consultstreet' ), 'section' => 'consultstreet_footer_widgets', ), ), 'consultstreet_footer_container_size' => array( 'setting' => array( 'default' => 'container-full', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_radio' ), ), 'control' => array( 'type' => 'radio', 'priority' => 25, 'is_default_type' => true, 'label' => esc_html__( 'Container Width', 'consultstreet' ), 'section' => 'consultstreet_footer_widgets', 'choices' => array( 'container' => esc_html__( 'Container', 'consultstreet' ), 'container-full' => esc_html__( 'Container Full', 'consultstreet' ), ), ), ), ); } } new ConsultStreet_Customize_Footer_Widget_Option(); endif; theme-settings/consultstreet-other-customizer-settings.php 0000644 00000006431 15174424627 0020332 0 ustar 00 <?php /** * Other. * * @package consultstreet */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'ConsultStreet_Other_General_Option' ) ) : /** * Other.. */ class ConsultStreet_Other_General_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_header_banner_image_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 53, 'label' => esc_html__( 'Magazine Header Settings', 'consultstreet' ), 'section' => 'title_tagline', ), ), 'consultstreet_header_banner_image_disabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 54, 'label' => esc_html__( 'Enable/Disable Banner Image', 'consultstreet' ), 'section' => 'title_tagline', ), ), 'consultstreet_header_banner_image_link' => array( 'setting' => array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', ), 'control' => array( 'type' => 'text', 'priority' => 56, 'is_default_type' => true, 'label' => esc_html__( 'Banner Image Link', 'consultstreet' ), 'section' => 'title_tagline', ), ), 'consultstreet_header_banner_open_new_tab_disabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 57, 'label' => esc_html__( 'Open New Tab Enable/Disable', 'consultstreet' ), 'section' => 'title_tagline', ), ), 'consultstreet_magazine_header_menu_alignment' => array( 'setting' => array( 'default' => 'm-left-auto', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_radio' ), ), 'control' => array( 'type' => 'radio', 'priority' => 58, 'is_default_type' => true, 'label' => esc_html__( 'Magazine Header Menu Alignment', 'consultstreet' ), 'section' => 'title_tagline', 'choices' => array( 'm-left-auto' => esc_html__( 'Left', 'consultstreet' ), 'm-right-left-auto' => esc_html__( 'Center', 'consultstreet' ), ), ), ), 'consultstreet_custom_logo_size' => array( 'setting' => array( 'default' => array( 'slider' => 257, 'suffix' => 'px', ), 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_slider' ), ), 'control' => array( 'type' => 'slider', 'priority' => 52, 'label' => esc_html__( 'Logo Width', 'consultstreet' ), 'section' => 'title_tagline', 'input_attrs' => array( 'min' => 0, 'max' => 600, 'step' => 3, ), ), ), ); } } new ConsultStreet_Other_General_Option(); endif; theme-settings/consultstreet-page-header-customizer-settings.php 0000644 00000003302 15174424627 0021345 0 ustar 00 <?php /** * Page Header Settings. * * @package consultstreet */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /** * Page Header Settings. */ if ( ! class_exists( 'ConsultStreet_Customize_Page_Header_Option' ) ) : class ConsultStreet_Customize_Page_Header_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_page_header_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 1, 'label' => esc_html__( 'Page Header', 'consultstreet' ), 'section' => 'header_image', ), ), 'consultstreet_page_header_disabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 5, 'label' => esc_html__( 'Page Header Enable/Disable', 'consultstreet' ), 'section' => 'header_image', ), ), 'consultstreet_page_header_background_color' => array( 'setting' => array( 'default' => '', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_alpha_color' ), ), 'control' => array( 'type' => 'color', 'priority' => 7, 'label' => esc_html__( 'Background color', 'consultstreet' ), 'section' => 'header_image', 'choices' => array( 'alpha' => true, ), ), ), ); } } new ConsultStreet_Customize_Page_Header_Option(); endif; theme-settings/consultstreet-general-customizer-settings.php 0000644 00000002313 15174424627 0020621 0 ustar 00 <?php /** * Page Header Settings. * * @package consultstreet */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /** * Page Header Settings. */ if ( ! class_exists( 'ConsultStreet_Customize_General_Option' ) ) : class ConsultStreet_Customize_General_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_page_header_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 1, 'label' => esc_html__( 'General Settings', 'consultstreet' ), 'section' => 'consultstreet_theme_general', ), ), 'consultstreet_animation_disabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 2, 'label' => esc_html__( 'Site Animation Enable/Disable', 'consultstreet' ), 'section' => 'consultstreet_theme_general', ), ), ); } } new ConsultStreet_Customize_General_Option(); endif; theme-settings/consultstreet-menu-bar-customizer-settings.php 0000644 00000004112 15174424627 0020711 0 ustar 00 <?php /** * MenuBar. * * @package consultstreet */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'ConsultStreet_Customize_Menu_Bar_Option' ) ) : /** * Menu option. */ class ConsultStreet_Customize_Menu_Bar_Option extends ConsultStreet_Customize_Base_Option { public function elements() { return array( 'consultstreet_main_menu_heading' => array( 'setting' => array(), 'control' => array( 'type' => 'heading', 'priority' => 1, 'label' => esc_html__( 'Menu Settings', 'consultstreet' ), 'section' => 'consultstreet_theme_menu_bar', ), ), 'consultstreet_menu_style' => array( 'setting' => array( 'default' => 'sticky', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_radio' ), ), 'control' => array( 'type' => 'radio', 'priority' => 5, 'is_default_type' => true, 'label' => esc_html__( 'Menu Style', 'consultstreet' ), 'section' => 'consultstreet_theme_menu_bar', 'choices' => array( 'sticky' => esc_html__( 'Sticky', 'consultstreet' ), 'static' => esc_html__( 'Static', 'consultstreet' ), ), ), ), 'consultstreet_menu_container_size' => array( 'setting' => array( 'default' => 'container-full', 'sanitize_callback' => array( 'ConsultStreet_Customizer_Sanitize', 'sanitize_radio' ), ), 'control' => array( 'type' => 'radio', 'priority' => 7, 'is_default_type' => true, 'label' => esc_html__( 'Container Width', 'consultstreet' ), 'section' => 'consultstreet_theme_menu_bar', 'choices' => array( 'container' => esc_html__( 'Container', 'consultstreet' ), 'container-full' => esc_html__( 'Container Full', 'consultstreet' ), ), ), ), ); } } new ConsultStreet_Customize_Menu_Bar_Option(); endif;
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings