PATH:
home
/
centosnipponia
/
public_html
/
sweetrich
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
customizer
/
options
<?php /** * Hero area settings * * @package Sydney */ //___Header area___// $wp_customize->add_panel( 'sydney_panel_hero', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Hero area', 'sydney'), ) ); //___Header type___// $wp_customize->add_section( 'sydney_header_type', array( 'title' => __('Hero type', 'sydney'), 'priority' => 10, 'panel' => 'sydney_panel_hero', ) ); if ( ( get_theme_mod('site_header_type') == 'video' ) || ( get_theme_mod('front_header_type') == 'video' ) ) { $choices = array( 'crelly' => __('Crelly Slider', 'sydney'), 'slider' => __('Full screen slider', 'sydney'), 'image' => __('Image', 'sydney'), 'video' => __('Video[deprecated - please use the video option below]', 'sydney'), 'core-video'=> __('Video', 'sydney'), 'shortcode' => __('Shortcode', 'sydney'), 'nothing' => __('No header (only menu)', 'sydney') ); } else { $choices = array( 'crelly' => __('Crelly Slider', 'sydney'), 'slider' => __('Full screen slider', 'sydney'), 'image' => __('Image', 'sydney'), 'core-video'=> __('Video', 'sydney'), 'shortcode' => __('Shortcode', 'sydney'), 'nothing' => __('No header (only menu)', 'sydney') ); } if ( !get_option( 'sydney-update-header' ) ) { $front_default = 'slider'; $site_default = 'image'; } else { $front_default = 'nothing'; $site_default = 'nothing'; } //Front page $wp_customize->add_setting( 'front_header_type', array( 'default' => $front_default, 'sanitize_callback' => 'sydney_sanitize_layout', ) ); $wp_customize->add_control( 'front_header_type', array( 'type' => 'radio', 'label' => __('Front page hero type', 'sydney'), 'section' => 'sydney_header_type', 'description' => __('Select the hero type for your front page', 'sydney'), 'choices' => $choices, ) ); //Site $wp_customize->add_setting( 'site_header_type', array( 'default' => $site_default, 'sanitize_callback' => 'sydney_sanitize_layout', ) ); $wp_customize->add_control( 'site_header_type', array( 'type' => 'radio', 'label' => __('Site hero type', 'sydney'), 'section' => 'sydney_header_type', 'description' => __('Select the hero type for all pages except the front page', 'sydney'), 'choices' => $choices, ) ); //___Shortcode___// $wp_customize->add_section( 'sydney_shortcode', array( 'title' => __('Shortcode', 'sydney'), 'description' => __( 'You can add any kind of shortcode you want. Ideally, you\'ll add a shortcode for a slider plugin. Please keep in mind that you also need to go to <strong>Header Type</strong> and select the <strong>Shortcode</strong> mode.', 'sydney'), 'priority' => 11, 'panel' => 'sydney_panel_hero', ) ); //Alias $wp_customize->add_setting( 'header_shortcode', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'header_shortcode', array( 'label' => __( 'Add your shortcode here', 'sydney' ), 'section' => 'sydney_shortcode', 'type' => 'text', 'priority' => 11 ) ); //___Crelly Slider___// $wp_customize->add_section( 'sydney_rev', array( 'title' => __('Crelly Slider', 'sydney'), 'description' => __('Make sure you have installed Crelly Slider when prompted by the theme if you plan to use it. Go to the <strong>Header Type</strong> tab to choose where to display Crelly Slider', 'sydney'), 'priority' => 11, 'panel' => 'sydney_panel_hero', ) ); //Alias $wp_customize->add_setting( 'rev_alias', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'rev_alias', array( 'label' => __( 'Add the alias for the slider you created in Crelly Slider', 'sydney' ), 'section' => 'sydney_rev', 'type' => 'text', 'priority' => 11 ) ); //___Slider___// $wp_customize->add_section( 'sydney_slider', array( 'title' => __('Hero Slider', 'sydney'), 'priority' => 11, 'panel' => 'sydney_panel_hero', ) ); $wp_customize->add_setting( 'hero_slider_tabs', array( 'default' => '', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Tab_Control ( $wp_customize, 'hero_slider_tabs', array( 'label' => '', 'section' => 'sydney_slider', 'controls_general' => json_encode( array( '#customize-control-slider_title_decoration','#customize-control-slider_text_animation','#customize-control-slider_button_animation','#customize-control-hero_slider_global_button','#customize-control-slider_button_url_2','#customize-control-slider_button_text_2','#customize-control-slider_button_url_3','#customize-control-slider_button_text_3','#customize-control-slider_button_url_4','#customize-control-slider_button_text_4','#customize-control-slider_button_url_5','#customize-control-slider_button_text_5','#customize-control-slider_button_url_1','#customize-control-slider_button_text_1','#customize-control-slider_animation','#customize-control-slider_title_heading_tag','#customize-control-slider_paged','#customize-control-accordion_slider_image_1','#customize-control-slider_image_1','#customize-control-slider_title_1','#customize-control-slider_subtitle_1','#customize-control-accordion_slider_image_2','#customize-control-slider_image_2','#customize-control-slider_title_2','#customize-control-slider_subtitle_2','#customize-control-accordion_slider_image_3','#customize-control-slider_image_3','#customize-control-slider_title_3','#customize-control-slider_subtitle_3','#customize-control-accordion_slider_image_4','#customize-control-slider_image_4','#customize-control-slider_title_4','#customize-control-slider_subtitle_4','#customize-control-accordion_slider_image_5','#customize-control-slider_image_5','#customize-control-slider_title_5','#customize-control-slider_subtitle_5','#customize-control-hero_slider_divider_1','#customize-control-accordion_hero_slider_button','#customize-control-slider_button_url','#customize-control-slider_button_text','#customize-control-hero_slider_divider_2','#customize-control-accordion_hero_slider_settings','#customize-control-slider_speed','#customize-control-textslider_slide','#customize-control-mobile_slider','#customize-control-hero_slider_divider_3','#customize-control-hero_slider_activate_link' ) ), 'controls_design' => json_encode( array( '#customize-control-slider_v_alignment','#customize-control-slider_h_alignment','#customize-control-hero_slider_divider_4','#customize-control-hero_slider_overlay','#customize-control-hero_slider_title_color','#customize-control-hero_slider_subtitle_color','#customize-control-hero_slider_divider_5','#customize-control-hero_slider_title','#customize-control-hero_slider_subtitle','#customize-control-hero_slider_divider_6','#customize-control-hero_slider_content_width', ) ), ) ) ); //Image 1 $wp_customize->add_setting( 'accordion_slider_image_1', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_slider_image_1', array( 'label' => esc_html__( 'First slide', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_button_text_1', ) ) ); $wp_customize->add_setting( 'slider_image_1', array( 'default' => get_stylesheet_directory_uri() . '/images/1.jpg', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_image_1', array( 'label' => __( 'Upload your first image for the slider', 'sydney' ), 'type' => 'image', 'section' => 'sydney_slider', 'settings' => 'slider_image_1', ) ) ); //Title $wp_customize->add_setting( 'slider_title_1', array( 'default' => __('Welcome to Sydney','sydney'), 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_title_1', array( 'label' => __( 'Title for the first slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Subtitle $wp_customize->add_setting( 'slider_subtitle_1', array( 'default' => __('Feel free to look around','sydney'), 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_subtitle_1', array( 'label' => __( 'Subtitle for the first slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_url_1', array( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'slider_button_url_1', array( 'label' => __( 'URL for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_text_1', array( 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'slider_button_text_1', array( 'label' => __( 'Text for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Image 2 $wp_customize->add_setting( 'accordion_slider_image_2', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_slider_image_2', array( 'label' => esc_html__( 'Second slide', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_button_text_2', ) ) ); $wp_customize->add_setting( 'slider_image_2', array( 'default' => get_stylesheet_directory_uri() . '/images/2.jpg', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_image_2', array( 'label' => __( 'Upload your second image for the slider', 'sydney' ), 'type' => 'image', 'section' => 'sydney_slider', 'settings' => 'slider_image_2', ) ) ); //Title $wp_customize->add_setting( 'slider_title_2', array( 'default' => __('Ready to begin your journey?','sydney'), 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_title_2', array( 'label' => __( 'Title for the second slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Subtitle $wp_customize->add_setting( 'slider_subtitle_2', array( 'default' => __('Click the button below','sydney'), 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_subtitle_2', array( 'label' => __( 'Subtitle for the second slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_url_2', array( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'slider_button_url_2', array( 'label' => __( 'URL for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_text_2', array( 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'slider_button_text_2', array( 'label' => __( 'Text for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Image 3 $wp_customize->add_setting( 'accordion_slider_image_3', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_slider_image_3', array( 'label' => esc_html__( 'Third slide', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_button_text_3', ) ) ); $wp_customize->add_setting( 'slider_image_3', array( 'default-image' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_image_3', array( 'label' => __( 'Upload your third image for the slider', 'sydney' ), 'type' => 'image', 'section' => 'sydney_slider', 'settings' => 'slider_image_3', ) ) ); //Title $wp_customize->add_setting( 'slider_title_3', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_title_3', array( 'label' => __( 'Title for the third slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Subtitle $wp_customize->add_setting( 'slider_subtitle_3', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_subtitle_3', array( 'label' => __( 'Subtitle for the third slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_url_3', array( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'slider_button_url_3', array( 'label' => __( 'URL for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_text_3', array( 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'slider_button_text_3', array( 'label' => __( 'Text for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Image 4 $wp_customize->add_setting( 'accordion_slider_image_4', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_slider_image_4', array( 'label' => esc_html__( 'Fourth slide', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_button_text_4', ) ) ); $wp_customize->add_setting( 'slider_image_4', array( 'default-image' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_image_4', array( 'label' => __( 'Upload your fourth image for the slider', 'sydney' ), 'type' => 'image', 'section' => 'sydney_slider', 'settings' => 'slider_image_4', ) ) ); //Title $wp_customize->add_setting( 'slider_title_4', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_title_4', array( 'label' => __( 'Title for the fourth slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Subtitle $wp_customize->add_setting( 'slider_subtitle_4', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_subtitle_4', array( 'label' => __( 'Subtitle for the fourth slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_url_4', array( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'slider_button_url_4', array( 'label' => __( 'URL for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_text_4', array( 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'slider_button_text_4', array( 'label' => __( 'Text for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Image 5 $wp_customize->add_setting( 'accordion_slider_image_5', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_slider_image_5', array( 'label' => esc_html__( 'Fifth slide', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_button_text_5', ) ) ); $wp_customize->add_setting( 'slider_image_5', array( 'default-image' => '', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_image_5', array( 'label' => __( 'Upload your fifth image for the slider', 'sydney' ), 'type' => 'image', 'section' => 'sydney_slider', 'settings' => 'slider_image_5', ) ) ); //Title $wp_customize->add_setting( 'slider_title_5', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_title_5', array( 'label' => __( 'Title for the fifth slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); //Subtitle $wp_customize->add_setting( 'slider_subtitle_5', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_subtitle_5', array( 'label' => __( 'Subtitle for the fifth slide', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_url_5', array( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'slider_button_url_5', array( 'label' => __( 'URL for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_text_5', array( 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'slider_button_text_5', array( 'label' => __( 'Text for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'hero_slider_divider_1', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Divider_Control( $wp_customize, 'hero_slider_divider_1', array( 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'accordion_hero_slider_button', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_hero_slider_button', array( 'label' => esc_html__( 'Slider button', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_button_text', ) ) ); $wp_customize->add_setting( 'hero_slider_global_button', array( 'default' => '', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Text_Control( $wp_customize, 'hero_slider_global_button', array( 'description' => esc_html__( 'You can define a button here for all your slides or use the individual button options for each slide.', 'sydney' ), 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'slider_button_url', array( 'default' => '#primary', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_button_url', array( 'label' => __( 'URL for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'slider_button_text', array( 'default' => __('Click to begin','sydney'), 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'slider_button_text', array( 'label' => __( 'Text for your call to action button', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'text', ) ); $wp_customize->add_setting( 'hero_slider_divider_2', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Divider_Control( $wp_customize, 'hero_slider_divider_2', array( 'section' => 'sydney_slider', ) ) ); /** * Slider settings */ $wp_customize->add_setting( 'accordion_hero_slider_settings', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Accordion_Control( $wp_customize, 'accordion_hero_slider_settings', array( 'label' => esc_html__( 'Slider settings', 'sydney' ), 'section' => 'sydney_slider', 'until' => 'slider_title_decoration', ) ) ); //Speed $wp_customize->add_setting( 'slider_speed', array( 'default' => __('4000','sydney'), 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'slider_speed', array( 'label' => __( 'Slider speed', 'sydney' ), 'section' => 'sydney_slider', 'type' => 'number', 'description' => __('Slider speed in miliseconds. Use 0 to disable [default: 4000]', 'sydney'), ) ); $wp_customize->add_setting( 'textslider_slide', array( 'sanitize_callback' => 'sydney_sanitize_checkbox', ) ); $wp_customize->add_control( new Sydney_Toggle_Control( $wp_customize, 'textslider_slide', array( 'label' => esc_html__( 'Prevent the text from changing?', 'sydney' ), 'description' => esc_html__( 'Use this if you want to show the same text on all slides.', 'sydney' ), 'section' => 'sydney_slider', ) ) ); //Mobile slider $wp_customize->add_setting( 'mobile_slider', array( 'default' => 'responsive', 'sanitize_callback' => 'sydney_sanitize_mslider', ) ); $wp_customize->add_control( 'mobile_slider', array( 'type' => 'radio', 'label' => esc_html__( 'Mobile behavior for the slider images', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'fullscreen' => __('Full screen', 'sydney'), 'responsive' => __('Responsive', 'sydney'), ), ) ); $wp_customize->add_setting( 'slider_paged', array( 'sanitize_callback' => 'sydney_sanitize_checkbox', ) ); $wp_customize->add_control( new Sydney_Toggle_Control( $wp_customize, 'slider_paged', array( 'label' => esc_html__( 'Show the slider only on the first blog page', 'sydney' ), 'description' => esc_html__( 'This removes the slider from pages 2, 3, 4, etc.', 'sydney' ), 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'slider_title_heading_tag', array( 'default' => 'h2', 'sanitize_callback' => 'sydney_sanitize_selects', ) ); $wp_customize->add_control( 'slider_title_heading_tag', array( 'type' => 'select', 'label' => esc_html__( 'Title tag', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'h1' => esc_html__( 'H1', 'sydney' ), 'h2' => esc_html__( 'H2', 'sydney' ), 'h3' => esc_html__( 'H3', 'sydney' ), 'h4' => esc_html__( 'H4', 'sydney' ), 'h5' => esc_html__( 'H5', 'sydney' ), 'h6' => esc_html__( 'H6', 'sydney' ), ), ) ); $wp_customize->add_setting( 'slider_animation', array( 'default' => 'fade', 'sanitize_callback' => 'sydney_sanitize_selects', ) ); $wp_customize->add_control( 'slider_animation', array( 'type' => 'select', 'label' => esc_html__( 'Transition type', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'fade' => esc_html__( 'Fade', 'sydney' ), 'slide' => esc_html__( 'Slide', 'sydney' ), ), ) ); $wp_customize->add_setting( 'slider_text_animation', array( 'default' => 'slideinright', 'sanitize_callback' => 'sydney_sanitize_selects', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'slider_text_animation', array( 'type' => 'select', 'label' => esc_html__( 'Text entrance animation', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'slideinright' => esc_html__( 'Slider from right', 'sydney' ), 'slideinleft' => esc_html__( 'Slide from left', 'sydney' ), 'slideintop' => esc_html__( 'Slide from top', 'sydney' ), 'slideinbottom' => esc_html__( 'Slide from bottom', 'sydney' ), 'fadein' => esc_html__( 'Fade in', 'sydney' ), 'none' => esc_html__( 'None', 'sydney' ), ), ) ); $wp_customize->add_setting( 'slider_button_animation', array( 'default' => 'none', 'sanitize_callback' => 'sydney_sanitize_selects', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'slider_button_animation', array( 'type' => 'select', 'label' => esc_html__( 'Button entrance animation', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'slideinright' => esc_html__( 'Slider from right', 'sydney' ), 'slideinleft' => esc_html__( 'Slide from left', 'sydney' ), 'slideintop' => esc_html__( 'Slide from top', 'sydney' ), 'slideinbottom' => esc_html__( 'Slide from bottom', 'sydney' ), 'fadein' => esc_html__( 'Fade in', 'sydney' ), 'none' => esc_html__( 'None', 'sydney' ), ), ) ); $wp_customize->add_setting( 'slider_title_decoration', array( 'default' => 1, 'sanitize_callback' => 'sydney_sanitize_checkbox', ) ); $wp_customize->add_control( new Sydney_Toggle_Control( $wp_customize, 'slider_title_decoration', array( 'label' => esc_html__( 'Show title line decoration', 'sydney' ), 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_divider_3', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Divider_Control( $wp_customize, 'hero_slider_divider_3', array( 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_activate_link', array( 'default' => '', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Text_Control( $wp_customize, 'hero_slider_activate_link', array( 'description' => '<a href="javascript:wp.customize.section( \'sydney_header_type\' ).focus();">' . esc_html__( 'Click here to select where you want to display the slider', 'sydney' ) . '</a>', 'section' => 'sydney_slider', ) ) ); //Hero slider styles $wp_customize->add_setting( 'slider_v_alignment', array( 'default' => 'middle', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Sydney_Radio_Buttons( $wp_customize, 'slider_v_alignment', array( 'label' => esc_html__( 'Vertical alignment', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'top' => esc_html__( 'Top', 'sydney' ), 'middle' => esc_html__( 'Middle', 'sydney' ), 'bottom' => esc_html__( 'Bottom', 'sydney' ), ), ) ) ); $wp_customize->add_setting( 'slider_h_alignment', array( 'default' => 'middle', 'sanitize_callback' => 'sydney_sanitize_text', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Sydney_Radio_Buttons( $wp_customize, 'slider_h_alignment', array( 'label' => esc_html__( 'Horizontal alignment', 'sydney' ), 'section' => 'sydney_slider', 'choices' => array( 'left' => esc_html__( 'Left', 'sydney' ), 'center' => esc_html__( 'Center', 'sydney' ), 'right' => esc_html__( 'Right', 'sydney' ), ), ) ) ); $wp_customize->add_setting( 'hero_slider_divider_4', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Divider_Control( $wp_customize, 'hero_slider_divider_4', array( 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_overlay', array( 'default' => 'rgba(0,0,0,0)', 'sanitize_callback' => 'sydney_sanitize_hex_rgba', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Sydney_Alpha_Color( $wp_customize, 'hero_slider_overlay', array( 'label' => esc_html__( 'Overlay color', 'sydney' ), 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_title_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sydney_sanitize_hex_rgba', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Sydney_Alpha_Color( $wp_customize, 'hero_slider_title_color', array( 'label' => esc_html__( 'Titles color', 'sydney' ), 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_subtitle_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sydney_sanitize_hex_rgba', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Sydney_Alpha_Color( $wp_customize, 'hero_slider_subtitle_color', array( 'label' => esc_html__( 'Subtitles color', 'sydney' ), 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_divider_5', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Divider_Control( $wp_customize, 'hero_slider_divider_5', array( 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_title_desktop', array( 'default' => 68, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'hero_slider_title_tablet', array( 'default' => 32, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'hero_slider_title_mobile', array( 'default' => 18, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Sydney_Responsive_Slider( $wp_customize, 'hero_slider_title', array( 'label' => esc_html__( 'Titles font size', 'sydney' ), 'section' => 'sydney_slider', 'is_responsive' => 1, 'settings' => array ( 'size_desktop' => 'hero_slider_title_desktop', 'size_tablet' => 'hero_slider_title_tablet', 'size_mobile' => 'hero_slider_title_mobile', ), 'input_attrs' => array ( 'min' => 12, 'max' => 100, 'step' => 1 ) ) ) ); $wp_customize->add_setting( 'hero_slider_subtitle_desktop', array( 'default' => 18, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'hero_slider_subtitle_tablet', array( 'default' => 18, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'hero_slider_subtitle_mobile', array( 'default' => 16, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Sydney_Responsive_Slider( $wp_customize, 'hero_slider_subtitle', array( 'label' => esc_html__( 'Subtitles font size', 'sydney' ), 'section' => 'sydney_slider', 'is_responsive' => 1, 'settings' => array ( 'size_desktop' => 'hero_slider_subtitle_desktop', 'size_tablet' => 'hero_slider_subtitle_tablet', 'size_mobile' => 'hero_slider_subtitle_mobile', ), 'input_attrs' => array ( 'min' => 12, 'max' => 100, 'step' => 1 ) ) ) ); $wp_customize->add_setting( 'hero_slider_divider_6', array( 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new Sydney_Divider_Control( $wp_customize, 'hero_slider_divider_6', array( 'section' => 'sydney_slider', ) ) ); $wp_customize->add_setting( 'hero_slider_content_width_desktop', array( 'default' => 100, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'hero_slider_content_width_tablet', array( 'default' => 100, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_setting( 'hero_slider_content_width_mobile', array( 'default' => 100, 'transport' => 'postMessage', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Sydney_Responsive_Slider( $wp_customize, 'hero_slider_content_width', array( 'label' => esc_html__( 'Content width [%]', 'sydney' ), 'section' => 'sydney_slider', 'is_responsive' => 1, 'settings' => array ( 'size_desktop' => 'hero_slider_content_width_desktop', 'size_tablet' => 'hero_slider_content_width_tablet', 'size_mobile' => 'hero_slider_content_width_mobile', ), 'input_attrs' => array ( 'min' => 0, 'max' => 100, 'step' => 1 ) ) ) ); if ( ( get_theme_mod('site_header_type') == 'video' ) || ( get_theme_mod('front_header_type') == 'video' ) ) { //Remove custom video header section if it's not in use already //___Video___// $wp_customize->add_section( 'sydney_video', array( 'title' => __('Video', 'sydney'), 'description' => __('Add your video links here and then go above to Header Type to enable your video in the header. Having your video in all the types requested below assures a higher browser compatibility.', 'sydney'), 'priority' => 13, 'panel' => 'sydney_panel_hero', ) ); $wp_customize->add_setting( 'video_mp4', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'video_mp4', array( 'label' => __( 'MP4 video link', 'sydney' ), 'section' => 'sydney_video', 'type' => 'text', 'priority' => 10 ) ); $wp_customize->add_setting( 'video_webm', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'video_webm', array( 'label' => __( 'WEBM video link', 'sydney' ), 'section' => 'sydney_video', 'type' => 'text', 'priority' => 10 ) ); $wp_customize->add_setting( 'video_ogv', array( 'default' => '', 'sanitize_callback' => 'sydney_sanitize_text', ) ); $wp_customize->add_control( 'video_ogv', array( 'label' => __( 'OGV video link', 'sydney' ), 'section' => 'sydney_video', 'type' => 'text', 'priority' => 10 ) ); $wp_customize->add_setting( 'video_poster', array( 'default-image' => '', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'video_poster', array( 'label' => __( 'Poster for your video', 'sydney' ), 'type' => 'image', 'section' => 'sydney_video', 'priority' => 10, ) ) ); }
[+]
..
[+]
modules
[-] blog-single.php
[edit]
[-] blog.php
[edit]
[-] colors.php
[edit]
[-] cpt-panels.php
[edit]
[-] footer.php
[edit]
[-] general.php
[edit]
[-] header-mobile.php
[edit]
[-] header.php
[edit]
[-] hero-area.php
[edit]
[-] layouts.php
[edit]
[-] performance.php
[edit]
[-] topbar.php
[edit]
[-] typography.php
[edit]
[-] woocommerce-single.php
[edit]
[-] woocommerce.php
[edit]
[-] .htaccess.disabled
[edit]