add_section( 'info_section', array( 'title' => __( 'Info Layout', 'atlas' ), 'priority' => 350, )); $wp_customize->add_setting( 'info_section_phone', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'info_section_phone', array( 'label' => __( 'Phone', 'atlas' ), 'type' => 'text', 'section' => 'info_section' )); $wp_customize->add_setting( 'info_section_mail', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'info_section_mail', array( 'label' => __( 'Mail', 'atlas' ), 'type' => 'text', 'section' => 'info_section' )); $wp_customize->add_setting( 'info_section_work', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'info_section_work', array( 'label' => __( 'Working hours', 'atlas' ), 'type' => 'text', 'section' => 'info_section' )); /* Blog Layout */ $wp_customize->add_section( 'blog_section', array( 'title' => __( 'Blog Layout', 'atlas' ) )); $wp_customize->add_setting( 'blog_section_bck', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'blog_section_bck', array( 'label' => __( 'Arkaplan resmi', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'blog_section' ) ) ); /* Home Layout */ $wp_customize->add_panel( 'home_setting', array( 'priority' => 450, 'capability' => 'edit_theme_options', 'title' => __('Settings', 'atlas'), ) ); $wp_customize->add_section( 'slider_section', array( 'title' => __('Slider Layouts','atlas'), 'panel' => 'home_setting',) ); $wp_customize->add_setting( 'slider_section_img', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'slider_section_img', array( 'label' => __( 'Background', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'slider_section' ) ) ); $wp_customize->add_setting( 'slider_section_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_title', array( 'label' => __( 'Slider Title', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_text', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_text', array( 'label' => __( 'Description', 'atlas' ), 'type' => 'textarea', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_btn_label_1', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_btn_label_1', array( 'label' => __( 'Button Label', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_btn_url_1', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'slider_section_btn_url_1', array( 'label' => __( 'Button URL', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_btn_label_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_btn_label_2', array( 'label' => __( 'Button label', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_btn_url_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'slider_section_btn_url_2', array( 'label' => __( 'Button URL', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_img_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'slider_section_img_2', array( 'label' => __( 'Background', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'slider_section' ) ) ); $wp_customize->add_setting( 'slider_section_img_2_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_img_2_title', array( 'label' => __( 'Slider Title', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_img_2_textarea', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea', 'default' => '' )); $wp_customize->add_control( 'slider_section_img_2_textarea', array( 'label' => __( 'Description', 'atlas' ), 'type' => 'textarea', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_img_2_btn_label_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_img_2_btn_label_2', array( 'label' => __( 'Button Label', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_img_2_btn_url_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'slider_section_img_2_btn_url_2', array( 'label' => __( 'Button URL', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_img_2_btn_label_3', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'slider_section_img_2_btn_label_3', array( 'label' => __( 'Button label', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); $wp_customize->add_setting( 'slider_section_img_2_btn_url_3', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'slider_section_img_2_btn_url_3', array( 'label' => __( 'Button URL', 'atlas' ), 'type' => 'text', 'section' => 'slider_section' )); /* Content Layout */ $wp_customize->add_section( 'content2_section', array( 'title' => __( 'Content Layout', 'atlas' ), 'panel' => 'home_setting',) ); $wp_customize->add_setting( 'content2_section_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_title', array( 'label' => __( 'Title', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_textarea', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea', 'default' => '' )); $wp_customize->add_control( 'content2_section_textarea', array( 'label' => __( 'Description', 'atlas' ), 'type' => 'textarea', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'content2_section_img', array( 'label' => __( 'Background', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'content2_section' ) ) ); $wp_customize->add_setting( 'content2_section_title_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_title_2', array( 'label' => __( 'Title', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_textarea_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea', 'default' => '' )); $wp_customize->add_control( 'content2_section_textarea_2', array( 'label' => __( 'Descripton', 'atlas' ), 'type' => 'textarea', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_btn_labels', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_btn_labels', array( 'label' => __( 'Button label', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_btn_urls', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'content2_section_btn_urls', array( 'label' => __( 'Button URL', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img_2', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'content2_section_img_2', array( 'label' => __( 'Picture', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'content2_section' ) ) ); $wp_customize->add_setting( 'content2_section_img_2_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_img_2_title', array( 'label' => __( 'Title', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img_2_textarea', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea', 'default' => '' )); $wp_customize->add_control( 'content2_section_img_2_textarea', array( 'label' => __( 'Description', 'atlas' ), 'type' => 'textarea', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img_3', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'content2_section_img_3', array( 'label' => __( 'Picture', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'content2_section' ) ) ); $wp_customize->add_setting( 'content2_section_img_3_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_img_3_title', array( 'label' => __( 'Title', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img_3_textarea', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea', 'default' => '' )); $wp_customize->add_control( 'content2_section_img_3_textarea', array( 'label' => __( 'Description', 'atlas' ), 'type' => 'textarea', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img_4', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'content2_section_img_4', array( 'label' => __( 'Picture', 'atlas' ), 'type' => 'media', 'mime_type' => 'image', 'section' => 'content2_section' ) ) ); $wp_customize->add_setting( 'content2_section_img_4_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_img_4_title', array( 'label' => __( 'Title', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_img_4_textarea', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea', 'default' => '' )); $wp_customize->add_control( 'content2_section_img_4_textarea', array( 'label' => __( 'Description', 'atlas' ), 'type' => 'textarea', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_btn_label_5', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' )); $wp_customize->add_control( 'content2_section_btn_label_5', array( 'label' => __( 'Button Label', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); $wp_customize->add_setting( 'content2_section_btn_url_5', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'content2_section_btn_url_5', array( 'label' => __( 'Button URL', 'atlas' ), 'type' => 'text', 'section' => 'content2_section' )); } add_action( 'customize_register', 'atlas_home_customizer' );