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_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); }
.tally_loop_single .tls_meta{ background-color:<?php echo tally_option('tally_color_main_bgAlt'); ?> ; } .tally_loop_single .tls_meta a{ color:<?php echo tally_option('tally_color_main_textAlt'); ?> !important; } .tally_loop_single .tls_taxonomy{ background-color:<?php echo tally_option('tally_color_main_bgAlt'); ?> ; } .tally_loop_single .tls_taxonomy a:hover{ background-color:<?php echo tally_option('tally_color_accent_primary'); ?> ; } .tally_loop_single .tls_authorBio{ background-color:<?php echo tally_option('tally_color_main_bgAlt'); ?> ; }
<p class="tsh_subtitle"> <?php if (is_category()) { echo category_description(); } elseif (is_tag()) { echo tag_description(); } elseif (is_single() && is_page()) { echo get_post_meta(get_the_ID(), 'tally_subtitle', true); } ?> </p> <?php } ?> </div> <?php if (tally_option('tally_subheader_showBreadcrumb') == true) { ?> <div class="tsh_breadcrumbs"> <div class="tsh_breadcrumbs_inner"> <?php tally_breadcrumb(); ?> </div> </div> <?php } ?> </div> </div>
.tally_loop_author .tla_info{ background-color: <?php echo tally_option('tally_color_main_bgAlt'); ?> ; } #site-main .tally_loop_author .tla_posts_heading{ border-color: <?php echo tally_option('tally_color_main_heading'); ?> !important; } .tally_loop_author .tla_post_item .tla_post_more{ background-color:<?php echo tally_option('tally_color_accent_primary'); ?> ; } .tally_loop_author .tla_post_item .tla_post_more:hover{ background-color:<?php echo tally_option('tally_color_accent_info'); ?> ; } .tally_loop_author .tla_post_item .tla_post_meta, .tally_loop_author .tla_post_item .tla_post_meta a{ color:<?php echo tally_option('tally_color_main_textMeta'); ?> !important; }
?> </a> <?php } ?> </div> </div> </div> <?php } ?> <img src="<?php echo tally_image(tally_option($block_id . '5_image'), 1400, 520, true); ?> " alt="<?php echo tally_option($block_id . '5_title'); ?> " /> </li> <?php } ?> </ul> </div> <script type="text/javascript"> jQuery(window).load(function(){ jQuery('.thbs_flexslider').flexslider({ animation: "slide", namespace: "tfs-", }); });
function tally_home_content_builder_heading($section_id, $prefix) { if (tally_option($prefix . 'enable') == 1) { echo '<div class="tally_home_section_heading thsh_align_' . tally_option($prefix . 'align') . ' thsh_type_' . tally_option($prefix . 'type') . '">'; echo '<div class="thsh_inner">'; echo '<h2>' . tally_option($prefix . 'title') . '</h2>'; echo '<p>' . tally_option($prefix . 'des') . '</p>'; echo '</div>'; echo '</div>'; } }
</a> </div> </div> </div> <?php } ?> </div> <?php if (tally_option($block_id . 'link') != '') { ?> <a class="thbbg_moreBlog" href="<?php echo tally_option($block_id . 'link'); ?> "><span><?php echo tally_option($block_id . 'more'); ?> </span></a> <?php } ?> <?php } else { ?> <?php _e('Sorry no post found.', 'doctors'); ?> <?php } ?> <?php
?> ; } .tally_header_1 .main_menu ul li ul li a{ border-color:<?php echo tally_option($option_prefix . 'borderSub', '#E9EDF1'); ?> ; color:<?php echo tally_option($option_prefix . 'textSub', '#676b6f'); ?> ; background-color:<?php echo tally_option($option_prefix . 'bgSub', '#676b6f'); ?> ; } .tally_header_1 .main_menu div ul li ul li a:hover{ border-color:<?php echo tally_option($option_prefix . 'borderHoverSub', '#E9EDF1'); ?> ; color:<?php echo tally_option($option_prefix . 'textHoverSub', '#676b6f'); ?> !important; background-color:<?php echo tally_option($option_prefix . 'bgHoverSub', '#676b6f'); ?> ; }
<?php if (tally_option('tally_footer_showWidget') == 'yes') { $tally_widgetLayout = tally_option('tally_footer_widgetLayout'); ?> <div class="tally-footerWidgets tally-footerWidgets-1"> <div id="fwidget-inner" class="site_content_width"> <div class="col-holder nomargin"> <?php if ($tally_widgetLayout == '3/3/3/3') { ?> <div class="col col_3"><?php dynamic_sidebar('footer_widget_1'); ?> </div> <div class="col col_3"><?php dynamic_sidebar('footer_widget_2'); ?> </div> <div class="col col_3"><?php dynamic_sidebar('footer_widget_3'); ?> </div> <div class="col col_3"><?php dynamic_sidebar('footer_widget_4'); ?> </div> <?php } elseif ($tally_widgetLayout == '4/4/4') { ?> <div class="col col_4"><?php
} .tally_footer *{ border-color: <?php echo tally_option('tally_color_footer_borderAlt'); ?> !important; } .tally_footer a{ color:<?php echo tally_option('tally_color_footer_link'); ?> ; } .tally_footer a:hover{ color:<?php echo tally_option('tally_color_footer_linkHover'); ?> ; } <?php tally_content_resource_loader('c-css', 'part_header', $current_post_id); tally_content_resource_loader('c-css', 'part_subHeader', $current_post_id); tally_content_resource_loader('c-css', 'part_sidebar', $current_post_id); tally_content_resource_loader('c-css', 'part_footerWidgets', $current_post_id); tally_content_resource_loader('c-css', 'part_footer', $current_post_id); tally_content_resource_loader('c-css', 'loop_404', $current_post_id); tally_content_resource_loader('c-css', 'loop_attachment', $current_post_id); tally_content_resource_loader('c-css', 'loop_author', $current_post_id); tally_content_resource_loader('c-css', 'loop_category', $current_post_id); tally_content_resource_loader('c-css', 'loop_comments', $current_post_id); tally_content_resource_loader('c-css', 'loop_frontPage', $current_post_id);
$tally_googleFont_text = 'Arial, Helvetica, sans-serif'; if (tally_option('tally_font_source_list') == 'google') { if (tally_option('tally_font_googleFont_heading') != '') { $pre_tally_googleFont_heading = str_replace("+", " ", strstr(tally_option('tally_font_googleFont_heading'), ':', true)); if ($pre_tally_googleFont_heading == '') { $tally_googleFont_heading = "'" . str_replace("+", " ", tally_option('tally_font_googleFont_heading')) . "'"; } else { $tally_googleFont_heading = "'" . str_replace("+", " ", strstr(tally_option('tally_font_googleFont_heading'), ':', true)) . "'"; } } if (tally_option('tally_font_googleFont_text') != '') { $pre_tally_googleFont_text = str_replace("+", " ", strstr(tally_option('tally_font_googleFont_text'), ':', true)); if ($pre_tally_googleFont_text == '') { $tally_googleFont_text = "'" . str_replace("+", " ", tally_option('tally_font_googleFont_text')) . "'"; } else { $tally_googleFont_text = "'" . str_replace("+", " ", strstr(tally_option('tally_font_googleFont_text'), ':', true)) . "'"; } } } ?> body{ font-size:14px; line-height:1.5; font-family:<?php echo $tally_googleFont_text; ?> ; color:#666; margin:0; padding:0; } h1, h2, h3, h4, h5, h6{ letter-spacing: 0.02em; line-height: 1.4; font-weight:normal; font-family:<?php echo $tally_googleFont_heading; ?> ; } h1 { font-size: 48px; line-height: 54px; margin-bottom:20px; font-weight: normal; }
?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <?php if (is_singular() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } ?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php if (!function_exists('has_site_icon')) { ?> <link rel='shortcut icon' type='image/x-icon' href='<?php echo tally_option('tally_header_favicon', 'url'); ?> ' /> <?php } wp_head(); ?> </head> <body <?php body_class(); ?> >
function tally_home_style_option($section_id, $name) { $section_option = $section_id . $name . 'Color'; $main_option = 'tally_color_main_' . $name; if (tally_option($section_option) != '') { return tally_option($section_option); } else { return tally_option($main_option); } }
.thbt_<?php echo $tally_home_column_block['id']; ?> .thbt_more{ background-color:<?php echo tally_option('tally_color_accent_primary'); ?> ; } .thbt_<?php echo $tally_home_column_block['id']; ?> .thbt_more:hover{ background-color:<?php echo tally_option('tally_color_accent_info'); ?> ; } .thbt_<?php echo $tally_home_column_block['id']; ?> .thbt_subtitle{ color:<?php echo tally_option('tally_color_accent_info'); ?> ; }
?> ); background-repeat:<?php echo tally_option('tally_color_subheader_bgImage_repeat'); ?> ; background-position:<?php echo tally_option('tally_color_subheader_bgImage_position'); ?> ; background-attachmen:<?php echo tally_option('tally_color_subheader_bgImage_attachment'); ?> ; background-size:<?php echo tally_option('tally_color_subheader_bgImage_size'); ?> ; } .tally_subHeader_1 .tsh_title{color: <?php echo tally_option('tally_color_subheader_heading'); ?> ; } .tally_subHeader_1 .tsh_subtitle{color: <?php echo tally_option('tally_color_subheader_subheading'); ?> ; } .tally_subHeader_1 .tsh_breadcrumbs a{ color: <?php echo tally_option('tally_color_subheader_text'); ?> ; }
<div class="tally_footer"> <div class="tally_footer_inner site_content_width"> <div class="col-holder nomargin"> <div class="col col_6"> <div class="copy_text"> <?php echo tally_option('tally_footer_copyright'); if (tally_option('tally_footer_credit') != '') { echo " | "; echo tally_option('tally_footer_credit'); } ?> </div> </div> <div class="col col_6"> <div class="footer_menu"> <?php wp_nav_menu(array('theme_location' => 'footer_menu')); ?> </div> </div> </div> </div> </div>
?> <?php echo tally_option($block_id . 'name'); ?> <?php } ?> </p> <?php } ?> <?php if (tally_option($block_id . 'title') != '') { ?> <span><?php echo tally_option($block_id . 'title'); ?> </span> <?php } ?> <i class="fa fa-quote-right"></i> </div> <div class="thbt_content"> <?php echo tally_option($block_id . 'des'); ?> </div> <div class="clear"></div> </div> </div>
} ?> </div> <?php } ?> <?php if (tally_option('tally_header_phone') != '') { ?> <div class="th_phone th_element"> <a href="tel:<?php echo tally_option('tally_header_phone'); ?> "> <i class="fa fa-phone"></i><span><?php echo tally_option('tally_header_phone'); ?> </span> </a> </div> <?php } ?> </div> <div class="clear"></div> </div> <nav class="main_menu" role="navigation"> <div class="site_content_width"> <?php wp_nav_menu(array('theme_location' => 'main_menu')); ?>
function tally_home_css_builder_color_css($section_id) { $prefix = $section_id . '_colors_'; ?> #site-main .THS_<?php echo $section_id; ?> { color:<?php echo tally_option($prefix . 'textColor'); ?> ; } #site-main .THS_<?php echo $section_id; ?> .ths_textMeta{ color:<?php echo tally_option($prefix . 'textMetaColor'); ?> ; } #site-main .THS_<?php echo $section_id; ?> .ths_textAlt{ color:<?php echo tally_option($prefix . 'textAltColor'); ?> ; } #site-main .THS_<?php echo $section_id; ?> h1, #site-main .THS_<?php echo $section_id; ?> h2, #site-main .THS_<?php echo $section_id; ?> h3, #site-main .THS_<?php echo $section_id; ?> h4, #site-main .THS_<?php echo $section_id; ?> h5, #site-main .THS_<?php echo $section_id; ?> h6{ color:<?php echo tally_option($prefix . 'headingColor'); ?> ; } #site-main .THS_<?php echo $section_id; ?> .ths_headingAl{ color:<?php echo tally_option($prefix . 'headingAltColor'); ?> ; } #site-main .THS_<?php echo $section_id; ?> *{ border-color:<?php echo tally_option($prefix . 'borderColor'); ?> !important; } #site-main .THS_<?php echo $section_id; ?> .ths_borderAlt{ border-color:<?php echo tally_option($prefix . 'borderAltColor'); ?> ; } <?php }
color:<?php echo tally_option($block_id . 'headingColor_hover'); ?> ; } #site-main .tally_homeBlock_infoBox.thBi_<?php echo $tally_home_column_block['id']; ?> .thbib_more{ color: <?php echo tally_option($block_id . 'textColor'); ?> ; border-color:<?php echo tally_option($block_id . 'borderColor'); ?> ; } #site-main .tally_homeBlock_infoBox.thBi_<?php echo $tally_home_column_block['id']; ?> .thbib_more:hover{ color: <?php echo tally_option($block_id . 'textColor_hover'); ?> ; border-color:<?php echo tally_option($block_id . 'borderColor_hover'); ?> ; }