Exemple #1
0
function tally_customizer_general_register($wp_customize)
{
    $wp_customize->add_panel('tally_general', array('title' => 'General', 'priority' => 10, 'description' => 'Navigation / Site Title & Tagline / Static Front Page'));
    /**
     * Logo/Site Title & Tagline Section
     */
    $title_tagline_section = $wp_customize->get_section('title_tagline');
    // Get Section
    $title_tagline_section->panel = 'tally_general';
    // Add panel
    $title_tagline_section->priority = 10;
    // Adjust Priority
    /**
     * Static Front Page Section
     */
    $static_front_page_section = $wp_customize->get_section('static_front_page');
    // Get Section
    $static_front_page_section->panel = 'tally_general';
    // Add panel
    $static_front_page_section->priority = 20;
    // Adjust Priority
    /*	Site Logo
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $wp_customize->add_section('tally_site_logos', array('title' => __('Logo', 'doctors'), 'description' => '', 'panel' => 'tally_general', 'priority' => 10));
    $prefix = 'tally_header_';
    $section = 'tally_site_logos';
    /*-~- Upload Logo -~-*/
    $uid = $prefix . 'logo';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw'));
    $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Upload Logo', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
    if (!function_exists('has_site_icon')) {
        /*-~- Upload Favicon -~-*/
        $uid = $prefix . 'favicon';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw'));
        $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Upload Favicon sss', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
    }
    /*	Site Logo
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    if (tally_config('type') != 'none') {
        $wp_customize->add_section('tally_site_customScript', array('title' => __('Customization', 'doctors'), 'description' => '', 'panel' => 'tally_general', 'priority' => 40));
        $prefix = 'tally_customScript_';
        $section = 'tally_site_customScript';
        /*-~- Custom CSS -~-*/
        $uid = $prefix . 'css';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Custom CSS', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
        /*-~- Custom Header JavaScript -~-*/
        $uid = $prefix . 'jsHeader';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Custom Header JavaScript', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
        /*-~- Custom Header JavaScript -~-*/
        $uid = $prefix . 'jsFooter';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Custom Footer JavaScript', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
}
Exemple #2
0
function tally_customizer_font_register($wp_customize)
{
    $wp_customize->add_panel('tally_font', array('title' => 'Typography', 'description' => 'Manage font and typography.'));
    $wp_customize->add_section('tally_font_size', array('title' => __('Font Size', 'doctors'), 'description' => '', 'panel' => 'tally_font'));
    $wp_customize->add_section('tally_font_source', array('title' => __('Font Source', 'doctors'), 'description' => __('Select a font family source/', 'doctors'), 'panel' => 'tally_font'));
    $wp_customize->add_section('tally_google_font', array('title' => __('Google Font', 'doctors'), 'description' => __('Load Google font in the theme.', 'doctors'), 'panel' => 'tally_font'));
    $wp_customize->add_section('tally_web_font', array('title' => __('Web Font', 'doctors'), 'description' => __('You can upload your own web font.', 'doctors'), 'panel' => 'tally_font'));
    /*	Font Size
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_font_size_';
    $section = 'tally_font_size';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Typography.')));
    }
    /*-~- H1 Font size -~-*/
    $uid = $prefix . 'h1';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H1 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    /*-~- H2 Font size -~-*/
    $uid = $prefix . 'h2';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H2 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    /*-~- H3 Font size -~-*/
    $uid = $prefix . 'h3';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H3 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    /*-~- H4 Font size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'h4';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H4 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    }
    /*-~- H5 Font size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'h5';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H5 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    }
    /*-~- H6 Font size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'h6';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('H6 Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    }
    /*-~- Body Font size -~-*/
    $uid = $prefix . 'body';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Body Font size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text')));
    /*	Font source
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_font_source_';
    $section = 'tally_font_source';
    /*-~- Select A Font source -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'list';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new WP_Customize_Control($wp_customize, $uid, array('label' => __('Select a Font Source', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'transport' => 'postMessage', 'choices' => array('none' => __('None', 'doctors'), 'google' => __('Google font', 'doctors')), 'description' => __('select a fornt type.', 'doctors') . '<i class="tally-showhide-select"></i>')));
    }
    /*	Google Font
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_font_googleFont_';
    $section = 'tally_google_font';
    /*-~- Select A Font source -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'heading';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Font Link of the heading ', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'textarea', 'description' => __('Copy the Google Font Family from <a href="http://www.google.com/fonts" target="_blank">http://www.google.com/fonts</a> like: <strong>Open+Sans:400,700,600</strong>', 'doctors'))));
        $uid = $prefix . 'text';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Body Text Font ', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'textarea', 'description' => __('Copy the Google Font Family from <a href="http://www.google.com/fonts" target="_blank">http://www.google.com/fonts</a> like: <strong>Open+Sans:400,700,600</strong>', 'doctors'))));
    }
}
<?php

/*-~- Border Color -~-*/
$uid = $prefix . 'border';
$wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
function tally_home_customiser_builder($wp_customize)
{
    if (tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php')) {
        include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_home-data.php');
    } else {
        include tally_file_directory('home/home-data.php');
    }
    foreach ($tally_home_data as $tally_home) {
        /*
        			Building the panel
        		--------------------------------------------------------------------------*/
        $wp_customize->add_panel($tally_home['id'], array('title' => $tally_home['label']));
        /*
        			Building  Enabel section
        		--------------------------------------------------------------------------*/
        $s_section = $tally_home['id'] . '_settings';
        $wp_customize->add_section($s_section, array('title' => __('Settings', 'doctors'), 'panel' => $tally_home['id']));
        $s_id = $s_section . '_enable';
        $s_label = __('Enabel This Home Page Section', 'doctors');
        $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new WP_Customize_Control($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'checkbox')));
        if ($tally_home['background'] == true) {
            $s_id = $s_section . '_bgImage';
            $s_label = __('Background Image', 'doctors');
            $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
            $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10)));
            /*-~- Info -~-*/
            if (tally_config('type') == 'none') {
                $s_id = $s_section . '_info1';
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Background of this section.')));
            }
            if (tally_config('type') != 'none') {
                $s_id = $s_section . '_bgColor';
                $s_label = __('Background Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_bgAltColor';
                $s_label = __('Background Alt Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_bgRepeat';
                $s_label = __('Background Repeat', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('no-repeat' => __('No Repeat', 'doctors'), 'repeat' => __('Tile', 'doctors'), 'repeat-x' => __('Tile Horizontally', 'doctors'), 'repeat-y' => __('Tile Vertically', 'doctors')))));
                $s_id = $s_section . '_bgPosition';
                $s_label = __('Background Position', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('top left' => __('Top Left', 'doctors'), 'top right' => __('Top Right', 'doctors'), 'top center' => __('Top Center', 'doctors'), 'center center' => __('Center Center', 'doctors'), 'bottom left' => __('Top Left', 'doctors'), 'bottom right' => __('Top Right', 'doctors'), 'bottom center' => __('Top Center', 'doctors')))));
                $s_id = $s_section . '_bgAttachment';
                $s_label = __('Background Attachment', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('scroll' => __('Scroll', 'doctors'), 'fixed' => __('Fixed', 'doctors')))));
                $s_id = $s_section . '_bgSize';
                $s_label = __('Background Size', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
            }
        }
        if ($tally_home['settings'] == true) {
            /*-~- Info -~-*/
            if (tally_config('type') == 'none') {
                $s_id = $s_section . '_info2';
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Stiings.')));
            }
            if (tally_config('type') != 'none') {
                $s_id = $s_section . '_contentWidth';
                $s_label = __('Content Width', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
                $s_id = $s_section . '_topPadding';
                $s_label = __('Top Padding', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_bottomPadding';
                $s_label = __('Bottom Padding', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_class';
                $s_label = __('Class', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_divID';
                $s_label = __('CSS ID', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
            }
        }
        /*
        			Building  heading section
        		--------------------------------------------------------------------------*/
        if ($tally_home['heading'] == true) {
            $s_section = $tally_home['id'] . '_heading';
            $wp_customize->add_section($s_section, array('title' => __('Heading', 'doctors'), 'panel' => $tally_home['id']));
            /*-~- Info -~-*/
            if (tally_config('type') == 'none') {
                $s_id = $s_section . '_info3';
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Heading.')));
            }
            if (tally_config('type') != 'none') {
                $s_id = $s_section . '_enable';
                $s_label = __('Enabel Heading of this section', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Checkbox($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'checkbox', 'css_class' => 'biz')));
            }
            $s_id = $s_section . '_title';
            $s_label = __('Title', 'doctors');
            $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
            $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => '')));
            $s_id = $s_section . '_des';
            $s_label = __('Description', 'doctors');
            $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
            $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'textarea', 'css_class' => '')));
            if (tally_config('type') != 'none') {
                $s_id = $s_section . '_type';
                $s_label = __('Type', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('-' => __('None', 'doctors'), 'one' => __('Style 1', 'doctors')))));
                $s_id = $s_section . '_align';
                $s_label = __('Alignment', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('left' => __('Left', 'doctors'), 'right' => __('Right', 'doctors'), 'center' => __('Center', 'doctors'), 'none' => __('None', 'doctors')))));
            }
        }
        /*
        			Building the blocks
        		--------------------------------------------------------------------------*/
        if (is_array($tally_home['col_order'])) {
            foreach ($tally_home['col_order'] as $tally_home_col_order) {
                if (is_array($tally_home['columns'])) {
                    foreach ($tally_home['columns'] as $tally_home_column) {
                        if (is_array($tally_home_column['blocks'])) {
                            foreach ($tally_home_column['blocks'] as $tally_home_column_block) {
                                if ($tally_home_column_block['id'] == $tally_home_col_order) {
                                    if (file_exists(tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/customizer.php'))) {
                                        $block_section = $tally_home['id'] . '_' . $tally_home_column_block['id'];
                                        $wp_customize->add_section($block_section, array('title' => $tally_home_column_block['label'], 'panel' => $tally_home['id']));
                                        $block_id = $block_section . '_enable';
                                        $block_label = __('Enabel This: ', 'doctors') . $tally_home_column_block['label'];
                                        $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                                        if (tally_config('type') != 'none') {
                                            $wp_customize->add_control(new tally_Customize_Control_Checkbox($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'type' => 'checkbox', 'css_class' => 'biz')));
                                        }
                                        $block_id_prefix = $block_section . '_';
                                        include tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/customizer.php');
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        /*
        			Building Seting sectionS
        		--------------------------------------------------------------------------*/
        if ($tally_home['colors'] == true) {
            $s_section = $tally_home['id'] . '_colors';
            $wp_customize->add_section($s_section, array('title' => __('Colors', 'doctors'), 'panel' => $tally_home['id']));
            /*-~- Info -~-*/
            if (tally_config('type') == 'none') {
                $s_id = $s_section . '_info4';
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $s_id, array('label' => '', 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over the Colors of this section.')));
            }
            if (tally_config('type') != 'none') {
                $s_id = $s_section . '_headingColor';
                $s_label = __('Heading Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_headingAltColor';
                $s_label = __('Heading Alt Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_textColor';
                $s_label = __('Text Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_textMetaColor';
                $s_label = __('Text Meta Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_textAltColor';
                $s_label = __('Text Alt Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_borderColor';
                $s_label = __('Border Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
                $s_id = $s_section . '_borderAltColor';
                $s_label = __('Border Alt Color', 'doctors');
                $wp_customize->add_setting($s_id, array('default' => tally_option_default($s_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
                $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $s_id, array('label' => $s_label, 'section' => $s_section, 'settings' => $s_id, 'priority' => 10, 'css_class' => 'biz')));
            }
        }
    }
}
function tally_customizer_headerFooter_register($wp_customize)
{
    $wp_customize->add_panel('tally_headerFooter', array('title' => 'Header & Footer', 'description' => 'Manage Header and footer of the theme.'));
    $wp_customize->add_section('tally_site_header', array('title' => __('Site Header', 'doctors'), 'description' => __('Customize the Site Header of the theme.', 'doctors'), 'panel' => 'tally_headerFooter'));
    $wp_customize->add_section('tally_site_subheader', array('title' => __('Site Sub-Header', 'doctors'), 'description' => __('Customize the Site Sub-Header of the theme.', 'doctors'), 'panel' => 'tally_headerFooter'));
    $wp_customize->add_section('tally_site_fwidget', array('title' => __('Site Footer Widget', 'doctors'), 'description' => __('Customize the Site Footer Widget of the theme.', 'doctors'), 'panel' => 'tally_headerFooter'));
    $wp_customize->add_section('tally_site_footer', array('title' => __('Site Footer', 'doctors'), 'description' => __('Customize the Site Footer of the theme.', 'doctors'), 'panel' => 'tally_headerFooter'));
    $wp_customize->add_section('tally_social_icons', array('title' => __('Social Icons', 'doctors'), 'description' => __('Customize the Site Footer of the theme.', 'doctors'), 'panel' => 'tally_headerFooter'));
    /*	Site Sub-Header
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_subheader_';
    $section = 'tally_site_subheader';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over SubHeader')));
    }
    /*-~- Show Subtitle -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'showSubtitle';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Checkbox($wp_customize, $uid, array('label' => __('Show Subtitle', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Checked this box to show Subtitle.', 'doctors'), 'type' => 'checkbox', 'css_class' => 'biz')));
    }
    /*-~- Show Breadcrumb -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'showBreadcrumb';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Checkbox($wp_customize, $uid, array('label' => __('Show Breadcrumb', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Checked this box to show Breadcrumb.', 'doctors'), 'type' => 'checkbox', 'css_class' => 'biz')));
    }
    /*	Site Footer Widgets
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_footer_';
    $section = 'tally_site_footer';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Footer')));
    }
    /*-~- Show Footer Widgets -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'showWidget';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Show Footer Widgets', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Select yes if you want to show footer widgets', 'doctors'), 'type' => 'select', 'css_class' => 'biz', 'choices' => array('yes' => __('Yes', 'doctors'), 'no' => __('No', 'doctors')))));
    }
    /*-~- Widget Layout -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'widgetLayout';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Widget Layout', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Select a widget column layout', 'doctors'), 'type' => 'select', 'css_class' => 'biz', 'choices' => array('3/3/3/3' => __('4 Columns (3/3/3/3)', 'doctors'), '4/4/4' => __('3 Columns (4/4/4)', 'doctors'), '6/6' => __('2 Columns (6/6)', 'doctors'), '12' => __('1 Columns (12)', 'doctors'), '6/3/3' => __('3 Columns (6/3/3)', 'doctors'), '3/3/6' => __('3 Columns (3/3/6)', 'doctors'), '3/6/3' => __('3 Columns (3/6/3)', 'doctors')))));
    }
    /*-~- Copyright Text -~-*/
    $uid = $prefix . 'copyright';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Copyright Text', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Theme Footer Copyright Text', 'doctors'), 'type' => 'textarea', 'css_class' => '')));
    /*-~- Credit Text -~-*/
    if (tally_config('type') == 'full') {
        $uid = $prefix . 'credit';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Textarea($wp_customize, $uid, array('label' => __('Credit Text', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Theme Footer Credit Text', 'doctors'), 'type' => 'textarea', 'css_class' => 'hbiz')));
    }
}
function tally_option($option, $escaped = 'wp_kses_post')
{
    if ($escaped == 'html') {
        return esc_html(get_theme_mod($option, tally_option_default($option)));
    } elseif ($escaped == 'url') {
        return esc_url(get_theme_mod($option, tally_option_default($option)));
    } elseif ($escaped == 'js') {
        return esc_js(get_theme_mod($option, tally_option_default($option)));
    } elseif ($escaped == 'attr') {
        return esc_attr(get_theme_mod($option, tally_option_default($option)));
    } elseif ($escaped == 'wp_kses_post') {
        return wp_kses_post(get_theme_mod($option, tally_option_default($option)));
    } else {
        return get_theme_mod($option, tally_option_default($option));
    }
}
Exemple #7
0
function tally_customizer_color_register($wp_customize)
{
    $wp_customize->add_panel('tally_color', array('title' => 'Color & Background', 'description' => 'Manage color and background of the theme.'));
    $wp_customize->add_section('tally_accent_color', array('title' => __('Accent Color', 'doctors'), 'description' => __('Customize the Accent color of the theme.', 'doctors'), 'panel' => 'tally_color'));
    $wp_customize->add_section('tally_menu_color', array('title' => __('Menu Color', 'doctors'), 'description' => __('Customize the Menu color of the theme.', 'doctors'), 'panel' => 'tally_color'));
    $wp_customize->add_section('tally_subheader_color', array('title' => __('Sub-Header Color', 'doctors'), 'description' => __('Customize the sub-header color of the theme.', 'doctors'), 'panel' => 'tally_color'));
    $wp_customize->add_section('tally_main_color', array('title' => __('Main Color', 'doctors'), 'description' => __('Customize the Main color of the theme.', 'doctors'), 'panel' => 'tally_color'));
    $wp_customize->add_section('tally_fwidget_color', array('title' => __('Footer Widget area Color', 'doctors'), 'description' => __('Customize the Footer Widget area color of the theme.', 'doctors'), 'panel' => 'tally_color'));
    $wp_customize->add_section('tally_footer_color', array('title' => __('Footer Color', 'doctors'), 'description' => __('Customize the Footer color of the theme.', 'doctors'), 'panel' => 'tally_color'));
    /*	Accent Color
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_color_accent_';
    $section = 'tally_accent_color';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Accent Color')));
    }
    /*-~- Primary Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'primary';
        $wp_customize->add_setting($prefix . 'primary', array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Primary Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Success Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'success';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Success Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Info Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'info';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Info Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Warning Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'warning';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Warning Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Danger Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'danger';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Danger Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*	Menu Color
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_color_menu_';
    $section = 'tally_menu_color';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Menu Color')));
    }
    /*-~- Text Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'text';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'textHover';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'border';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'borderHover';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bg';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgHover';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- SubNav Text Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'textSub';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('SubNav Text Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- SubNav Text Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'textHoverSub';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('SubNav Text Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- SubNav Border Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'borderSub';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('SubNav Border Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- SubNav Border Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'borderHoverSub';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('SubNav Border Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- SubNav Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgSub';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('SubNav Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- SubNav Background Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgHoverSub';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('SubNav Background Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Nav Area Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'navBG';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Nav Area Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*	Sub-Header Color
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_color_subheader_';
    $section = 'tally_subheader_color';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over SubHeader Color')));
    }
    /*-~- Heading Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'heading';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Heading Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Sub-Heading Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'subheading';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Sub-Heading Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'text';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bg';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Image -~-*/
    $uid = $prefix . 'bgImage';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Background Image', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
    /*-~- Background Image Repeat -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_repeat';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Repeat', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('no-repeat' => __('No Repeat', 'doctors'), 'repeat' => __('Tile', 'doctors'), 'repeat-x' => __('Tile Horizontally', 'doctors'), 'repeat-y' => __('Tile Vertically', 'doctors')))));
    }
    /*-~- Background Image Position -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_position';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Position', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('top left' => __('Top Left', 'doctors'), 'top right' => __('Top Right', 'doctors'), 'top center' => __('Top Center', 'doctors'), 'center center' => __('Center Center', 'doctors'), 'bottom left' => __('Top Left', 'doctors'), 'bottom right' => __('Top Right', 'doctors'), 'bottom center' => __('Top Center', 'doctors')))));
    }
    /*-~- Background Image Attachment -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_attachment';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Attachment', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('scroll' => __('Scroll', 'doctors'), 'fixed' => __('Fixed', 'doctors')))));
    }
    /*-~- Background Image Size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_size';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $uid, array('label' => __('Background Image Size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
    }
    /*	Main Color
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_color_main_';
    $section = 'tally_main_color';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Main Content Color')));
    }
    /*-~- Heading Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'heading';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Heading Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Heading Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'headingAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Heading Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'text';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Meta Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'textMeta';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Meta Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'textAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'border';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'borderAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bg';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Image -~-*/
    $uid = $prefix . 'bgImage';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Background Image', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
    /*-~- Background Image Repeat -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_repeat';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Repeat', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('no-repeat' => __('No Repeat', 'doctors'), 'repeat' => __('Tile', 'doctors'), 'repeat-x' => __('Tile Horizontally', 'doctors'), 'repeat-y' => __('Tile Vertically', 'doctors')))));
    }
    /*-~- Background Image Position -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_position';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Position', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('top left' => __('Top Left', 'doctors'), 'top right' => __('Top Right', 'doctors'), 'top center' => __('Top Center', 'doctors'), 'center center' => __('Center Center', 'doctors'), 'bottom left' => __('Top Left', 'doctors'), 'bottom right' => __('Top Right', 'doctors'), 'bottom center' => __('Top Center', 'doctors')))));
    }
    /*-~- Background Image Attachment -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_attachment';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Attachment', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('scroll' => __('Scroll', 'doctors'), 'fixed' => __('Fixed', 'doctors')))));
    }
    /*-~- Background Image Size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_size';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $uid, array('label' => __('Background Image Size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
    }
    /*	Footer Widgets Color
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_color_fwidget_';
    $section = 'tally_fwidget_color';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Footer Widget Area Color')));
    }
    /*-~- Heading Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'heading';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Heading Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'text';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Text Meta Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'textMeta';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Meta Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'border';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'borderAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bg';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Link Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'link';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Link Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Link Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'linkHover';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Link Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Image -~-*/
    $uid = $prefix . 'bgImage';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Background Image', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    /*-~- Background Image Repeat -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_repeat';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Repeat', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('no-repeat' => __('No Repeat', 'doctors'), 'repeat' => __('Tile', 'doctors'), 'repeat-x' => __('Tile Horizontally', 'doctors'), 'repeat-y' => __('Tile Vertically', 'doctors')))));
    }
    /*-~- Background Image Position -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_position';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Position', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('top left' => __('Top Left', 'doctors'), 'top right' => __('Top Right', 'doctors'), 'top center' => __('Top Center', 'doctors'), 'center center' => __('Center Center', 'doctors'), 'bottom left' => __('Top Left', 'doctors'), 'bottom right' => __('Top Right', 'doctors'), 'bottom center' => __('Top Center', 'doctors')))));
    }
    /*-~- Background Image Attachment -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_attachment';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Attachment', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('scroll' => __('Scroll', 'doctors'), 'fixed' => __('Fixed', 'doctors')))));
    }
    /*-~- Background Image Size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_size';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $uid, array('label' => __('Background Image Size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
    }
    /*	Footer Color
    	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $prefix = 'tally_color_footer_';
    $section = 'tally_footer_color';
    /*-~- Info -~-*/
    if (tally_config('type') == 'none') {
        $uid = $prefix . 'info1';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_TextBlock($wp_customize, $uid, array('label' => '', 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => 'Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> <br>for full control over Footer area Color')));
    }
    /*-~- Text Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'text';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Text Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'border';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Border Alt Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'borderAlt';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Border Alt Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bg';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Background Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Link Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'link';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Link Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Link Hover Color -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'linkHover';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Color($wp_customize, $uid, array('label' => __('Link Hover Color', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'css_class' => 'biz')));
    }
    /*-~- Background Image -~-*/
    $uid = $prefix . 'bgImage';
    $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
    $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $uid, array('label' => __('Background Image', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10)));
    /*-~- Background Image Repeat -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_repeat';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Repeat', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('no-repeat' => __('No Repeat', 'doctors'), 'repeat' => __('Tile', 'doctors'), 'repeat-x' => __('Tile Horizontally', 'doctors'), 'repeat-y' => __('Tile Vertically', 'doctors')))));
    }
    /*-~- Background Image Position -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_position';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Position', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('top left' => __('Top Left', 'doctors'), 'top right' => __('Top Right', 'doctors'), 'top center' => __('Top Center', 'doctors'), 'center center' => __('Center Center', 'doctors'), 'bottom left' => __('Top Left', 'doctors'), 'bottom right' => __('Top Right', 'doctors'), 'bottom center' => __('Top Center', 'doctors')))));
    }
    /*-~- Background Image Attachment -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_attachment';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Select($wp_customize, $uid, array('label' => __('Background Image Attachment', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'select', 'css_class' => 'biz', 'choices' => array('scroll' => __('Scroll', 'doctors'), 'fixed' => __('Fixed', 'doctors')))));
    }
    /*-~- Background Image Size -~-*/
    if (tally_config('type') != 'none') {
        $uid = $prefix . 'bgImage_size';
        $wp_customize->add_setting($uid, array('default' => tally_option_default($uid), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field'));
        $wp_customize->add_control(new tally_Customize_Control_Text($wp_customize, $uid, array('label' => __('Background Image Size', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'type' => 'text', 'css_class' => 'biz')));
    }
}