function dw_minion_customize_register($wp_customize) { // GENERAL SETTINGS -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_minion_general', array('title' => __('General Settings', 'dw-minion'), 'priority' => 9)); $wp_customize->add_setting('dw_minion_theme_options[disable_related_article]', array('default' => 'no', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('disable_related_article', array('settings' => 'dw_minion_theme_options[disable_related_article]', 'label' => 'Disable related articles?', 'section' => 'dw_minion_general', 'type' => 'select', 'choices' => array('yes' => 'Yes', 'no' => 'No'))); $wp_customize->add_setting('dw_minion_theme_options[remove_leftbar]', array('default' => 'no', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('remove_leftbar', array('settings' => 'dw_minion_theme_options[remove_leftbar]', 'label' => 'Remove the left bar?', 'section' => 'dw_minion_general', 'type' => 'select', 'choices' => array('yes' => 'Yes', 'no' => 'No'))); // SITE LAYOUT -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_minion_layout', array('title' => __('Site Alignment', 'dw-minion'), 'priority' => 10)); $wp_customize->add_setting('dw_minion_theme_options[layout]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new Layout_Picker_Custom_control($wp_customize, 'layout', array('label' => __('Align Left/Center', 'dw-minion'), 'section' => 'dw_minion_layout', 'settings' => 'dw_minion_theme_options[layout]', 'choices' => array('left', 'center')))); // SITE INFO & FAVICON -------------------------------------------------------------------------------------- $wp_customize->add_setting('dw_minion_theme_options[about]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new DW_Minion_Textarea_Custom_Control($wp_customize, 'about', array('label' => __('About', 'dw-minion'), 'section' => 'title_tagline', 'settings' => 'dw_minion_theme_options[about]'))); $wp_customize->add_setting('dw_minion_theme_options[logo]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'logo', array('label' => __('Site Logo', 'dw-minion'), 'section' => 'title_tagline', 'settings' => 'dw_minion_theme_options[logo]'))); $wp_customize->add_setting('dw_minion_theme_options[header_display]', array('default' => 'site_title', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('header_display', array('settings' => 'dw_minion_theme_options[header_display]', 'label' => 'Display as', 'section' => 'title_tagline', 'type' => 'select', 'choices' => array('site_title' => 'Site Title', 'site_logo' => 'Site Logo'))); $wp_customize->add_setting('dw_minion_theme_options[favicon]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'favicon', array('label' => __('Site Favicon', 'dw-minion'), 'section' => 'title_tagline', 'settings' => 'dw_minion_theme_options[favicon]'))); // SOCIAL LINKS -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_minion_social_links', array('title' => __('Social Links', 'dw-minion'), 'priority' => 108)); $wp_customize->add_setting('dw_minion_theme_options[facebook]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('facebook', array('label' => __('Facebook', 'dw-minion'), 'section' => 'dw_minion_social_links', 'settings' => 'dw_minion_theme_options[facebook]')); $wp_customize->add_setting('dw_minion_theme_options[twitter]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('twitter', array('label' => __('Twitter', 'dw-minion'), 'section' => 'dw_minion_social_links', 'settings' => 'dw_minion_theme_options[twitter]')); $wp_customize->add_setting('dw_minion_theme_options[google_plus]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('google_plus', array('label' => __('Google+', 'dw-minion'), 'section' => 'dw_minion_social_links', 'settings' => 'dw_minion_theme_options[google_plus]')); $wp_customize->add_setting('dw_minion_theme_options[youtube]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('youtube', array('label' => __('YouTube', 'dw-minion'), 'section' => 'dw_minion_social_links', 'settings' => 'dw_minion_theme_options[youtube]')); $wp_customize->add_setting('dw_minion_theme_options[linkedin]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('linkedin', array('label' => __('LinkedIn', 'dw-minion'), 'section' => 'dw_minion_social_links', 'settings' => 'dw_minion_theme_options[linkedin]')); // LEFT SIDEBAR COLOR -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_minion_leftbar', array('title' => __('Left Sidebar Color', 'dw-minion'), 'priority' => 109)); $wp_customize->add_setting('dw_minion_theme_options[leftbar_bgcolor]', array('capability' => 'edit_theme_options', 'type' => 'option', 'default' => '#222222')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'leftbar_bgcolor', array('label' => __('Background Color', 'dw-minion'), 'section' => 'dw_minion_leftbar', 'settings' => 'dw_minion_theme_options[leftbar_bgcolor]'))); $wp_customize->add_setting('dw_minion_theme_options[leftbar_bghovercolor]', array('capability' => 'edit_theme_options', 'type' => 'option', 'default' => '#111111')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'leftbar_bghovercolor', array('label' => __('Background Hover Color', 'dw-minion'), 'section' => 'dw_minion_leftbar', 'settings' => 'dw_minion_theme_options[leftbar_bghovercolor]'))); $wp_customize->add_setting('dw_minion_theme_options[leftbar_color]', array('capability' => 'edit_theme_options', 'type' => 'option', 'default' => '#444444')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'leftbar_color', array('label' => __('Text Color', 'dw-minion'), 'section' => 'dw_minion_leftbar', 'settings' => 'dw_minion_theme_options[leftbar_color]'))); $wp_customize->add_setting('dw_minion_theme_options[leftbar_hovercolor]', array('capability' => 'edit_theme_options', 'type' => 'option', 'default' => '#ffffff')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'leftbar_hovercolor', array('label' => __('Text Hover Color', 'dw-minion'), 'section' => 'dw_minion_leftbar', 'settings' => 'dw_minion_theme_options[leftbar_hovercolor]'))); $wp_customize->add_setting('dw_minion_theme_options[leftbar_bordercolor]', array('capability' => 'edit_theme_options', 'type' => 'option', 'default' => '#333333')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'leftbar_bordercolor', array('label' => __('Border Color', 'dw-minion'), 'section' => 'dw_minion_leftbar', 'settings' => 'dw_minion_theme_options[leftbar_bordercolor]'))); // STYLE SELECTOR -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_minion_primary_color', array('title' => __('Style Selector', 'dw-minion'), 'priority' => 110)); $wp_customize->add_setting('dw_minion_theme_options[select-color]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new Color_Picker_Custom_control($wp_customize, 'select-color', array('label' => __('Color Schemes', 'dw-minion'), 'section' => 'dw_minion_primary_color', 'settings' => 'dw_minion_theme_options[select-color]', 'choices' => array('#7cc576', '#38B7EA', '#fc615d', '#B39964', '#e07798')))); $wp_customize->add_setting('dw_minion_theme_options[custom-color]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'link_color', array('label' => __('Custom Color', 'dw-minion'), 'section' => 'dw_minion_primary_color', 'settings' => 'dw_minion_theme_options[custom-color]'))); // FONT SELECTOR -------------------------------------------------------------------------------------- $fonts = dw_get_gfonts(); $newarray = array(); $newarray[] = ''; foreach ($fonts as $index => $font) { foreach ($font->files as $key => $value) { $newarray[$font->family . ':dw:' . $value] = $font->family . ' - ' . $key; } } $wp_customize->add_section('dw_minion_typo', array('title' => __('Font Selector', 'dw-minion'), 'priority' => 111)); $wp_customize->add_setting('dw_minion_theme_options[heading_font]', array('default' => 'Roboto Slab:dw:http://themes.googleusercontent.com/static/fonts/robotoslab/v2/3__ulTNA7unv0UtplybPiqCWcynf_cDxXwCLxiixG1c.ttf', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('heading_font', array('settings' => 'dw_minion_theme_options[heading_font]', 'label' => __('Select headding font', 'dw-minion'), 'section' => 'dw_minion_typo', 'type' => 'select', 'choices' => $newarray)); $wp_customize->add_setting('dw_minion_theme_options[body_font]', array('default' => 'Roboto:dw:http://themes.googleusercontent.com/static/fonts/roboto/v9/W5F8_SL0XFawnjxHGsZjJA.ttf', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('body_font', array('settings' => 'dw_minion_theme_options[body_font]', 'label' => __('Select body font', 'dw-minion'), 'section' => 'dw_minion_typo', 'type' => 'select', 'choices' => $newarray)); $wp_customize->add_setting('dw_minion_theme_options[article_font_size]', array('capability' => 'edit_theme_options', 'type' => 'option', 'default' => '15')); $wp_customize->add_control('article_font_size', array('label' => __('Article font size (px)', 'dw-minion'), 'section' => 'dw_minion_typo', 'settings' => 'dw_minion_theme_options[article_font_size]')); // CUSTOM CODE -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_minion_custom_code', array('title' => __('Custom Code', 'dw-minion'), 'priority' => 200)); $wp_customize->add_setting('dw_minion_theme_options[header_code]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new DW_Minion_Textarea_Custom_Control($wp_customize, 'header_code', array('label' => __('Header Code (Meta tags, CSS, etc ...)', 'dw-minion'), 'section' => 'dw_minion_custom_code', 'settings' => 'dw_minion_theme_options[header_code]'))); $wp_customize->add_setting('dw_minion_theme_options[footer_code]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new DW_Minion_Textarea_Custom_Control($wp_customize, 'footer_code', array('label' => __('Footer Code (Analytics, etc ...)', 'dw-minion'), 'section' => 'dw_minion_custom_code', 'settings' => 'dw_minion_theme_options[footer_code]'))); }
function dw_fixel_customize_register($wp_customize) { // GENERAL SETTINGS -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_general_settings', array('title' => __('General Settings', 'dw'), 'priority' => 10)); // Facebook $wp_customize->add_setting('dw_general_options[facebook_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_facebook_link', array('label' => __('Facebook link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[facebook_link]', 'type' => 'text')); // Twitter $wp_customize->add_setting('dw_general_options[twitter_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_twitter_link', array('label' => __('Twitter link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[twitter_link]', 'type' => 'text')); // Instagram $wp_customize->add_setting('dw_general_options[instagram_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_instagram_link', array('label' => __('Instagram link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[instagram_link]', 'type' => 'text')); // Youtube $wp_customize->add_setting('dw_general_options[youtube_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_youtube_link', array('label' => __('Youtube link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[youtube_link]', 'type' => 'text')); // Google Plus $wp_customize->add_setting('dw_general_options[google_plus_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_google_plus_link', array('label' => __('Google+ profile link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[google_plus_link]', 'type' => 'text')); // LinkedIn $wp_customize->add_setting('dw_general_options[linkedin_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_linkedin_link', array('label' => __('LinkedIn link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[linkedin_link]', 'type' => 'text')); // Flickr $wp_customize->add_setting('dw_general_options[flickr_link]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option', 'transport' => 'postMessage')); $wp_customize->add_control('dw_general_options_flickr_link', array('label' => __('Flickr link', 'dw'), 'section' => 'dw_general_settings', 'settings' => 'dw_general_options[flickr_link]', 'type' => 'text')); // ARCHIVE PAGE SETTINGS -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_archive_page_options', array('title' => __('Archive Page Settings', 'dw'), 'priority' => 20)); $wp_customize->add_setting('dw_archive_page_options[show_more_type]', array('default' => 'infinite', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('dw_homepage_options_block_number', array('label' => __('Show more type', 'dw'), 'section' => 'dw_archive_page_options', 'settings' => 'dw_archive_page_options[show_more_type]', 'type' => 'radio', 'choices' => array('button' => __('Show more button', 'dw'), 'infinite' => __('Infinite loading', 'dw')))); // SITE TITLE & TAG LINE -------------------------------------------------------------------------------------- $wp_customize->add_setting('dw_theme_options[logo_image]', array('default' => DW_URI . 'assets/img/logo.png', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'logo_image', array('label' => __('Logo', 'dw'), 'section' => 'title_tagline', 'settings' => 'dw_theme_options[logo_image]'))); $wp_customize->add_setting('dw_theme_options[header_display]', array('default' => 'site_logo', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('header_display', array('settings' => 'dw_theme_options[header_display]', 'label' => 'Display as', 'section' => 'title_tagline', 'type' => 'select', 'choices' => array('site_logo' => 'Site Logo', 'site_title' => 'Site Title'))); $wp_customize->add_setting('dw_theme_options[favicon]', array('default' => DW_URI . 'assets/img/favicon.png', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'dw_favicon', array('label' => __('Favicon', 'dw'), 'section' => 'title_tagline', 'settings' => 'dw_theme_options[favicon]'))); // STYLE SELECTOR -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_fixel_primary_color', array('title' => __('Style Selector', 'dw'), 'priority' => 110)); $wp_customize->add_setting('dw_theme_options[background-color]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'background-color', array('label' => __('Background Color', 'dw'), 'section' => 'dw_fixel_primary_color', 'settings' => 'dw_theme_options[background-color]', 'choices' => '#111111'))); $wp_customize->add_setting('dw_theme_options[page-title-color]', array('default' => 'Page Title Color', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'page-title-color', array('label' => __('Page Title Color', 'dw'), 'section' => 'dw_fixel_primary_color', 'settings' => 'dw_theme_options[page-title-color]', 'choices' => '#ffffff'))); $wp_customize->add_setting('dw_theme_options[select-color]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new Color_Picker_Custom_control($wp_customize, 'select-color', array('label' => __('Color Schemes', 'dw'), 'section' => 'dw_fixel_primary_color', 'settings' => 'dw_theme_options[select-color]', 'choices' => array('#fc615d', '#38B7EA', '#7cc576', '#B39964', '#e07798')))); $wp_customize->add_setting('dw_theme_options[custom-color]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'custom-color', array('label' => __('Custom Color', 'dw'), 'section' => 'dw_fixel_primary_color', 'settings' => 'dw_theme_options[custom-color]', 'choices' => '#fc615d'))); // FONT SELECTOR -------------------------------------------------------------------------------------- $fonts = dw_get_gfonts(); $newarray = array(); $newarray[] = ''; foreach ($fonts as $index => $font) { foreach ($font->files as $key => $value) { $newarray[$font->family . ':dw:' . $value] = $font->family . ' - ' . $key; } } $wp_customize->add_section('dw_fixel_typo', array('title' => __('Font Selector', 'dw'), 'priority' => 111)); $wp_customize->add_setting('dw_theme_options[heading_font]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('heading_font', array('settings' => 'dw_theme_options[heading_font]', 'label' => __('Select headding font', 'dw'), 'section' => 'dw_fixel_typo', 'type' => 'select', 'choices' => $newarray)); $wp_customize->add_setting('dw_theme_options[body_font]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('body_font', array('settings' => 'dw_theme_options[body_font]', 'label' => __('Select body font', 'dw'), 'section' => 'dw_fixel_typo', 'type' => 'select', 'choices' => $newarray)); // CUSTOM CODE -------------------------------------------------------------------------------------- $wp_customize->add_section('dw_fixel_custom_code', array('title' => __('Custom Code', 'dw'), 'priority' => 200)); $wp_customize->add_setting('dw_theme_options[header_code]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new dw_customize_textarea($wp_customize, 'dw_header_code', array('label' => __('Header Code', 'dw'), 'section' => 'dw_fixel_custom_code', 'settings' => 'dw_theme_options[header_code]'))); $wp_customize->add_setting('dw_theme_options[footer_code]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new dw_customize_textarea($wp_customize, 'dw_footer_code', array('label' => __('Footer Code', 'dw'), 'section' => 'dw_fixel_custom_code', 'settings' => 'dw_theme_options[footer_code]'))); }
function dw_wall_customize_register($wp_customize) { global $dw_colors; // Site tile & Tagline // --------------------------- $wp_customize->add_setting('dw_wall_theme_options[logo]', array('default' => get_stylesheet_directory_uri() . '/assets/images/logo.png', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'logo', array('label' => __('Site Logo', 'dw-wallpress'), 'section' => 'title_tagline', 'settings' => 'dw_wall_theme_options[logo]'))); $wp_customize->add_setting('dw_wall_theme_options[header_display]', array('default' => 'site_title', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('header_display', array('settings' => 'dw_wall_theme_options[header_display]', 'label' => 'Display as', 'section' => 'title_tagline', 'type' => 'select', 'choices' => array('site_title' => 'Site Title', 'site_logo' => 'Site Logo'))); $wp_customize->add_setting('dw_wall_theme_options[favicon]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'favicon', array('label' => __('Site Favicon', 'dw-wallpress'), 'section' => 'title_tagline', 'settings' => 'dw_wall_theme_options[favicon]'))); // Style slector // --------------------------- $wp_customize->add_section('dw_wall_primary_color', array('title' => __('Style Selector', 'dw-wallpress'), 'priority' => 110)); $wp_customize->add_setting('dw_wall_theme_options[select-color]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new Color_Picker_Custom_control($wp_customize, 'select-color', array('label' => __('Color Schemes', 'dw-wallpress'), 'section' => 'dw_wall_primary_color', 'settings' => 'dw_wall_theme_options[select-color]', 'choices' => $dw_colors))); $wp_customize->add_setting('dw_wall_theme_options[custom-color]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'custom-color', array('label' => __('Custom Color', 'dw-wallpress'), 'section' => 'dw_wall_primary_color', 'settings' => 'dw_wall_theme_options[custom-color]'))); // Font selector // --------------------------- $fonts = dw_get_gfonts(); $newarray = array(); $newarray[] = ''; foreach ($fonts as $index => $font) { foreach ($font->files as $key => $value) { $newarray[$font->family . ':dw:' . $value] = $font->family . ' - ' . $key; } } $wp_customize->add_section('dw_wall_typo', array('title' => __('Font Selector', 'dw-wallpress'), 'priority' => 111)); $wp_customize->add_setting('dw_wall_theme_options[heading_font]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('heading_font', array('settings' => 'dw_wall_theme_options[heading_font]', 'label' => 'Select headding font', 'section' => 'dw_wall_typo', 'type' => 'select', 'choices' => $newarray)); $wp_customize->add_setting('dw_wall_theme_options[body_font]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control('body_font', array('settings' => 'dw_wall_theme_options[body_font]', 'label' => 'Select body font', 'section' => 'dw_wall_typo', 'type' => 'select', 'choices' => $newarray)); // Category select // --------------------------- $wp_customize->add_setting('dw_wall_theme_options[cat_select]', array('capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new WP_Cats_Select_Control($wp_customize, 'cat_select', array('label' => __('Static categories', 'dw-wallpress'), 'section' => 'static_front_page', 'settings' => 'dw_wall_theme_options[cat_select]'))); // Custom code // --------------------------- $wp_customize->add_section('dw_wall_custom_code', array('title' => __('Custom Code', 'dw-wallpress'), 'priority' => 200)); $wp_customize->add_setting('dw_wall_theme_options[header_code]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new dw_wall_Textarea_Custom_Control($wp_customize, 'header_code', array('label' => __('Header Code (Meta tags, CSS, etc ...)', 'dw-wallpress'), 'section' => 'dw_wall_custom_code', 'settings' => 'dw_wall_theme_options[header_code]'))); $wp_customize->add_setting('dw_wall_theme_options[footer_code]', array('default' => '', 'capability' => 'edit_theme_options', 'type' => 'option')); $wp_customize->add_control(new dw_wall_Textarea_Custom_Control($wp_customize, 'footer_code', array('label' => __('Footer Code', 'dw-wallpress'), 'section' => 'dw_wall_custom_code', 'settings' => 'dw_wall_theme_options[footer_code]'))); }