Submit
Path:
~
/
home
/
getwphos
/
public_html
/
giulianos
/
wp-content
/
themes
/
mechano
/
admin
/
File Content:
customizer-settings.php
<?php function mechano_customize_register__settings($wp_customize) { $mechano_font_weights = array( '100' => '100', '200' => '200', '300' => '300', '400' => '400', '500' => '500', '600' => '600', '700' => '700', '800' => '800', '900' => '900' ); $mechano_setting_yes_no = array( 'Yes' => esc_html__('Yes', 'mechano'), 'No' => esc_html__('No', 'mechano') ); /* ================================================== */ $wp_customize->add_setting( 'mechano_setting_color_link', array( 'default' => '#d84156', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_link', array( 'label' => esc_html__('Link Color', 'mechano'), 'section' => 'mechano_section_colors', 'settings' => 'mechano_setting_color_link' ) ) ); $wp_customize->add_setting( 'mechano_setting_color_link_hover', array( 'default' => '#c60035', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_link_hover', array( 'label' => esc_html__('Link Hover Color', 'mechano'), 'section' => 'mechano_section_colors', 'settings' => 'mechano_setting_color_link_hover' ) ) ); $wp_customize->add_setting( 'mechano_setting_color_headings_text', array( 'default' => '#020014', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_headings_text', array( 'label' => esc_html__('Headings Text Color', 'mechano'), 'section' => 'mechano_section_colors', 'settings' => 'mechano_setting_color_headings_text' ) ) ); $wp_customize->add_setting( 'mechano_setting_color_body_text', array( 'default' => '#32455e', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_body_text', array( 'label' => esc_html__('Body Text Color', 'mechano'), 'section' => 'mechano_section_colors', 'settings' => 'mechano_setting_color_body_text' ) ) ); $wp_customize->add_setting( 'mechano_setting_color_body_bg', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_body_bg', array( 'label' => esc_html__('Body Background Color', 'mechano'), 'section' => 'mechano_section_colors', 'settings' => 'mechano_setting_color_body_bg' ) ) ); /* ================================================== */ $wp_customize->add_setting('mechano_setting_buttons__generic_buttons_style', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_buttons__generic_buttons_style', array('label' => esc_html__('Generic Buttons Style', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_buttons__generic_buttons_style', 'type' => 'select', 'choices' => array("" => esc_html__('Line', 'mechano'), 'is-underline' => esc_html__('Underline', 'mechano'), 'is-solid' => esc_html__('Solid', 'mechano'), 'is-solid-light' => esc_html__('Solid Light', 'mechano'), 'is-3d' => esc_html__('3D', 'mechano'), 'is-shadow' => esc_html__('Shadow', 'mechano'), 'is-shadow-light' => esc_html__('Shadow Light', 'mechano'), 'is-paper' => esc_html__('Paper', 'mechano'), 'is-shift' => esc_html__('Shift', 'mechano'), 'is-circle' => esc_html__('Circle', 'mechano'), 'is-naked' => esc_html__('Naked', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_buttons', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_buttons'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_buttons', array('label' => esc_html__('Buttons Font', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_font_buttons', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_buttons', array('default' => '12', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_buttons', array('label' => esc_html__('Buttons Font Size (px)', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_font_size_buttons', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_buttons', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_buttons', array('label' => esc_html__('Buttons Font Weight', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_font_weight_buttons', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_buttons', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_buttons', array('label' => esc_html__('Buttons Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_letter_spacing_buttons', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1))); $wp_customize->add_setting('mechano_setting_text_transform_buttons', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_buttons', array('label' => esc_html__('Buttons Text Transform', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_text_transform_buttons', 'type' => 'select', 'choices' => array("" => esc_html__('Uppercase', 'mechano'), 'is-buttons-lowercase' => esc_html__('None', 'mechano')))); $wp_customize->add_setting( 'mechano_setting_color_primary_button', array( 'default' => '#0a0a0a', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_primary_button', array( 'label' => esc_html__('Primary Button Color', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_color_primary_button' ) ) ); $wp_customize->add_setting( 'mechano_setting_color_primary_button_hover', array( 'default' => '#215aed', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_primary_button_hover', array( 'label' => esc_html__('Primary Button Hover Color', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_color_primary_button_hover' ) ) ); $wp_customize->add_setting('mechano_setting_buttons__primary_button_border_radius', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_buttons__primary_button_border_radius', array('label' => esc_html__('Primary Button Border Radius (px)', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_buttons__primary_button_border_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1))); $wp_customize->add_setting( 'mechano_setting_color_secondary_button', array( 'default' => '#00a085', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_secondary_button', array( 'label' => esc_html__('Secondary Button Color', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_color_secondary_button' ) ) ); $wp_customize->add_setting( 'mechano_setting_color_secondary_button_hover', array( 'default' => '#009174', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_secondary_button_hover', array( 'label' => esc_html__('Secondary Button Hover Color', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_color_secondary_button_hover' ) ) ); $wp_customize->add_setting('mechano_setting_buttons__secondary_button_border_radius', array('default' => '64', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_buttons__secondary_button_border_radius', array('label' => esc_html__('Secondary Button Border Radius (px)', 'mechano'), 'section' => 'mechano_section_buttons', 'settings' => 'mechano_setting_buttons__secondary_button_border_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_image_logo', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control(new WP_Customize_Media_Control($wp_customize, 'mechano_control_image_logo', array('label' => esc_html__('Image Logo', 'mechano'), 'description' => esc_html__('Upload a logo or choose an image from your media library.', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_image_logo', 'mime_type' => 'image'))); $wp_customize->add_setting('mechano_setting_image_logo_negative', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control(new WP_Customize_Media_Control($wp_customize, 'mechano_control_image_logo_negative', array('label' => esc_html__('Image Logo Negative', 'mechano'), 'description' => esc_html__('Upload a logo or choose an image from your media library. Only needed when your header color is in contrast with your header transparent color.', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_image_logo_negative', 'mime_type' => 'image'))); $wp_customize->add_setting('mechano_setting_font_text_logo', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_text_logo'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_text_logo', array('label' => esc_html__('Text Logo Font', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_text_logo', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_text_logo', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_text_logo'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_text_logo', array('label' => esc_html__('Text Logo Font Size (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_size_text_logo', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 4))); $wp_customize->add_setting('mechano_setting_font_size_text_logo_sticky', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_text_logo_sticky'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_text_logo_sticky', array('label' => esc_html__('Text Logo Sticky Font Size (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_size_text_logo_sticky', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 4))); $wp_customize->add_setting('mechano_setting_font_size_text_logo_mobile', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_text_logo_mobile'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_text_logo_mobile', array('label' => esc_html__('Text Logo Font Size Mobile (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_size_text_logo_mobile', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_text_logo', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_weight_text_logo'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_text_logo', array('label' => esc_html__('Text Logo Font Weight', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_weight_text_logo', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_text_transform_text_logo', array('default' => mechano__get_customize_setting__default_value('mechano_setting_text_transform_text_logo'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_text_logo', array('label' => esc_html__('Text Logo Text Transform', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_text_transform_text_logo', 'type' => 'select', 'choices' => array("" => esc_html__('None', 'mechano'), 'is-site-title-uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_tagline', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_tagline'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_tagline', array('label' => esc_html__('Tagline Font', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_tagline', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_tagline', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_tagline'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_tagline', array('label' => esc_html__('Tagline Font Size (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_size_tagline', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_tagline', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_weight_tagline'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_tagline', array('label' => esc_html__('Tagline Font Weight', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_font_weight_tagline', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_tagline', array('default' => mechano__get_customize_setting__default_value('mechano_setting_letter_spacing_tagline'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_tagline', array('label' => esc_html__('Tagline Letter Spacing (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_letter_spacing_tagline', 'type' => 'number', 'input_attrs' => array('min' => -5, 'max' => 20, 'step' => 1))); $wp_customize->add_setting('mechano_setting_text_transform_tagline', array('default' => mechano__get_customize_setting__default_value('mechano_setting_text_transform_tagline'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_tagline', array('label' => esc_html__('Tagline Text Transform', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_text_transform_tagline', 'type' => 'select', 'choices' => array("" => esc_html__('None', 'mechano'), 'is-tagline-uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_tagline_visibility', array('default' => mechano__get_customize_setting__default_value('mechano_setting_tagline_visibility'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_tagline_visibility', array('label' => esc_html__('Tagline Visibility', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_tagline_visibility', 'type' => 'select', 'choices' => array("" => esc_html__('Show', 'mechano'), 'is-tagline-hidden' => esc_html__('Hide', 'mechano')))); $wp_customize->add_setting('mechano_setting_logo_height', array('default' => '20', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_height', array('label' => esc_html__('Image Logo Height (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_height', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 300, 'step' => 2))); $wp_customize->add_setting('mechano_setting_logo_height_mobile', array('default' => '16', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_height_mobile', array('label' => esc_html__('Image Logo Height Mobile (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_height_mobile', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 300, 'step' => 2))); $wp_customize->add_setting('mechano_setting_logo_height_sticky', array('default' => '30', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_height_sticky', array('label' => esc_html__('Image Logo Sticky Height (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_height_sticky', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 300, 'step' => 2))); $wp_customize->add_setting('mechano_setting_logo_margin', array('default' => '50', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_margin', array('label' => esc_html__('Logo Margin (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_margin', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 500, 'step' => 5))); $wp_customize->add_setting('mechano_setting_logo_margin_mobile', array('default' => '14', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_margin_mobile', array('label' => esc_html__('Logo Margin Mobile (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_margin_mobile', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 500, 'step' => 5))); $wp_customize->add_setting('mechano_setting_logo_container_width', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_container_width', array('label' => esc_html__('Logo Container Width', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_container_width', 'type' => 'select', 'choices' => array("" => esc_html__('Fixed', 'mechano'), 'is-logo-container-full' => esc_html__('Full', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_logo_text', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_logo_text', array('label' => esc_html__('Logo Text Color', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_color_logo_text'))); $wp_customize->add_setting('mechano_setting_color_logo_bg', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_logo_bg', array('label' => esc_html__('Logo Bg Color', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_color_logo_bg'))); $wp_customize->add_setting('mechano_setting_color_logo_bg_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_logo_bg_gradient', array('label' => esc_html__('Logo Bg Gradient Color', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_color_logo_bg_gradient'))); $wp_customize->add_setting('mechano_setting_logo_bg_stretch_left', array('default' => 'is-logo-bg-stretch-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_bg_stretch_left', array('label' => esc_html__('Logo Bg Stretch Left', 'mechano'), 'description' => esc_html__('Only available with header small layouts.', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_bg_stretch_left', 'type' => 'select', 'choices' => array("" => esc_html__('No', 'mechano'), 'is-logo-bg-stretch-left' => esc_html__('Yes', 'mechano')))); $wp_customize->add_setting('mechano_setting_logo_padding', array('default' => '12', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_padding', array('label' => esc_html__('Logo Padding (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_padding', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 500, 'step' => 1))); $wp_customize->add_setting('mechano_setting_logo_border_radius', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_border_radius', array('label' => esc_html__('Logo Border Radius (px)', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_border_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 2))); $wp_customize->add_setting('mechano_setting_logo_behaviour', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_logo_behaviour', array('label' => esc_html__('Logo Behaviour', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_behaviour', 'type' => 'select', 'choices' => array("" => esc_html__('Default', 'mechano'), 'is-logo-stick-with-menu' => esc_html__('Stick with Menu', 'mechano')))); $wp_customize->add_setting('mechano_setting_logo_hover_effect', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_logo_hover_effect', array('label' => esc_html__('Logo Hover Effect', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_logo_hover_effect', 'type' => 'select', 'choices' => array("" => esc_html__('None', 'mechano'), 'is-logo-hover-shine' => esc_html__('Shine', 'mechano'), 'is-logo-hover-zoom' => esc_html__('Zoom', 'mechano'), 'is-logo-hover-zoom-rotate' => esc_html__('Zoom Rotate', 'mechano'), 'is-logo-hover-drop-shadow' => esc_html__('Drop Shadow', 'mechano'), 'is-logo-hover-skew' => esc_html__('Skew', 'mechano')))); $wp_customize->add_setting('mechano_setting_before_logo_area_visibility', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_before_logo_area_visibility', array('label' => esc_html__('Before Logo Area Visibility', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_before_logo_area_visibility', 'type' => 'select', 'choices' => array("" => esc_html__('Show on desktop only', 'mechano'), 'is-site-branding-left-show' => esc_html__('Show on any device', 'mechano'), 'is-site-branding-left-hide' => esc_html__('Hide', 'mechano')))); $wp_customize->add_setting('mechano_setting_after_logo_area_visibility', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_after_logo_area_visibility', array('label' => esc_html__('After Logo Area Visibility', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_after_logo_area_visibility', 'type' => 'select', 'choices' => array("" => esc_html__('Show on desktop only', 'mechano'), 'is-site-branding-right-show' => esc_html__('Show on any device', 'mechano'), 'is-site-branding-right-hide' => esc_html__('Hide', 'mechano')))); $wp_customize->add_setting('mechano_setting_before_logo_area_items_align', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_before_logo_area_items_align', array('label' => esc_html__('Before Logo Area Items Align', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_before_logo_area_items_align', 'type' => 'select', 'choices' => array("" => esc_html__('Center', 'mechano'), 'is-site-branding-left-align-items-left' => esc_html__('Left', 'mechano'), 'is-site-branding-left-align-items-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_after_logo_area_items_align', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_after_logo_area_items_align', array('label' => esc_html__('After Logo Area Items Align', 'mechano'), 'section' => 'title_tagline', 'settings' => 'mechano_setting_after_logo_area_items_align', 'type' => 'select', 'choices' => array("" => esc_html__('Center', 'mechano'), 'is-site-branding-right-align-items-left' => esc_html__('Left', 'mechano'), 'is-site-branding-right-align-items-right' => esc_html__('Right', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_font_h1', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_h1'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_h1', array('label' => esc_html__('Heading Font (H1)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_h1', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_h1', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_h1'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_h1', array('label' => esc_html__('Heading (H1) Font Size (px)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_size_h1', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_h1', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_weight_h1'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_h1', array('label' => esc_html__('Heading Font Weight (H1)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_weight_h1', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_text_transform_h1', array('default' => mechano__get_customize_setting__default_value('mechano_setting_text_transform_h1'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_h1', array('label' => esc_html__('Heading Font Text Transform (H1)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_text_transform_h1', 'type' => 'select', 'choices' => array('none' => esc_html__('None', 'mechano'), 'uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_h2_h6', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_h2_h6'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_h2_h6', array('label' => esc_html__('Sub Heading Font (H2-H6)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_h2_h6', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_weight_h2_h6', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_weight_h2_h6'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_h2_h6', array('label' => esc_html__('Sub Heading Font Weight (H2-H6)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_weight_h2_h6', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_text_transform_h2_h6', array('default' => mechano__get_customize_setting__default_value('mechano_setting_text_transform_h2_h6'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_h2_h6', array('label' => esc_html__('Sub Heading Font Text Transform (H2-H6)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_text_transform_h2_h6', 'type' => 'select', 'choices' => array('none' => esc_html__('None', 'mechano'), 'uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_body', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_body'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_body', array('label' => esc_html__('Body Font', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_body', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_body', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_body'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_body', array('label' => esc_html__('Body Font Size (px)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_size_body', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_size_body_mobile', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_size_body_mobile'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_body_mobile', array('label' => esc_html__('Body Font Size Mobile (px)', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_size_body_mobile', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_body_line_height', array('default' => mechano__get_customize_setting__default_value('mechano_setting_body_line_height'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_body_line_height', array('label' => esc_html__('Body Line Height', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_body_line_height', 'type' => 'number', 'input_attrs' => array('min' => 1, 'max' => 3, 'step' => 0.1))); $wp_customize->add_setting('mechano_setting_font_styles', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_styles'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_styles', array('label' => esc_html__('Include All Font Weights (100-900)', 'mechano'), 'description' => esc_html__('Bold/italic styles.', 'mechano'), 'section' => 'mechano_section_fonts', 'settings' => 'mechano_setting_font_styles', 'type' => 'select', 'choices' => array('No' => esc_html__('No', 'mechano'), 'Yes' => esc_html__('Yes', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_char_sets_latin', array('default' => 1, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_latin', array('label' => esc_html__('Latin Characters', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_latin', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_font_char_sets_latin_ext', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_latin_ext', array('label' => esc_html__('Latin Characters (extended)', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_latin_ext', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_font_char_sets_cyrillic', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_cyrillic', array('label' => esc_html__('Cyrillic Characters', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_cyrillic', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_font_char_sets_cyrillic_ext', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_cyrillic_ext', array('label' => esc_html__('Cyrillic Characters (extended)', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_cyrillic_ext', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_font_char_sets_greek', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_greek', array('label' => esc_html__('Greek Characters', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_greek', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_font_char_sets_greek_ext', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_greek_ext', array('label' => esc_html__('Greek Characters (extended)', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_greek_ext', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_font_char_sets_vietnamese', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_char_sets_vietnamese', array('label' => esc_html__('Vietnamese Characters', 'mechano'), 'section' => 'mechano_section_chars', 'settings' => 'mechano_setting_font_char_sets_vietnamese', 'type' => 'checkbox')); /* ================================================== */ $wp_customize->add_setting('mechano_setting_body_layout', array('default' => mechano__get_customize_setting__default_value('mechano_setting_body_layout'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_body_layout', array('label' => esc_html__('Body Layout', 'mechano'), 'section' => 'mechano_section_layout', 'settings' => 'mechano_setting_body_layout', 'type' => 'select', 'choices' => array('is-body-full-width' => esc_html__('Full-width', 'mechano'), 'is-body-boxed' => esc_html__('Boxed', 'mechano'), 'is-middle-boxed' => esc_html__('Middle Boxed', 'mechano'), 'is-posts-boxed' => esc_html__('Posts Boxed', 'mechano')))); $wp_customize->add_setting('mechano_setting_body_top_bottom_margin', array('default' => mechano__get_customize_setting__default_value('mechano_setting_body_top_bottom_margin'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_body_top_bottom_margin', array('label' => esc_html__('Body Top-Bottom Margin', 'mechano'), 'section' => 'mechano_section_layout', 'settings' => 'mechano_setting_body_top_bottom_margin', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 400, 'step' => 20))); $wp_customize->add_setting('mechano_setting_content_width', array('default' => mechano__get_customize_setting__default_value('mechano_setting_content_width'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_content_width', array('label' => esc_html__('Content Width (px)', 'mechano'), 'section' => 'mechano_section_layout', 'settings' => 'mechano_setting_content_width', 'type' => 'number', 'input_attrs' => array('min' => 500, 'max' => 5000, 'step' => 10))); $wp_customize->add_setting('mechano_setting_page_post_content_width', array('default' => mechano__get_customize_setting__default_value('mechano_setting_page_post_content_width'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_page_post_content_width', array('label' => esc_html__('Page/Post Content Width (px)', 'mechano'), 'section' => 'mechano_section_layout', 'settings' => 'mechano_setting_page_post_content_width', 'type' => 'number', 'input_attrs' => array('min' => 320, 'max' => 2000, 'step' => 10))); $wp_customize->add_setting('mechano_setting_mobile_zoom', array('default' => mechano__get_customize_setting__default_value('mechano_setting_mobile_zoom'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_mobile_zoom', array('label' => esc_html__('Mobile Zoom', 'mechano'), 'section' => 'mechano_section_layout', 'settings' => 'mechano_setting_mobile_zoom', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_smooth_scroll', array('default' => mechano__get_customize_setting__default_value('mechano_setting_smooth_scroll'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_smooth_scroll', array('label' => esc_html__('Smooth Scroll', 'mechano'), 'section' => 'mechano_section_layout', 'settings' => 'mechano_setting_smooth_scroll', 'type' => 'select', 'choices' => array('no' => esc_html__('No', 'mechano'), 'yes' => esc_html__('Yes', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_header_layout', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_layout'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_header_layout', array('label' => esc_html__('Header Layout', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_layout', 'type' => 'select', 'choices' => array('is-menu-top is-menu-bar' => esc_html__('Menu Top', 'mechano'), 'is-menu-top is-menu-bar is-logo-overflow' => esc_html__('Menu Top Logo Overflow', 'mechano'), 'is-menu-bottom is-menu-bar' => esc_html__('Menu Bottom', 'mechano'), 'is-menu-bottom is-menu-bar is-menu-bottom-overflow' => esc_html__('Menu Bottom Overflow', 'mechano'), 'is-header-row' => esc_html__('Header One Row', 'mechano'), 'is-header-small' => esc_html__('Header Small', 'mechano'), 'is-header-small is-header-logo-center' => esc_html__('Header Small Logo Center', 'mechano'), 'is-header-vertical is-header-vertical-left' => esc_html__('Header Vertical Left', 'mechano'), 'is-header-vertical is-header-vertical-right' => esc_html__('Header Vertical Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_width', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_width'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_width', array('label' => esc_html__('Header Width', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_width', 'type' => 'select', 'choices' => array('is-header-full-width' => esc_html__('Full', 'mechano'), 'is-header-fixed-width' => esc_html__('Fixed', 'mechano'), 'is-header-full-with-margins' => esc_html__('Full with Margins', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_padding', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_padding'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_padding', array('label' => esc_html__('Header Padding', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_padding', 'type' => 'select', 'choices' => array("" => esc_html__('Left and Right', 'mechano'), 'is-header-padding-left' => esc_html__('Left Only', 'mechano'), 'is-header-padding-right' => esc_html__('Right Only', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_bg_img', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'mechano_control_header_bg_img', array('label' => esc_html__('Header Background Image', 'mechano'), 'description' => esc_html__('Upload an image or choose from your media library.', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_bg_img'))); $wp_customize->add_setting('mechano_setting_header_parallax_effect', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_parallax_effect'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_header_parallax_effect', array('label' => esc_html__('Header Parallax Effect', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_parallax_effect', 'type' => 'select', 'choices' => array('is-header-parallax-no' => esc_html__('No', 'mechano'), 'is-header-parallax' => esc_html__('Yes', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_shadow', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_shadow'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_shadow', array('label' => esc_html__('Header Shadow', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_shadow', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-header-shadow-soft' => esc_html__('Soft', 'mechano'), 'is-header-shadow-soft-short' => esc_html__('Soft Short', 'mechano'), 'is-header-shadow-soft-shorter' => esc_html__('Soft Shorter', 'mechano'), 'is-header-shadow-soft-long' => esc_html__('Soft Long', 'mechano'), 'is-header-shadow-offset' => esc_html__('Offset', 'mechano'), 'is-header-shadow-sides' => esc_html__('Sides', 'mechano'), 'is-header-shadow-layers' => esc_html__('Layers', 'mechano'), 'is-header-shadow-inset' => esc_html__('Inset', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_sticky_shadow', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_sticky_shadow'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_sticky_shadow', array('label' => esc_html__('Header Sticky Shadow', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_sticky_shadow', 'type' => 'select', 'choices' => array('' => esc_html__('Inherit', 'mechano'), 'is-header-sticky-shadow-soft' => esc_html__('Soft', 'mechano'), 'is-header-sticky-shadow-soft-short' => esc_html__('Soft Short', 'mechano'), 'is-header-sticky-shadow-soft-shorter' => esc_html__('Soft Shorter', 'mechano'), 'is-header-sticky-shadow-soft-long' => esc_html__('Soft Long', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_inner_style', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_inner_style'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_inner_style', array('label' => esc_html__('Header Inner Style', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_inner_style', 'type' => 'select', 'choices' => array('' => esc_html__('Minimal', 'mechano'), 'is-header-inline-borders' => esc_html__('Inline Borders', 'mechano'), 'is-header-inline-borders is-header-inline-borders-light' => esc_html__('Inline Borders Light', 'mechano'), 'is-header-inline-borders is-header-inline-borders-bold' => esc_html__('Inline Borders Bold', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_transparent_style', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_transparent_style'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_transparent_style', array('label' => esc_html__('Header Transparent Style', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_transparent_style', 'type' => 'select', 'choices' => array('' => esc_html__('Minimal', 'mechano'), 'is-header-transparent-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-header-border-fixed' => esc_html__('Border Bottom Fixed', 'mechano'), 'is-header-transparent-border-all' => esc_html__('Border All', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_bg_blur', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_bg_blur'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_bg_blur', array('label' => esc_html__('Header Bg Blur (Experimental)', 'mechano'), 'description' => esc_html__('Incompatible with header smart sticky.', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_bg_blur', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-header-bg-blur-slightly' => esc_html__('Slightly', 'mechano'), 'is-header-bg-blur-medium' => esc_html__('Medium', 'mechano'), 'is-header-bg-blur-more' => esc_html__('More', 'mechano'), 'is-header-bg-blur-intense' => esc_html__('Intense', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_bg_video', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_header_bg_video', array('label' => esc_html__('Header Background Video', 'mechano'), 'description' => esc_html__('YouTube, Vimeo page url.', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_bg_video', 'type' => 'text')); $wp_customize->add_setting('mechano_setting_header_mask_style', array('default' => 'solid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_mask_style', array('label' => esc_html__('Header Mask Style', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_mask_style', 'type' => 'select', 'choices' => array('horizontal' => esc_html__('Horizontal Gradient', 'mechano'), 'vertical' => esc_html__('Vertical Gradient', 'mechano'), 'radial' => esc_html__('Radial Gradient', 'mechano'), 'solid' => esc_html__('Solid Color', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_header_mask_1', array('default' => '#262100', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_mask_1', array('label' => esc_html__('Header Mask Color 1', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_mask_1'))); $wp_customize->add_setting('mechano_setting_color_header_mask_2', array('default' => '#d3ac47', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_mask_2', array('label' => esc_html__('Header Mask Color 2', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_mask_2'))); $wp_customize->add_setting('mechano_setting_header_mask_opacity', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_mask_opacity', array('label' => esc_html__('Header Mask Opacity', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_mask_opacity', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 1, 'step' => 0.05))); $wp_customize->add_setting('mechano_setting_header_half_transparent_bg_opacity', array('default' => '0.45', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_half_transparent_bg_opacity', array('label' => esc_html__('Header Half Transparent Bg Opacity', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_half_transparent_bg_opacity', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 1, 'step' => 0.05))); $wp_customize->add_setting('mechano_setting_header_text_color', array('default' => mechano__get_customize_setting__default_value('mechano_setting_header_text_color'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_text_color', array('label' => esc_html__('Header Text Color', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_text_color', 'type' => 'select', 'choices' => array('is-header-light' => esc_html__('Light', 'mechano'), 'is-header-dark' => esc_html__('Dark', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_header_text_custom', array('default' => '#222222', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_text_custom', array('label' => esc_html__('Header Text Custom Color', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_text_custom'))); $wp_customize->add_setting('mechano_setting_color_header_border', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_border', array('label' => esc_html__('Header Border Color', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_border'))); $wp_customize->add_setting('mechano_setting_color_header_border_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_border_gradient', array('label' => esc_html__('Header Border Gradient Color', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_border_gradient'))); $wp_customize->add_setting('mechano_setting_header_border_opacity', array('default' => '0.08', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_opacity', array('label' => esc_html__('Header Border Opacity', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_opacity', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 1, 'step' => 0.04))); $wp_customize->add_setting('mechano_setting_color_header_bg', array('default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_bg', array('label' => esc_html__('Header Background Color', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_bg'))); $wp_customize->add_setting('mechano_setting_color_header_background_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_header_background_gradient', array('label' => esc_html__('Header Background Gradient Color', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_color_header_background_gradient'))); $wp_customize->add_setting('mechano_setting_header_search', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_header_search', array('label' => esc_html__('Header Search', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_search', 'type' => 'select', 'choices' => array("" => esc_html__('Yes', 'mechano'), 'is-header-search-disabled' => esc_html__('No', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_row_padding', array('default' => '12', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_row_padding', array('label' => esc_html__('Header Row Padding (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_row_padding', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 500, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_vertical_width', array('default' => '260', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_vertical_width', array('label' => esc_html__('Header Vertical Width (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_vertical_width', 'type' => 'number', 'input_attrs' => array('min' => 100, 'max' => 600, 'step' => 10))); $wp_customize->add_setting('mechano_setting_header_bg_shape', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_header_bg_shape', array('label' => esc_html__('Header Bg Shape', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_bg_shape', 'type' => 'select', 'choices' => array("" => esc_html__('None', 'mechano'), 'round' => esc_html__('Round', 'mechano'), 'round_layers' => esc_html__('Round Layers', 'mechano'), 'curtain' => esc_html__('Curtain', 'mechano'), 'chevron' => esc_html__('Chevron', 'mechano'), 'cut_left' => esc_html__('Cut Left', 'mechano'), 'cut_left_round' => esc_html__('Cut Left Round', 'mechano'), 'cut_right' => esc_html__('Cut Right', 'mechano'), 'cut_right_round' => esc_html__('Cut Right Round', 'mechano'), 'wave_1' => esc_html__('Wave 1', 'mechano'), 'wave_2' => esc_html__('Wave 2', 'mechano'), 'wave_3' => esc_html__('Wave 3', 'mechano'), 'ribbon' => esc_html__('Ribbon', 'mechano'), 'ribbon_round' => esc_html__('Ribbon Round', 'mechano'), 'lines' => esc_html__('Lines', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_bg_shape_height', array('default' => '50', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_bg_shape_height', array('label' => esc_html__('Header Bg Shape Height (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_bg_shape_height', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 5))); $wp_customize->add_setting('mechano_setting_header_border_top_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_top_width', array('label' => esc_html__('Header Border Top Width (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_top_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_border_bottom_width', array('default' => '1', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_bottom_width', array('label' => esc_html__('Header Border Bottom Width (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_bottom_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_border_left_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_left_width', array('label' => esc_html__('Header Border Left Width (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_left_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_border_right_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_right_width', array('label' => esc_html__('Header Border Right Width (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_right_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_border_top_radius', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_top_radius', array('label' => esc_html__('Header Border Top Radius (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_top_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 2))); $wp_customize->add_setting('mechano_setting_header_border_bottom_radius', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_border_bottom_radius', array('label' => esc_html__('Header Border Bottom Radius (px)', 'mechano'), 'section' => 'mechano_section_header_general', 'settings' => 'mechano_setting_header_border_bottom_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 2))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_menu_behaviour', array('default' => mechano__get_customize_setting__default_value('mechano_setting_menu_behaviour'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_menu_behaviour', array('label' => esc_html__('Menu Behaviour', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_behaviour', 'type' => 'select', 'choices' => array('is-menu-sticky' => esc_html__('Sticky', 'mechano'), 'is-menu-sticky is-menu-smart-sticky' => esc_html__('Smart Sticky', 'mechano'), 'is-menu-static' => esc_html__('Static', 'mechano')))); $wp_customize->add_setting('mechano_setting_menu_width', array('default' => mechano__get_customize_setting__default_value('mechano_setting_menu_width'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_menu_width', array('label' => esc_html__('Menu Width', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_width', 'type' => 'select', 'choices' => array('is-menu-fixed-width' => esc_html__('Fixed', 'mechano'), 'is-menu-fixed-bg' => esc_html__('Fixed Bg', 'mechano'), 'is-menu-full' => esc_html__('Full', 'mechano')))); $wp_customize->add_setting('mechano_setting_menu_height', array('default' => '80', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_menu_height', array('label' => esc_html__('Menu Height (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_height', 'type' => 'number', 'input_attrs' => array('min' => 10, 'max' => 200, 'step' => 5))); $wp_customize->add_setting('mechano_setting_menu_sticky_height', array('default' => '60', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_menu_sticky_height', array('label' => esc_html__('Menu Sticky Height (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_sticky_height', 'type' => 'number', 'input_attrs' => array('min' => 10, 'max' => 200, 'step' => 5))); $wp_customize->add_setting('mechano_setting_header_menu_align', array('default' => 'is-menu-align-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_align', array('label' => esc_html__('Menu Align', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_align', 'type' => 'select', 'choices' => array('is-menu-align-center' => esc_html__('Center', 'mechano'), 'is-menu-align-left' => esc_html__('Left', 'mechano'), 'is-menu-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_menu_shadow', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_shadow', array('label' => esc_html__('Menu Shadow', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_shadow', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-menu-shadow-soft' => esc_html__('Soft', 'mechano'), 'is-menu-shadow-soft-short' => esc_html__('Soft Short', 'mechano'), 'is-menu-shadow-soft-shorter' => esc_html__('Soft Shorter', 'mechano'), 'is-menu-shadow-soft-long' => esc_html__('Soft Long', 'mechano'), 'is-menu-shadow-offset' => esc_html__('Offset', 'mechano'), 'is-menu-shadow-sides' => esc_html__('Sides', 'mechano'), 'is-menu-shadow-layers' => esc_html__('Layers', 'mechano'), 'is-menu-shadow-inset' => esc_html__('Inset', 'mechano')))); $wp_customize->add_setting('mechano_setting_menu_sticky_shadow', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_sticky_shadow', array('label' => esc_html__('Menu Sticky Shadow', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_sticky_shadow', 'type' => 'select', 'choices' => array('' => esc_html__('Inherit', 'mechano'), 'is-menu-sticky-shadow-soft' => esc_html__('Soft', 'mechano'), 'is-menu-sticky-shadow-soft-short' => esc_html__('Soft Short', 'mechano'), 'is-menu-sticky-shadow-soft-shorter' => esc_html__('Soft Shorter', 'mechano'), 'is-menu-sticky-shadow-soft-long' => esc_html__('Soft Long', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_menu', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_menu'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_menu', array('label' => esc_html__('Menu Font', 'mechano'), 'description' => "", 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_font_menu', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_nav_menu', array('default' => '13', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_nav_menu', array('label' => esc_html__('Menu Font Size (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_font_size_nav_menu', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_nav_menu', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_nav_menu', array('label' => esc_html__('Menu Font Weight', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_font_weight_nav_menu', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_nav_menu', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_nav_menu', array('label' => esc_html__('Menu Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_letter_spacing_nav_menu', 'type' => 'number', 'input_attrs' => array('min' => -5, 'max' => 20, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_menu_text_transform', array('default' => 'is-menu-uppercase', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_text_transform', array('label' => esc_html__('Menu Text Transform', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_text_transform', 'type' => 'select', 'choices' => array('is-menu-uppercase' => esc_html__('Uppercase', 'mechano'), 'is-menu-none-uppercase' => esc_html__('None', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_menu_border_top_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_border_top_width', array('label' => esc_html__('Menu Border Top Width (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_border_top_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_menu_border_bottom_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_border_bottom_width', array('label' => esc_html__('Menu Border Bottom Width (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_border_bottom_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_menu_border_left_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_border_left_width', array('label' => esc_html__('Menu Border Left Width (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_border_left_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_menu_border_right_width', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_border_right_width', array('label' => esc_html__('Menu Border Right Width (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_border_right_width', 'type' => 'number', 'input_attrs' => array('min' => -30, 'max' => 30, 'step' => 1))); $wp_customize->add_setting('mechano_setting_header_menu_border_top_radius', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_border_top_radius', array('label' => esc_html__('Menu Border Top Radius (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_border_top_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 2))); $wp_customize->add_setting('mechano_setting_header_menu_border_bottom_radius', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_border_bottom_radius', array('label' => esc_html__('Menu Border Bottom Radius (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_border_bottom_radius', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 200, 'step' => 2))); $wp_customize->add_setting('mechano_setting_menu_links_borders', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_links_borders', array('label' => esc_html__('Menu Links Borders', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_links_borders', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-menu-inline-borders' => esc_html__('Side', 'mechano'), 'is-menu-inline-borders is-menu-inline-borders-top' => esc_html__('Side and Top', 'mechano'), 'is-menu-inline-borders is-menu-inline-borders-bottom' => esc_html__('Side and Bottom', 'mechano')))); $wp_customize->add_setting('mechano_setting_menu_links_borders_style', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_links_borders_style', array('label' => esc_html__('Menu Links Borders Style', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_links_borders_style', 'type' => 'select', 'choices' => array('' => esc_html__('Thin', 'mechano'), 'is-menu-inline-borders-bold' => esc_html__('Bold', 'mechano'), 'is-menu-inline-borders-light' => esc_html__('Light', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_menu_link_hover_style', array('default' => 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-cut-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_link_hover_style', array('label' => esc_html__('Menu Link Hover Style', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_link_hover_style', 'type' => 'select', 'choices' => array("" => esc_html__('Legacy', 'mechano'), 'is-menu-hover-underline' => esc_html__('Underline', 'mechano'), 'is-menu-hover-underline is-menu-hover-underline-bold' => esc_html__('Underline Bold', 'mechano'), 'is-menu-hover-overline' => esc_html__('Overline', 'mechano'), 'is-menu-hover-badge' => esc_html__('Badge', 'mechano'), 'is-menu-hover-badge is-menu-hover-badge-horizontal' => esc_html__('Badge Horizontal', 'mechano'), 'is-menu-hover-badge is-menu-hover-badge-center' => esc_html__('Badge Center', 'mechano'), 'is-menu-hover-badge is-menu-hover-badge-round' => esc_html__('Badge Round', 'mechano'), 'is-menu-hover-solid' => esc_html__('Solid', 'mechano'), 'is-menu-hover-solid-horizontal is-menu-hover-solid' => esc_html__('Solid Horizontal', 'mechano'), 'is-menu-hover-solid is-menu-hover-skew' => esc_html__('Solid Skew', 'mechano'), 'is-menu-hover-solid is-menu-hover-skew is-menu-hover-solid-horizontal' => esc_html__('Solid Skew Horizontal', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow' => esc_html__('Solid Overflow', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-arrow' => esc_html__('Solid Arrow', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-arrow-left' => esc_html__('Solid Arrow Left', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-arrow-right' => esc_html__('Solid Arrow Right', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-cut-left' => esc_html__('Solid Cut Left', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-cut-right' => esc_html__('Solid Cut Right', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-chat-box' => esc_html__('Solid Chat Box', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-ribbon' => esc_html__('Ribbon', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-chevron' => esc_html__('Chevron', 'mechano'), 'is-menu-hover-solid is-menu-hover-overflow is-menu-hover-paper-tear' => esc_html__('Paper Tear', 'mechano'), 'is-menu-hover-borders' => esc_html__('Borders', 'mechano'), 'is-menu-hover-borders is-menu-hover-borders-bold' => esc_html__('Borders Bold', 'mechano'), 'is-menu-hover-borders is-menu-hover-borders-round' => esc_html__('Borders Round', 'mechano'), 'is-menu-hover-borders is-menu-hover-borders-round is-menu-hover-borders-bold' => esc_html__('Borders Round Bold', 'mechano'), 'is-menu-hover-border-top' => esc_html__('Border Top', 'mechano'), 'is-menu-hover-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-menu-hover-marker' => esc_html__('Marker', 'mechano'), 'is-menu-hover-marker is-menu-hover-marker-bold' => esc_html__('Marker Bold', 'mechano'), 'is-menu-hover-marker is-menu-hover-marker-horizontal' => esc_html__('Marker Horizontal', 'mechano'), 'is-menu-hover-marker is-menu-hover-marker-horizontal is-menu-hover-marker-bold' => esc_html__('Marker Horizontal Bold', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_menu_style', array('default' => 'is-menu-light', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_menu_style', array('label' => esc_html__('Menu Text Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_menu_style', 'type' => 'select', 'choices' => array('is-menu-light' => esc_html__('Light', 'mechano'), 'is-menu-dark' => esc_html__('Dark', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_menu_active_link_text', array('default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_active_link_text', array('label' => esc_html__('Menu Active Link Text Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_active_link_text'))); $wp_customize->add_setting('mechano_setting_color_menu_active_link_bg_border', array('default' => '#b2002f', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_active_link_bg_border', array('label' => esc_html__('Menu Active Link Bg-Border Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_active_link_bg_border'))); $wp_customize->add_setting('mechano_setting_color_menu_link_hover_text', array('default' => '#0a0a0a', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_link_hover_text', array('label' => esc_html__('Menu Link Hover Text Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_link_hover_text'))); $wp_customize->add_setting('mechano_setting_color_menu_link_hover_bg_border', array('default' => '#e5ddd0', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_link_hover_bg_border', array('label' => esc_html__('Menu Link Hover Bg-Border Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_link_hover_bg_border'))); $wp_customize->add_setting('mechano_setting_color_menu_bg', array('default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_bg', array('label' => esc_html__('Menu Background Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_bg'))); $wp_customize->add_setting('mechano_setting_color_menu_background_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_background_gradient', array('label' => esc_html__('Menu Background Gradient Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_background_gradient'))); $wp_customize->add_setting('mechano_setting_color_menu_border', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_border', array('label' => esc_html__('Menu Border Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_border'))); $wp_customize->add_setting('mechano_setting_color_menu_border_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_menu_border_gradient', array('label' => esc_html__('Menu Border Gradient Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_menu_border_gradient'))); $wp_customize->add_setting('mechano_setting_menu_border_opacity', array('default' => '1', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_menu_border_opacity', array('label' => esc_html__('Menu Border Opacity', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_menu_border_opacity', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 1, 'step' => 0.04))); $wp_customize->add_setting('mechano_setting_color_sub_menu_active_link_text', array('default' => '#b79f8a', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_sub_menu_active_link_text', array('label' => esc_html__('Sub Menu Active Link Text Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_sub_menu_active_link_text'))); $wp_customize->add_setting('mechano_setting_color_sub_menu_link_hover_text', array('default' => '#111111', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_sub_menu_link_hover_text', array('label' => esc_html__('Sub Menu Link Hover Text Color', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_color_sub_menu_link_hover_text'))); $wp_customize->add_setting('mechano_setting_header_sub_menu_style', array('default' => 'is-submenu-light', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_sub_menu_style', array('label' => esc_html__('Sub Menu Style', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_sub_menu_style', 'type' => 'select', 'choices' => array('is-submenu-light' => esc_html__('Light', 'mechano'), 'is-submenu-light-border' => esc_html__('Light Border', 'mechano'), 'is-submenu-dark' => esc_html__('Dark', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_sub_menu_align', array('default' => 'is-submenu-align-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_sub_menu_align', array('label' => esc_html__('Sub Menu Align', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_sub_menu_align', 'type' => 'select', 'choices' => array('is-submenu-align-center' => esc_html__('Center', 'mechano'), 'is-submenu-align-left' => esc_html__('Left', 'mechano'), 'is-submenu-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_sub_menu_animation', array('default' => 'is-sub-menu-ani-fade-in-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_sub_menu_animation', array('label' => esc_html__('Sub Menu Animation', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_sub_menu_animation', 'type' => 'select', 'choices' => array("" => esc_html__('Fade In', 'mechano'), 'is-sub-menu-ani-fade-in-left' => esc_html__('Fade In Left', 'mechano'), 'is-sub-menu-ani-fade-in-right' => esc_html__('Fade In Right', 'mechano'), 'is-sub-menu-ani-fade-in-up' => esc_html__('Fade In Up', 'mechano'), 'is-sub-menu-ani-fade-in-down' => esc_html__('Fade In Down', 'mechano'), 'is-sub-menu-ani-zoom-in' => esc_html__('Zoom In', 'mechano'), 'is-sub-menu-ani-blur-in' => esc_html__('Blur In', 'mechano'), 'is-sub-menu-ani-blur-in-left' => esc_html__('Blur In Left', 'mechano'), 'is-sub-menu-ani-blur-in-right' => esc_html__('Blur In Right', 'mechano'), 'is-sub-menu-ani-blur-in-up' => esc_html__('Blur In Up', 'mechano'), 'is-sub-menu-ani-blur-in-down' => esc_html__('Blur In Down', 'mechano'), 'is-sub-menu-ani-slide-down' => esc_html__('Slide Down', 'mechano'), 'is-sub-menu-ani-flip-in' => esc_html__('Flip In', 'mechano'), 'is-sub-menu-ani-flip-in-half' => esc_html__('Flip In Half', 'mechano'), 'is-sub-menu-ani-rotate-in' => esc_html__('Rotate In', 'mechano'), 'is-sub-menu-ani-fly-in' => esc_html__('Fly In', 'mechano'), 'is-sub-menu-ani-tilt-in' => esc_html__('Tilt In', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_sub_menu_animation_duration', array('default' => '0.15', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_sub_menu_animation_duration', array('label' => esc_html__('Sub Menu Animation Duration', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_header_sub_menu_animation_duration', 'type' => 'range', 'input_attrs' => array('min' => 0.05, 'max' => 1, 'step' => 0.05))); $wp_customize->add_setting('mechano_setting_font_size_nav_sub_menu', array('default' => '12', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_nav_sub_menu', array('label' => esc_html__('Sub Menu Font Size (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_font_size_nav_sub_menu', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_nav_sub_menu', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_nav_sub_menu', array('label' => esc_html__('Sub Menu Font Weight', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_font_weight_nav_sub_menu', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_nav_sub_menu', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_nav_sub_menu', array('label' => esc_html__('Sub Menu Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_letter_spacing_nav_sub_menu', 'type' => 'number', 'input_attrs' => array('min' => -5, 'max' => 20, 'step' => 1))); $wp_customize->add_setting('mechano_setting_make_sticky_header_menu_width_always_full', array('default' => 0, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_make_sticky_header_menu_width_always_full', array('label' => esc_html__('Make sticky Header/Menu width always full even the Header/Menu layout is fixed width', 'mechano'), 'section' => 'mechano_section_header_menu', 'settings' => 'mechano_setting_make_sticky_header_menu_width_always_full', 'type' => 'checkbox')); /* ================================================== */ $wp_customize->add_setting('mechano_setting_header_top_bar_mobile_visibility', array('default' => 'is-top-bar-mobile-left-visible', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_top_bar_mobile_visibility', array('label' => esc_html__('Top Bar Mobile Visibility', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_header_top_bar_mobile_visibility', 'type' => 'select', 'choices' => array("" => esc_html__('Show All', 'mechano'), 'is-top-bar-mobile-left-visible' => esc_html__('Show Left', 'mechano'), 'is-top-bar-mobile-right-visible' => esc_html__('Show Right', 'mechano'), 'is-top-bar-mobile-hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_top_bar_text_color', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_top_bar_text_color', array('label' => esc_html__('Top Bar Text Color', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_header_top_bar_text_color', 'type' => 'select', 'choices' => array("" => esc_html__('Light', 'mechano'), 'is-top-bar-light' => esc_html__('Dark', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_top_bar_text_transform', array('default' => 'is-top-bar-uppercase', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_top_bar_text_transform', array('label' => esc_html__('Top Bar Text Transform', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_header_top_bar_text_transform', 'type' => 'select', 'choices' => array("" => esc_html__('None', 'mechano'), 'is-top-bar-uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_top_bar_style', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_top_bar_style', array('label' => esc_html__('Top Bar Style', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_header_top_bar_style', 'type' => 'select', 'choices' => array("" => esc_html__('Minimal', 'mechano'), 'is-top-bar-transparent' => esc_html__('Transparent', 'mechano'), 'is-top-bar-shadow' => esc_html__('Shadow', 'mechano'), 'is-top-bar-shadow-inset' => esc_html__('Shadow Inset', 'mechano'), 'is-top-bar-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-top-bar-border-bottom-bold' => esc_html__('Border Bottom Bold', 'mechano')))); $wp_customize->add_setting('mechano_setting_header_top_bar_width', array('default' => 'is-top-bar-full', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_top_bar_width', array('label' => esc_html__('Top Bar Width', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_header_top_bar_width', 'type' => 'select', 'choices' => array('is-top-bar-full' => esc_html__('Full', 'mechano'), "" => esc_html__('Fixed Content', 'mechano'), 'is-top-bar-fixed' => esc_html__('Fixed', 'mechano'), 'is-top-bar-fixed-bg' => esc_html__('Fixed BG', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_top_bar', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_top_bar'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_top_bar', array('label' => esc_html__('Top Bar Font', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_font_top_bar', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_top_bar', array('default' => '12', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_top_bar', array('label' => esc_html__('Top Bar Font Size (px)', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_font_size_top_bar', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_top_bar', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_top_bar', array('label' => esc_html__('Top Bar Font Weight', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_font_weight_top_bar', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_header_top_bar_height', array('default' => '36', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_header_top_bar_height', array('label' => esc_html__('Top Bar Height (px)', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_header_top_bar_height', 'type' => 'number', 'input_attrs' => array('min' => 10, 'max' => 500, 'step' => 1))); $wp_customize->add_setting( 'mechano_setting_color_top_bar_background', array( 'default' => '#262251', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mechano_control_color_top_bar_background', array( 'label' => esc_html__('Top Bar Background Color', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_color_top_bar_background' ) ) ); $wp_customize->add_setting('mechano_setting_color_top_bar_background_gradient', array('default' => '#d10600', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_top_bar_background_gradient', array('label' => esc_html__('Top Bar Background Gradient Color', 'mechano'), 'section' => 'mechano_section_header_top_bar', 'settings' => 'mechano_setting_color_top_bar_background_gradient'))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_font_icon_box_title', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_icon_box_title'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_icon_box_title', array('label' => esc_html__('Icon Box Title Font', 'mechano'), 'description' => "", 'section' => 'mechano_section_header_icon_box', 'settings' => 'mechano_setting_font_icon_box_title', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_icon_box_title', array('default' => '15', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_icon_box_title', array('label' => esc_html__('Icon Box Title Font Size (px)', 'mechano'), 'section' => 'mechano_section_header_icon_box', 'settings' => 'mechano_setting_font_size_icon_box_title', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_icon_box_title', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_icon_box_title', array('label' => esc_html__('Icon Box Title Font Weight', 'mechano'), 'section' => 'mechano_section_header_icon_box', 'settings' => 'mechano_setting_font_weight_icon_box_title', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_icon_box_title', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_icon_box_title', array('label' => esc_html__('Icon Box Title Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_header_icon_box', 'settings' => 'mechano_setting_letter_spacing_icon_box_title', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 1))); $wp_customize->add_setting('mechano_setting_text_transform_icon_box_title', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_icon_box_title', array('label' => esc_html__('Icon Box Title Text Transform', 'mechano'), 'section' => 'mechano_section_header_icon_box', 'settings' => 'mechano_setting_text_transform_icon_box_title', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-icon-box-title-uppercase' => esc_html__('Uppercase', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_footer_layout', array('default' => 'is-footer-full-width', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_footer_layout', array('label' => esc_html__('Footer Layout', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_footer_layout', 'type' => 'select', 'choices' => array('is-footer-full-width' => esc_html__('Full-width', 'mechano'), 'is-footer-boxed' => esc_html__('Boxed', 'mechano')))); $wp_customize->add_setting('mechano_setting_footer_columns', array('default' => '4', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_footer_columns', array('label' => esc_html__('Footer Columns', 'mechano'), 'description' => esc_html__('Footer widget areas.', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_footer_columns', 'type' => 'select', 'choices' => array('4' => esc_html__('4 Columns', 'mechano'), '3' => esc_html__('3 Columns', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_footer_bg', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_footer_bg', array('label' => esc_html__('Footer Background Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_footer_bg'))); $wp_customize->add_setting('mechano_setting_color_footer_background_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_footer_background_gradient', array('label' => esc_html__('Footer Background Gradient Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_footer_background_gradient'))); $wp_customize->add_setting('mechano_setting_footer_borders', array('default' => 'is-footer-border-top', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_footer_borders', array('label' => esc_html__('Footer Borders', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_footer_borders', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-footer-border-top' => esc_html__('Border Top', 'mechano'), 'is-footer-border-all' => esc_html__('Border All', 'mechano')))); $wp_customize->add_setting('mechano_setting_footer_border_style', array('default' => 'is-footer-border-light', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_footer_border_style', array('label' => esc_html__('Footer Border Style', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_footer_border_style', 'type' => 'select', 'choices' => array('' => esc_html__('Thin', 'mechano'), 'is-footer-border-light' => esc_html__('Thin Light', 'mechano'), 'is-footer-border-bold' => esc_html__('Bold', 'mechano'), 'is-footer-border-bold is-footer-border-light' => esc_html__('Bold Light', 'mechano')))); $wp_customize->add_setting('mechano_setting_footer_subscribe_style', array('default' => 'is-footer-subscribe-light', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_footer_subscribe_style', array('label' => esc_html__('Footer Subscribe Style', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_footer_subscribe_style', 'type' => 'select', 'choices' => array('is-footer-subscribe-light' => esc_html__('Light', 'mechano'), 'is-footer-subscribe-dark' => esc_html__('Dark', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_footer_subscribe_bg', array('default' => '#ebe6da', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_footer_subscribe_bg', array('label' => esc_html__('Footer Subscribe Background Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_footer_subscribe_bg'))); $wp_customize->add_setting('mechano_setting_color_footer_subscribe_background_gradient', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_footer_subscribe_background_gradient', array('label' => esc_html__('Footer Subscribe Background Gradient Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_footer_subscribe_background_gradient'))); $wp_customize->add_setting('mechano_setting_font_size_copyright', array('default' => '12', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_copyright', array('label' => esc_html__('Copyright Font Size (px)', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_font_size_copyright', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 300, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_copyright', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_copyright', array('label' => esc_html__('Copyright Font Weight', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_font_weight_copyright', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_copyright', array('default' => '3', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_copyright', array('label' => esc_html__('Copyright Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_letter_spacing_copyright', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1))); $wp_customize->add_setting('mechano_setting_text_transform_copyright', array('default' => 'is-copyright-uppercase', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_copyright', array('label' => esc_html__('Copyright Text Transform', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_text_transform_copyright', 'type' => 'select', 'choices' => array("" => esc_html__('None', 'mechano'), 'is-copyright-uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_copyright_border_style', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_copyright_border_style', array('label' => esc_html__('Copyright Border Style', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_copyright_border_style', 'type' => 'select', 'choices' => array('' => esc_html__('None', 'mechano'), 'is-copyright-border-top' => esc_html__('Border Top', 'mechano'), 'is-copyright-border-top is-copyright-border-bold' => esc_html__('Border Top Bold', 'mechano'), 'is-copyright-border-top is-copyright-border-light' => esc_html__('Border Top Light', 'mechano'), 'is-copyright-border-top is-copyright-border-bold is-copyright-border-light' => esc_html__('Border Top Bold Light', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_copyright_bar_bg', array('default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_copyright_bar_bg', array('label' => esc_html__('Copyright Bar Background Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_copyright_bar_bg'))); $wp_customize->add_setting('mechano_setting_color_copyright_bar_text', array('default' => '#0a0a0a', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_copyright_bar_text', array('label' => esc_html__('Copyright Bar Text Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_copyright_bar_text'))); $wp_customize->add_setting('mechano_setting_footer_widget_text_align', array('default' => 'is-footer-widgets-align-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_footer_widget_text_align', array('label' => esc_html__('Footer Widgets Text Align', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_footer_widget_text_align', 'type' => 'select', 'choices' => array('is-footer-widgets-align-left' => esc_html__('Left', 'mechano'), 'is-footer-widgets-align-center' => esc_html__('Center', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_footer_text', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_footer_text', array('label' => esc_html__('Footer Text Color', 'mechano'), 'section' => 'mechano_section_footer', 'settings' => 'mechano_setting_color_footer_text'))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_sidebar_blog', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_blog', array('label' => esc_html__('Blog Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for blog page.', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_blog', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_sidebar_archive', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_archive', array('label' => esc_html__('Blog Archive Sidebar', 'mechano'), 'description' => esc_html__('Applies to category/tag/author/date/search archives.', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_archive', 'type' => 'select', 'choices' => array('No' => esc_html__('No', 'mechano'), 'Yes' => esc_html__('Yes', 'mechano')))); $wp_customize->add_setting('mechano_setting_sidebar_post', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_post', array('label' => esc_html__('Post Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for single posts.', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_post', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_sidebar_portfolio_category', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_portfolio_category', array('label' => esc_html__('Portfolio Category Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for portfolio category pages.', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_portfolio_category', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_sidebar_portfolio_post', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_portfolio_post', array('label' => esc_html__('Portfolio Post Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for single portfolio posts.', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_portfolio_post', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_sidebar_product_category', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_product_category', array('label' => esc_html__('Product Category Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for shop categories. (for WooCommerce plugin)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_product_category', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_sidebar_single_product', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_single_product', array('label' => esc_html__('Single Product Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for individual product page. (for WooCommerce plugin)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_single_product', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_sidebar_course', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_course', array('label' => esc_html__('Course Sidebar', 'mechano'), 'description' => esc_html__('Activate sidebar area for courses. (for LearnPress plugin)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_course', 'type' => 'select', 'choices' => array( 'No' => esc_html__('No', 'mechano'), 'Yes' => esc_html__('Yes', 'mechano') ))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_sidebar_position', array('default' => 'is-sidebar-right', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_sidebar_position', array('label' => esc_html__('Sidebar Position', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_position', 'type' => 'select', 'choices' => array('is-sidebar-right' => esc_html__('Right', 'mechano'), 'is-sidebar-left' => esc_html__('Left', 'mechano')))); $wp_customize->add_setting('mechano_setting_sidebar_sticky', array('default' => 'is-sidebar-sticky', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sidebar_sticky', array('label' => esc_html__('Sticky Sidebar', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_sticky', 'type' => 'select', 'choices' => array('is-sidebar-sticky' => esc_html__('Yes', 'mechano'), 'is-sidebar-sticky-no' => esc_html__('No', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_size_sidebar', array('default' => '13', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_sidebar', array('label' => esc_html__('Sidebar Font Size (px)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_font_size_sidebar', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_sidebar_widget_text_align', array('default' => 'is-sidebar-align-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_sidebar_widget_text_align', array('label' => esc_html__('Sidebar Widgets Text Align', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_widget_text_align', 'type' => 'select', 'choices' => array('is-sidebar-align-center' => esc_html__('Center', 'mechano'), 'is-sidebar-align-left' => esc_html__('Left', 'mechano')))); $wp_customize->add_setting('mechano_setting_sidebar_widget_title_align', array('default' => 'is-widget-title-align-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_sidebar_widget_title_align', array('label' => esc_html__('Widget Title Align', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_widget_title_align', 'type' => 'select', 'choices' => array('is-widget-title-align-center' => esc_html__('Center', 'mechano'), 'is-widget-title-align-left' => esc_html__('Left', 'mechano')))); $wp_customize->add_setting('mechano_setting_sidebar_widget_title_style', array('default' => 'is-widget-bottomline', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_sidebar_widget_title_style', array('label' => esc_html__('Widget Title Style', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_widget_title_style', 'type' => 'select', 'choices' => array('is-widget-minimal' => esc_html__('Minimal', 'mechano'), 'is-widget-ribbon' => esc_html__('Ribbon', 'mechano'), 'is-widget-border' => esc_html__('Border', 'mechano'), 'is-widget-border-arrow' => esc_html__('Border Arrow', 'mechano'), 'is-widget-solid' => esc_html__('Solid', 'mechano'), 'is-widget-solid-arrow' => esc_html__('Solid Arrow', 'mechano'), 'is-widget-underline' => esc_html__('Underline', 'mechano'), 'is-widget-bottomline' => esc_html__('Bottomline', 'mechano'), 'is-widget-first-letter-border' => esc_html__('First Letter Border', 'mechano'), 'is-widget-first-letter-solid' => esc_html__('First Letter Solid', 'mechano'), 'is-widget-line-cut' => esc_html__('Line Cut', 'mechano'), 'is-widget-line-cut-center' => esc_html__('Line Cut Center', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_widget_title', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_widget_title'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_widget_title', array('label' => esc_html__('Widget Title Font', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_font_widget_title', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_size_sidebar_widget_title', array('default' => '13', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_sidebar_widget_title', array('label' => esc_html__('Widget Title Font Size (px)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_font_size_sidebar_widget_title', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_sidebar_widget_title', array('default' => '700', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_sidebar_widget_title', array('label' => esc_html__('Widget Title Font Weight', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_font_weight_sidebar_widget_title', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_sidebar_widget_title', array('default' => '3', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_sidebar_widget_title', array('label' => esc_html__('Widget Title Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_letter_spacing_sidebar_widget_title', 'type' => 'number', 'input_attrs' => array('min' => -5, 'max' => 20, 'step' => 1))); $wp_customize->add_setting('mechano_setting_color_widget_witle_bg_border', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_widget_witle_bg_border', array('label' => esc_html__('Widget Title Bg/Border Color', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_color_widget_witle_bg_border'))); $wp_customize->add_setting('mechano_setting_sidebar_trending_posts_style', array('default' => 'is-trending-posts-default', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_sidebar_trending_posts_style', array('label' => esc_html__('Trending Posts Style', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_trending_posts_style', 'type' => 'select', 'choices' => array('is-trending-posts-default' => esc_html__('Default', 'mechano'), 'is-trending-posts-rounded' => esc_html__('Rounded', 'mechano')))); $wp_customize->add_setting('mechano_setting_sidebar_width', array('default' => '280', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_sidebar_width', array('label' => esc_html__('Sidebar Width (px)', 'mechano'), 'section' => 'mechano_section_sidebar', 'settings' => 'mechano_setting_sidebar_width', 'type' => 'number', 'input_attrs' => array('min' => 100, 'max' => 600, 'step' => 5))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_custom_post_style_global', array('default' => 'is-top-content-single-full with-overlay', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_custom_post_style_global', array('label' => esc_html__('Post Style', 'mechano'), 'description' => esc_html__('For portfolio posts and other custom post types. This setting may be overridden for individual posts.', 'mechano'), 'section' => 'mechano_section_portfolio', 'settings' => 'mechano_setting_custom_post_style_global', 'type' => 'select', 'choices' => array('post-header-classic' => esc_html__('Classic', 'mechano'), 'is-top-content-single-medium' => esc_html__('Classic Medium', 'mechano'), 'is-top-content-single-medium with-parallax' => esc_html__('Classic Medium Parallax', 'mechano'), 'is-top-content-single-full' => esc_html__('Classic Full', 'mechano'), 'is-top-content-single-full with-parallax' => esc_html__('Classic Full Parallax', 'mechano'), 'is-top-content-single-full-margins' => esc_html__('Classic Full with Margins', 'mechano'), 'is-top-content-single-full-margins with-parallax' => esc_html__('Classic Full with Margins Parallax', 'mechano'), 'post-header-overlay post-header-overlay-inline is-post-dark' => esc_html__('Overlay', 'mechano'), 'is-top-content-single-medium with-overlay' => esc_html__('Overlay Medium', 'mechano'), 'is-top-content-single-full with-overlay' => esc_html__('Overlay Full', 'mechano'), 'is-top-content-single-full-margins with-overlay' => esc_html__('Overlay Full with Margins', 'mechano'), 'is-top-content-single-full-screen with-overlay' => esc_html__('Overlay Fullscreen', 'mechano'), 'is-top-content-single-medium with-title-full' => esc_html__('Title Full', 'mechano'), 'post-header-classic is-featured-image-left' => esc_html__('Image Left', 'mechano'), 'post-header-classic is-featured-image-right' => esc_html__('Image Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_custom_post_header_style_global', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_custom_post_header_style_global', array('label' => esc_html__('Post Header Style', 'mechano'), 'description' => esc_html__('For portfolio posts and other custom post types. This setting may be overridden for individual posts.', 'mechano'), 'section' => 'mechano_section_portfolio', 'settings' => 'mechano_setting_custom_post_header_style_global', 'type' => 'select', 'choices' => array( "" => esc_html__('Default', 'mechano'), 'is-header-float is-header-transparent' => esc_html__('Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-float-margin' => esc_html__('Transparent Margin', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent' => esc_html__('Half Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent is-header-float-box is-header-float-margin' => esc_html__('Half Transparent Margin', 'mechano'), 'is-header-float is-header-transparent-light' => esc_html__('Transparent Light', 'mechano'), 'is-header-float is-header-transparent-light is-header-float-margin' => esc_html__('Transparent Light Margin', 'mechano'), 'is-header-float is-header-float-box' => esc_html__('Floating Box', 'mechano'), 'is-header-float is-header-float-box is-header-float-margin' => esc_html__('Floating Box Margin', 'mechano'), 'is-header-float is-header-float-box is-header-float-box-menu' => esc_html__('Floating Box Menu', 'mechano') ))); $wp_customize->add_setting('mechano_setting_portfolio_page_layout', array('default' => 'layout-medium', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_portfolio_page_layout', array('label' => esc_html__('Page Layout', 'mechano'), 'description' => esc_html__('For portfolio page template and portfolio category page.', 'mechano'), 'section' => 'mechano_section_portfolio', 'settings' => 'mechano_setting_portfolio_page_layout', 'type' => 'select', 'choices' => array('layout-medium' => esc_html__('Default', 'mechano'), 'layout-fixed' => esc_html__('Narrow', 'mechano'), 'layout-full' => esc_html__('Full Width', 'mechano')))); $wp_customize->add_setting('mechano_setting_portfolio_page_grid_type', array('default' => 'fitRows_wide', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_portfolio_page_grid_type', array('label' => esc_html__('Grid Type', 'mechano'), 'section' => 'mechano_section_portfolio', 'settings' => 'mechano_setting_portfolio_page_grid_type', 'type' => 'select', 'choices' => array('masonry' => esc_html__('Masonry', 'mechano'), 'fitRows_square' => esc_html__('Fit Rows - (Square)', 'mechano'), 'fitRows_wide' => esc_html__('Fit Rows - (Wide)', 'mechano')))); $wp_customize->add_setting('mechano_setting_portfolio_page_post_width', array('default' => '380', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_portfolio_page_post_width', array('label' => esc_html__('Grid Post Width (px)', 'mechano'), 'description' => esc_html__('Default: 380', 'mechano'), 'section' => 'mechano_section_portfolio', 'settings' => 'mechano_setting_portfolio_page_post_width', 'type' => 'number', 'input_attrs' => array('min' => 120, 'max' => 1200, 'step' => 10))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_shop_grid_type', array('default' => 'masonry', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_shop_grid_type', array('label' => esc_html__('Grid Type', 'mechano'), 'section' => 'mechano_section_shop', 'settings' => 'mechano_setting_shop_grid_type', 'type' => 'select', 'choices' => array('masonry' => esc_html__('Masonry', 'mechano'), 'fitRows_square' => esc_html__('Fit Rows - (Square)', 'mechano'), 'fitRows_wide' => esc_html__('Fit Rows - (Wide)', 'mechano')))); $wp_customize->add_setting('mechano_setting_shop_grid_item_width', array('default' => '360', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_shop_grid_item_width', array('label' => esc_html__('Grid Item Width (px)', 'mechano'), 'description' => esc_html__('Default: 360', 'mechano'), 'section' => 'mechano_section_shop', 'settings' => 'mechano_setting_shop_grid_item_width', 'type' => 'number', 'input_attrs' => array('min' => 100, 'max' => 700, 'step' => 10))); $wp_customize->add_setting( 'mechano_setting_products_per_page', array( 'default' => 8, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh' ) ); $wp_customize->add_control( 'mechano_control_products_per_page', array( 'label' => esc_html__('Products Per Page', 'mechano'), 'description' => esc_html__('Number of products displayed per page.', 'mechano'), 'section' => 'mechano_section_shop', 'settings' => 'mechano_setting_products_per_page', 'type' => 'number', 'input_attrs' => array( 'min' => 1, 'max' => 100, 'step' => 1 ) ) ); $wp_customize->add_setting( 'mechano_setting_related_products_count', array( 'default' => 3, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh' ) ); $wp_customize->add_control( 'mechano_control_related_products_count', array( 'label' => esc_html__('Related Products Count', 'mechano'), 'description' => esc_html__('Number of products to show.', 'mechano'), 'section' => 'mechano_section_shop', 'settings' => 'mechano_setting_related_products_count', 'type' => 'number', 'input_attrs' => array( 'min' => 1, 'max' => 15, 'step' => 1 ) ) ); /* ================================================== */ $wp_customize->add_setting('mechano_setting_feat_area_width', array('default' => 'is-featured-area-full', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_feat_area_width', array('label' => esc_html__('Featured Area Width', 'mechano'), 'section' => 'mechano_section_featured_area_general', 'settings' => 'mechano_setting_feat_area_width', 'type' => 'select', 'choices' => array('is-featured-area-fixed' => esc_html__('Fixed', 'mechano'), 'is-featured-area-full' => esc_html__('Full', 'mechano'), 'is-featured-area-full-margins' => esc_html__('Full With Margins', 'mechano')))); $wp_customize->add_setting('mechano_setting_featured_area_top_padding', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_featured_area_top_padding', array('label' => esc_html__('Featured Area Top Padding (px)', 'mechano'), 'section' => 'mechano_section_featured_area_general', 'settings' => 'mechano_setting_featured_area_top_padding', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1))); $wp_customize->add_setting('mechano_setting_featured_area_grid_spacing', array('default' => '5', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_featured_area_grid_spacing', array('label' => esc_html__('Grid Spacing (px)', 'mechano'), 'section' => 'mechano_section_featured_area_general', 'settings' => 'mechano_setting_featured_area_grid_spacing', 'type' => 'number', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_main_slider_nav_position', array('default' => 'is-slider-buttons-center-margin', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_nav_position', array('label' => esc_html__('Slider Nav Position', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_nav_position', 'type' => 'select', 'choices' => array('is-slider-buttons-stick-to-edges' => esc_html__('Stick To Edges', 'mechano'), 'is-slider-buttons-center-margin' => esc_html__('Center Margin', 'mechano'), 'is-slider-buttons-overflow' => esc_html__('Overflow', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_nav_shape', array('default' => 'is-slider-buttons-rounded', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_nav_shape', array('label' => esc_html__('Slider Nav Shape', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_nav_shape', 'type' => 'select', 'choices' => array('is-slider-buttons-rounded' => esc_html__('Rounded', 'mechano'), 'is-slider-buttons-sharp-edges' => esc_html__('Sharp Edges', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_nav_style', array('default' => 'is-slider-buttons-dark', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_nav_style', array('label' => esc_html__('Slider Nav Style', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_nav_style', 'type' => 'select', 'choices' => array('is-slider-buttons-dark' => esc_html__('Dark', 'mechano'), 'is-slider-buttons-light' => esc_html__('Light', 'mechano'), 'is-slider-buttons-border' => esc_html__('Border', 'mechano'), 'is-slider-buttons-darker' => esc_html__('Darker', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_title_style', array('default' => 'is-slider-title-label', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_title_style', array('label' => esc_html__('Slider Title Style', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_title_style', 'type' => 'select', 'choices' => array('is-slider-title-default' => esc_html__('Default', 'mechano'), 'is-slider-title-label' => esc_html__('Label', 'mechano'), 'is-slider-title-label is-slider-title-rotated' => esc_html__('Label Rotated', 'mechano'), 'is-slider-title-inline-borders' => esc_html__('Inline Borders', 'mechano'), 'is-slider-title-stamp' => esc_html__('Stamp', 'mechano'), 'is-slider-title-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-slider-title-3d-shadow' => esc_html__('3D Shadow', 'mechano'), 'is-slider-title-3d-hard-shadow' => esc_html__('3D Hard Shadow', 'mechano'), 'is-slider-title-dark-shadow' => esc_html__('Dark Shadow', 'mechano'), 'is-slider-title-retro-shadow' => esc_html__('Retro Shadow', 'mechano'), 'is-slider-title-retro-skew' => esc_html__('Retro Skew', 'mechano'), 'is-slider-title-comic-shadow' => esc_html__('Comic Shadow', 'mechano'), 'is-slider-title-futurist-shadow' => esc_html__('Futurist Shadow', 'mechano'), 'is-slider-title-outline' => esc_html__('Outline', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_parallax_effect', array('default' => 'is-slider-parallax', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_main_slider_parallax_effect', array('label' => esc_html__('Slider Parallax Effect', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_parallax_effect', 'type' => 'select', 'choices' => array('is-slider-parallax' => esc_html__('Yes', 'mechano'), 'is-slider-parallax-no' => esc_html__('No', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_slider_title', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_slider_title'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_slider_title', array('label' => esc_html__('Slider Title Font', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_font_slider_title', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_weight_slider_title', array('default' => '700', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_slider_title', array('label' => esc_html__('Slider Title Font Weight', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_font_weight_slider_title', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_main_slider_title', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_main_slider_title', array('label' => esc_html__('Slider Title Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_letter_spacing_main_slider_title', 'type' => 'number', 'input_attrs' => array('min' => -5, 'max' => 20, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_title_ratio', array('default' => '0.7', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_title_ratio', array('label' => esc_html__('Slider Title Text Ratio', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_font_title_ratio', 'type' => 'range', 'input_attrs' => array('min' => 0.1, 'max' => 2, 'step' => 0.05))); $wp_customize->add_setting('mechano_setting_main_slider_title_text_transform', array('default' => 'is-slider-title-none-uppercase', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_title_text_transform', array('label' => esc_html__('Slider Title Text Transform', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_title_text_transform', 'type' => 'select', 'choices' => array('is-slider-title-none-uppercase' => esc_html__('None', 'mechano'), 'is-slider-title-uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_meta_style', array('default' => 'is-cat-link-borders-light is-cat-link-rounded', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_meta_style', array('label' => esc_html__('Slider Meta Style', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_meta_style', 'type' => 'select', 'choices' => array('is-cat-link-default' => esc_html__('Default', 'mechano'), 'is-cat-link-borders' => esc_html__('Borders', 'mechano'), 'is-cat-link-borders is-cat-link-rounded' => esc_html__('Borders Rounded', 'mechano'), 'is-cat-link-borders-light' => esc_html__('Borders Light', 'mechano'), 'is-cat-link-borders-light is-cat-link-rounded' => esc_html__('Borders Light Rounded', 'mechano'), 'is-cat-link-solid' => esc_html__('Solid', 'mechano'), 'is-cat-link-solid is-cat-link-rounded' => esc_html__('Solid Rounded', 'mechano'), 'is-cat-link-solid-light' => esc_html__('Solid Light', 'mechano'), 'is-cat-link-solid-light is-cat-link-rounded' => esc_html__('Solid Light Rounded', 'mechano'), 'is-cat-link-ribbon' => esc_html__('Ribbon', 'mechano'), 'is-cat-link-ribbon-left' => esc_html__('Ribbon Left', 'mechano'), 'is-cat-link-ribbon-right' => esc_html__('Ribbon Right', 'mechano'), 'is-cat-link-ribbon is-cat-link-ribbon-dark' => esc_html__('Ribbon Dark', 'mechano'), 'is-cat-link-ribbon-left is-cat-link-ribbon-dark' => esc_html__('Ribbon Dark Left', 'mechano'), 'is-cat-link-ribbon-right is-cat-link-ribbon-dark' => esc_html__('Ribbon Dark Right', 'mechano'), 'is-cat-link-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-cat-link-line-before' => esc_html__('Line Before', 'mechano'), 'is-cat-link-dots-bottom' => esc_html__('Dots Bottom', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_slider_meta_bg_border', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_slider_meta_bg_border', array('label' => esc_html__('Slider Meta Bg/Border Color', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_color_slider_meta_bg_border'))); $wp_customize->add_setting('mechano_setting_main_slider_more_link_visibility', array('default' => 'is-slider-more-link-show-on-hover', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_more_link_visibility', array('label' => esc_html__('Slider More Link Visibility', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_more_link_visibility', 'type' => 'select', 'choices' => array('is-slider-more-link-show' => esc_html__('Show', 'mechano'), 'is-slider-more-link-show-on-hover' => esc_html__('Show on Hover', 'mechano'), 'is-slider-more-link-hidden' => esc_html__('Hide', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_more_link_style', array('default' => 'is-slider-more-link-border-bottom', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_more_link_style', array('label' => esc_html__('Slider More Link Style', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_more_link_style', 'type' => 'select', 'choices' => array('is-slider-more-link-minimal' => esc_html__('Minimal', 'mechano'), 'is-slider-more-link-button-style' => esc_html__('Button Like', 'mechano'), 'is-slider-more-link-border-bottom' => esc_html__('Border Bottom', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_text_align', array('default' => 'is-slider-text-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_text_align', array('label' => esc_html__('Slider Text Align', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_text_align', 'type' => 'select', 'choices' => array('is-slider-text-align-center' => esc_html__('Center', 'mechano'), 'is-slider-text-align-left' => esc_html__('Left', 'mechano'), 'is-slider-text-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_vertical_align', array('default' => 'is-slider-v-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_vertical_align', array('label' => esc_html__('Slider Vertical Align', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_vertical_align', 'type' => 'select', 'choices' => array('is-slider-v-align-center' => esc_html__('Center', 'mechano'), 'is-slider-v-align-top' => esc_html__('Top', 'mechano'), 'is-slider-v-align-bottom' => esc_html__('Bottom', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_horizontal_align', array('default' => 'is-slider-h-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_horizontal_align', array('label' => esc_html__('Slider Horizontal Align', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_horizontal_align', 'type' => 'select', 'choices' => array('is-slider-h-align-center' => esc_html__('Center', 'mechano'), 'is-slider-h-align-left' => esc_html__('Left', 'mechano'), 'is-slider-h-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_main_slider_dots_style', array('default' => 'is-slider-dots-rounded-line-grow', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_main_slider_dots_style', array('label' => esc_html__('Slider Dots Style', 'mechano'), 'section' => 'mechano_section_featured_area_slider', 'settings' => 'mechano_setting_main_slider_dots_style', 'type' => 'select', 'choices' => array("" => esc_html__('Circle Grow', 'mechano'), 'is-slider-dots-rounded-line-grow' => esc_html__('Rounded Line Grow', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_link_box_title_style', array('default' => 'is-link-box-title-default', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_link_box_title_style', array('label' => esc_html__('Link Box Title Style', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_link_box_title_style', 'type' => 'select', 'choices' => array('is-link-box-title-default' => esc_html__('Default', 'mechano'), 'is-link-box-title-label' => esc_html__('Label', 'mechano'), 'is-link-box-title-label is-link-box-title-rotated' => esc_html__('Label Rotated', 'mechano'), 'is-link-box-title-inline-borders' => esc_html__('Inline Borders', 'mechano'), 'is-link-box-title-border-bottom' => esc_html__('Border Bottom', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_link_box_title', array('default' => mechano__get_customize_setting__default_value('mechano_setting_font_link_box_title'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_link_box_title', array('label' => esc_html__('Link Box Title Font', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_font_link_box_title', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_font_weight_link_box_title', array('default' => '700', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_link_box_title', array('label' => esc_html__('Link Box Title Font Weight', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_font_weight_link_box_title', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_letter_spacing_link_box_title', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_letter_spacing_link_box_title', array('label' => esc_html__('Link Box Title Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_letter_spacing_link_box_title', 'type' => 'number', 'input_attrs' => array('min' => -5, 'max' => 20, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_title_ratio_link_box', array('default' => '0.5', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_font_title_ratio_link_box', array('label' => esc_html__('Link Box Title Text Ratio', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_font_title_ratio_link_box', 'type' => 'range', 'input_attrs' => array('min' => 0.1, 'max' => 2, 'step' => 0.05))); $wp_customize->add_setting('mechano_setting_link_box_text_transform', array('default' => 'is-link-box-title-transform-none', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_link_box_text_transform', array('label' => esc_html__('Link Box Text Transform', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_link_box_text_transform', 'type' => 'select', 'choices' => array('is-link-box-title-transform-none' => esc_html__('None', 'mechano'), 'is-link-box-title-uppercase' => esc_html__('Uppercase', 'mechano')))); $wp_customize->add_setting('mechano_setting_link_box_text_align', array('default' => 'is-link-box-text-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_link_box_text_align', array('label' => esc_html__('Link Box Text Align', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_link_box_text_align', 'type' => 'select', 'choices' => array('is-link-box-text-align-center' => esc_html__('Center', 'mechano'), 'is-link-box-text-align-left' => esc_html__('Left', 'mechano'), 'is-link-box-text-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_link_box_vertical_align', array('default' => 'is-link-box-v-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_link_box_vertical_align', array('label' => esc_html__('Link Box Vertical Align', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_link_box_vertical_align', 'type' => 'select', 'choices' => array('is-link-box-v-align-center' => esc_html__('Center', 'mechano'), 'is-link-box-v-align-top' => esc_html__('Top', 'mechano'), 'is-link-box-v-align-bottom' => esc_html__('Bottom', 'mechano')))); $wp_customize->add_setting('mechano_setting_link_box_parallax_effect', array('default' => 'is-link-box-parallax', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_link_box_parallax_effect', array('label' => esc_html__('Link Box Parallax Effect', 'mechano'), 'section' => 'mechano_section_featured_area_link_box', 'settings' => 'mechano_setting_link_box_parallax_effect', 'type' => 'select', 'choices' => array('is-link-box-parallax-no' => esc_html__('No', 'mechano'), 'is-link-box-parallax' => esc_html__('Yes', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_intro_text_align', array('default' => 'is-intro-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_text_align', array('label' => esc_html__('Intro Text Align', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_text_align', 'type' => 'select', 'choices' => array('is-intro-align-center' => esc_html__('Center', 'mechano'), 'is-intro-align-left' => esc_html__('Left', 'mechano'), 'is-intro-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_intro_text_color', array('default' => 'is-intro-text-dark', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_text_color', array('label' => esc_html__('Intro Text Color', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_text_color', 'type' => 'select', 'choices' => array('is-intro-text-dark' => esc_html__('Dark', 'mechano'), 'is-intro-text-light' => esc_html__('Light', 'mechano')))); $wp_customize->add_setting('mechano_setting_intro_top_bottom_padding', array('default' => '50', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_top_bottom_padding', array('label' => esc_html__('Intro Top-Bottom Padding', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_top_bottom_padding', 'type' => 'range', 'input_attrs' => array('min' => 20, 'max' => 400, 'step' => 10))); $wp_customize->add_setting('mechano_setting_intro_mask_color', array('default' => '#25262e', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_intro_mask_color', array('label' => esc_html__('Intro Mask Color', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_mask_color'))); $wp_customize->add_setting('mechano_setting_intro_mask_opacity', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_mask_opacity', array('label' => esc_html__('Intro Mask Opacity', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_mask_opacity', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 1, 'step' => 0.1))); $wp_customize->add_setting('mechano_setting_intro_parallax_bg_img', array('default' => 'is-intro-parallax-no', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_intro_parallax_bg_img', array('label' => esc_html__('Parallax Background Image', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_parallax_bg_img', 'type' => 'select', 'choices' => array('is-intro-parallax-no' => esc_html__('No', 'mechano'), 'is-intro-parallax' => esc_html__('Yes', 'mechano')))); $wp_customize->add_setting('mechano_setting_intro_font_size', array('default' => '38', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_font_size', array('label' => esc_html__('Intro Font Size (px)', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_font_size', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_intro_font', array('default' => mechano__get_customize_setting__default_value('mechano_setting_intro_font'), 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_font', array('label' => esc_html__('Intro Font', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_font', 'type' => 'select', 'choices' => mechano_core_fonts())); $wp_customize->add_setting('mechano_setting_intro_font_weight', array('default' => '400', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_font_weight', array('label' => esc_html__('Intro Font Weight', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_font_weight', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_intro_letter_spacing', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_letter_spacing', array('label' => esc_html__('Intro Letter Spacing (px)', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_letter_spacing', 'type' => 'number', 'input_attrs' => array('min' => -10, 'max' => 50, 'step' => 1))); $wp_customize->add_setting('mechano_setting_intro_text_transform', array('default' => 'none', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_intro_text_transform', array('label' => esc_html__('Intro Text Transform', 'mechano'), 'section' => 'mechano_section_featured_area_intro', 'settings' => 'mechano_setting_intro_text_transform', 'type' => 'select', 'choices' => array('none' => esc_html__('None', 'mechano'), 'uppercase' => esc_html__('Uppercase', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_page_style_global', array('default' => 'post-header-classic', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_page_style_global', array('label' => esc_html__('Page Style', 'mechano'), 'description' => esc_html__('This setting may be overridden for individual pages.', 'mechano'), 'section' => 'mechano_section_pages', 'settings' => 'mechano_setting_page_style_global', 'type' => 'select', 'choices' => array('post-header-classic' => esc_html__('Classic', 'mechano'), 'is-top-content-single-medium' => esc_html__('Classic Medium', 'mechano'), 'is-top-content-single-medium with-parallax' => esc_html__('Classic Medium Parallax', 'mechano'), 'is-top-content-single-full' => esc_html__('Classic Full', 'mechano'), 'is-top-content-single-full with-parallax' => esc_html__('Classic Full Parallax', 'mechano'), 'is-top-content-single-full-margins' => esc_html__('Classic Full with Margins', 'mechano'), 'is-top-content-single-full-margins with-parallax' => esc_html__('Classic Full with Margins Parallax', 'mechano'), 'post-header-overlay post-header-overlay-inline is-post-dark' => esc_html__('Overlay', 'mechano'), 'is-top-content-single-medium with-overlay' => esc_html__('Overlay Medium', 'mechano'), 'is-top-content-single-full with-overlay' => esc_html__('Overlay Full', 'mechano'), 'is-top-content-single-full-margins with-overlay' => esc_html__('Overlay Full with Margins', 'mechano'), 'is-top-content-single-full-screen with-overlay' => esc_html__('Overlay Fullscreen', 'mechano'), 'is-top-content-single-medium with-title-full' => esc_html__('Title Full', 'mechano'), 'post-header-classic is-featured-image-left' => esc_html__('Image Left', 'mechano'), 'post-header-classic is-featured-image-right' => esc_html__('Image Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_page_header_style_global', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_page_header_style_global', array('label' => esc_html__('Page Header Style', 'mechano'), 'description' => esc_html__('This setting may be overridden for individual pages.', 'mechano'), 'section' => 'mechano_section_pages', 'settings' => 'mechano_setting_page_header_style_global', 'type' => 'select', 'choices' => array( "" => esc_html__('Default', 'mechano'), 'is-header-float is-header-transparent' => esc_html__('Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-float-margin' => esc_html__('Transparent Margin', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent' => esc_html__('Half Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent is-header-float-box is-header-float-margin' => esc_html__('Half Transparent Margin', 'mechano'), 'is-header-float is-header-transparent-light' => esc_html__('Transparent Light', 'mechano'), 'is-header-float is-header-transparent-light is-header-float-margin' => esc_html__('Transparent Light Margin', 'mechano'), 'is-header-float is-header-float-box' => esc_html__('Floating Box', 'mechano'), 'is-header-float is-header-float-box is-header-float-margin' => esc_html__('Floating Box Margin', 'mechano'), 'is-header-float is-header-float-box is-header-float-box-menu' => esc_html__('Floating Box Menu', 'mechano') ))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_blog_homepage_header_style', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_blog_homepage_header_style', array( 'label' => esc_html__('Blog Homepage Header Style', 'mechano'), 'description' => esc_html__('Select header style if you have set latest posts as your homepage, otherwise you can select header style in single page edit screen.', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_blog_homepage_header_style', 'type' => 'select', 'choices' => array( "" => esc_html__('Default', 'mechano'), 'is-header-float is-header-transparent' => esc_html__('Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-float-margin' => esc_html__('Transparent Margin', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent' => esc_html__('Half Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent is-header-float-box is-header-float-margin' => esc_html__('Half Transparent Margin', 'mechano'), 'is-header-float is-header-transparent-light' => esc_html__('Transparent Light', 'mechano'), 'is-header-float is-header-transparent-light is-header-float-margin' => esc_html__('Transparent Light Margin', 'mechano'), 'is-header-float is-header-float-box' => esc_html__('Floating Box', 'mechano'), 'is-header-float is-header-float-box is-header-float-margin' => esc_html__('Floating Box Margin', 'mechano'), 'is-header-float is-header-float-box is-header-float-box-menu' => esc_html__('Floating Box Menu', 'mechano') ) ) ); $mechano_layouts = array( 'Regular' => esc_html__('Regular', 'mechano'), 'Grid' => esc_html__('Grid', 'mechano'), 'List' => esc_html__('List', 'mechano'), 'Circles' => esc_html__('Circles', 'mechano'), '1st Full + Grid' => esc_html__('1st Full + Grid', 'mechano'), '1st Full + List' => esc_html__('1st Full + List', 'mechano') ); $wp_customize->add_setting('mechano_setting_layout_blog', array('default' => 'Grid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_layout_blog', array('label' => esc_html__('Blog', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_layout_blog', 'type' => 'select', 'choices' => $mechano_layouts)); $wp_customize->add_setting('mechano_setting_layout_category', array('default' => 'Grid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_layout_category', array('label' => esc_html__('Category Archive', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_layout_category', 'type' => 'select', 'choices' => $mechano_layouts)); $wp_customize->add_setting('mechano_setting_layout_tag', array('default' => 'Grid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_layout_tag', array('label' => esc_html__('Tag Archive', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_layout_tag', 'type' => 'select', 'choices' => $mechano_layouts)); $wp_customize->add_setting('mechano_setting_layout_author', array('default' => 'Grid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_layout_author', array('label' => esc_html__('Author Archive', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_layout_author', 'type' => 'select', 'choices' => $mechano_layouts)); $wp_customize->add_setting('mechano_setting_layout_date', array('default' => 'Grid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_layout_date', array('label' => esc_html__('Date Archive', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_layout_date', 'type' => 'select', 'choices' => $mechano_layouts)); $wp_customize->add_setting('mechano_setting_layout_search', array('default' => 'Grid', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_layout_search', array('label' => esc_html__('Search Results', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_layout_search', 'type' => 'select', 'choices' => $mechano_layouts)); $wp_customize->add_setting('mechano_setting_blog_text_align', array('default' => 'is-blog-text-align-left', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_blog_text_align', array('label' => esc_html__('Blog Text Align', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_blog_text_align', 'type' => 'select', 'choices' => array('is-blog-text-align-center' => esc_html__('Center', 'mechano'), 'is-blog-text-align-left' => esc_html__('Left', 'mechano'), 'is-blog-text-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_grid_type', array('default' => 'fitRows', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_grid_type', array('label' => esc_html__('Grid Type', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_grid_type', 'type' => 'select', 'choices' => array('masonry' => esc_html__('Masonry', 'mechano'), 'fitRows' => esc_html__('Fit Rows', 'mechano')))); $wp_customize->add_setting('mechano_setting_grid_post_width', array('default' => '380', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_grid_post_width', array('label' => esc_html__('Grid Post Width (px)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_grid_post_width', 'type' => 'number', 'input_attrs' => array('min' => 120, 'max' => 1200, 'step' => 10))); $wp_customize->add_setting('mechano_setting_sticky_posts', array('default' => 'include', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_sticky_posts', array('label' => esc_html__('Sticky Posts', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_sticky_posts', 'type' => 'select', 'choices' => array('include' => esc_html__('Include to blog', 'mechano'), 'exclude' => esc_html__('Exclude from blog', 'mechano')))); $wp_customize->add_setting('mechano_setting_more_link_style', array('default' => 'is-more-link-border-bottom-light', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_more_link_style', array('label' => esc_html__('More Link Style', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_more_link_style', 'type' => 'select', 'choices' => array('is-more-link-button-minimal' => esc_html__('Minimal', 'mechano'), 'is-more-link-button-style' => esc_html__('Button Like', 'mechano'), 'is-more-link-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-more-link-border-bottom-light' => esc_html__('Border Bottom Light', 'mechano'), 'is-more-link-border-bottom-dotted' => esc_html__('Border Bottom Dotted', 'mechano')))); $wp_customize->add_setting('mechano_setting_more_link_text', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_more_link_text', array('label' => esc_html__('More Link Text', 'mechano'), 'description' => esc_html__('Default: Read More', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_more_link_text', 'type' => 'text')); $wp_customize->add_setting('mechano_setting_automatic_excerpt', array('default' => 'standard', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_automatic_excerpt', array('label' => esc_html__('Automatic Excerpt', 'mechano'), 'description' => esc_html__('Generates an excerpt from the post content.', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_automatic_excerpt', 'type' => 'select', 'choices' => array('standard' => esc_html__('Yes - Only for standard format', 'mechano'), 'Yes' => esc_html__('Yes - For all post formats', 'mechano'), 'No' => esc_html__('No', 'mechano')))); $wp_customize->add_setting('mechano_setting_excerpt_length', array('default' => '65', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_excerpt_length', array('label' => esc_html__('Excerpt Length', 'mechano'), 'description' => esc_html__('For regular layout. Default: 65 (words)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_excerpt_length', 'type' => 'number', 'input_attrs' => array('min' => 20, 'max' => 1000, 'step' => 5))); $wp_customize->add_setting('mechano_setting_excerpt_length_layout_grid', array('default' => '0', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_excerpt_length_layout_grid', array('label' => esc_html__('Blog Grid Excerpt Length', 'mechano'), 'description' => esc_html__('For grid, list and circles layouts. Default: 35 (words)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_excerpt_length_layout_grid', 'type' => 'number', 'input_attrs' => array('min' => 20, 'max' => 1000, 'step' => 5))); $wp_customize->add_setting('mechano_setting_font_size_excerpt', array('default' => '16', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_excerpt', array('label' => esc_html__('Excerpt Font Size (px)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_font_size_excerpt', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_size_blog_grid_excerpt', array('default' => '15', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_blog_grid_excerpt', array('label' => esc_html__('Blog Grid Excerpt Font Size (px)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_font_size_blog_grid_excerpt', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_size_blog_regular_post_title', array('default' => '34', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_blog_regular_post_title', array('label' => esc_html__('Blog Regular Post Title Font Size (px)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_font_size_blog_regular_post_title', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_size_blog_grid_post_title', array('default' => '30', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_blog_grid_post_title', array('label' => esc_html__('Blog Grid Post Title Font Size (px)', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_font_size_blog_grid_post_title', 'type' => 'number', 'input_attrs' => array('min' => 9, 'max' => 200, 'step' => 1))); $wp_customize->add_setting('mechano_setting_numbered_pagination', array('default' => 'No', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_numbered_pagination', array('label' => esc_html__('Blog Navigation', 'mechano'), 'section' => 'mechano_section_blog', 'settings' => 'mechano_setting_numbered_pagination', 'type' => 'select', 'choices' => array('No' => esc_html__('Older/Newer Links', 'mechano'), 'Yes' => esc_html__('Numbered Pagination', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_post_style_global', array('default' => 'is-top-content-single-full with-parallax', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_post_style_global', array('label' => esc_html__('Post Style', 'mechano'), 'description' => esc_html__('This setting may be overridden for individual posts.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_style_global', 'type' => 'select', 'choices' => array('post-header-classic' => esc_html__('Classic', 'mechano'), 'is-top-content-single-medium' => esc_html__('Classic Medium', 'mechano'), 'is-top-content-single-medium with-parallax' => esc_html__('Classic Medium Parallax', 'mechano'), 'is-top-content-single-full' => esc_html__('Classic Full', 'mechano'), 'is-top-content-single-full with-parallax' => esc_html__('Classic Full Parallax', 'mechano'), 'is-top-content-single-full-margins' => esc_html__('Classic Full with Margins', 'mechano'), 'is-top-content-single-full-margins with-parallax' => esc_html__('Classic Full with Margins Parallax', 'mechano'), 'post-header-overlay post-header-overlay-inline is-post-dark' => esc_html__('Overlay', 'mechano'), 'is-top-content-single-medium with-overlay' => esc_html__('Overlay Medium', 'mechano'), 'is-top-content-single-full with-overlay' => esc_html__('Overlay Full', 'mechano'), 'is-top-content-single-full-margins with-overlay' => esc_html__('Overlay Full with Margins', 'mechano'), 'is-top-content-single-full-screen with-overlay' => esc_html__('Overlay Fullscreen', 'mechano'), 'is-top-content-single-medium with-title-full' => esc_html__('Title Full', 'mechano'), 'post-header-classic is-featured-image-left' => esc_html__('Image Left', 'mechano'), 'post-header-classic is-featured-image-right' => esc_html__('Image Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_post_header_style_global', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_post_header_style_global', array('label' => esc_html__('Post Header Style', 'mechano'), 'description' => esc_html__('This setting may be overridden for individual posts.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_header_style_global', 'type' => 'select', 'choices' => array( "" => esc_html__('Default', 'mechano'), 'is-header-float is-header-transparent' => esc_html__('Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-float-margin' => esc_html__('Transparent Margin', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent' => esc_html__('Half Transparent', 'mechano'), 'is-header-float is-header-transparent is-header-half-transparent is-header-float-box is-header-float-margin' => esc_html__('Half Transparent Margin', 'mechano'), 'is-header-float is-header-transparent-light' => esc_html__('Transparent Light', 'mechano'), 'is-header-float is-header-transparent-light is-header-float-margin' => esc_html__('Transparent Light Margin', 'mechano'), 'is-header-float is-header-float-box' => esc_html__('Floating Box', 'mechano'), 'is-header-float is-header-float-box is-header-float-margin' => esc_html__('Floating Box Margin', 'mechano'), 'is-header-float is-header-float-box is-header-float-box-menu' => esc_html__('Floating Box Menu', 'mechano') ))); $wp_customize->add_setting('mechano_setting_post_title_style', array('default' => 'is-single-post-title-default', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_post_title_style', array('label' => esc_html__('Post Title Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_title_style', 'type' => 'select', 'choices' => array('is-single-post-title-default' => esc_html__('Default', 'mechano'), 'is-single-post-title-with-margins' => esc_html__('Post Title With Margins', 'mechano')))); $wp_customize->add_setting('mechano_setting_post_page_title_text_align', array('default' => 'is-post-title-align-center', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_post_page_title_text_align', array('label' => esc_html__('Post-Page Title Text Align', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_page_title_text_align', 'type' => 'select', 'choices' => array('is-post-title-align-center' => esc_html__('Center', 'mechano'), 'is-post-title-align-left' => esc_html__('Left', 'mechano'), 'is-post-title-align-right' => esc_html__('Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_post_featured_image_position', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_post_featured_image_position', array('label' => esc_html__('Featured Image Position', 'mechano'), 'description' => esc_html__('Also for featured videos.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_featured_image_position', 'type' => 'select', 'choices' => array('below_title' => esc_html__('Below Title', 'mechano'), 'above_title' => esc_html__('Above Title', 'mechano')))); $wp_customize->add_setting('mechano_setting_post_media_width', array('default' => 'is-post-media-fixed', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_post_media_width', array('label' => esc_html__('Post Media Width', 'mechano'), 'description' => esc_html__('For images and embed media like video in content.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_media_width', 'type' => 'select', 'choices' => array('is-post-media-fixed' => esc_html__('Fixed', 'mechano'), 'is-post-media-overflow' => esc_html__('Overflow', 'mechano')))); $wp_customize->add_setting('mechano_setting_tags', array('default' => 'Yes', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_tags', array('label' => esc_html__('Tags', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_tags', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_tag_cloud_style', array('default' => 'is-tagcloud-minimal', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_tag_cloud_style', array('label' => esc_html__('Tag Cloud Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_tag_cloud_style', 'type' => 'select', 'choices' => array('is-tagcloud-minimal' => esc_html__('Minimal', 'mechano'), 'is-tagcloud-solid' => esc_html__('Solid', 'mechano')))); $wp_customize->add_setting('mechano_setting_share_links', array('default' => 'Yes', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_share_links', array('label' => esc_html__('Share Links', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_share_links', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_share_links_style', array('default' => 'is-share-links-boxed', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_share_links_style', array('label' => esc_html__('Share Links Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_share_links_style', 'type' => 'select', 'choices' => array('is-share-links-minimal' => esc_html__('Minimal', 'mechano'), 'is-share-links-boxed' => esc_html__('Boxed', 'mechano'), 'is-share-links-boxed-color' => esc_html__('Boxed Color', 'mechano'), 'is-share-links-border' => esc_html__('Border', 'mechano')))); $wp_customize->add_setting('mechano_setting_share_links_align', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_share_links_align', array('label' => esc_html__('Share Links Align', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_share_links_align', 'type' => 'select', 'choices' => array("" => esc_html__('Left', 'mechano'), 'is-share-links-center' => esc_html__('Center', 'mechano')))); $wp_customize->add_setting('mechano_setting_post_navigation', array('default' => 'Yes', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_post_navigation', array('label' => esc_html__('Post Navigation', 'mechano'), 'description' => esc_html__('For previous post/next post.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_navigation', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_post_nav_image', array('default' => 'is-nav-single-rounded', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_post_nav_image', array('label' => esc_html__('Post Navigation Image', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_nav_image', 'type' => 'select', 'choices' => array('is-nav-single-rounded' => esc_html__('Rounded', 'mechano'), 'is-nav-single-square' => esc_html__('Square', 'mechano')))); $wp_customize->add_setting('mechano_setting_post_nav_animated', array('default' => 'is-nav-single-no-animated', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_post_nav_animated', array('label' => esc_html__('Post Navigation Animated', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_post_nav_animated', 'type' => 'select', 'choices' => array('is-nav-single-no-animated' => esc_html__('No', 'mechano'), 'is-nav-single-animated' => esc_html__('Yes', 'mechano')))); $wp_customize->add_setting('mechano_setting_author_info_box', array('default' => 'yes_with_bio_info', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_author_info_box', array('label' => esc_html__('Author Info Box', 'mechano'), 'description' => esc_html__('About post author module under post content.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_author_info_box', 'type' => 'select', 'choices' => array('yes_with_bio_info' => esc_html__('Yes - If biographical info available', 'mechano'), 'yes' => esc_html__('Yes - Always', 'mechano'), 'no' => esc_html__('No', 'mechano')))); $wp_customize->add_setting('mechano_setting_author_info_box_style', array('default' => 'is-about-author-minimal', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_author_info_box_style', array('label' => esc_html__('Author Info Box Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_author_info_box_style', 'type' => 'select', 'choices' => array('is-about-author-minimal' => esc_html__('Minimal', 'mechano'), 'is-about-author-boxed' => esc_html__('Boxed', 'mechano'), 'is-about-author-boxed-dark' => esc_html__('Boxed Dark', 'mechano'), 'is-about-author-border' => esc_html__('Border', 'mechano'), 'is-about-author-border-arrow' => esc_html__('Border Arrow', 'mechano')))); $wp_customize->add_setting('mechano_setting_author_info_box_align', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_author_info_box_align', array('label' => esc_html__('Author Info Box Align', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_author_info_box_align', 'type' => 'select', 'choices' => array("" => esc_html__('Left', 'mechano'), 'is-about-author-center' => esc_html__('Center', 'mechano')))); $wp_customize->add_setting('mechano_setting_related_posts', array('default' => 'Yes', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_related_posts', array('label' => esc_html__('Related Posts', 'mechano'), 'description' => esc_html__('Display related posts module.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts', 'type' => 'select', 'choices' => $mechano_setting_yes_no)); $wp_customize->add_setting('mechano_setting_related_posts_style', array('default' => 'overlay', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_related_posts_style', array('label' => esc_html__('Related Posts Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts_style', 'type' => 'select', 'choices' => array('overlay' => esc_html__('Overlay', 'mechano'), 'classic' => esc_html__('Classic', 'mechano')))); $wp_customize->add_setting('mechano_setting_related_posts_parallax_effect', array('default' => 'is-related-posts-parallax', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_related_posts_parallax_effect', array('label' => esc_html__('Related Posts Parallax Effect', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts_parallax_effect', 'type' => 'select', 'choices' => array('is-related-posts-parallax' => esc_html__('Yes', 'mechano'), 'is-related-posts-parallax-no' => esc_html__('No', 'mechano')))); $wp_customize->add_setting('mechano_setting_related_posts_width', array('default' => 'is-related-posts-fixed', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_related_posts_width', array('label' => esc_html__('Related Posts Width', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts_width', 'type' => 'select', 'choices' => array('is-related-posts-overflow' => esc_html__('Overflow', 'mechano'), 'is-related-posts-fixed' => esc_html__('Fixed', 'mechano')))); $wp_customize->add_setting('mechano_setting_related_posts_category', array('default' => 'all', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_related_posts_category', array('label' => esc_html__('Related Posts Category', 'mechano'), 'description' => esc_html__('Display posts from all categories or within same category of current post.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts_category', 'type' => 'select', 'choices' => array('all' => esc_html__('All categories', 'mechano'), 'same' => esc_html__('Same category', 'mechano')))); $wp_customize->add_setting('mechano_setting_related_posts_order', array('default' => 'rand', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_related_posts_order', array('label' => esc_html__('Related Posts Order', 'mechano'), 'description' => esc_html__('Display posts order by.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts_order', 'type' => 'select', 'choices' => array('rand' => esc_html__('Random order', 'mechano'), 'date' => esc_html__('Order by date', 'mechano'), 'comment_count' => esc_html__('Order by number of comments', 'mechano')))); $wp_customize->add_setting( 'mechano_setting_related_posts_count', array( 'default' => 3, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh' ) ); $wp_customize->add_control( 'mechano_control_related_posts_count', array( 'label' => esc_html__('Related Posts Count', 'mechano'), 'description' => esc_html__('Number of posts to show.', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_related_posts_count', 'type' => 'number', 'input_attrs' => array( 'min' => 1, 'max' => 15, 'step' => 1 ) ) ); $wp_customize->add_setting('mechano_setting_comments_style', array('default' => 'is-comments-minimal', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_comments_style', array('label' => esc_html__('Comments Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_comments_style', 'type' => 'select', 'choices' => array('is-comments-minimal' => esc_html__('Minimal', 'mechano'), 'is-comments-boxed is-comments-boxed-solid' => esc_html__('Boxed', 'mechano'), 'is-comments-boxed is-comments-border' => esc_html__('Border', 'mechano'), 'is-comments-boxed is-comments-boxed-solid is-comments-image-out' => esc_html__('Boxed Image Out', 'mechano'), 'is-comments-boxed is-comments-border is-comments-image-out' => esc_html__('Border Image Out', 'mechano')))); $wp_customize->add_setting('mechano_setting_comment_image_shape', array('default' => 'is-comments-image-rounded', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_comment_image_shape', array('label' => esc_html__('Comment Image Shape', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_comment_image_shape', 'type' => 'select', 'choices' => array('is-comments-image-rounded' => esc_html__('Circle', 'mechano'), 'is-comments-image-soft-rounded' => esc_html__('Soft Rounded', 'mechano'), 'is-comments-image-square' => esc_html__('Square', 'mechano')))); $wp_customize->add_setting('mechano_setting_comment_form_style', array('default' => 'is-comment-form-boxed is-comment-form-border', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_comment_form_style', array('label' => esc_html__('Comment Form Style', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_comment_form_style', 'type' => 'select', 'choices' => array('is-comment-form-minimal' => esc_html__('Minimal', 'mechano'), 'is-comment-form-boxed is-comment-form-boxed-solid' => esc_html__('Boxed', 'mechano'), 'is-comment-form-boxed is-comment-form-border' => esc_html__('Border', 'mechano'), 'is-comment-form-boxed is-comment-form-border-arrow' => esc_html__('Border Arrow', 'mechano')))); $wp_customize->add_setting('mechano_setting_audio_embeds_position', array('default' => "", 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_audio_embeds_position', array('label' => esc_html__('Audio Embeds Position', 'mechano'), 'section' => 'mechano_section_post', 'settings' => 'mechano_setting_audio_embeds_position', 'type' => 'select', 'choices' => array("" => esc_html__('Default', 'mechano'), 'is-audio-embeds-sticky' => esc_html__('Sticky', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_meta_prefix_style', array('default' => 'is-meta-with-icons', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_meta_prefix_style', array('label' => esc_html__('Meta Prefix Style', 'mechano'), 'section' => 'mechano_section_meta_style', 'settings' => 'mechano_setting_meta_prefix_style', 'type' => 'select', 'choices' => array('is-meta-with-none' => esc_html__('None', 'mechano'), 'is-meta-with-icons' => esc_html__('Icons', 'mechano'), 'is-meta-with-prefix' => esc_html__('Prefix Text', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_cat_link_style', array('default' => 'is-cat-link-borders-light is-cat-link-rounded', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_meta_cat_link_style', array('label' => esc_html__('Category Link Style', 'mechano'), 'section' => 'mechano_section_meta_style', 'settings' => 'mechano_setting_meta_cat_link_style', 'type' => 'select', 'choices' => array('is-cat-link-link-style' => esc_html__('Link Style', 'mechano'), 'is-cat-link-regular' => esc_html__('Regular Text', 'mechano'), 'is-cat-link-border-bottom' => esc_html__('Border Bottom', 'mechano'), 'is-cat-link-borders' => esc_html__('Borders', 'mechano'), 'is-cat-link-borders is-cat-link-rounded' => esc_html__('Borders Round', 'mechano'), 'is-cat-link-borders-light' => esc_html__('Borders Light', 'mechano'), 'is-cat-link-borders-light is-cat-link-rounded' => esc_html__('Borders Light Round', 'mechano'), 'is-cat-link-solid' => esc_html__('Solid', 'mechano'), 'is-cat-link-solid is-cat-link-rounded' => esc_html__('Solid Round', 'mechano'), 'is-cat-link-solid-light' => esc_html__('Solid Light', 'mechano'), 'is-cat-link-solid-light is-cat-link-rounded' => esc_html__('Solid Light Round', 'mechano'), 'is-cat-link-underline' => esc_html__('Underline', 'mechano'), 'is-cat-link-line-before' => esc_html__('Line Before', 'mechano'), 'is-cat-link-ribbon' => esc_html__('Ribbon', 'mechano'), 'is-cat-link-ribbon-left' => esc_html__('Ribbon Left', 'mechano'), 'is-cat-link-ribbon-right' => esc_html__('Ribbon Right', 'mechano'), 'is-cat-link-ribbon is-cat-link-ribbon-dark' => esc_html__('Ribbon Dark', 'mechano'), 'is-cat-link-ribbon-left is-cat-link-ribbon-dark' => esc_html__('Ribbon Dark Left', 'mechano'), 'is-cat-link-ribbon-right is-cat-link-ribbon-dark' => esc_html__('Ribbon Dark Right', 'mechano')))); $wp_customize->add_setting('mechano_setting_font_size_meta', array('default' => '11', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_size_meta', array('label' => esc_html__('Meta Font Size (px)', 'mechano'), 'section' => 'mechano_section_meta_style', 'settings' => 'mechano_setting_font_size_meta', 'type' => 'number', 'input_attrs' => array('min' => 8, 'max' => 24, 'step' => 1))); $wp_customize->add_setting('mechano_setting_font_weight_meta', array('default' => '500', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_font_weight_meta', array('label' => esc_html__('Meta Font Weight', 'mechano'), 'section' => 'mechano_section_meta_style', 'settings' => 'mechano_setting_font_weight_meta', 'type' => 'select', 'choices' => $mechano_font_weights)); $wp_customize->add_setting('mechano_setting_text_transform_meta', array('default' => 'is-meta-uppercase', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'postMessage')); $wp_customize->add_control('mechano_control_text_transform_meta', array('label' => esc_html__('Meta Text Transform', 'mechano'), 'section' => 'mechano_section_meta_style', 'settings' => 'mechano_setting_text_transform_meta', 'type' => 'select', 'choices' => array('is-meta-uppercase' => esc_html__('Uppercase', 'mechano'), "" => esc_html__('None', 'mechano')))); $wp_customize->add_setting('mechano_setting_color_cat_link_bg_border', array('default' => "", 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'mechano_control_color_cat_link_bg_border', array('label' => esc_html__('Category Link Bg/Border Color', 'mechano'), 'section' => 'mechano_section_meta_style', 'settings' => 'mechano_setting_color_cat_link_bg_border'))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_meta_blog_cat', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_cat', array('label' => esc_html__('Category', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_cat', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_date', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_date', array('label' => esc_html__('Date', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_date', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_comment', array('default' => 'hidden', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_comment', array('label' => esc_html__('Comment', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_comment', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_comment_hide_0', array('default' => 1, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_comment_hide_0', array('label' => esc_html__('Hide Comment if count is 0', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_comment_hide_0', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_meta_blog_author', array('default' => 'hidden', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_author', array('label' => esc_html__('Author', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_author', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_share', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_share', array('label' => esc_html__('Share', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_share', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_like', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_like', array('label' => esc_html__('Like', 'mechano'), 'description' => esc_html__('Install and activate "I Recommend This" plugin.', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_like', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_views_count', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_views_count', array('label' => esc_html__('Views Count', 'mechano'), 'description' => esc_html__('Install and activate "Top 10 - Popular Posts" plugin.', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_views_count', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_blog_edit', array('default' => 'hidden', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_blog_edit', array('label' => esc_html__('Edit', 'mechano'), 'section' => 'mechano_section_meta_blog', 'settings' => 'mechano_setting_meta_blog_edit', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); /* ================================================== */ $wp_customize->add_setting('mechano_setting_meta_post_cat', array('default' => 'above_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_cat', array('label' => esc_html__('Category', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_cat', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_date', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_date', array('label' => esc_html__('Date', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_date', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_comment', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_comment', array('label' => esc_html__('Comment', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_comment', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_comment_hide_0', array('default' => 1, 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_comment_hide_0', array('label' => esc_html__('Hide Comment if count is 0', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_comment_hide_0', 'type' => 'checkbox')); $wp_customize->add_setting('mechano_setting_meta_post_author', array('default' => 'hidden', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_author', array('label' => esc_html__('Author', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_author', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_share', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_share', array('label' => esc_html__('Share', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_share', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_like', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_like', array('label' => esc_html__('Like', 'mechano'), 'description' => esc_html__('Install and activate "I Recommend This" plugin.', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_like', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_views_count', array('default' => 'below_title', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_views_count', array('label' => esc_html__('Views Count', 'mechano'), 'description' => esc_html__('Install and activate "Top 10 - Popular Posts" plugin.', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_views_count', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); $wp_customize->add_setting('mechano_setting_meta_post_edit', array('default' => 'hidden', 'sanitize_callback' => 'mechano_sanitize', 'transport' => 'refresh')); $wp_customize->add_control('mechano_control_meta_post_edit', array('label' => esc_html__('Edit', 'mechano'), 'section' => 'mechano_section_meta_post', 'settings' => 'mechano_setting_meta_post_edit', 'type' => 'select', 'choices' => array('above_title' => esc_html__('Above Title', 'mechano'), 'below_title' => esc_html__('Below Title', 'mechano'), 'below_content' => esc_html__('Below Content', 'mechano'), 'hidden' => esc_html__('Hidden', 'mechano')))); /* ================================================== */ $wp_customize->get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; } add_action('customize_register', 'mechano_customize_register__settings');
Submit
FILE
FOLDER
Name
Size
Permission
Action
css
---
0755
demo-data
---
0755
js
---
0755
plugins
---
0755
about-author.php
1412 bytes
0644
admin--class-tgm-plugin-activation.php
126853 bytes
0644
admin--demo-import.php
10565 bytes
0644
admin--help-tab.php
2049 bytes
0644
admin--notice.php
9889 bytes
0644
ajax-loader.gif
4203 bytes
0644
archive-title.php
3072 bytes
0644
automatic-excerpt.php
3257 bytes
0644
content-none.php
1105 bytes
0644
customizer-default-values.php
3280 bytes
0644
customizer-sections.php
8509 bytes
0644
customizer-settings.php
262878 bytes
0644
enqueue-inline-script.php
2601 bytes
0644
enqueue-inline-style.php
66490 bytes
0644
enqueue-styles-scripts.php
13122 bytes
0644
functions-core.php
8160 bytes
0644
functions-layout-grid.php
1082 bytes
0644
functions-layout-regular.php
802 bytes
0644
functions-portfolio.php
2917 bytes
0644
functions-singular.php
13678 bytes
0644
functions-woocommerce.php
4674 bytes
0644
html-attributes.php
18503 bytes
0644
image-sizes.php
1986 bytes
0644
index.php
30 bytes
0644
navigation-archive.php
1231 bytes
0644
navigation-single.php
4441 bytes
0644
override-post-class.php
1447 bytes
0644
override-post-gallery.php
7368 bytes
0644
post-meta.php
7608 bytes
0644
pre-get-posts.php
353 bytes
0644
theme-options.php
11646 bytes
0644
widget_area-register.php
10228 bytes
0644
widget_area-sidebar-archive.php
4224 bytes
0644
widget_area-sidebar-singular.php
7161 bytes
0644
N4ST4R_ID | Naxtarrr