Beispiel #1
0
function tally_content_loop_page()
{
    $file = tally_file_directory('contents/loop_page/' . tally_config('loop_page') . '/html.php');
    if (file_exists($file)) {
        include $file;
    }
}
function tally_home_js_builder()
{
    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');
    }
    $check_js = array();
    foreach ($tally_home_data as $tally_home) {
        $settings = $tally_home['id'] . '_settings';
        if (tally_option($settings . '_enable') == 1) {
            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 (in_array($tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'], $check_js) == false) {
                                $block_id = $tally_home['id'] . '_' . $tally_home_column_block['id'] . '_';
                                $js_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/js.php');
                                if (tally_option($block_id . 'enable') == 1) {
                                    if (file_exists($js_file)) {
                                        include $js_file;
                                    }
                                }
                                $check_js[] = $tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'];
                            }
                        }
                    }
                }
            }
        }
    }
}
Beispiel #3
0
function tally_content_part_footerWidgets()
{
    $file = tally_file_directory('contents/part_footerWidgets/' . tally_config('part_footerWidgets') . '/html.php');
    if (file_exists($file)) {
        include $file;
    }
}
Beispiel #4
0
function tally_content_part_subHeader()
{
    $file = tally_file_directory('contents/part_subHeader/' . tally_config('part_subHeader') . '/html.php');
    if (file_exists($file)) {
        include $file;
    }
}
function tally_home_content_builder()
{
    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) {
        $settings = $tally_home['id'] . '_settings';
        if (tally_option($settings . '_enable') == 1) {
            $div_id = tally_option($settings . '_divID') == '' ? '' : 'id="' . tally_option($settings . '_divID') . '"';
            echo '<div class="tally_home_section THS_' . $tally_home['id'] . ' ' . tally_option($settings . '_class') . ' ' . $tally_home['class'] . '" ' . $div_id . '>';
            if ($tally_home['inner_div'] == true) {
                echo '<div class="tally_home_section_inner">';
            }
            tally_home_content_builder_heading($tally_home['id'], $tally_home['id'] . '_heading_');
            if (is_array($tally_home['columns'])) {
                if ($tally_home['enable_column'] == true) {
                    echo '<div class="col-holder nomargin">';
                }
                foreach ($tally_home['columns'] as $tally_home_column) {
                    if (tally_home_content_builder_blockCunter($tally_home['id'], $tally_home_column['blocks']) > 0) {
                        $div_column = $tally_home_column['column'];
                        if (tally_home_content_builder_columnCunter($tally_home['id'], $tally_home['columns']) != $tally_home['total_column']) {
                            $div_column = 12 / tally_home_content_builder_columnCunter($tally_home['id'], $tally_home['columns']);
                        }
                        if ($tally_home['enable_column'] == true) {
                            echo '<div class="col col_' . $div_column . '">';
                        }
                        if (is_array($tally_home_column['blocks'])) {
                            foreach ($tally_home_column['blocks'] as $tally_home_column_block) {
                                $block_id = $tally_home['id'] . '_' . $tally_home_column_block['id'] . '_';
                                $html_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/html.php');
                                if (tally_option($block_id . 'enable') == 1) {
                                    if (file_exists($html_file)) {
                                        include $html_file;
                                    }
                                }
                            }
                        }
                        if ($tally_home['enable_column'] == true) {
                            echo '</div>';
                        }
                    }
                }
                if ($tally_home['enable_column'] == true) {
                    echo '</div>';
                }
            }
            if ($tally_home['inner_div'] == true) {
                echo '</div>';
            }
            echo '</div>';
        }
    }
}
function tally_content_customizer_loader($wp_customize)
{
    $contents = array('part_header', 'part_subHeader', 'part_sidebar', 'part_footerWidgets', 'part_footer', 'loop_404', 'loop_attachment', 'loop_author', 'loop_category', 'loop_comments', 'loop_frontPage', 'loop_home', 'loop_page', 'loop_post', 'loop_search', 'loop_single', 'loop_tag', 'loop_templateAbout', 'loop_templateContact', 'loop_templateSitemap');
    foreach ($contents as $content) {
        $file = tally_file_directory('contents/' . $content . '/' . tally_config($content) . '/customizer.php');
        if (file_exists($file)) {
            include $file;
        }
    }
}
Beispiel #7
0
function tally_dynamic_scripting()
{
    $current_post_id = '';
    if (isset($_GET['post_id']) && !empty($_GET['post_id'])) {
        $current_post_id = $_GET['post_id'];
    }
    if ($_GET['type'] == 'css') {
        require tally_file_directory('includes/dynamic.css.php');
    }
    if ($_GET['type'] == 'custom_css') {
        require tally_file_directory('includes/dynamic-custom.css.php');
    }
    if ($_GET['type'] == 'js') {
        require tally_file_directory('includes/dynamic.js.php');
    }
    exit;
}
function tally_home_css_builder($type = 'css')
{
    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');
    }
    if ($type == 'css') {
        tally_home_css_builder_heading_css();
    }
    $check_css = array();
    foreach ($tally_home_data as $tally_home) {
        $settings = $tally_home['id'] . '_settings';
        if (tally_option($settings . '_enable') == 1) {
            if ($type == 'c-css') {
                tally_home_css_builder_settings_css($tally_home['id']);
                tally_home_css_builder_color_css($tally_home['id']);
            }
            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) {
                            $block_id = $tally_home['id'] . '_' . $tally_home_column_block['id'] . '_';
                            $css_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/css.php');
                            $c_css_file = tally_file_directory('home/blocks/' . $tally_home_column_block['name'] . '/' . $tally_home_column_block['skin'] . '/c-css.php');
                            if (tally_option($block_id . 'enable') == 1) {
                                if ($type == 'c-css' && file_exists($c_css_file)) {
                                    include $c_css_file;
                                } elseif ($type == 'css' && file_exists($css_file)) {
                                    if (in_array($tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'], $check_css) == false) {
                                        include $css_file;
                                        $check_css[] = $tally_home_column_block['name'] . '__' . $tally_home_column_block['skin'];
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
Beispiel #9
0
<?php

header("Content-type: text/javascript; charset: UTF-8");
if (file_exists(tally_file_directory('assets/js/theme-base-js.php'))) {
    include tally_file_directory('assets/js/theme-base-js.php');
}
tally_home_js_builder();
tally_content_resource_loader('js', 'part_header', $current_post_id);
tally_content_resource_loader('js', 'part_subHeader', $current_post_id);
tally_content_resource_loader('js', 'part_sidebar', $current_post_id);
tally_content_resource_loader('js', 'part_footerWidgets', $current_post_id);
tally_content_resource_loader('js', 'part_footer', $current_post_id);
tally_content_resource_loader('js', 'loop_404', $current_post_id);
tally_content_resource_loader('js', 'loop_attachment', $current_post_id);
tally_content_resource_loader('js', 'loop_author', $current_post_id);
tally_content_resource_loader('js', 'loop_category', $current_post_id);
tally_content_resource_loader('js', 'loop_comments', $current_post_id);
tally_content_resource_loader('js', 'loop_frontPage', $current_post_id);
tally_content_resource_loader('js', 'loop_home', $current_post_id);
tally_content_resource_loader('js', 'loop_page', $current_post_id);
tally_content_resource_loader('js', 'loop_post', $current_post_id);
tally_content_resource_loader('js', 'loop_search', $current_post_id);
tally_content_resource_loader('js', 'loop_tag', $current_post_id);
tally_content_resource_loader('js', 'loop_single', $current_post_id);
tally_content_resource_loader('js', 'loop_templateAbout', $current_post_id);
tally_content_resource_loader('js', 'loop_templateContact', $current_post_id);
tally_content_resource_loader('js', 'loop_templateSitemap', $current_post_id);
if (file_exists(tally_file_directory('assets/js/theme-customize-js.php'))) {
    include tally_file_directory('assets/js/theme-customize-js.php');
}
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')));
            }
        }
    }
}
<?php

if (file_exists(tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_css.php'))) {
    include tally_file_directory('includes/trunk/' . tally_config('slug') . '/' . tally_config('slug') . '_css.php');
}
function tally_get_saved_data_all()
{
    $theme_mood = get_theme_mods();
    if (file_exists(tally_file_directory('includes/default_mods.php'))) {
        include tally_file_directory('includes/default_mods.php');
    } else {
        include tally_file_directory('includes/default_mods_s.php');
    }
    $data = array_merge($tally_mood, $theme_mood);
    echo '<textarea style="height:400px; width: 100%;">' . tally_create_array_from_option($data) . '</textarea>';
}