function tally_content_part_footerWidgets() { $file = tally_file_directory('contents/part_footerWidgets/' . tally_config('part_footerWidgets') . '/html.php'); if (file_exists($file)) { include $file; } }
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']; } } } } } } } }
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_customizer_button_set() { if (tally_config('type') == 'none') { wp_register_script('tally_customizer_buttons', TALLY_CUSTOMIZE_URL . '/customizer-controls.js', array("jquery"), '20120206', true); wp_enqueue_script('tally_customizer_buttons'); wp_localize_script('tally_customizer_buttons', 'objectL10n', array('doc' => __('Documentation', 'doctors'), 'pro' => __('View PRO version', 'doctors'), 'doc_url' => tally_config('doc_url'), 'pro_url' => tally_config('theme_url'))); } }
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'))); } }
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; } } }
public function render_content() { if (tally_config('type') == 'none' && $this->css_class == 'biz' || tally_config('type') == 'away' && $this->css_class == 'hbiz' || tally_config('type') == 'none' && $this->css_class == 'hbiz') { tally_customize_help_start($this->css_class); ?> <script> jQuery(document).ready(function($){ $('.my-color-field').wpColorPicker(); }); </script> <label class="<?php echo esc_attr($this->css_class); ?> "> <?php if (!empty($this->label)) { ?> <span class="customize-control-title"><?php echo esc_html($this->label); ?> </span> <?php } if (!empty($this->description)) { ?> <span class="description customize-control-description"><?php echo $this->description; ?> </span> <?php } ?> <input type="text" value="<?php echo esc_attr($this->value()); ?> " class="my-color-field" data-default-color="<?php echo esc_attr($this->value()); ?> " /> </label> <?php tally_customize_help_end($this->css_class); } }
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']; } } } } } } } } } }
function tally_script_loader() { wp_enqueue_style('font-awesome', TALLY_ASSETS_URL . '/css/font-awesome.min.css'); if (tally_config('dev_mood') == true) { $tally_css = admin_url('admin-ajax.php') . '?action=tally_dynamic_script&post_id=' . get_the_ID() . '&type=css'; $tally_js = admin_url('admin-ajax.php') . '?action=tally_dynamic_script&post_id=' . get_the_ID() . '&type=js'; } else { $tally_css = tally_file_directory_uri('assets/css/style.css'); $tally_js = tally_file_directory_uri('assets/js/theme.js'); } if (tally_option('tally_font_source_list') == 'google') { $http = is_ssl() ? 'https' : 'http'; if (tally_option('tally_font_googleFont_heading') != '') { $font_handle = strstr(tally_option('tally_font_googleFont_heading'), ':', true); if ($font_handle == '') { $font_handle = tally_option('tally_font_googleFont_heading'); } wp_enqueue_style('tally-' . strstr(tally_option('tally_font_googleFont_heading'), ':', true), $http . '://fonts.googleapis.com/css?family=' . tally_option('tally_font_googleFont_heading')); } if (tally_option('tally_font_googleFont_text') != '') { $font_handle = strstr(tally_option('tally_font_googleFont_text'), ':', true); if ($font_handle == '') { $font_handle = tally_option('tally_font_googleFont_text'); } wp_enqueue_style('tally-' . strstr(tally_option('tally_font_googleFont_text'), ':', true), $http . '://fonts.googleapis.com/css?family=' . tally_option('tally_font_googleFont_text')); } } wp_enqueue_script('flexslider', tally_file_directory_uri('assets/js/jquery.flexslider-min.js'), array('jquery'), '', true); wp_enqueue_style('swipebox', tally_file_directory_uri('assets/css/swipebox.min.css')); wp_enqueue_script('swipebox', tally_file_directory_uri('assets/js/jquery.swipebox.min.js'), array('jquery'), '', true); wp_enqueue_style('owl.carousel', tally_file_directory_uri('assets/css/owl.carousel.css')); wp_enqueue_script('owl.carousel', tally_file_directory_uri('assets/js/owl.carousel.min.js'), array('jquery'), '', true); /*-----------*/ wp_enqueue_style('tally-dynamic', $tally_css); wp_enqueue_style('tally-dynamic-custom', admin_url('admin-ajax.php') . '?action=tally_dynamic_script&post_id=' . get_the_ID() . '&type=custom_css'); wp_enqueue_script('tally-dynamic', $tally_js, array('jquery', 'jquery-masonry'), '', true); }
} if (tally_config('loop_frontPage') != '') { include TALLY_CONTENT_DRI . '/loop_frontPage/frontPage.php'; } if (tally_config('loop_home') != '') { include TALLY_CONTENT_DRI . '/loop_home/home.php'; } if (tally_config('loop_page') != '') { include TALLY_CONTENT_DRI . '/loop_page/page.php'; } if (tally_config('loop_post') != '') { include TALLY_CONTENT_DRI . '/loop_post/post.php'; } if (tally_config('loop_search') != '') { include TALLY_CONTENT_DRI . '/loop_search/search.php'; } if (tally_config('loop_single') != '') { include TALLY_CONTENT_DRI . '/loop_single/single.php'; } if (tally_config('loop_tag') != '') { include TALLY_CONTENT_DRI . '/loop_tag/tag.php'; } if (tally_config('loop_templateAbout') != '') { include TALLY_CONTENT_DRI . '/loop_templateAbout/templateAbout.php'; } if (tally_config('loop_templateContact') != '') { include TALLY_CONTENT_DRI . '/loop_templateContact/templateContact.php'; } if (tally_config('loop_templateSitemap') != '') { include TALLY_CONTENT_DRI . '/loop_templateSitemap/templateSitemap.php'; }
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')))); } }
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_customize_help_disabled($class) { if (tally_config('type') == 'none' && $class == 'biz' || tally_config('type') == 'away' && $class == 'hbiz' || tally_config('type') == 'none' && $class == 'hbiz') { echo ' disabled="disabled" '; } }
<?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'); }
<?php if (tally_config('type') != 'none') { $uid = $prefix . 'enable'; $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' => __('Enable Social Icons', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => __('Select Yes, if you want to display the Social Icons in the header.', 'doctors'), 'type' => 'select', 'css_class' => 'biz', 'choices' => array('yes' => __('Yes', 'doctors'), 'no' => __('No', 'doctors'))))); } $uid = $prefix . 'facebook'; $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' => __('Facebook', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text'))); $uid = $prefix . 'twitter'; $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' => __('Twitter', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text'))); $uid = $prefix . 'youtube'; $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' => __('Youtube', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text'))); $uid = $prefix . 'instagram'; $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' => __('Instagram', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text'))); $uid = $prefix . 'linkedin'; $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' => __('Linkedin', 'doctors'), 'section' => $section, 'settings' => $uid, 'priority' => 10, 'description' => '', 'type' => 'text')));
<div class="tally_loop_category"> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <?php include TALLY_CONTENT_DRI . '/loop_post/' . tally_config('loop_post') . '/html.php'; ?> <?php } ?> <?php echo tally_paginate2(); ?> <?php } else { ?> <p><?php _e('Sorry, no posts matched your criteria.', 'doctors'); ?> </p> <?php } ?> </div>
function tally_content_resource_loader($file_name, $name, $current_post_id) { $file = tally_file_directory('contents/' . $name . '/' . tally_config($name) . '/' . $file_name . '.php'); if (file_exists($file)) { include $file; } }
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'))); } }
$wp_customize->add_control(new tally_Customize_Control_heading($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'description' => ''))); $block_id = $block_id_prefix . '5_enable'; $block_label = __('#5: Enable ', 'doctors'); $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new WP_Customize_Control($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'type' => 'checkbox'))); $block_id = $block_id_prefix . '5_image'; $block_label = __('#5: Image', 'doctors'); $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10))); $block_id = $block_id_prefix . '5_title'; $block_label = __('#5: Title', 'doctors'); $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new WP_Customize_Control($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'type' => 'text'))); $block_id = $block_id_prefix . '5_des'; $block_label = __('#5: Description', 'doctors'); $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new WP_Customize_Control($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'type' => 'textarea'))); $block_id = $block_id_prefix . '5_link'; $block_label = __('#5: Link', 'doctors'); $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new WP_Customize_Control($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'type' => 'text'))); $block_id = $block_id_prefix . '5_more'; $block_label = __('#5: ReadMore Text: ', 'doctors'); $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new WP_Customize_Control($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'type' => 'text'))); } else { $block_id = $block_id_prefix . 'info2'; $block_label = ''; $wp_customize->add_setting($block_id, array('default' => tally_option_default($block_id), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control(new tally_Customize_Control_heading($wp_customize, $block_id, array('label' => $block_label, 'section' => $block_section, 'settings' => $block_id, 'priority' => 10, 'description' => '<strong>Check out the <a href="' . tally_config('theme_url') . '" target="_blank" style="color:red;">PRO version</a> For more than 2 slide. In PRO version you will get 5 slide.</strong>'))); }
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'))); } }