function pixova_lite_customize_register($wp_customize) { $wp_customize->get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; // Remove sections from customizer front-view $wp_customize->remove_section('colors'); $wp_customize->remove_section('background_image'); # Necessary since we can't debug on IIS servers # Mac OS X rules for dev :) if (!pixova_lite_on_iis()) { // Change panel for Site Title & Tagline Section $site_title = $wp_customize->get_section('title_tagline'); $site_title->panel = 'pixova_lite_panel_general'; // Change panel for Background Image /* $site_title = $wp_customize->get_section( 'background_image' ); $site_title->panel = 'pixova_lite_panel_general'; */ // Change panel for Header Image $site_title2 = $wp_customize->get_section('header_image'); $site_title2->panel = 'pixova_lite_panel_intro'; // Change panel for Static Front Page $site_title3 = $wp_customize->get_section('static_front_page'); $site_title3->panel = 'pixova_lite_panel_general'; // Change priority for Site Title $site_title4 = $wp_customize->get_control('blogname'); $site_title4->priority = 15; // Change priority for Site Tagline $site_title5 = $wp_customize->get_control('blogdescription'); $site_title5->priority = 17; } /**********************************************/ /*************** ORDER ************************/ /**********************************************/ $wp_customize->add_section('pixova_lite_order_section', array('title' => __('Section order', 'pixova-lite'), 'priority' => 26)); $wp_customize->add_setting('pixova_lite_order_section', array('sanitize_callback' => 'pixova_lite_sanitize_pro_version')); $wp_customize->add_control(new Pixova_Lite_Theme_Support($wp_customize, 'pixova_lite_order_section', array('section' => 'pixova_lite_order_section'))); $wp_customize->add_section('pixova_lite_pricing_section', array('title' => __('Pricing tables', 'pixova-lite'), 'priority' => 38)); $wp_customize->add_setting('pixova_lite_pricing_section', array('sanitize_callback' => 'pixova_lite_sanitize_pro_version')); $wp_customize->add_control(new Pixova_Lite_Theme_Support_Pricing($wp_customize, 'pixova_lite_pricing_section', array('section' => 'pixova_lite_pricing_section'))); $wp_customize->add_section('pixova_lite_maps_section', array('title' => __('Google Maps', 'pixova-lite'), 'priority' => 37)); $wp_customize->add_setting('pixova_lite_maps_section', array('sanitize_callback' => 'pixova_lite_sanitize_pro_version')); $wp_customize->add_control(new Pixova_Lite_Theme_Support_Googlemap($wp_customize, 'pixova_lite_maps_section', array('section' => 'pixova_lite_maps_section'))); /* Section Visibility */ $wp_customize->add_section('pixova_lite_visibility_section', array('title' => __('Section visibility', 'pixova-lite'), 'priority' => 25)); /* Intro visibility */ $wp_customize->add_setting('pixova_lite_intro_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_intro_visibility', array('type' => 'checkbox', 'label' => __('Display the Intro section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* About visibility */ $wp_customize->add_setting('pixova_lite_about_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_about_visibility', array('type' => 'checkbox', 'label' => __('Display the Pie Chart section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Recent works visibility */ $wp_customize->add_setting('pixova_lite_works_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_works_visibility', array('type' => 'checkbox', 'label' => __('Display the works section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Testimonials visibility */ $wp_customize->add_setting('pixova_lite_testimonials_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_testimonials_visibility', array('type' => 'checkbox', 'label' => __('Display the testimonials section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Team visibility */ $wp_customize->add_setting('pixova_lite_team_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_team_visibility', array('type' => 'checkbox', 'label' => __('Display the team section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* News visibility */ $wp_customize->add_setting('pixova_lite_news_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_news_visibility', array('type' => 'checkbox', 'label' => __('Display the news section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Contact visibility */ $wp_customize->add_setting('pixova_lite_contact_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1')); $wp_customize->add_control('pixova_lite_contact_visibility', array('type' => 'checkbox', 'label' => __('Display the contact section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /***********************************************/ /************** GENERAL OPTIONS ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_general', array('priority' => 25, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Theme options', 'pixova-lite'))); /***********************************************/ /************** General Site Settings ***************/ /***********************************************/ $wp_customize->add_section('pixova_lite_general_section', array('title' => __('General', 'pixova-lite'), 'panel' => 'pixova_lite_panel_general', 'priority' => 1)); /* Company text logo */ $wp_customize->add_setting('pixova_lite_text_logo', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Pixova', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_text_logo', array('label' => __('Enter company name', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => esc_html__('Company name in text format below', 'pixova-lite'))); /* Company image logo : PRO Feature */ $wp_customize->add_setting('pixova_lite_image_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => __('Your Image URL HERE', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_image_logo', array('type' => 'text', 'label' => __('Enter company image logo', 'pixova-lite'), 'section' => 'pixova_lite_general_section'))); /* COPYRIGHT */ $wp_customize->add_setting('pixova_lite_copyright', array('sanitize_callback' => 'sanitize_text_field', 'default' => sprintf('© %s', __('Copyright 20', 'pixova-lite') . sprintf("%s", date('y')) . __('. All Rights Reserved', 'pixova-lite')))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_copyright', array('label' => __('Copyright', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => __('This is the copyright message that will be displayed in the footer', 'pixova-lite')))); /* Remove : What we do section :: PRO Feature */ $wp_customize->add_setting('pixova_lite_what_we_do_section', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => __('Remove this section.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_what_we_do_section', array('type' => 'checkbox', 'label' => __('Remove what we do section?', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'std' => '1'))); /* Enable Preloader */ $wp_customize->add_setting('pixova_lite_preloader_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'preloader_enabled')); $wp_customize->add_control('pixova_lite_preloader_enabled', array('type' => 'radio', 'choices' => array('preloader_enabled' => esc_html__('Enabled', 'pixova-lite'), 'preloader_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => __('Enable Preloader ?', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => __('Enable the LOADING message that is displayed when pages are loading ?', 'pixova-lite'))); /* Enable Site Animations */ $wp_customize->add_setting('pixova_lite_animations_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'animations_enabled')); $wp_customize->add_control('pixova_lite_animations_enabled', array('type' => 'radio', 'choices' => array('animations_enabled' => esc_html__('Enabled', 'pixova-lite'), 'animations_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => __('Enable Section Animations ?', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => __('When scrolling, elements are coming into view with a slide-in animation. By disabling this setting, the swooshing of elements will be canceled.', 'pixova-lite'))); #Breadcrumbs on single blog posts $wp_customize->add_setting('pixova_lite_enable_post_breadcrumbs', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'breadcrumbs_enabled')); $wp_customize->add_control('pixova_lite_enable_post_breadcrumbs', array('type' => 'radio', 'choices' => array('breadcrumbs_enabled' => esc_html__('Enabled', 'pixova-lite'), 'breadcrumbs_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Breadcrumbs on single blog posts', 'pixova-lite'), 'description' => esc_html__('This will disable the breadcrumbs', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); # Default Blog Images :: Affects Sections / Section-News $wp_customize->add_setting('pixova_lite_enable_default_images', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'images_enabled')); $wp_customize->add_control('pixova_lite_enable_default_images', array('type' => 'radio', 'choices' => array('images_enabled' => esc_html__('Enabled', 'pixova-lite'), 'images_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable default blog images ?', 'pixova-lite'), 'description' => esc_html__('Disabling this will mean that when there is no featured image set, you will not have a placeholder.', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); # Default Header Parallax Effect :: Affects Header Area $wp_customize->add_setting('pixova_lite_header_effect_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'header_effect_enabled')); $wp_customize->add_control('pixova_lite_header_effect_enabled', array('type' => 'radio', 'choices' => array('header_effect_enabled' => esc_html__('Enabled', 'pixova-lite'), 'header_effect_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable Parallax Header Fade-out Effect ?', 'pixova-lite'), 'description' => esc_html__('Disabling this, will remove the header parallax text fade-out effect.', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); /***********************************************/ /************** Contact Details ***************/ /***********************************************/ $wp_customize->add_section('pixova_lite_general_contact_section', array('title' => __('Contact Details', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_general')); /* email */ $wp_customize->add_setting('pixova_lite_email', array('sanitize_callback' => 'sanitize_text_field', 'default' => '*****@*****.**')); $wp_customize->add_control('pixova_lite_email', array('label' => __('Email', 'pixova-lite'), 'section' => 'pixova_lite_general_contact_section', 'settings' => 'pixova_lite_email', 'priority' => 10)); /* phone number */ $wp_customize->add_setting('pixova_lite_phone', array('sanitize_callback' => 'pixova_lite_sanitize_number', 'default' => '0 332 548 954')); $wp_customize->add_control('pixova_lite_phone', array('label' => __('Phone number', 'pixova-lite'), 'section' => 'pixova_lite_general_contact_section', 'settings' => 'pixova_lite_phone', 'priority' => 12)); /* address */ $wp_customize->add_setting('pixova_lite_address', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Street 221B Baker Street', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_address', array('label' => __('Address', 'pixova-lite'), 'section' => 'pixova_lite_general_contact_section', 'settings' => 'pixova_lite_address', 'priority' => 14))); /***********************************************/ /************** Breadcrumb Settings ***************/ /***********************************************/ $wp_customize->add_section('pixova_lite_blog_breadcrumb_section', array('title' => esc_html__('Breadcrumbs', 'pixova-lite'), 'description' => esc_html__('Various breadcrumb related settings, like: breadcrumb prefix, breadcrumb item separator & breadcrumb menu post category visibility setting.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_general')); /* BreadCrumb Menu: Prefix */ $wp_customize->add_setting('pixova_lite_blog_breadcrumb_menu_prefix', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('You are here', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_blog_breadcrumb_menu_prefix', array('label' => esc_html__('Text before the breadcrumbs menu', 'pixova-lite'), 'description' => esc_html__('Recommended: You are here', 'pixova-lite'), 'section' => 'pixova_lite_blog_breadcrumb_section')); /* BreadCrumb Menu: separator */ $wp_customize->add_setting('pixova_lite_blog_breadcrumb_menu_separator', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'rarr')); $wp_customize->add_control('pixova_lite_blog_breadcrumb_menu_separator', array('type' => 'select', 'choices' => array('rarr' => esc_html('→'), 'middot' => esc_html('·'), 'diez' => esc_html('#'), 'ampersand' => esc_html('&')), 'label' => esc_html__('Separator to be used between breadcrumb items', 'pixova-lite'), 'description' => esc_html__('Select from predefined separators', 'pixova-lite'), 'section' => 'pixova_lite_blog_breadcrumb_section')); /* BreadCrumb Menu: post category */ $wp_customize->add_setting('pixova_lite_blog_breadcrumb_menu_post_category', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control('pixova_lite_blog_breadcrumb_menu_post_category', array('type' => 'checkbox', 'label' => esc_html__('Show post category ?', 'pixova-lite'), 'description' => esc_html__('Show the post category in the breadcrumb ?', 'pixova-lite'), 'section' => 'pixova_lite_blog_breadcrumb_section')); /************************************************/ /***************** Related Posts ****************/ /************************************************/ $wp_customize->add_section('pixova_lite_blog_related_section', array('title' => esc_html__('Blog Settings', 'pixova-lite'), 'description' => esc_html__('Control various post settings from here. For a demo-like experience, we recommend you don\'t change these settings.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_general')); /* Header Image */ $wp_customize->add_setting('pixova_lite_enable_blog_header_image', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_enable_blog_header_image', array('type' => 'checkbox', 'label' => esc_html__('Header image on blog?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section'))); /* related posts title */ $wp_customize->add_setting('pixova_lite_enable_related_title_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 0)); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_enable_related_title_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Posts title in the carousel ?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section'))); /* related posts date */ $wp_customize->add_setting('pixova_lite_enable_related_date_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 0)); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_enable_related_date_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Carousel related posts date?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section'))); /* Auto play carousel */ $wp_customize->add_setting('pixova_lite_autoplay_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_autoplay_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Autoplay related carousel?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section'))); /* Number of related posts to display at once */ $wp_customize->add_setting('pixova_lite_howmany_blog_posts', array('sanitize_callback' => 'absint', 'default' => 3)); $wp_customize->add_control(new Pixova_lite_Controls_Slider_Control($wp_customize, 'pixova_lite_howmany_blog_posts', array('label' => esc_html__('How many blog posts to display in the carousel at once?', 'pixova-lite'), 'description' => esc_html__('No more than 4 posts at once;', 'pixova-lite'), 'choices' => array('min' => 1, 'max' => 4, 'step' => 1), 'section' => 'pixova_lite_blog_related_section', 'default' => 3))); /* Display pagination ? */ $wp_customize->add_setting('pixova_lite_pagination_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_pagination_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Carousel pagination controls?', 'pixova-lite'), 'description' => esc_html__('Will be displayed as navigation bullets', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section'))); /***********************************************/ /************** Intro ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_intro', array('priority' => 30, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('CTA Section (big bg. image)', 'pixova-lite'))); # Intro Video $wp_customize->add_section('pixova_lite_intro_video', array('title' => __('Header Video', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); $wp_customize->add_setting('pixova_lite_intro_video_container', array('sanitize_callback' => 'esc_url', 'default' => esc_url('https://www.youtube.com/watch?v=FijBkSvN6N8'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_video_container', array('type' => 'textarea', 'label' => __('Enter YouTube video URL ', 'pixova-lite'), 'section' => 'pixova_lite_intro_video'))); # Upgrade NOW: Video Section $wp_customize->add_setting('pixova_lite_video_upgrade_pro', array('default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new Pixova_Lite_WP_Pro_Customize_Control($wp_customize, 'pixova_lite_video_upgrade_pro', array('label' => __('Discover Pixova PRO', 'pixova-lite'), 'section' => 'pixova_lite_intro_video'))); # Intro Slider $wp_customize->add_section('pixova_lite_intro_slider', array('title' => __('Header Slider', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); $wp_customize->add_setting('pixova_lite_intro_slider_container', array('sanitize_callback' => 'esc_url', 'default' => esc_url('https://www.your-image-url-here.com'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_slider_container', array('type' => 'textarea', 'label' => __('Enter Slide #1 Image URL ', 'pixova-lite'), 'section' => 'pixova_lite_intro_slider'))); # Upgrade NOW: Slider Section $wp_customize->add_setting('pixova_lite_slider_upgrade_pro', array('default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new Pixova_Lite_WP_Pro_Customize_Control($wp_customize, 'pixova_lite_slider_upgrade_pro', array('label' => __('Discover Pixova PRO', 'pixova-lite'), 'section' => 'pixova_lite_intro_slider'))); /* Text Section */ $wp_customize->add_section('pixova_lite_intro_text', array('title' => __('CTA Text', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* Main CTA text */ $wp_customize->add_setting('pixova_lite_intro_cta', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Probably the BEST FREE WordPress theme of all times. Now with WooCommerce Support', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_intro_cta', array('label' => __('Main CTA text ', 'pixova-lite'), 'section' => 'pixova_lite_intro_text'))); /* Main CTA sub-text */ $wp_customize->add_setting('pixova_lite_intro_sub_cta', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('60fps smooth parallax header; Random header images (multiple images allowed here).', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_intro_sub_cta', array('label' => __('Main CTA sub-title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_text'))); /* Button Section */ $wp_customize->add_section('pixova_lite_intro_button', array('title' => __('Button', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* Button text */ $wp_customize->add_setting('pixova_lite_intro_button_text', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Explore Pixova.', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_intro_button_text', array('label' => __('Button text ', 'pixova-lite'), 'section' => 'pixova_lite_intro_button')); /* Button URL */ $wp_customize->add_setting('pixova_lite_intro_button_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.machothemes.com/themes/pixova-lite/'))); $wp_customize->add_control('pixova_lite_intro_button_url', array('label' => __('Button URL ', 'pixova-lite'), 'section' => 'pixova_lite_intro_button')); /* What we do Section #1 */ $wp_customize->add_section('pixova_lite_intro_what_we_do_1', array('title' => __('What we do #1', 'pixova-lite'), 'description' => __('Use the controls below to change the way the what we do icons & text look.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* What we do #1: change icon */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_1_icon', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => __('fa fa-droplet', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_1_icon', array('type' => 'text', 'label' => __('Specify icon name', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_1'))); /* What we do #1: title */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_1_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Web design', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_intro_what_we_do_1_title', array('label' => __('What we do #1 title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_1')); /* What we do #1: description */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_1_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Lorem ipsum dolor sit amet. Lorem ipsum.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_1_description', array('label' => __('What we do #1 description ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_1'))); /* What we do Section #2 */ $wp_customize->add_section('pixova_lite_intro_what_we_do_2', array('title' => __('What we do #2', 'pixova-lite'), 'description' => __('Use the controls below to change the way the what we do icons & text look.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* What we do #2: change icon */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_2_icon', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => __('fa fa-development', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_2_icon', array('type' => 'text', 'label' => __('Specify icon name', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_2'))); /* What we do #2: title */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_2_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Development', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_intro_what_we_do_2_title', array('label' => __('What we do #2 title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_2')); /* What we do #2: description */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_2_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Lorem ipsum dolor sit amet. Lorem ipsum.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_2_description', array('label' => __('What we do #2 description ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_2'))); /* What we do Section #3 */ $wp_customize->add_section('pixova_lite_intro_what_we_do_3', array('title' => __('What we do #3', 'pixova-lite'), 'description' => __('Use the controls below to change the way the what we do icons & text look.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* What we do #1: change icon */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_3_icon', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => __('fa fa-envelope', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_3_icon', array('type' => 'text', 'label' => __('Specify icon name', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_3'))); /* What we do #3: title */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_3_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Print design', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_intro_what_we_do_3_title', array('label' => __('What we do #3 title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_3')); /* What we do #3: description */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_3_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Lorem ipsum dolor sit amet. Lorem ipsum.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_3_description', array('label' => __('What we do #3 description ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_3'))); /***********************************************/ /************** About Options ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_about', array('priority' => 31, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Pie Chart Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_about_titles', array('title' => __('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_about')); /* Section Title */ $wp_customize->add_setting('pixova_lite_about_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('We build solutions for your everyday problems.', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_about_section_title', array('label' => __('Section title', 'pixova-lite'), 'section' => 'pixova_lite_about_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_about_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('This is what we do in a nutshell', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_about_section_sub_title', array('label' => __('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_about_titles', 'priority' => 0)); $wp_customize->add_section('pixova_lite_about_section_text', array('title' => __('Section text', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_about')); /* About textarea */ $wp_customize->add_setting('pixova_lite_about_section_textarea', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Creative ut tincidunt nibh, varius cursus nunc. Curabitur molestie, metus vel luctus euismod, mi libero laoreet odio, eu dapibus leo tortor sit amet purus. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_about_section_textarea', array('label' => __('Block of text', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text'))); /* About blockquote */ $wp_customize->add_setting('pixova_lite_about_section_blockquote', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Erlich Bachman, Aviato', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_about_section_blockquote', array('label' => __('Blockquote', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text'))); /* Section Chart # 1 */ $wp_customize->add_section('pixova_lite_section_chart_1', array('title' => __('Section Chart #1', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_about')); /* Chart #1 Heading */ $wp_customize->add_setting('pixova_lite_about_section_chart_1_heading', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Web design', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_about_section_chart_1_heading', array('label' => __('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 0)); /* Chart #1 Settings */ $wp_customize->add_setting('pixova_lite_about_section_chart_1_percentage', array('sanitize_callback' => 'sanitize_text_field', 'default' => '70')); $wp_customize->add_control(new Pixova_Lite_Number_Custom_Control($wp_customize, 'pixova_lite_about_section_chart_1_percentage', array('label' => __('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 1))); /* Chart Bar Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_1_bar_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_1_bar_color', array('type' => 'color', 'label' => __('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 2))); /* Chart Track Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_1_track_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_1_track_color', array('type' => 'color', 'label' => __('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 3))); /* Section Chart # 2 */ $wp_customize->add_section('pixova_lite_section_chart_2', array('title' => __('Section Chart #2', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_about')); /* Chart #2 Heading */ $wp_customize->add_setting('pixova_lite_about_section_chart_2_heading', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Web development', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_about_section_chart_2_heading', array('label' => __('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 0)); /* Chart #2 Settings */ $wp_customize->add_setting('pixova_lite_about_section_chart_2_percentage', array('sanitize_callback' => 'sanitize_text_field', 'default' => '90')); $wp_customize->add_control(new Pixova_Lite_Number_Custom_Control($wp_customize, 'pixova_lite_about_section_chart_2_percentage', array('label' => __('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 1))); /* Chart Bar Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_2_bar_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_2_bar_color', array('type' => 'color', 'label' => __('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 2))); /* Chart Track Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_2_track_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_2_track_color', array('type' => 'color', 'label' => __('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 3))); /* Section Chart #3 */ $wp_customize->add_section('pixova_lite_section_chart_3', array('title' => __('Section Chart #3', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_about')); /* Chart #3 Heading */ $wp_customize->add_setting('pixova_lite_about_section_chart_3_heading', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Print design', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_about_section_chart_3_heading', array('label' => __('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 0)); /* Chart #3 Settings */ $wp_customize->add_setting('pixova_lite_about_section_chart_3_percentage', array('sanitize_callback' => 'sanitize_text_field', 'default' => '90')); $wp_customize->add_control(new Pixova_Lite_Number_Custom_Control($wp_customize, 'pixova_lite_about_section_chart_3_percentage', array('label' => __('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 1))); /* Chart Bar Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_3_bar_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_3_bar_color', array('type' => 'color', 'label' => __('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 2))); /* Chart Track Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_3_track_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_3_track_color', array('type' => 'color', 'label' => __('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 3))); /* Section Chart #4 */ $wp_customize->add_section('pixova_lite_section_chart_4', array('title' => __('Section Chart #4', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_about')); /* Chart #4 Heading */ $wp_customize->add_setting('pixova_lite_about_section_chart_4_heading', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Graphic identity', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_about_section_chart_4_heading', array('label' => __('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 0)); /* Chart #4 Settings */ $wp_customize->add_setting('pixova_lite_about_section_chart_4_percentage', array('sanitize_callback' => 'sanitize_text_field', 'default' => '50')); $wp_customize->add_control(new Pixova_Lite_Number_Custom_Control($wp_customize, 'pixova_lite_about_section_chart_4_percentage', array('label' => __('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 1))); /* Chart Bar Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_4_bar_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_4_bar_color', array('type' => 'color', 'label' => __('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 2))); /* Chart Track Color */ $wp_customize->add_setting('pixova_lite_about_section_chart_4_track_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_about_section_chart_4_track_color', array('type' => 'color', 'label' => __('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 3))); /***********************************************/ /************** Recent Works ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_works', array('priority' => 32, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Recent Works Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_work_titles', array('title' => __('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_works')); /* Section Title */ $wp_customize->add_setting('pixova_lite_work_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Recent works', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_work_section_title', array('label' => __('Section title', 'pixova-lite'), 'section' => 'pixova_lite_work_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_work_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('It\'s show and tell time.', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_work_section_sub_title', array('label' => __('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_work_titles', 'priority' => 2)); /* Recent works: project #1 section */ $wp_customize->add_section('pixova_lite_works_project_1', array('title' => __('Project #1', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #1 image */ $wp_customize->add_setting('pixova_lite_works_project_1_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-1-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_1_image', array('label' => __('Project big image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1', 'priority' => 1))); /* Recent works: project #1 logo */ $wp_customize->add_setting('pixova_lite_works_project_1_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo1.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_1_logo', array('label' => __('Project logo image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1', 'priority' => 2))); /* Recent works: project #1 URL */ $wp_customize->add_setting('pixova_lite_works_project_1_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.machothemes.com/themes/pixova-lite/'))); $wp_customize->add_control('pixova_lite_works_project_1_url', array('label' => __('Project URL (enter project link here)', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1', 'priority' => 3)); /* Recent works: project #2 section */ $wp_customize->add_section('pixova_lite_works_project_2', array('title' => __('Project #2', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #2 image */ $wp_customize->add_setting('pixova_lite_works_project_2_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-2-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_2_image', array('label' => __('Project big image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2', 'priority' => 2))); /* Recent works: project #2 logo */ $wp_customize->add_setting('pixova_lite_works_project_2_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo2.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_2_logo', array('label' => __('Project logo image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2', 'priority' => 2))); /* Recent works: project #2 URL */ $wp_customize->add_setting('pixova_lite_works_project_2_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.machothemes.com/themes/pixova-lite/'))); $wp_customize->add_control('pixova_lite_works_project_2_url', array('label' => __('Project URL (enter project link here)', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2', 'priority' => 3)); /* Recent works: project #3 section */ $wp_customize->add_section('pixova_lite_works_project_3', array('title' => __('Project #3', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #3 image */ $wp_customize->add_setting('pixova_lite_works_project_3_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-3-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_3_image', array('label' => __('Project big image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3', 'priority' => 3))); /* Recent works: project #3 logo */ $wp_customize->add_setting('pixova_lite_works_project_3_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo3.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_3_logo', array('label' => __('Project logo image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3', 'priority' => 3))); /* Recent works: project #3 URL */ $wp_customize->add_setting('pixova_lite_works_project_3_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.machothemes.com/themes/pixova-lite/'))); $wp_customize->add_control('pixova_lite_works_project_3_url', array('label' => __('Project URL (enter project link here)', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3', 'priority' => 3)); /* Recent works: project #4 section */ $wp_customize->add_section('pixova_lite_works_project_4', array('title' => __('Project #4', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #4 image */ $wp_customize->add_setting('pixova_lite_works_project_4_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_4_image', array('label' => __('Project big image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4', 'priority' => 4))); /* Recent works: project #4 logo */ $wp_customize->add_setting('pixova_lite_works_project_4_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_4_logo', array('label' => __('Project logo image', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4', 'priority' => 4))); /* Recent works: project #4 URL */ $wp_customize->add_setting('pixova_lite_works_project_4_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.machothemes.com/themes/pixova-lite/'))); $wp_customize->add_control('pixova_lite_works_project_4_url', array('label' => __('Project URL (enter project link here)', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4', 'priority' => 4)); /***********************************************/ /************** Testimonials ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_testimonials', array('priority' => 33, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Testimonials Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_testimonial_titles', array('title' => __('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_testimonials')); /* Section Title */ $wp_customize->add_setting('pixova_lite_testimonial_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Some words from our clients', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_section_title', array('label' => __('Section title', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_testimonial_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('We don\'t like to brag, others do it for us.', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_section_sub_title', array('label' => __('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_titles', 'priority' => 2)); /* Testimonials: testimonial #1 section */ $wp_customize->add_section('pixova_lite_testimonial_1', array('title' => __('Testimonial #1', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #1 person name */ $wp_customize->add_setting('pixova_lite_testimonial_1_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Katie Parry - Hooli', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_1_person_name', array('label' => __('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_1', 'priority' => 1)); /* Testimonials: testimonial #1 text */ $wp_customize->add_setting('pixova_lite_testimonial_1_person_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_testimonial_1_person_description', array('label' => __('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_1', 'priority' => 2))); /* Testimonials: testimonial #1 image */ $wp_customize->add_setting('pixova_lite_testimonial_1_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_1_person_image', array('label' => __('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_1', 'priority' => 3))); /* Testimonials: testimonial #2 section */ $wp_customize->add_section('pixova_lite_testimonial_2', array('title' => __('Testimonial #2', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #2 person name */ $wp_customize->add_setting('pixova_lite_testimonial_2_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('John Doe', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_2_person_name', array('label' => __('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_2', 'priority' => 1)); /* Testimonials: testimonial #2 text */ $wp_customize->add_setting('pixova_lite_testimonial_2_person_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_testimonial_2_person_description', array('label' => __('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_2', 'priority' => 2))); /* Testimonials: testimonial #2 image */ $wp_customize->add_setting('pixova_lite_testimonial_2_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned2-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_2_person_image', array('label' => __('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_2', 'priority' => 3))); /* Testimonials: testimonial #3 section */ $wp_customize->add_section('pixova_lite_testimonial_3', array('title' => __('Testimonial #3', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #3 person name */ $wp_customize->add_setting('pixova_lite_testimonial_3_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Katie Parry - Hooli', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_3_person_name', array('label' => __('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_3', 'priority' => 1)); /* Testimonials: testimonial #3 text */ $wp_customize->add_setting('pixova_lite_testimonial_3_person_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_testimonial_3_person_description', array('label' => __('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_3', 'priority' => 2))); /* Testimonials: testimonial #3 image */ $wp_customize->add_setting('pixova_lite_testimonial_3_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_3_person_image', array('label' => __('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_3', 'priority' => 3))); /* Testimonials: testimonial #4 section */ $wp_customize->add_section('pixova_lite_testimonial_4', array('title' => __('Testimonial #4', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #4 person name */ $wp_customize->add_setting('pixova_lite_testimonial_4_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Katie Parry - Hooli', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_4_person_name', array('label' => __('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_4', 'priority' => 1)); /* Testimonials: testimonial #4 text */ $wp_customize->add_setting('pixova_lite_testimonial_4_person_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_testimonial_4_person_description', array('label' => __('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_4', 'priority' => 2))); /* Testimonials: testimonial #4 image */ $wp_customize->add_setting('pixova_lite_testimonial_4_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_4_person_image', array('label' => __('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_4', 'priority' => 3))); /* Testimonials: testimonial #5 section */ $wp_customize->add_section('pixova_lite_testimonial_5', array('title' => __('Testimonial #5', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #5 person name */ $wp_customize->add_setting('pixova_lite_testimonial_5_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Katie Parry - Hooli', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_testimonial_5_person_name', array('label' => __('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_5', 'priority' => 1)); /* Testimonials: testimonial #5 text */ $wp_customize->add_setting('pixova_lite_testimonial_5_person_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Textarea_Custom_Control($wp_customize, 'pixova_lite_testimonial_5_person_description', array('label' => __('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_5', 'priority' => 2))); /* Testimonials: testimonial #5 image */ $wp_customize->add_setting('pixova_lite_testimonial_5_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_5_person_image', array('label' => __('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_5', 'priority' => 3))); /***********************************************/ /************** Latest News ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_news', array('priority' => 34, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Latest News Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_news_titles', array('title' => __('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_news')); $wp_customize->add_section('pixova_lite_news_button', array('title' => __('Button', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_news')); /* Section Title */ $wp_customize->add_setting('pixova_lite_news_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Latest news', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_news_section_title', array('label' => __('Section title', 'pixova-lite'), 'section' => 'pixova_lite_news_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_news_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Straight from our blog', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_news_section_sub_title', array('label' => __('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_news_titles', 'priority' => 2)); /* Text */ $wp_customize->add_setting('pixova_lite_news_section_button_text', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Visit our blog', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_news_section_button_text', array('label' => __('Text', 'pixova-lite'), 'section' => 'pixova_lite_news_button', 'priority' => 1)); $wp_customize->add_control(new Pixova_Lite_Number_Custom_Control($wp_customize, 'pixova_lite_news_post_number', array('label' => __('Number of posts to display', 'pixova-lite'), 'section' => 'pixova_lite_news_number', 'priority' => 1))); /***********************************************/ /************** Contact ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_contact', array('priority' => 35, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Contact Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_contact_titles', array('title' => __('Section titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_contact')); /* Section Title */ $wp_customize->add_setting('pixova_lite_contact_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Contact us', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_contact_section_title', array('label' => __('Section title', 'pixova-lite'), 'section' => 'pixova_lite_contact_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_contact_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('And we\'ll reply in no time', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_contact_section_sub_title', array('label' => __('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_contact_titles', 'priority' => 2)); $wp_customize->add_section('pixova_lite_contact_cf7', array('title' => __('Contact forms', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_contact')); require_once ABSPATH . 'wp-admin/includes/plugin.php'; if (is_plugin_active('contact-form-7/wp-contact-form-7.php') && is_plugin_active('pirate-forms/pirate-forms.php')) { $contact_section_type = array('contact-form-7' => __('Contact Form 7', 'pixova-lite'), 'pirate-forms' => __('Pirate Forms', 'pixova-lite')); } elseif (is_plugin_active('contact-form-7/wp-contact-form-7.php')) { $contact_section_type = array('contact-form-7' => __('Contact Form 7', 'pixova-lite')); } elseif (is_plugin_active('pirate-forms/pirate-forms.php')) { $contact_section_type = array('pirate-forms' => __('Pirate Forms', 'pixova-lite')); } else { $contact_section_type = false; } $wp_customize->add_setting('pixova_lite_contact_section_type', array('default' => 'contact-form-7', 'sanitize_callback' => 'pixova_lite_sanitize_radio_buttons')); $wp_customize->add_control('pixova_lite_contact_section_type', array('section' => 'pixova_lite_contact_cf7', 'label' => __('Select the type of Contact Form to show (Contact Form 7 or Pirate Forms)', 'pixova-lite'), 'type' => 'radio', 'priority' => 1, 'settings' => 'pixova_lite_contact_section_type', 'active_callback' => 'pixova_lite_active_callback_contact_section_type', 'choices' => $contact_section_type)); /* Contact: contact form select */ $wp_customize->add_setting('pixova_lite_contact_section_cf7', array('sanitize_callback' => 'pixova_lite_sanitize_number')); $wp_customize->add_control(new Pixova_Lite_CF7_Custom_Control($wp_customize, 'pixova_lite_contact_section_cf7', array('label' => __('Select the contact form you\'d like to display (powered by Contact Form 7)', 'pixova-lite'), 'section' => 'pixova_lite_contact_cf7', 'priority' => 2, 'type' => 'pixova_lite_contact_form_7', 'active_callback' => 'pixova_lite_active_callback_contact_section_cf7'))); /***********************************************/ /************** Team ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_team', array('priority' => 36, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Team Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_team_titles', array('title' => __('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_team')); /* Section Title */ $wp_customize->add_setting('pixova_lite_team_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('The team', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_section_title', array('label' => __('Section title', 'pixova-lite'), 'section' => 'pixova_lite_team_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_team_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('Meet the people that made it all happen.', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_section_sub_title', array('label' => __('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_team_titles', 'priority' => 2)); /* Team: team member #1 section */ $wp_customize->add_section('pixova_lite_team_member_1', array('title' => __('Team member #1', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #1 name */ $wp_customize->add_setting('pixova_lite_team_member_1_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('John Doe', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_member_1_name', array('label' => __('Team member #1 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 1)); /* Team: team member #1 picture */ $wp_customize->add_setting('pixova_lite_team_member_1_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_1_image', array('label' => __('Team member #1 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 2))); /* Team: team member #1 facebook */ $wp_customize->add_setting('pixova_lite_team_member_1_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_1_facebook', array('label' => __('Team member #1 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 3)); /* Team: team member #1 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_1_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_1_dribbble', array('label' => __('Team member #1 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 4)); /* Team: team member #2 section */ $wp_customize->add_section('pixova_lite_team_member_2', array('title' => __('Team member #2', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #2 name */ $wp_customize->add_setting('pixova_lite_team_member_2_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('John Doe', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_member_2_name', array('label' => __('Team member #2 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 1)); /* Team: team member #2 picture */ $wp_customize->add_setting('pixova_lite_team_member_2_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru2-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_2_image', array('label' => __('Team member #2 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 2))); /* Team: team member #2 facebook */ $wp_customize->add_setting('pixova_lite_team_member_2_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_2_facebook', array('label' => __('Team member #2 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 3)); /* Team: team member #2 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_2_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_2_dribbble', array('label' => __('Team member #2 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 4)); /* Team: team member #3 section */ $wp_customize->add_section('pixova_lite_team_member_3', array('title' => __('Team member #3', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #3 name */ $wp_customize->add_setting('pixova_lite_team_member_3_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('John Doe', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_member_3_name', array('label' => __('Team member #3 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 1)); /* Team: team member #3 picture */ $wp_customize->add_setting('pixova_lite_team_member_3_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_3_image', array('label' => __('Team member #3 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 2))); /* Team: team member #3 facebook */ $wp_customize->add_setting('pixova_lite_team_member_3_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_3_facebook', array('label' => __('Team member #3 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 3)); /* Team: team member #3 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_3_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_3_dribbble', array('label' => __('Team member #3 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 4)); /* Team: team member #4 section */ $wp_customize->add_section('pixova_lite_team_member_4', array('title' => __('Team member #4', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #4 name */ $wp_customize->add_setting('pixova_lite_team_member_4_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('John Doe', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_member_4_name', array('label' => __('Team member #4 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 1)); /* Team: team member #4 picture */ $wp_customize->add_setting('pixova_lite_team_member_4_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru2-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_4_image', array('label' => __('Team member #4 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 2))); /* Team: team member #4 facebook */ $wp_customize->add_setting('pixova_lite_team_member_4_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_4_facebook', array('label' => __('Team member #4 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 3)); /* Team: team member #4 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_4_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_4_dribbble', array('label' => __('Team member #4 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 4)); /* Team: team member #5 section */ $wp_customize->add_section('pixova_lite_team_member_5', array('title' => __('Team member #5', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #5 name */ $wp_customize->add_setting('pixova_lite_team_member_5_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => __('John Doe', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_team_member_5_name', array('label' => __('Team member #5 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 1)); /* Team: team member #5 picture */ $wp_customize->add_setting('pixova_lite_team_member_5_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_5_image', array('label' => __('Team member #5 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 2))); /* Team: team member #5 facebook */ $wp_customize->add_setting('pixova_lite_team_member_5_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_5_facebook', array('label' => __('Team member #5 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 3)); /* Team: team member #5 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_5_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_5_dribbble', array('label' => __('Team member #5 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 4)); }
function pixova_lite_customize_register($wp_customize) { $wp_customize->get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; // Remove sections from customizer front-view $wp_customize->remove_section('colors'); $wp_customize->remove_section('background_image'); # Necessary since we can't debug on IIS servers # Mac OS X rules for dev :) if (!pixova_lite_on_iis()) { // Change panel for Site Title & Tagline Section $site_title = $wp_customize->get_section('title_tagline'); $site_title->panel = 'pixova_lite_panel_general'; // Change panel for Background Image /* $site_title = $wp_customize->get_section( 'background_image' ); $site_title->panel = 'pixova_lite_panel_general'; */ // Change panel for Header Image $site_title2 = $wp_customize->get_section('header_image'); $site_title2->panel = 'pixova_lite_panel_intro'; // Change panel for Static Front Page $site_title3 = $wp_customize->get_section('static_front_page'); $site_title3->panel = 'pixova_lite_panel_general'; // Change priority for Site Title $site_title4 = $wp_customize->get_control('blogname'); $site_title4->priority = 15; // Change priority for Site Tagline $site_title5 = $wp_customize->get_control('blogdescription'); $site_title5->priority = 17; } /**********************************************/ /*************** ORDER ************************/ /**********************************************/ $wp_customize->add_section('pixova_lite_order_section', array('title' => esc_html__('Section order', 'pixova-lite'), 'priority' => 26)); $wp_customize->add_setting('pixova_lite_order_section', array('sanitize_callback' => 'pixova_lite_sanitize_pro_version')); $wp_customize->add_control(new Pixova_Lite_Theme_Support($wp_customize, 'pixova_lite_order_section', array('section' => 'pixova_lite_order_section'))); $wp_customize->add_section('pixova_lite_pricing_section', array('title' => esc_html__('Pricing tables', 'pixova-lite'), 'priority' => 38)); $wp_customize->add_setting('pixova_lite_pricing_section', array('sanitize_callback' => 'pixova_lite_sanitize_pro_version')); $wp_customize->add_control(new Pixova_Lite_Theme_Support_Pricing($wp_customize, 'pixova_lite_pricing_section', array('section' => 'pixova_lite_pricing_section'))); $wp_customize->add_section('pixova_lite_maps_section', array('title' => esc_html__('Google Maps', 'pixova-lite'), 'priority' => 37)); $wp_customize->add_setting('pixova_lite_maps_section', array('sanitize_callback' => 'pixova_lite_sanitize_pro_version')); $wp_customize->add_control(new Pixova_Lite_Theme_Support_Googlemap($wp_customize, 'pixova_lite_maps_section', array('section' => 'pixova_lite_maps_section'))); /* Section Visibility */ $wp_customize->add_section('pixova_lite_visibility_section', array('title' => esc_html__('Section visibility', 'pixova-lite'), 'priority' => 25)); /* About visibility */ $wp_customize->add_setting('pixova_lite_about_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_visibility', array('type' => 'checkbox', 'label' => esc_html__('Display the Pie Chart section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Recent works visibility */ $wp_customize->add_setting('pixova_lite_works_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_visibility', array('type' => 'checkbox', 'label' => esc_html__('Display the works section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Testimonials visibility */ $wp_customize->add_setting('pixova_lite_testimonials_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonials_visibility', array('type' => 'checkbox', 'label' => esc_html__('Display the testimonials section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Team visibility */ $wp_customize->add_setting('pixova_lite_team_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_visibility', array('type' => 'checkbox', 'label' => esc_html__('Display the team section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* News visibility */ $wp_customize->add_setting('pixova_lite_news_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_news_visibility', array('type' => 'checkbox', 'label' => esc_html__('Display the news section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /* Contact visibility */ $wp_customize->add_setting('pixova_lite_contact_visibility', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => '1', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_contact_visibility', array('type' => 'checkbox', 'label' => esc_html__('Display the contact section ?', 'pixova-lite'), 'section' => 'pixova_lite_visibility_section')); /***********************************************/ /************** GENERAL OPTIONS ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_general', array('priority' => 25, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('Theme options', 'pixova-lite'))); /***********************************************/ /************** General Site Settings ***************/ /***********************************************/ $wp_customize->add_section('pixova_lite_general_section', array('title' => esc_html__('General', 'pixova-lite'), 'panel' => 'pixova_lite_panel_general', 'priority' => 1)); /* Company text logo */ $wp_customize->add_setting('pixova_lite_text_logo', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Pixova', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_text_logo', array('label' => esc_html__('Enter company name', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => esc_html__('Company name in text format below', 'pixova-lite'))); /* Company image logo : PRO Feature */ $wp_customize->add_setting('pixova_lite_image_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => esc_url(get_template_directory_uri() . '/layout/images/pixova-lite-img-logo.png'), 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_image_logo', array('label' => esc_html__('Upload company logo', 'pixova-lite'), 'description' => esc_html__('Allowed image size: 250 x 50px', 'pixova-lite'), 'section' => 'pixova_lite_general_section'))); /* COPYRIGHT */ $wp_customize->add_setting('pixova_lite_copyright_enable', array('label' => esc_html__('Enable theme copyright message in the footer?', 'pixova-lite'), 'sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1, 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_copyright_enable', array('type' => 'checkbox', 'label' => esc_html__('Display theme copyright in the footer?', 'pixova-lite'), 'description' => esc_html__('By disabling this field, the theme copyright text & links will be removed from the footer', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'std' => '1')); $wp_customize->add_setting('pixova_lite_copyright', array('sanitize_callback' => 'sanitize_text_field', 'default' => sprintf('© %s', esc_html__('Copyright 20', 'pixova-lite') . sprintf("%s", date('y')) . esc_html__('. All Rights Reserved', 'pixova-lite')), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_copyright', array('type' => 'textarea', 'label' => esc_html__('Copyright', 'pixova-lite'), 'description' => esc_html__('This is your copyright message. Will be displayed in the footer', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); /* Remove : What we do section :: PRO Feature */ $wp_customize->add_setting('pixova_lite_what_we_do_section', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => esc_html__('Remove this section.', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_what_we_do_section', array('type' => 'checkbox', 'label' => esc_html__('Remove what we do section?', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'std' => '1'))); /* Enable Preloader */ $wp_customize->add_setting('pixova_lite_preloader_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'preloader_enabled')); $wp_customize->add_control('pixova_lite_preloader_enabled', array('type' => 'radio', 'choices' => array('preloader_enabled' => esc_html__('Enabled', 'pixova-lite'), 'preloader_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable Preloader ?', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => esc_html__('Enable the LOADING message that is displayed when pages are loading ?', 'pixova-lite'))); /* Enable Site Animations */ $wp_customize->add_setting('pixova_lite_animations_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'animations_enabled')); $wp_customize->add_control('pixova_lite_animations_enabled', array('type' => 'radio', 'choices' => array('animations_enabled' => esc_html__('Enabled', 'pixova-lite'), 'animations_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable Section Animations ?', 'pixova-lite'), 'section' => 'pixova_lite_general_section', 'description' => esc_html__('When scrolling, elements are coming into view with a slide-in animation. By disabling this setting, the swooshing of elements will be canceled.', 'pixova-lite'))); #Breadcrumbs on single blog posts $wp_customize->add_setting('pixova_lite_enable_post_breadcrumbs', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'breadcrumbs_enabled')); $wp_customize->add_control('pixova_lite_enable_post_breadcrumbs', array('type' => 'radio', 'choices' => array('breadcrumbs_enabled' => esc_html__('Enabled', 'pixova-lite'), 'breadcrumbs_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Breadcrumbs on single blog posts', 'pixova-lite'), 'description' => esc_html__('This will disable the breadcrumbs', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); # Default Blog Images :: Affects Sections / Section-News $wp_customize->add_setting('pixova_lite_enable_default_images', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'images_enabled')); $wp_customize->add_control('pixova_lite_enable_default_images', array('type' => 'radio', 'choices' => array('images_enabled' => esc_html__('Enabled', 'pixova-lite'), 'images_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable default blog images ?', 'pixova-lite'), 'description' => esc_html__('Disabling this will mean that when there is no featured image set, you will not have a placeholder.', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); # Default Header Parallax Effect :: Affects Header Area $wp_customize->add_setting('pixova_lite_header_effect_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'header_effect_enabled')); $wp_customize->add_control('pixova_lite_header_effect_enabled', array('type' => 'radio', 'choices' => array('header_effect_enabled' => esc_html__('Enabled', 'pixova-lite'), 'header_effect_disabled' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable Parallax Header Fade-out Effect ?', 'pixova-lite'), 'description' => esc_html__('Disabling this, will remove the header parallax text fade-out effect.', 'pixova-lite'), 'section' => 'pixova_lite_general_section')); /***********************************************/ /************** Contact Details ***************/ /***********************************************/ $wp_customize->add_section('pixova_lite_general_contact_section', array('title' => esc_html__('Adres', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_contact')); /* email */ $wp_customize->add_setting('pixova_lite_email', array('sanitize_callback' => 'esc_attr', 'default' => esc_attr('*****@*****.**'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_email', array('label' => esc_html__('Email', 'pixova-lite'), 'description' => esc_html__('Email address will be displayed on the left of the contact form. Updates in real time.', 'pixova-lite'), 'section' => 'pixova_lite_general_contact_section', 'settings' => 'pixova_lite_email')); /* phone number */ $wp_customize->add_setting('pixova_lite_phone', array('sanitize_callback' => 'pixova_lite_sanitize_number', 'default' => esc_attr('0 332 548 954'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_phone', array('label' => esc_html__('Numer telefonu', 'pixova-lite'), 'description' => esc_html__('Phone number will be displayed on the left of the contact form. Updates in real time.', 'pixova-lite'), 'section' => 'pixova_lite_general_contact_section', 'settings' => 'pixova_lite_phone')); /* Adres */ $wp_customize->add_setting('pixova_lite_address', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Street 221B Baker Street', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_address', array('type' => 'textarea', 'label' => esc_html__('Adres', 'pixova-lite'), 'description' => esc_html__('Street Address will be displayed on the left of the contact form. Updates in real time. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_general_contact_section', 'settings' => 'pixova_lite_address')); /***********************************************/ /************** Breadcrumb Settings ***************/ /***********************************************/ $wp_customize->add_section('pixova_lite_blog_breadcrumb_section', array('title' => esc_html__('Breadcrumbs', 'pixova-lite'), 'description' => esc_html__('Various breadcrumb related settings, like: breadcrumb prefix, breadcrumb item separator & breadcrumb menu post category visibility setting.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_general')); /* BreadCrumb Menu: Prefix */ $wp_customize->add_setting('pixova_lite_blog_breadcrumb_menu_prefix', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('You are here', 'pixova-lite'))); $wp_customize->add_control('pixova_lite_blog_breadcrumb_menu_prefix', array('label' => esc_html__('Text before the breadcrumbs menu', 'pixova-lite'), 'description' => esc_html__('Recommended: You are here', 'pixova-lite'), 'section' => 'pixova_lite_blog_breadcrumb_section')); /* BreadCrumb Menu: separator */ $wp_customize->add_setting('pixova_lite_blog_breadcrumb_menu_separator', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'rarr')); $wp_customize->add_control('pixova_lite_blog_breadcrumb_menu_separator', array('type' => 'select', 'choices' => array('rarr' => esc_html('→'), 'middot' => esc_html('·'), 'diez' => esc_html('#'), 'ampersand' => esc_html('&')), 'label' => esc_html__('Separator to be used between breadcrumb items', 'pixova-lite'), 'description' => esc_html__('Select from predefined separators', 'pixova-lite'), 'section' => 'pixova_lite_blog_breadcrumb_section')); /* BreadCrumb Menu: post category */ $wp_customize->add_setting('pixova_lite_blog_breadcrumb_menu_post_category', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control('pixova_lite_blog_breadcrumb_menu_post_category', array('type' => 'checkbox', 'label' => esc_html__('Show post category ?', 'pixova-lite'), 'description' => esc_html__('Show the post category in the breadcrumb ?', 'pixova-lite'), 'section' => 'pixova_lite_blog_breadcrumb_section')); /************************************************/ /***************** Related Posts ****************/ /************************************************/ $wp_customize->add_section('pixova_lite_blog_related_section', array('title' => esc_html__('Blog Settings', 'pixova-lite'), 'description' => esc_html__('Control various post settings from here. For a demo-like experience, we recommend you don\'t change these settings.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_general')); /* Header Image */ $wp_customize->add_setting('pixova_lite_enable_blog_header_image', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_enable_blog_header_image', array('type' => 'checkbox', 'label' => esc_html__('Header image on blog?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section'))); # Related posts show $wp_customize->add_setting('pixova_lite_related_posts_enabled', array('sanitize_callback' => 'pixova_lite_sanitize_radio_buttons', 'default' => 'pixova_lite_related_posts_enable')); $wp_customize->add_control('pixova_lite_related_posts_enabled', array('type' => 'radio', 'choices' => array('pixova_lite_related_posts_enable' => esc_html__('Enabled', 'pixova-lite'), 'pixova_lite_related_posts_disable' => esc_html__('Disabled', 'pixova-lite')), 'label' => esc_html__('Enable Related Posts Section?', 'pixova-lite'), 'description' => esc_html__('Disabling this, will remove the related posts box at the end of posts', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /* Prev / Next post */ $wp_customize->add_setting('pixova_lite_enable_content_navigation', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control('pixova_lite_enable_content_navigation', array('type' => 'checkbox', 'label' => esc_html__('Show prev/next links below posts?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /* Author Box */ $wp_customize->add_setting('pixova_lite_enable_author_box', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control('pixova_lite_enable_author_box', array('type' => 'checkbox', 'label' => esc_html__('Show author box below posts?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /* related posts title */ $wp_customize->add_setting('pixova_lite_enable_related_title_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 0)); $wp_customize->add_control('pixova_lite_enable_related_title_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Posts title in the carousel ?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /* related posts date */ $wp_customize->add_setting('pixova_lite_enable_related_date_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 0)); $wp_customize->add_control('pixova_lite_enable_related_date_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Carousel related posts date?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /* Auto play carousel */ $wp_customize->add_setting('pixova_lite_autoplay_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control('pixova_lite_autoplay_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Autoplay related carousel?', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /* Number of related posts to display at once */ $wp_customize->add_setting('pixova_lite_howmany_blog_posts', array('sanitize_callback' => 'absint', 'default' => 3)); $wp_customize->add_control(new Pixova_lite_Controls_Slider_Control($wp_customize, 'pixova_lite_howmany_blog_posts', array('label' => esc_html__('How many blog posts to display in the carousel at once?', 'pixova-lite'), 'description' => esc_html__('No more than 4 posts at once;', 'pixova-lite'), 'choices' => array('min' => 1, 'max' => 4, 'step' => 1), 'section' => 'pixova_lite_blog_related_section', 'default' => 3))); /* Display pagination ? */ $wp_customize->add_setting('pixova_lite_pagination_blog_posts', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => 1)); $wp_customize->add_control('pixova_lite_pagination_blog_posts', array('type' => 'checkbox', 'label' => esc_html__('Carousel pagination controls?', 'pixova-lite'), 'description' => esc_html__('Will be displayed as navigation bullets', 'pixova-lite'), 'section' => 'pixova_lite_blog_related_section')); /***********************************************/ /************** Intro ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_intro', array('priority' => 30, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('CTA Section (big bg. image)', 'pixova-lite'))); # Intro Video $wp_customize->add_section('pixova_lite_intro_video', array('title' => esc_html__('Header Video', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); $wp_customize->add_setting('pixova_lite_intro_video_container', array('sanitize_callback' => 'esc_url', 'default' => esc_url('https://www.youtube.com/watch?v=FijBkSvN6N8'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_video_container', array('type' => 'textarea', 'label' => esc_html__('Enter YouTube video URL ', 'pixova-lite'), 'section' => 'pixova_lite_intro_video'))); # Upgrade NOW: Video Section $wp_customize->add_setting('pixova_lite_video_upgrade_pro', array('default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new Pixova_Lite_WP_Pro_Customize_Control($wp_customize, 'pixova_lite_video_upgrade_pro', array('label' => esc_html__('Discover Pixova PRO', 'pixova-lite'), 'section' => 'pixova_lite_intro_video'))); # Intro Slider $wp_customize->add_section('pixova_lite_intro_slider', array('title' => esc_html__('Header Slider', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); $wp_customize->add_setting('pixova_lite_intro_slider_container', array('sanitize_callback' => 'esc_url', 'default' => esc_url('https://www.your-image-url-here.com'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_slider_container', array('type' => 'textarea', 'label' => esc_html__('Enter Slide #1 Image URL ', 'pixova-lite'), 'section' => 'pixova_lite_intro_slider'))); # Upgrade NOW: Slider Section $wp_customize->add_setting('pixova_lite_slider_upgrade_pro', array('default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new Pixova_Lite_WP_Pro_Customize_Control($wp_customize, 'pixova_lite_slider_upgrade_pro', array('label' => esc_html__('Discover Pixova PRO', 'pixova-lite'), 'section' => 'pixova_lite_intro_slider'))); /* Text Section */ $wp_customize->add_section('pixova_lite_intro_text', array('title' => esc_html__('CTA Text', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* Main CTA text */ $wp_customize->add_setting('pixova_lite_intro_cta', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Probably the BEST FREE WordPress theme of all times. Now with WooCommerce Support', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_cta', array('type' => 'textarea', 'label' => esc_html__('Main CTA text ', 'pixova-lite'), 'description' => esc_html__('This is your main attention grabber. Make the best of it.', 'pixova-lite'), 'section' => 'pixova_lite_intro_text')); /* Main CTA sub-text */ $wp_customize->add_setting('pixova_lite_intro_sub_cta', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('60fps smooth parallax header; Random header images (multiple images allowed here).', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_sub_cta', array('type' => 'textarea', 'label' => esc_html__('Main CTA sub-title ', 'pixova-lite'), 'description' => esc_html__('Most often main call to actions work best with a sub call to action that emphasises the main CTA.', 'pixova-lite'), 'section' => 'pixova_lite_intro_text')); /* Button Section */ $wp_customize->add_section('pixova_lite_intro_button', array('title' => esc_html__('Button', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* Button text */ $wp_customize->add_setting('pixova_lite_intro_button_text', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Explore Pixova.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_button_text', array('label' => esc_html__('Button text ', 'pixova-lite'), 'description' => esc_html__('Text to be displayed on the button. Like BUY NOW or other Call To Action Text', 'pixova-lite'), 'section' => 'pixova_lite_intro_button')); /* Button URL */ $wp_customize->add_setting('pixova_lite_intro_button_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('#about'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_button_url', array('label' => esc_html__('Button URL ', 'pixova-lite'), 'description' => esc_html__('You can make this button link to a section on the homepage, by using the section id and a # in front of it', 'pixova-lite'), 'section' => 'pixova_lite_intro_button')); # Button Background color $wp_customize->add_setting('pixova_lite_intro_button_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => esc_attr('#2ecc71'), 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_intro_button_color', array('label' => esc_html__('Button background color ', 'pixova-lite'), 'description' => esc_html__('Change the button background color from here.', 'pixova-lite'), 'section' => 'pixova_lite_intro_button'))); # Button Text color $wp_customize->add_setting('pixova_lite_intro_button_text_color', array('sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => esc_attr('#2ecc71'), 'transport' => 'postMessage')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'pixova_lite_intro_button_text_color', array('label' => esc_html__('Button text color ', 'pixova-lite'), 'description' => esc_html__('Change the button text color from here.', 'pixova-lite'), 'section' => 'pixova_lite_intro_button'))); /* What we do Section #1 */ $wp_customize->add_section('pixova_lite_intro_what_we_do_1', array('title' => esc_html__('What we do #1', 'pixova-lite'), 'description' => esc_html__('Use the controls below to change the way the what we do icons & text look.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* What we do #1: change icon */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_1_icon', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => esc_html__('fa fa-droplet', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_1_icon', array('type' => 'text', 'label' => esc_html__('Specify icon name', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_1'))); /* What we do #1: title */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_1_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Web design', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_what_we_do_1_title', array('label' => esc_html__('What we do #1 title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_1')); /* What we do #1: description */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_1_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Lorem ipsum dolor sit amet. Lorem ipsum.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_what_we_do_1_description', array('type' => 'textarea', 'label' => esc_html__('What we do #1 description ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_1')); /* What we do Section #2 */ $wp_customize->add_section('pixova_lite_intro_what_we_do_2', array('title' => esc_html__('What we do #2', 'pixova-lite'), 'description' => esc_html__('Use the controls below to change the way the what we do icons & text look.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* What we do #2: change icon */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_2_icon', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => esc_html__('fa fa-development', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_2_icon', array('type' => 'text', 'label' => esc_html__('Specify icon name', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_2'))); /* What we do #2: title */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_2_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Development', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_what_we_do_2_title', array('label' => esc_html__('What we do #2 title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_2')); /* What we do #2: description */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_2_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Lorem ipsum dolor sit amet. Lorem ipsum.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_what_we_do_2_description', array('type' => 'textarea', 'label' => esc_html__('What we do #2 description ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_2')); /* What we do Section #3 */ $wp_customize->add_section('pixova_lite_intro_what_we_do_3', array('title' => esc_html__('What we do #3', 'pixova-lite'), 'description' => esc_html__('Use the controls below to change the way the what we do icons & text look.', 'pixova-lite'), 'panel' => 'pixova_lite_panel_intro')); /* What we do #1: change icon */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_3_icon', array('sanitize_callback' => 'pixova_lite_sanitize_checkbox', 'default' => esc_html__('fa fa-envelope', 'pixova-lite'))); $wp_customize->add_control(new Pixova_Lite_Disabled_Custom_Control($wp_customize, 'pixova_lite_intro_what_we_do_3_icon', array('type' => 'text', 'label' => esc_html__('Specify icon name', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_3'))); /* What we do #3: title */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_3_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Print design', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_what_we_do_3_title', array('label' => esc_html__('What we do #3 title ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_3')); /* What we do #3: description */ $wp_customize->add_setting('pixova_lite_intro_what_we_do_3_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Lorem ipsum dolor sit amet. Lorem ipsum.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_intro_what_we_do_3_description', array('type' => 'textarea', 'label' => esc_html__('What we do #3 description ', 'pixova-lite'), 'section' => 'pixova_lite_intro_what_we_do_3')); /***********************************************/ /************** About Options ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_about', array('priority' => 31, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('O projekcie', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_about_titles', array('title' => esc_html__('Sekcja tytułu', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_about')); /* Section Title */ $wp_customize->add_setting('pixova_lite_about_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('We build solutions for your everyday problems.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_title', array('label' => esc_html__('O projekcie - Tytuł', 'pixova-lite'), 'section' => 'pixova_lite_about_titles')); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_about_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('This is what we do in a nutshell', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_sub_title', array('label' => esc_html__('O projekcie - Podtytuł', 'pixova-lite'), 'section' => 'pixova_lite_about_titles')); $wp_customize->add_section('pixova_lite_about_section_text', array('title' => esc_html__('Sekcja opisu', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_about')); /* About textarea 1 */ $wp_customize->add_setting('pixova_lite_about_section_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Creative ut tincidunt nibh, varius cursus nunc. Curabitur molestie, metus vel luctus euismod, mi libero laoreet odio, eu dapibus leo tortor sit amet purus. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_textarea', array('type' => 'textarea', 'label' => esc_html__('Blok 1', 'pixova-lite'), 'description' => esc_html__('This block accepts limited HTML. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text')); /* About blockquote 1 */ $wp_customize->add_setting('pixova_lite_about_section_blockquote', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Erlich Bachman, Aviato', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_blockquote', array('type' => 'textarea', 'label' => esc_html__('Cytat 1', 'pixova-lite'), 'description' => esc_html__('This block accepts limited HTML. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text')); /* About textarea 2 */ $wp_customize->add_setting('pixova_lite_about_section_textarea_2', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Creative ut tincidunt nibh, varius cursus nunc. Curabitur molestie, metus vel luctus euismod, mi libero laoreet odio, eu dapibus leo tortor sit amet purus. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_textarea_2', array('type' => 'textarea', 'label' => esc_html__('Blok 2', 'pixova-lite'), 'description' => esc_html__('This block accepts limited HTML. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text')); /* About blockquote 2 */ $wp_customize->add_setting('pixova_lite_about_section_blockquote_2', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Erlich Bachman, Aviato', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_blockquote_2', array('type' => 'textarea', 'label' => esc_html__('Cytat 2', 'pixova-lite'), 'description' => esc_html__('This block accepts limited HTML. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text')); /* About textarea 3 */ $wp_customize->add_setting('pixova_lite_about_section_textarea_3', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Creative ut tincidunt nibh, varius cursus nunc. Curabitur molestie, metus vel luctus euismod, mi libero laoreet odio, eu dapibus leo tortor sit amet purus. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_about_section_textarea_3', array('type' => 'textarea', 'label' => esc_html__('Block 3', 'pixova-lite'), 'description' => esc_html__('This block accepts limited HTML. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_about_section_text')); /* // Section Chart # 1 $wp_customize->add_section('pixova_lite_section_chart_1', array( 'title' => esc_html__('Section Chart #1', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_about' ) ); // Chart #1 Heading $wp_customize->add_setting('pixova_lite_about_section_chart_1_heading', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Web design', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control('pixova_lite_about_section_chart_1_heading', array( 'label' => esc_html__('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 0 ) ); // Chart #1 Settings $wp_customize->add_setting('pixova_lite_about_section_chart_1_percentage', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '70', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Pixova_Lite_Number_Custom_Control( $wp_customize, 'pixova_lite_about_section_chart_1_percentage', array( 'label' => esc_html__('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 1, ) ) ); // Chart Bar Color $wp_customize->add_setting('pixova_lite_about_section_chart_1_bar_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => pixova_lite_sanitize_hex_color( '#2cc36b' ), ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_1_bar_color', array( 'type' => 'color', 'label' => esc_html__('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 2 ) ) ); // Chart Track Color $wp_customize->add_setting('pixova_lite_about_section_chart_1_track_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_1_track_color', array( 'type' => 'color', 'label' => esc_html__('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_1', 'priority' => 3 ) ) ); // Section Chart # 2 $wp_customize->add_section('pixova_lite_section_chart_2', array( 'title' => esc_html__('Section Chart #2', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_about' ) ); // Chart #2 Heading $wp_customize->add_setting('pixova_lite_about_section_chart_2_heading', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Web development', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control('pixova_lite_about_section_chart_2_heading', array( 'label' => esc_html__('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 0 ) ); // Chart #2 Settings $wp_customize->add_setting('pixova_lite_about_section_chart_2_percentage', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '90', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Pixova_Lite_Number_Custom_Control( $wp_customize, 'pixova_lite_about_section_chart_2_percentage', array( 'label' => esc_html__('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 1, ) ) ); // Chart Bar Color $wp_customize->add_setting('pixova_lite_about_section_chart_2_bar_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_2_bar_color', array( 'type' => 'color', 'label' => esc_html__('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 2 ) ) ); // Chart Track Color $wp_customize->add_setting('pixova_lite_about_section_chart_2_track_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_2_track_color', array( 'type' => 'color', 'label' => esc_html__('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_2', 'priority' => 3 ) ) ); // Section Chart #3 $wp_customize->add_section('pixova_lite_section_chart_3', array( 'title' => esc_html__('Section Chart #3', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_about' ) ); // Chart #3 Heading $wp_customize->add_setting('pixova_lite_about_section_chart_3_heading', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Print design', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control('pixova_lite_about_section_chart_3_heading', array( 'label' => esc_html__('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 0 ) ); // Chart #3 Settings $wp_customize->add_setting('pixova_lite_about_section_chart_3_percentage', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '90', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Pixova_Lite_Number_Custom_Control( $wp_customize, 'pixova_lite_about_section_chart_3_percentage', array( 'label' => esc_html__('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 1, ) ) ); // Chart Bar Color $wp_customize->add_setting('pixova_lite_about_section_chart_3_bar_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_3_bar_color', array( 'type' => 'color', 'label' => esc_html__('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 2 ) ) ); // Chart Track Color $wp_customize->add_setting('pixova_lite_about_section_chart_3_track_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_3_track_color', array( 'type' => 'color', 'label' => esc_html__('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_3', 'priority' => 3 ) ) ); // Section Chart #4 $wp_customize->add_section('pixova_lite_section_chart_4', array( 'title' => esc_html__('Section Chart #4', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_about' ) ); // Chart #4 Heading $wp_customize->add_setting('pixova_lite_about_section_chart_4_heading', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Graphic identity', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control('pixova_lite_about_section_chart_4_heading', array( 'label' => esc_html__('Heading for chart', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 0 ) ); // Chart #4 Settings $wp_customize->add_setting('pixova_lite_about_section_chart_4_percentage', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '50', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Pixova_Lite_Number_Custom_Control( $wp_customize, 'pixova_lite_about_section_chart_4_percentage', array( 'label' => esc_html__('Chart Percentage', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 1, ) ) ); // Chart Bar Color $wp_customize->add_setting('pixova_lite_about_section_chart_4_bar_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#2cc36b' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_4_bar_color', array( 'type' => 'color', 'label' => esc_html__('Chart bar color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 2 ) ) ); // Chart Track Color $wp_customize->add_setting('pixova_lite_about_section_chart_4_track_color', array( 'sanitize_callback' => 'pixova_lite_sanitize_hex_color', 'default' => '#EEE' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pixova_lite_about_section_chart_4_track_color', array( 'type' => 'color', 'label' => esc_html__('Chart Track color', 'pixova-lite'), 'section' => 'pixova_lite_section_chart_4', 'priority' => 3 ) ) ); */ /***********************************************/ /************** Recent Works ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_works', array('priority' => 32, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('Aukcje', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_work_titles', array('title' => esc_html__('Sekcja tytułu', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_works')); /* Section Title */ $wp_customize->add_setting('pixova_lite_work_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Aukcje', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_work_section_title', array('label' => esc_html__('Tytuł', 'pixova-lite'), 'section' => 'pixova_lite_work_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_work_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('It\'s show and tell time.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_work_section_sub_title', array('label' => esc_html__('Podtytuł', 'pixova-lite'), 'section' => 'pixova_lite_work_titles', 'priority' => 2)); /* Section textarea 1 */ $wp_customize->add_setting('pixova_lite_work_section_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Creative ut tincidunt nibh, varius cursus nunc. Curabitur molestie, metus vel luctus euismod, mi libero laoreet odio, eu dapibus leo tortor sit amet purus. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_work_section_textarea', array('type' => 'textarea', 'label' => esc_html__('Krótko o celu aukcji', 'pixova-lite'), 'description' => esc_html__('This block accepts limited HTML. Accepted tags are: a, img, em, br & strong.', 'pixova-lite'), 'section' => 'pixova_lite_work_titles', 'priority' => 3)); /* ------------------------------------------------------------------------------ */ /* Recent works: project #1 section */ $wp_customize->add_section('pixova_lite_works_project_1', array('title' => esc_html__('Aukcja #1', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #1 image */ $wp_customize->add_setting('pixova_lite_works_project_1_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => esc_url(get_template_directory_uri() . '/layout/images/recent-works/recent-works-1-270x426.jpg'))); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_1_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1', 'priority' => 1))); /* Recent works: project #1 logo */ $wp_customize->add_setting('pixova_lite_works_project_1_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo1.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_1_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1', 'priority' => 2))); /* Recent works: project #1 URL */ $wp_customize->add_setting('pixova_lite_works_project_1_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_1_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1', 'priority' => 3)); /* Recent works: project #1 Description */ $wp_customize->add_setting('pixova_lite_works_project_1_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 1', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_1_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_1')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #2 section */ $wp_customize->add_section('pixova_lite_works_project_2', array('title' => esc_html__('Aukcja #2', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #2 image */ $wp_customize->add_setting('pixova_lite_works_project_2_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-2-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_2_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2', 'priority' => 2))); /* Recent works: project #2 logo */ $wp_customize->add_setting('pixova_lite_works_project_2_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo2.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_2_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2', 'priority' => 2))); /* Recent works: project #2 URL */ $wp_customize->add_setting('pixova_lite_works_project_2_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl/'))); $wp_customize->add_control('pixova_lite_works_project_2_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2', 'priority' => 3)); /* Recent works: project #2 Description */ $wp_customize->add_setting('pixova_lite_works_project_2_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 2', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_2_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_2')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #3 section */ $wp_customize->add_section('pixova_lite_works_project_3', array('title' => esc_html__('Aukcja #3', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #3 image */ $wp_customize->add_setting('pixova_lite_works_project_3_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-3-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_3_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3', 'priority' => 3))); /* Recent works: project #3 logo */ $wp_customize->add_setting('pixova_lite_works_project_3_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo3.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_3_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3', 'priority' => 3))); /* Recent works: project #3 URL */ $wp_customize->add_setting('pixova_lite_works_project_3_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_3_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3', 'priority' => 3)); /* Recent works: project #3 Description */ $wp_customize->add_setting('pixova_lite_works_project_3_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 3', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_3_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_3')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #4 section */ $wp_customize->add_section('pixova_lite_works_project_4', array('title' => esc_html__('Aukcja #4', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #4 image */ $wp_customize->add_setting('pixova_lite_works_project_4_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_4_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4', 'priority' => 4))); /* Recent works: project #4 logo */ $wp_customize->add_setting('pixova_lite_works_project_4_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_4_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4', 'priority' => 4))); /* Recent works: project #4 URL */ $wp_customize->add_setting('pixova_lite_works_project_4_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_4_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4', 'priority' => 4)); /* Recent works: project #4 Description */ $wp_customize->add_setting('pixova_lite_works_project_4_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 4', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_4_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_4')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #5 section */ $wp_customize->add_section('pixova_lite_works_project_5', array('title' => esc_html__('Aukcja #5', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #5 image */ $wp_customize->add_setting('pixova_lite_works_project_5_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_5_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_5', 'priority' => 5))); /* Recent works: project #5 logo */ $wp_customize->add_setting('pixova_lite_works_project_5_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_5_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_5', 'priority' => 5))); /* Recent works: project #5 URL */ $wp_customize->add_setting('pixova_lite_works_project_5_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_5_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_5', 'priority' => 5)); /* Recent works: project #5 Description */ $wp_customize->add_setting('pixova_lite_works_project_5_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 5', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_5_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_5')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #6 section */ $wp_customize->add_section('pixova_lite_works_project_6', array('title' => esc_html__('Aukcja #6', 'pixova-lite'), 'priority' => 6, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #6 image */ $wp_customize->add_setting('pixova_lite_works_project_6_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_6_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_6', 'priority' => 6))); /* Recent works: project #6 logo */ $wp_customize->add_setting('pixova_lite_works_project_6_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_6_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_6', 'priority' => 6))); /* Recent works: project #6 URL */ $wp_customize->add_setting('pixova_lite_works_project_6_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_6_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_6', 'priority' => 6)); /* Recent works: project #6 Description */ $wp_customize->add_setting('pixova_lite_works_project_6_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 6', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_6_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_6')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #7 section */ $wp_customize->add_section('pixova_lite_works_project_7', array('title' => esc_html__('Aukcja #7', 'pixova-lite'), 'priority' => 7, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #7 image */ $wp_customize->add_setting('pixova_lite_works_project_7_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_7_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_7', 'priority' => 7))); /* Recent works: project #7 logo */ $wp_customize->add_setting('pixova_lite_works_project_7_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_7_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_7', 'priority' => 7))); /* Recent works: project #7 URL */ $wp_customize->add_setting('pixova_lite_works_project_7_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_7_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_7', 'priority' => 7)); /* Recent works: project #7 Description */ $wp_customize->add_setting('pixova_lite_works_project_7_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 7', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_7_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_7')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #8 section */ $wp_customize->add_section('pixova_lite_works_project_8', array('title' => esc_html__('Aukcja #8', 'pixova-lite'), 'priority' => 8, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #8 image */ $wp_customize->add_setting('pixova_lite_works_project_8_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_8_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_8', 'priority' => 8))); /* Recent works: project #8 logo */ $wp_customize->add_setting('pixova_lite_works_project_8_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_8_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_8', 'priority' => 8))); /* Recent works: project #8 URL */ $wp_customize->add_setting('pixova_lite_works_project_8_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_8_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_8', 'priority' => 8)); /* Recent works: project #8 Description */ $wp_customize->add_setting('pixova_lite_works_project_8_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 8', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_8_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_8')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #9 section */ $wp_customize->add_section('pixova_lite_works_project_9', array('title' => esc_html__('Aukcja #9', 'pixova-lite'), 'priority' => 9, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #9 image */ $wp_customize->add_setting('pixova_lite_works_project_9_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_9_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_9', 'priority' => 9))); /* Recent works: project #9 logo */ $wp_customize->add_setting('pixova_lite_works_project_9_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_9_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_9', 'priority' => 9))); /* Recent works: project #9 URL1 */ $wp_customize->add_setting('pixova_lite_works_project_9_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_9_url', array('label' => esc_html__('Link do aukcji 1', 'pixova-lite'), 'section' => 'pixova_lite_works_project_9', 'priority' => 9)); /* Recent works: project #9 URL2 */ $wp_customize->add_setting('pixova_lite_works_project_9_url2', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_9_url2', array('label' => esc_html__('Link do aukcji 2', 'pixova-lite'), 'section' => 'pixova_lite_works_project_9', 'priority' => 9)); /* Recent works: project #9 URL3 */ $wp_customize->add_setting('pixova_lite_works_project_9_url3', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_9_url3', array('label' => esc_html__('Link do aukcji 3', 'pixova-lite'), 'section' => 'pixova_lite_works_project_9', 'priority' => 9)); /* Recent works: project #9 Description */ $wp_customize->add_setting('pixova_lite_works_project_9_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 9', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_9_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_9')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #10 section */ $wp_customize->add_section('pixova_lite_works_project_10', array('title' => esc_html__('Aukcja #10', 'pixova-lite'), 'priority' => 10, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #10 image */ $wp_customize->add_setting('pixova_lite_works_project_10_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_10_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_10', 'priority' => 10))); /* Recent works: project #10 logo */ $wp_customize->add_setting('pixova_lite_works_project_10_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_10_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_10', 'priority' => 10))); /* Recent works: project #10 URL */ $wp_customize->add_setting('pixova_lite_works_project_10_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_10_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_10', 'priority' => 10)); /* Recent works: project #10 Description */ $wp_customize->add_setting('pixova_lite_works_project_10_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 10', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_10_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_10')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #11 section */ $wp_customize->add_section('pixova_lite_works_project_11', array('title' => esc_html__('Aukcja #11', 'pixova-lite'), 'priority' => 11, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #11 image */ $wp_customize->add_setting('pixova_lite_works_project_11_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_11_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_11', 'priority' => 11))); /* Recent works: project #11 logo */ $wp_customize->add_setting('pixova_lite_works_project_11_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_11_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_11', 'priority' => 11))); /* Recent works: project #11 URL */ $wp_customize->add_setting('pixova_lite_works_project_11_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_11_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_11', 'priority' => 11)); /* Recent works: project #11 Description */ $wp_customize->add_setting('pixova_lite_works_project_11_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 11', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_11_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_11')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #12 section */ $wp_customize->add_section('pixova_lite_works_project_12', array('title' => esc_html__('Aukcja #12', 'pixova-lite'), 'priority' => 12, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #12 image */ $wp_customize->add_setting('pixova_lite_works_project_12_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_12_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_12', 'priority' => 12))); /* Recent works: project #12 logo */ $wp_customize->add_setting('pixova_lite_works_project_12_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_12_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_12', 'priority' => 12))); /* Recent works: project #12 URL */ $wp_customize->add_setting('pixova_lite_works_project_12_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_12_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_12', 'priority' => 12)); /* Recent works: project #12 Description */ $wp_customize->add_setting('pixova_lite_works_project_12_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 12', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_12_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_12')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #13 section */ $wp_customize->add_section('pixova_lite_works_project_13', array('title' => esc_html__('Aukcja #13', 'pixova-lite'), 'priority' => 13, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #13 image */ $wp_customize->add_setting('pixova_lite_works_project_13_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_13_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_13', 'priority' => 13))); /* Recent works: project #13 logo */ $wp_customize->add_setting('pixova_lite_works_project_13_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_13_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_13', 'priority' => 13))); /* Recent works: project #13 URL */ $wp_customize->add_setting('pixova_lite_works_project_13_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_13_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_13', 'priority' => 13)); /* Recent works: project #13 Description */ $wp_customize->add_setting('pixova_lite_works_project_13_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 13', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_13_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_13')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #14 section */ $wp_customize->add_section('pixova_lite_works_project_14', array('title' => esc_html__('Aukcja #14', 'pixova-lite'), 'priority' => 14, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #14 image */ $wp_customize->add_setting('pixova_lite_works_project_14_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_14_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_14', 'priority' => 14))); /* Recent works: project #14 logo */ $wp_customize->add_setting('pixova_lite_works_project_14_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_14_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_14', 'priority' => 14))); /* Recent works: project #14 URL */ $wp_customize->add_setting('pixova_lite_works_project_14_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_14_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_14', 'priority' => 14)); /* Recent works: project #14 Description */ $wp_customize->add_setting('pixova_lite_works_project_14_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 14', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_14_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_14')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #15 section */ $wp_customize->add_section('pixova_lite_works_project_15', array('title' => esc_html__('Aukcja #15', 'pixova-lite'), 'priority' => 15, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #15 image */ $wp_customize->add_setting('pixova_lite_works_project_15_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_15_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_15', 'priority' => 15))); /* Recent works: project #15 logo */ $wp_customize->add_setting('pixova_lite_works_project_15_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_15_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_15', 'priority' => 15))); /* Recent works: project #15 URL */ $wp_customize->add_setting('pixova_lite_works_project_15_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_15_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_15', 'priority' => 15)); /* Recent works: project #15 Description */ $wp_customize->add_setting('pixova_lite_works_project_15_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 15', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_15_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_15')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #16 section */ $wp_customize->add_section('pixova_lite_works_project_16', array('title' => esc_html__('Aukcja #16', 'pixova-lite'), 'priority' => 16, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #16 image */ $wp_customize->add_setting('pixova_lite_works_project_16_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_16_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_16', 'priority' => 16))); /* Recent works: project #16 logo */ $wp_customize->add_setting('pixova_lite_works_project_16_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_16_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_16', 'priority' => 16))); /* Recent works: project #16 URL */ $wp_customize->add_setting('pixova_lite_works_project_16_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_16_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_16', 'priority' => 16)); /* Recent works: project #16 Description */ $wp_customize->add_setting('pixova_lite_works_project_16_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 16', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_16_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_16')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #17 section */ $wp_customize->add_section('pixova_lite_works_project_17', array('title' => esc_html__('Aukcja #17', 'pixova-lite'), 'priority' => 17, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #17 image */ $wp_customize->add_setting('pixova_lite_works_project_17_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_17_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_17', 'priority' => 17))); /* Recent works: project #17 logo */ $wp_customize->add_setting('pixova_lite_works_project_17_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_17_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_17', 'priority' => 17))); /* Recent works: project #17 URL */ $wp_customize->add_setting('pixova_lite_works_project_17_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_17_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_17', 'priority' => 17)); /* Recent works: project #17 Description */ $wp_customize->add_setting('pixova_lite_works_project_17_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 17', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_17_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_17')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #18 section */ $wp_customize->add_section('pixova_lite_works_project_18', array('title' => esc_html__('Aukcja #18', 'pixova-lite'), 'priority' => 18, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #18 image */ $wp_customize->add_setting('pixova_lite_works_project_18_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_18_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_18', 'priority' => 18))); /* Recent works: project #18 logo */ $wp_customize->add_setting('pixova_lite_works_project_18_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_18_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_18', 'priority' => 18))); /* Recent works: project #18 URL */ $wp_customize->add_setting('pixova_lite_works_project_18_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_18_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_18', 'priority' => 18)); /* Recent works: project #18 Description */ $wp_customize->add_setting('pixova_lite_works_project_18_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 18', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_18_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_18')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #19 section */ $wp_customize->add_section('pixova_lite_works_project_19', array('title' => esc_html__('Aukcja #19', 'pixova-lite'), 'priority' => 19, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #19 image */ $wp_customize->add_setting('pixova_lite_works_project_19_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_19_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_19', 'priority' => 19))); /* Recent works: project #19 logo */ $wp_customize->add_setting('pixova_lite_works_project_19_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_19_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_19', 'priority' => 19))); /* Recent works: project #19 URL */ $wp_customize->add_setting('pixova_lite_works_project_19_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_19_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_19', 'priority' => 19)); /* Recent works: project #19 Description */ $wp_customize->add_setting('pixova_lite_works_project_19_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 19', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_19_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_19')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #20 section */ $wp_customize->add_section('pixova_lite_works_project_20', array('title' => esc_html__('Aukcja #20', 'pixova-lite'), 'priority' => 20, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #20 image */ $wp_customize->add_setting('pixova_lite_works_project_20_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_20_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_20', 'priority' => 20))); /* Recent works: project #20 logo */ $wp_customize->add_setting('pixova_lite_works_project_20_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_20_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_20', 'priority' => 20))); /* Recent works: project #20 URL */ $wp_customize->add_setting('pixova_lite_works_project_20_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_20_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_20', 'priority' => 20)); /* Recent works: project #20 Description */ $wp_customize->add_setting('pixova_lite_works_project_20_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 20', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_20_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_20')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #21 section */ $wp_customize->add_section('pixova_lite_works_project_21', array('title' => esc_html__('Aukcja #21', 'pixova-lite'), 'priority' => 21, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #21 image */ $wp_customize->add_setting('pixova_lite_works_project_21_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_21_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_21', 'priority' => 21))); /* Recent works: project #21 logo */ $wp_customize->add_setting('pixova_lite_works_project_21_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_21_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_21', 'priority' => 21))); /* Recent works: project #21 URL */ $wp_customize->add_setting('pixova_lite_works_project_21_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_21_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_21', 'priority' => 21)); /* Recent works: project #21 Description */ $wp_customize->add_setting('pixova_lite_works_project_21_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 21', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_21_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_21')); /* ------------------------------------------------------------------------------ */ /* Recent works: project #22 section */ $wp_customize->add_section('pixova_lite_works_project_22', array('title' => esc_html__('Aukcja #22', 'pixova-lite'), 'priority' => 22, 'panel' => 'pixova_lite_panel_works')); /* Recent works: project #22 image */ $wp_customize->add_setting('pixova_lite_works_project_22_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_22_image', array('label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_22', 'priority' => 22))); /* Recent works: project #22 logo */ $wp_customize->add_setting('pixova_lite_works_project_22_logo', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_works_project_22_logo', array('label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_22', 'priority' => 22))); /* Recent works: project #22 URL */ $wp_customize->add_setting('pixova_lite_works_project_22_url', array('sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl'))); $wp_customize->add_control('pixova_lite_works_project_22_url', array('label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_22', 'priority' => 22)); /* Recent works: project #22 Description */ $wp_customize->add_setting('pixova_lite_works_project_22_textarea', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 22', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_works_project_22_textarea', array('type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_22')); /* // ------------------------------------------------------------------------------ // Recent works: project #23 section $wp_customize->add_section('pixova_lite_works_project_23', array( 'title' => esc_html__('Aukcja #23', 'pixova-lite'), 'priority' => 23, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #23 image $wp_customize->add_setting('pixova_lite_works_project_23_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_23_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_23', 'priority' => 23, ) ) ); // Recent works: project #23 logo $wp_customize->add_setting('pixova_lite_works_project_23_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_23_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_23', 'priority' => 23, ) ) ); // Recent works: project #23 URL $wp_customize->add_setting('pixova_lite_works_project_23_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_23_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_23', 'priority' => 23, ) ); // Recent works: project #23 Description $wp_customize->add_setting('pixova_lite_works_project_23_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 23', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_23_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_23', ) ); // ------------------------------------------------------------------------------ // Recent works: project #24 section $wp_customize->add_section('pixova_lite_works_project_24', array( 'title' => esc_html__('Aukcja #24', 'pixova-lite'), 'priority' => 24, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #24 image $wp_customize->add_setting('pixova_lite_works_project_24_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_24_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_24', 'priority' => 24, ) ) ); // Recent works: project #24 logo $wp_customize->add_setting('pixova_lite_works_project_24_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_24_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_24', 'priority' => 24, ) ) ); // Recent works: project #24 URL $wp_customize->add_setting('pixova_lite_works_project_24_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_24_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_24', 'priority' => 24, ) ); // Recent works: project #24 Description $wp_customize->add_setting('pixova_lite_works_project_24_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 24', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_24_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_24', ) ); // ------------------------------------------------------------------------------ // Recent works: project #25 section $wp_customize->add_section('pixova_lite_works_project_25', array( 'title' => esc_html__('Aukcja #25', 'pixova-lite'), 'priority' => 25, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #25 image $wp_customize->add_setting('pixova_lite_works_project_25_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_25_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_25', 'priority' => 25, ) ) ); // Recent works: project #25 logo $wp_customize->add_setting('pixova_lite_works_project_25_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_25_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_25', 'priority' => 25, ) ) ); // Recent works: project #25 URL1 $wp_customize->add_setting('pixova_lite_works_project_25_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_25_url', array( 'label' => esc_html__('Link do aukcji 1', 'pixova-lite'), 'section' => 'pixova_lite_works_project_25', 'priority' => 25, ) ); // Recent works: project #25 URL2 $wp_customize->add_setting('pixova_lite_works_project_25_url2', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_25_url2', array( 'label' => esc_html__('Link do aukcji 2', 'pixova-lite'), 'section' => 'pixova_lite_works_project_25', 'priority' => 25, ) ); // Recent works: project #25 URL3 $wp_customize->add_setting('pixova_lite_works_project_25_url3', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_25_url3', array( 'label' => esc_html__('Link do aukcji 3', 'pixova-lite'), 'section' => 'pixova_lite_works_project_25', 'priority' => 25, ) ); // Recent works: project #25 Description $wp_customize->add_setting('pixova_lite_works_project_25_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 25', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_25_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_25', ) ); // ------------------------------------------------------------------------------ // Recent works: project #26 section $wp_customize->add_section('pixova_lite_works_project_26', array( 'title' => esc_html__('Aukcja #26', 'pixova-lite'), 'priority' => 26, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #26 image $wp_customize->add_setting('pixova_lite_works_project_26_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_26_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_26', 'priority' => 26, ) ) ); // Recent works: project #26 logo $wp_customize->add_setting('pixova_lite_works_project_26_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_26_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_26', 'priority' => 26, ) ) ); // Recent works: project #26 URL1 $wp_customize->add_setting('pixova_lite_works_project_26_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_26_url', array( 'label' => esc_html__('Link do aukcji 1', 'pixova-lite'), 'section' => 'pixova_lite_works_project_26', 'priority' => 26, ) ); // Recent works: project #26 URL2 $wp_customize->add_setting('pixova_lite_works_project_26_url2', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_26_url2', array( 'label' => esc_html__('Link do aukcji 2', 'pixova-lite'), 'section' => 'pixova_lite_works_project_26', 'priority' => 26, ) ); // Recent works: project #26 Description $wp_customize->add_setting('pixova_lite_works_project_26_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 26', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_26_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_26', ) ); // ------------------------------------------------------------------------------ // Recent works: project #27 section $wp_customize->add_section('pixova_lite_works_project_27', array( 'title' => esc_html__('Aukcja #27', 'pixova-lite'), 'priority' => 27, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #27 image $wp_customize->add_setting('pixova_lite_works_project_27_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_27_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_27', 'priority' => 27, ) ) ); // Recent works: project #27 logo $wp_customize->add_setting('pixova_lite_works_project_27_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_27_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_27', 'priority' => 27, ) ) ); // Recent works: project #27 URL $wp_customize->add_setting('pixova_lite_works_project_27_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_27_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_27', 'priority' => 27, ) ); // Recent works: project #27 Description $wp_customize->add_setting('pixova_lite_works_project_27_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 27', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_27_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_27', ) ); // ------------------------------------------------------------------------------ // Recent works: project #28 section $wp_customize->add_section('pixova_lite_works_project_28', array( 'title' => esc_html__('Aukcja #28', 'pixova-lite'), 'priority' => 28, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #28 image $wp_customize->add_setting('pixova_lite_works_project_28_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_28_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_28', 'priority' => 28, ) ) ); // Recent works: project #28 logo $wp_customize->add_setting('pixova_lite_works_project_28_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_28_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_28', 'priority' => 28, ) ) ); // Recent works: project #28 URL $wp_customize->add_setting('pixova_lite_works_project_28_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_28_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_28', 'priority' => 28, ) ); // Recent works: project #28 Description $wp_customize->add_setting('pixova_lite_works_project_28_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 28', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_28_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_28', ) ); // ------------------------------------------------------------------------------ // Recent works: project #29 section $wp_customize->add_section('pixova_lite_works_project_29', array( 'title' => esc_html__('Aukcja #29', 'pixova-lite'), 'priority' => 29, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #29 image $wp_customize->add_setting('pixova_lite_works_project_29_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_29_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_29', 'priority' => 29, ) ) ); // Recent works: project #29 logo $wp_customize->add_setting('pixova_lite_works_project_29_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_29_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_29', 'priority' => 29, ) ) ); // Recent works: project #29 URL $wp_customize->add_setting('pixova_lite_works_project_29_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_29_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_29', 'priority' => 29, ) ); // Recent works: project #29 Description $wp_customize->add_setting('pixova_lite_works_project_29_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 29', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_29_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_29', ) ); // ------------------------------------------------------------------------------ // Recent works: project #30 section $wp_customize->add_section('pixova_lite_works_project_30', array( 'title' => esc_html__('Aukcja #30', 'pixova-lite'), 'priority' => 30, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #30 image $wp_customize->add_setting('pixova_lite_works_project_30_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_30_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_30', 'priority' => 30, ) ) ); // Recent works: project #30 logo $wp_customize->add_setting('pixova_lite_works_project_30_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_30_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_30', 'priority' => 30, ) ) ); // Recent works: project #30 URL $wp_customize->add_setting('pixova_lite_works_project_30_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_30_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_30', 'priority' => 30, ) ); // Recent works: project #30 Description $wp_customize->add_setting('pixova_lite_works_project_30_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 30', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_30_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_30', ) ); // ------------------------------------------------------------------------------ // Recent works: project #31 section $wp_customize->add_section('pixova_lite_works_project_31', array( 'title' => esc_html__('Aukcja #31', 'pixova-lite'), 'priority' => 31, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #31 image $wp_customize->add_setting('pixova_lite_works_project_31_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_31_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_31', 'priority' => 31, ) ) ); // Recent works: project #31 logo $wp_customize->add_setting('pixova_lite_works_project_31_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_31_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_31', 'priority' => 31, ) ) ); // Recent works: project #31 URL $wp_customize->add_setting('pixova_lite_works_project_31_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_31_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_31', 'priority' => 31, ) ); // Recent works: project #31 Description $wp_customize->add_setting('pixova_lite_works_project_31_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 31', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_31_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_31', ) ); // ------------------------------------------------------------------------------ // Recent works: project #32 section $wp_customize->add_section('pixova_lite_works_project_32', array( 'title' => esc_html__('Aukcja #32', 'pixova-lite'), 'priority' => 32, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #32 image $wp_customize->add_setting('pixova_lite_works_project_32_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_32_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_32', 'priority' => 32, ) ) ); // Recent works: project #32 logo $wp_customize->add_setting('pixova_lite_works_project_32_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_32_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_32', 'priority' => 32, ) ) ); // Recent works: project #32 URL $wp_customize->add_setting('pixova_lite_works_project_32_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_32_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_32', 'priority' => 32, ) ); // Recent works: project #32 Description $wp_customize->add_setting('pixova_lite_works_project_32_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 32', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_32_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_32', ) ); // ------------------------------------------------------------------------------ // Recent works: project #33 section $wp_customize->add_section('pixova_lite_works_project_33', array( 'title' => esc_html__('Aukcja #33', 'pixova-lite'), 'priority' => 33, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #33 image $wp_customize->add_setting('pixova_lite_works_project_33_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_33_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_33', 'priority' => 33, ) ) ); // Recent works: project #33 logo $wp_customize->add_setting('pixova_lite_works_project_33_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_33_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_33', 'priority' => 33, ) ) ); // Recent works: project #33 URL $wp_customize->add_setting('pixova_lite_works_project_33_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_33_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_33', 'priority' => 33, ) ); // Recent works: project #33 Description $wp_customize->add_setting('pixova_lite_works_project_33_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 33', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_33_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_33', ) ); // ------------------------------------------------------------------------------ // Recent works: project #34 section $wp_customize->add_section('pixova_lite_works_project_34', array( 'title' => esc_html__('Aukcja #34', 'pixova-lite'), 'priority' => 34, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #34 image $wp_customize->add_setting('pixova_lite_works_project_34_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_34_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_34', 'priority' => 34, ) ) ); // Recent works: project #34 logo $wp_customize->add_setting('pixova_lite_works_project_34_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_34_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_34', 'priority' => 34, ) ) ); // Recent works: project #34 URL $wp_customize->add_setting('pixova_lite_works_project_34_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_34_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_34', 'priority' => 34, ) ); // Recent works: project #34 Description $wp_customize->add_setting('pixova_lite_works_project_34_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 34', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_34_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_34', ) ); // ------------------------------------------------------------------------------ // Recent works: project #35 section $wp_customize->add_section('pixova_lite_works_project_35', array( 'title' => esc_html__('Aukcja #35', 'pixova-lite'), 'priority' => 35, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #35 image $wp_customize->add_setting('pixova_lite_works_project_35_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_35_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_35', 'priority' => 35, ) ) ); // Recent works: project #35 logo $wp_customize->add_setting('pixova_lite_works_project_35_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_35_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_35', 'priority' => 35, ) ) ); // Recent works: project #35 URL $wp_customize->add_setting('pixova_lite_works_project_35_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_35_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_35', 'priority' => 35, ) ); // Recent works: project #35 Description $wp_customize->add_setting('pixova_lite_works_project_35_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 35', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_35_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_35', ) ); // ------------------------------------------------------------------------------ // Recent works: project #36 section $wp_customize->add_section('pixova_lite_works_project_36', array( 'title' => esc_html__('Aukcja #36', 'pixova-lite'), 'priority' => 36, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #36 image $wp_customize->add_setting('pixova_lite_works_project_36_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_36_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_36', 'priority' => 36, ) ) ); // Recent works: project #36 logo $wp_customize->add_setting('pixova_lite_works_project_36_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_36_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_36', 'priority' => 36, ) ) ); // Recent works: project #36 URL $wp_customize->add_setting('pixova_lite_works_project_36_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_36_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_36', 'priority' => 36, ) ); // Recent works: project #36 Description $wp_customize->add_setting('pixova_lite_works_project_36_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 36', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_36_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_36', ) ); // ----------------------------------------------------------------------------- // Recent works: project #37 section $wp_customize->add_section('pixova_lite_works_project_37', array( 'title' => esc_html__('Aukcja #37', 'pixova-lite'), 'priority' => 37, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #37 image $wp_customize->add_setting('pixova_lite_works_project_37_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_37_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_37', 'priority' => 37, ) ) ); // Recent works: project #37 logo $wp_customize->add_setting('pixova_lite_works_project_37_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_37_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_37', 'priority' => 37, ) ) ); // Recent works: project #37 URL $wp_customize->add_setting('pixova_lite_works_project_37_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_37_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_37', 'priority' => 37, ) ); // Recent works: project #37 Description $wp_customize->add_setting('pixova_lite_works_project_37_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 37', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_37_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_37', ) ); // ------------------------------------------------------------------------------ // Recent works: project #38 section $wp_customize->add_section('pixova_lite_works_project_38', array( 'title' => esc_html__('Aukcja #38', 'pixova-lite'), 'priority' => 38, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #38 image $wp_customize->add_setting('pixova_lite_works_project_38_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_38_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_38', 'priority' => 38, ) ) ); // Recent works: project #38 logo $wp_customize->add_setting('pixova_lite_works_project_38_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_38_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_38', 'priority' => 38, ) ) ); // Recent works: project #38 URL $wp_customize->add_setting('pixova_lite_works_project_38_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_38_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_38', 'priority' => 38, ) ); // Recent works: project #38 Description $wp_customize->add_setting('pixova_lite_works_project_38_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 38', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_38_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_38', ) ); // ------------------------------------------------------------------------------ // Recent works: project #39 section $wp_customize->add_section('pixova_lite_works_project_39', array( 'title' => esc_html__('Aukcja #39', 'pixova-lite'), 'priority' => 39, 'panel' => 'pixova_lite_panel_works' ) ); // Recent works: project #39 image $wp_customize->add_setting('pixova_lite_works_project_39_image', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/recent-works-4-270x426.jpg' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_39_image', array( 'label' => esc_html__('Zdjęcie aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_39', 'priority' => 39, ) ) ); // Recent works: project #39 logo $wp_customize->add_setting('pixova_lite_works_project_39_logo', array( 'sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/recent-works/logo4.png' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'pixova_lite_works_project_39_logo', array( 'label' => esc_html__('Logo aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_39', 'priority' => 39, ) ) ); // Recent works: project #39 URL $wp_customize->add_setting('pixova_lite_works_project_39_url', array( 'sanitize_callback' => 'esc_url', 'default' => esc_url('http://www.allegro.pl') ) ); $wp_customize->add_control( 'pixova_lite_works_project_39_url', array( 'label' => esc_html__('Link do aukcji', 'pixova-lite'), 'section' => 'pixova_lite_works_project_39', 'priority' => 39, ) ); // Recent works: project #39 Description $wp_customize->add_setting('pixova_lite_works_project_39_textarea', array( 'sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Opis aukcji 39', 'pixova-lite'), 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'pixova_lite_works_project_39_textarea', array( 'type' => 'textarea', 'label' => esc_html__('Opis aukcji', 'pixova-lite'), 'description' => esc_html__('Tutaj krótko opisz aukcje', 'pixova-lite'), 'section' => 'pixova_lite_works_project_39', ) ); */ /***********************************************/ /************** Testimonials ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_testimonials', array('priority' => 33, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('Testimonials Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_testimonial_titles', array('title' => esc_html__('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_testimonials')); /* Section Title */ $wp_customize->add_setting('pixova_lite_testimonial_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Some words from our clients', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_section_title', array('label' => esc_html__('Section title', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_testimonial_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('We don\'t like to brag, others do it for us.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_section_sub_title', array('label' => esc_html__('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_titles', 'priority' => 2)); /* Testimonials: testimonial #1 section */ $wp_customize->add_section('pixova_lite_testimonial_1', array('title' => esc_html__('Testimonial #1', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #1 person name */ $wp_customize->add_setting('pixova_lite_testimonial_1_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Katie Parry - Hooli', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_1_person_name', array('label' => esc_html__('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_1', 'priority' => 1)); /* Testimonials: testimonial #1 text */ $wp_customize->add_setting('pixova_lite_testimonial_1_person_description', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_1_person_description', array('type' => 'textarea', 'label' => esc_html__('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_1', 'priority' => 2)); /* Testimonials: testimonial #1 image */ $wp_customize->add_setting('pixova_lite_testimonial_1_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_1_person_image', array('label' => esc_html__('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_1', 'priority' => 3))); /* Testimonials: testimonial #2 section */ $wp_customize->add_section('pixova_lite_testimonial_2', array('title' => esc_html__('Testimonial #2', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #2 person name */ $wp_customize->add_setting('pixova_lite_testimonial_2_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('John Doe', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_2_person_name', array('label' => esc_html__('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_2', 'priority' => 1)); /* Testimonials: testimonial #2 text */ $wp_customize->add_setting('pixova_lite_testimonial_2_person_description', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_2_person_description', array('type' => 'textarea', 'label' => esc_html__('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_2', 'priority' => 2)); /* Testimonials: testimonial #2 image */ $wp_customize->add_setting('pixova_lite_testimonial_2_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned2-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_2_person_image', array('label' => esc_html__('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_2', 'priority' => 3))); /* Testimonials: testimonial #3 section */ $wp_customize->add_section('pixova_lite_testimonial_3', array('title' => esc_html__('Testimonial #3', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #3 person name */ $wp_customize->add_setting('pixova_lite_testimonial_3_person_name', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Katie Parry - Hooli', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_3_person_name', array('label' => esc_html__('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_3', 'priority' => 1)); /* Testimonials: testimonial #3 text */ $wp_customize->add_setting('pixova_lite_testimonial_3_person_description', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_3_person_description', array('type' => 'textarea', 'label' => esc_html__('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_3', 'priority' => 2)); /* Testimonials: testimonial #3 image */ $wp_customize->add_setting('pixova_lite_testimonial_3_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_3_person_image', array('label' => esc_html__('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_3', 'priority' => 3))); /* Testimonials: testimonial #4 section */ $wp_customize->add_section('pixova_lite_testimonial_4', array('title' => esc_html__('Testimonial #4', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #4 person name */ $wp_customize->add_setting('pixova_lite_testimonial_4_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Katie Parry - Hooli', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_4_person_name', array('label' => esc_html__('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_4', 'priority' => 1)); /* Testimonials: testimonial #4 text */ $wp_customize->add_setting('pixova_lite_testimonial_4_person_description', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Working with Pixova has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_4_person_description', array('type' => 'textarea', 'label' => esc_html__('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_4', 'priority' => 2)); /* Testimonials: testimonial #4 image */ $wp_customize->add_setting('pixova_lite_testimonial_4_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_4_person_image', array('label' => esc_html__('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_4', 'priority' => 3))); /* Testimonials: testimonial #5 section */ $wp_customize->add_section('pixova_lite_testimonial_5', array('title' => esc_html__('Testimonial #5', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_testimonials')); /* Testimonials: testimonial #5 person name */ $wp_customize->add_setting('pixova_lite_testimonial_5_person_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Katie Parry - Hooli', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_5_person_name', array('label' => esc_html__('Testimonial person name', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_5', 'priority' => 1)); /* Testimonials: testimonial #5 text */ $wp_customize->add_setting('pixova_lite_testimonial_5_person_description', array('sanitize_callback' => 'pixova_lite_sanitize_allowed_html', 'default' => esc_html__('Working with Pixva has been an experience for a lifetime. I strongly reccommend these guys for their awesome support. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer volutpat eleifend convallis.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_testimonial_5_person_description', array('type' => 'textarea', 'label' => esc_html__('Testimonial person description', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_5', 'priority' => 2)); /* Testimonials: testimonial #5 image */ $wp_customize->add_setting('pixova_lite_testimonial_5_person_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/testimonials/teammembru_burned-92x92.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_testimonial_5_person_image', array('label' => esc_html__('Testimonial person image', 'pixova-lite'), 'section' => 'pixova_lite_testimonial_5', 'priority' => 3))); /***********************************************/ /************** Latest News ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_news', array('priority' => 34, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('Najnowsze wiadomości', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_news_general', array('title' => esc_html__('Sekcja opcji', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_news')); /* Section Title */ $wp_customize->add_setting('pixova_lite_news_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Najnowsze wiadomości', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_news_section_title', array('label' => esc_html__('Sekcja tytułu', 'pixova-lite'), 'section' => 'pixova_lite_news_general', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_news_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Straight from our blog', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_news_section_sub_title', array('label' => esc_html__('Sekcja podtytułu', 'pixova-lite'), 'section' => 'pixova_lite_news_general', 'priority' => 2)); /* Text */ $wp_customize->add_setting('pixova_lite_news_section_button_text', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Visit our blog', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_news_section_button_text', array('label' => esc_html__('Text', 'pixova-lite'), 'section' => 'pixova_lite_news_general')); $wp_customize->add_setting('pixova_lite_howmany_blog_posts_front', array('sanitize_callback' => 'absint', 'default' => 4)); $wp_customize->add_control(new Pixova_lite_Controls_Slider_Control($wp_customize, 'pixova_lite_howmany_blog_posts_front', array('label' => esc_html__('Ile najnowszych wiadomości ma być wyświetlane na stronie głównej na raz?', 'pixova-lite'), 'description' => esc_html__('Kontroluj ile najnowszych wiadomości ma być widoczych na stronie głównej.', 'pixova-lite'), 'choices' => array('min' => 1, 'max' => 10, 'step' => 1), 'section' => 'pixova_lite_news_general', 'default' => 3))); /***********************************************/ /************** Contact ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_contact', array('priority' => 36, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('Kontakt', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_contact_titles', array('title' => esc_html__('Sekcja tytułu', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_contact')); /* Section Title */ $wp_customize->add_setting('pixova_lite_contact_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Kontakt', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_contact_section_title', array('label' => esc_html__('Tytuł', 'pixova-lite'), 'section' => 'pixova_lite_contact_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_contact_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('And we\'ll reply in no time', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_contact_section_sub_title', array('label' => esc_html__('Podtytuł', 'pixova-lite'), 'section' => 'pixova_lite_contact_titles', 'priority' => 2)); $wp_customize->add_section('pixova_lite_contact_cf7', array('title' => esc_html__('Formularz kontaktowy', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_contact')); require_once ABSPATH . 'wp-admin/includes/plugin.php'; if (is_plugin_active('contact-form-7/wp-contact-form-7.php') && is_plugin_active('pirate-forms/pirate-forms.php')) { $contact_section_type = array('contact-form-7' => esc_html__('Contact Form 7', 'pixova-lite'), 'pirate-forms' => esc_html__('Pirate Forms', 'pixova-lite')); } elseif (is_plugin_active('contact-form-7/wp-contact-form-7.php')) { $contact_section_type = array('contact-form-7' => esc_html__('Contact Form 7', 'pixova-lite')); } elseif (is_plugin_active('pirate-forms/pirate-forms.php')) { $contact_section_type = array('pirate-forms' => esc_html__('Pirate Forms', 'pixova-lite')); } else { $contact_section_type = false; } $wp_customize->add_setting('pixova_lite_contact_section_type', array('default' => 'contact-form-7', 'sanitize_callback' => 'pixova_lite_sanitize_radio_buttons')); $wp_customize->add_control('pixova_lite_contact_section_type', array('section' => 'pixova_lite_contact_cf7', 'label' => esc_html__('Select the type of Contact Form to show (Contact Form 7 or Pirate Forms)', 'pixova-lite'), 'type' => 'radio', 'priority' => 1, 'settings' => 'pixova_lite_contact_section_type', 'active_callback' => 'pixova_lite_active_callback_contact_section_type', 'choices' => $contact_section_type)); /* Contact: contact form select */ $wp_customize->add_setting('pixova_lite_contact_section_cf7', array('sanitize_callback' => 'pixova_lite_sanitize_number')); $wp_customize->add_control(new Pixova_Lite_CF7_Custom_Control($wp_customize, 'pixova_lite_contact_section_cf7', array('label' => esc_html__('Select the contact form you\'d like to display (powered by Contact Form 7)', 'pixova-lite'), 'section' => 'pixova_lite_contact_cf7', 'priority' => 2, 'type' => 'pixova_lite_contact_form_7', 'active_callback' => 'pixova_lite_active_callback_contact_section_cf7'))); /***********************************************/ /************** Team ***************/ /***********************************************/ $wp_customize->add_panel('pixova_lite_panel_team', array('priority' => 35, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__('Team Section', 'pixova-lite'))); $wp_customize->add_section('pixova_lite_team_titles', array('title' => esc_html__('Section Titles', 'pixova-lite'), 'priority' => 1, 'panel' => 'pixova_lite_panel_team')); /* Section Title */ $wp_customize->add_setting('pixova_lite_team_section_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('The team', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_section_title', array('label' => esc_html__('Section title', 'pixova-lite'), 'section' => 'pixova_lite_team_titles', 'priority' => 1)); /* Section Sub-Title */ $wp_customize->add_setting('pixova_lite_team_section_sub_title', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Meet the people that made it all happen.', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_section_sub_title', array('label' => esc_html__('Section sub-title', 'pixova-lite'), 'section' => 'pixova_lite_team_titles', 'priority' => 2)); /* Team: team member #1 section */ $wp_customize->add_section('pixova_lite_team_member_1', array('title' => esc_html__('Team member #1', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #1 name */ $wp_customize->add_setting('pixova_lite_team_member_1_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Angelina Doe', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_member_1_name', array('label' => esc_html__('Team member #1 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 1)); /* Team: team member #1 picture */ $wp_customize->add_setting('pixova_lite_team_member_1_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_1_image', array('label' => esc_html__('Team member #1 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 2))); /* Team: team member #1 facebook */ $wp_customize->add_setting('pixova_lite_team_member_1_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_1_facebook', array('label' => esc_html__('Team member #1 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 3)); /* Team: team member #1 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_1_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_1_dribbble', array('label' => esc_html__('Team member #1 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 4)); /* Team: team member #1 Email */ $wp_customize->add_setting('pixova_lite_team_member_1_email', array('sanitize_callback' => 'esc_attr', 'default' => esc_attr('*****@*****.**'))); $wp_customize->add_control('pixova_lite_team_member_1_email', array('label' => esc_html__('Team member #1 Email', 'pixova-lite'), 'section' => 'pixova_lite_team_member_1', 'priority' => 5)); /* Team: team member #2 section */ $wp_customize->add_section('pixova_lite_team_member_2', array('title' => esc_html__('Team member #2', 'pixova-lite'), 'priority' => 2, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #2 name */ $wp_customize->add_setting('pixova_lite_team_member_2_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('John Doe', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_member_2_name', array('label' => esc_html__('Team member #2 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 1)); /* Team: team member #2 picture */ $wp_customize->add_setting('pixova_lite_team_member_2_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru2-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_2_image', array('label' => esc_html__('Team member #2 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 2))); /* Team: team member #2 facebook */ $wp_customize->add_setting('pixova_lite_team_member_2_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_2_facebook', array('label' => esc_html__('Team member #2 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 3)); /* Team: team member #2 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_2_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_2_dribbble', array('label' => esc_html__('Team member #2 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 4)); /* Team: team member #2 Email */ $wp_customize->add_setting('pixova_lite_team_member_2_email', array('sanitize_callback' => 'esc_attr', 'default' => esc_attr('*****@*****.**'))); $wp_customize->add_control('pixova_lite_team_member_2_email', array('label' => esc_html__('Team member #2 Email', 'pixova-lite'), 'section' => 'pixova_lite_team_member_2', 'priority' => 5)); /* Team: team member #3 section */ $wp_customize->add_section('pixova_lite_team_member_3', array('title' => esc_html__('Team member #3', 'pixova-lite'), 'priority' => 3, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #3 name */ $wp_customize->add_setting('pixova_lite_team_member_3_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Angelina Doe', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_member_3_name', array('label' => esc_html__('Team member #3 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 1)); /* Team: team member #3 picture */ $wp_customize->add_setting('pixova_lite_team_member_3_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru3-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_3_image', array('label' => esc_html__('Team member #3 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 2))); /* Team: team member #3 facebook */ $wp_customize->add_setting('pixova_lite_team_member_3_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_3_facebook', array('label' => esc_html__('Team member #3 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 3)); /* Team: team member #3 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_3_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_3_dribbble', array('label' => esc_html__('Team member #3 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 4)); /* Team: team member #3 Email */ $wp_customize->add_setting('pixova_lite_team_member_3_email', array('sanitize_callback' => 'esc_attr', 'default' => esc_attr('*****@*****.**'))); $wp_customize->add_control('pixova_lite_team_member_3_email', array('label' => esc_html__('Team member #3 Email', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 5)); /* Team: team member #4 section */ $wp_customize->add_section('pixova_lite_team_member_4', array('title' => esc_html__('Team member #4', 'pixova-lite'), 'priority' => 4, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #4 name */ $wp_customize->add_setting('pixova_lite_team_member_4_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Angelina Doe', 'pixova-lite'), 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_member_4_name', array('label' => esc_html__('Team member #4 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 1)); /* Team: team member #4 picture */ $wp_customize->add_setting('pixova_lite_team_member_4_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => get_template_directory_uri() . '/layout/images/team/teammembru4-150x150.jpg')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_4_image', array('label' => esc_html__('Team member #4 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 2))); /* Team: team member #4 facebook */ $wp_customize->add_setting('pixova_lite_team_member_4_facebook', array('sanitize_callback' => 'esc_url', 'default' => 'https://www.facebook.com/machothemes/')); $wp_customize->add_control('pixova_lite_team_member_4_facebook', array('label' => esc_html__('Team member #4 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 3)); /* Team: team member #4 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_4_dribbble', array('sanitize_callback' => 'esc_url', 'default' => 'http://www.dribbble.com/madalin.duca/')); $wp_customize->add_control('pixova_lite_team_member_4_dribbble', array('label' => esc_html__('Team member #4 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 4)); /* Team: team member #4 Email */ $wp_customize->add_setting('pixova_lite_team_member_4_email', array('sanitize_callback' => 'esc_attr', 'default' => esc_attr('*****@*****.**'))); $wp_customize->add_control('pixova_lite_team_member_4_email', array('label' => esc_html__('Team member #4 Email', 'pixova-lite'), 'section' => 'pixova_lite_team_member_4', 'priority' => 5)); /* Team: team member #5 section */ $wp_customize->add_section('pixova_lite_team_member_5', array('title' => esc_html__('Team member #5', 'pixova-lite'), 'priority' => 5, 'panel' => 'pixova_lite_panel_team')); /* Team: team member #5 name */ $wp_customize->add_setting('pixova_lite_team_member_5_name', array('sanitize_callback' => 'sanitize_text_field', 'default' => '', 'transport' => 'postMessage')); $wp_customize->add_control('pixova_lite_team_member_5_name', array('label' => esc_html__('Team member #5 name', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 1)); /* Team: team member #5 picture */ $wp_customize->add_setting('pixova_lite_team_member_5_image', array('sanitize_callback' => 'pixova_lite_sanitize_file_url', 'default' => '')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'pixova_lite_team_member_5_image', array('label' => esc_html__('Team member #5 image', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 2))); /* Team: team member #5 facebook */ $wp_customize->add_setting('pixova_lite_team_member_5_facebook', array('sanitize_callback' => 'esc_url', 'default' => '')); $wp_customize->add_control('pixova_lite_team_member_5_facebook', array('label' => esc_html__('Team member #5 Facebook URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 3)); /* Team: team member #5 Dribbble */ $wp_customize->add_setting('pixova_lite_team_member_5_dribbble', array('sanitize_callback' => 'esc_url', 'default' => '')); $wp_customize->add_control('pixova_lite_team_member_5_dribbble', array('label' => esc_html__('Team member #5 Dribbble URL', 'pixova-lite'), 'section' => 'pixova_lite_team_member_5', 'priority' => 4)); /* Team: team member #5 Email */ $wp_customize->add_setting('pixova_lite_team_member_5_email', array('sanitize_callback' => 'esc_attr', 'default' => esc_attr('*****@*****.**'))); $wp_customize->add_control('pixova_lite_team_member_5_email', array('label' => esc_html__('Team member #5 Email', 'pixova-lite'), 'section' => 'pixova_lite_team_member_3', 'priority' => 5)); }