Changeset 150054
- Timestamp:
- 06/22/2021 06:28:15 PM (4 years ago)
- Location:
- total/2.0.0
- Files:
-
- 154 added
- 19 deleted
- 22 edited
- 1 copied
- . (copied) (copied from total/1.2.59)
- 404.php (modified) (2 diffs)
- archive.php (modified) (1 diff)
- comments.php (modified) (1 diff)
- css/admin-style.css (added)
- footer.php (modified) (2 diffs)
- front-page.php (modified) (1 diff)
- functions.php (modified) (8 diffs)
- header.php (modified) (1 diff)
- images/bg.jpg (deleted)
- inc/css (deleted)
- inc/customizer (added)
- inc/customizer.php (deleted)
- inc/customizer/custom-controls (added)
- inc/customizer/custom-controls/alpha-color-control.php (added)
- inc/customizer/custom-controls/assets (added)
- inc/customizer/custom-controls/assets/css (added)
- inc/customizer/custom-controls/assets/css/chosen.css (added)
- inc/customizer/custom-controls/assets/css/colorpicker.css (added)
- inc/customizer/custom-controls/assets/css/customizer-controls.css (added)
- inc/customizer/custom-controls/assets/css/images (added)
- inc/customizer/custom-controls/assets/css/images/blank.gif (added)
- inc/customizer/custom-controls/assets/css/images/chosen-sprite.png (added)
- inc/customizer/custom-controls/assets/css/images/chosen-sprite@2x.png (added)
- inc/customizer/custom-controls/assets/css/images/close.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_background.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_hex.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_hsb_b.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_hsb_h.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_hsb_s.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_indic.gif (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_overlay.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_rgb_b.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_rgb_g.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_rgb_r.png (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_select.gif (added)
- inc/customizer/custom-controls/assets/css/images/colorpicker_submit.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_background.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_hex.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_hsb_b.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_hsb_h.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_hsb_s.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_indic.gif (added)
- inc/customizer/custom-controls/assets/css/images/custom_rgb_b.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_rgb_g.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_rgb_r.png (added)
- inc/customizer/custom-controls/assets/css/images/custom_submit.png (added)
- inc/customizer/custom-controls/assets/css/images/select.png (added)
- inc/customizer/custom-controls/assets/css/images/select2.png (added)
- inc/customizer/custom-controls/assets/css/images/select3.png (added)
- inc/customizer/custom-controls/assets/css/images/selected.png (added)
- inc/customizer/custom-controls/assets/css/images/slider.png (added)
- inc/customizer/custom-controls/assets/css/images/transparency-grid.png (added)
- inc/customizer/custom-controls/assets/css/jquery.classygradient.css (added)
- inc/customizer/custom-controls/assets/css/selectize.css (added)
- inc/customizer/custom-controls/assets/js (added)
- inc/customizer/custom-controls/assets/js/chosen.jquery.js (added)
- inc/customizer/custom-controls/assets/js/colorpicker.js (added)
- inc/customizer/custom-controls/assets/js/custom-gradient.js (added)
- inc/customizer/custom-controls/assets/js/customizer-controls.js (added)
- inc/customizer/custom-controls/assets/js/jquery.classygradient.js (added)
- inc/customizer/custom-controls/assets/js/selectize.js (added)
- inc/customizer/custom-controls/assets/js/toggle-section.js (added)
- inc/customizer/custom-controls/assets/js/wp-color-picker-alpha.js (added)
- inc/customizer/custom-controls/background-image-control.php (added)
- inc/customizer/custom-controls/chosen-select-control.php (added)
- inc/customizer/custom-controls/color-tab-control.php (added)
- inc/customizer/custom-controls/column-control (added)
- inc/customizer/custom-controls/column-control/assets (added)
- inc/customizer/custom-controls/column-control/assets/column-control.js (added)
- inc/customizer/custom-controls/column-control/assets/nouislider.css (added)
- inc/customizer/custom-controls/column-control/assets/nouislider.js (added)
- inc/customizer/custom-controls/column-control/assets/wNumb.js (added)
- inc/customizer/custom-controls/column-control/column-control.php (added)
- inc/customizer/custom-controls/date-control.php (added)
- inc/customizer/custom-controls/dimensions-control.php (added)
- inc/customizer/custom-controls/editor-control.php (added)
- inc/customizer/custom-controls/gallery-control.php (added)
- inc/customizer/custom-controls/graident-control.php (added)
- inc/customizer/custom-controls/group-control.php (added)
- inc/customizer/custom-controls/heading-control.php (added)
- inc/customizer/custom-controls/icon-selector-control.php (added)
- inc/customizer/custom-controls/image-selector-control.php (added)
- inc/customizer/custom-controls/multiple-checkbox-control.php (added)
- inc/customizer/custom-controls/multiple-select-control.php (added)
- inc/customizer/custom-controls/multiple-selectize-control.php (added)
- inc/customizer/custom-controls/preloader-control.php (added)
- inc/customizer/custom-controls/range-slider-control.php (added)
- inc/customizer/custom-controls/repeater-control.php (added)
- inc/customizer/custom-controls/responsive-range-slider-control.php (added)
- inc/customizer/custom-controls/selector-control.php (added)
- inc/customizer/custom-controls/separator-control.php (added)
- inc/customizer/custom-controls/sortable-control.php (added)
- inc/customizer/custom-controls/switch-control.php (added)
- inc/customizer/custom-controls/tab-control.php (added)
- inc/customizer/custom-controls/text-info-control.php (added)
- inc/customizer/custom-controls/text-selector-control.php (added)
- inc/customizer/custom-controls/toggle-control.php (added)
- inc/customizer/custom-controls/toggle-section.php (added)
- inc/customizer/custom-controls/typography (added)
- inc/customizer/custom-controls/typography/css (added)
- inc/customizer/custom-controls/typography/css/customize-controls.css (added)
- inc/customizer/custom-controls/typography/js (added)
- inc/customizer/custom-controls/typography/js/customize-controls.js (added)
- inc/customizer/custom-controls/typography/js/webfont.js (added)
- inc/customizer/custom-controls/typography/typography-control-class.php (added)
- inc/customizer/custom-controls/typography/typography.php (added)
- inc/customizer/custom-controls/upgrade-info.php (added)
- inc/customizer/custom-controls/upgrade-section.php (added)
- inc/customizer/customizer-control-sanitization.php (added)
- inc/customizer/customizer-custom-controls.php (added)
- inc/customizer/customizer-fonts-icons.php (added)
- inc/customizer/customizer-functions.php (added)
- inc/customizer/customizer-panel (added)
- inc/customizer/customizer-panel/assets (added)
- inc/customizer/customizer-panel/assets/customizer-preview.js (added)
- inc/customizer/customizer-panel/assets/customizer.css (added)
- inc/customizer/customizer-panel/assets/customizer.js (added)
- inc/customizer/customizer-panel/assets/images (added)
- inc/customizer/customizer-panel/assets/images/footer-columns (added)
- inc/customizer/customizer-panel/assets/images/footer-columns/col-1-1.jpg (added)
- inc/customizer/customizer-panel/assets/images/footer-columns/col-2-1-1.jpg (added)
- inc/customizer/customizer-panel/assets/images/footer-columns/col-3-1-1-1.jpg (added)
- inc/customizer/customizer-panel/assets/images/footer-columns/col-4-1-1-1-1.jpg (added)
- inc/customizer/customizer-panel/assets/images/sidebar-layouts (added)
- inc/customizer/customizer-panel/assets/images/sidebar-layouts/default-sidebar.jpg (added)
- inc/customizer/customizer-panel/assets/images/sidebar-layouts/left-sidebar.jpg (added)
- inc/customizer/customizer-panel/assets/images/sidebar-layouts/no-sidebar-narrow.jpg (added)
- inc/customizer/customizer-panel/assets/images/sidebar-layouts/no-sidebar.jpg (added)
- inc/customizer/customizer-panel/assets/images/sidebar-layouts/right-sidebar.jpg (added)
- inc/customizer/customizer-panel/color-settings.php (added)
- inc/customizer/customizer-panel/footer-settings.php (added)
- inc/customizer/customizer-panel/general-settings.php (added)
- inc/customizer/customizer-panel/header-settings.php (added)
- inc/customizer/customizer-panel/home-sections.php (added)
- inc/customizer/customizer-panel/homepage-settings.php (added)
- inc/customizer/customizer-panel/register-customizer-controls.php (added)
- inc/customizer/customizer-panel/typography-settings.php (added)
- inc/customizer/customizer.php (added)
- inc/font-awesome-list.php (deleted)
- inc/helper-functions.php (added)
- inc/hooks (added)
- inc/hooks.php (added)
- inc/hooks/archive.php (added)
- inc/hooks/footer.php (added)
- inc/hooks/front-page.php (added)
- inc/hooks/general.php (added)
- inc/hooks/header.php (added)
- inc/hooks/sidebar.php (added)
- inc/hooks/single.php (added)
- inc/hooks/woocommerce.php (added)
- inc/js (deleted)
- inc/metabox.php (added)
- inc/style.php (modified) (1 diff)
- inc/template-tags.php (modified) (1 diff)
- inc/total-functions.php (deleted)
- inc/total-metabox.php (deleted)
- inc/widgets/widget-fields.php (modified) (4 diffs)
- index.php (modified) (2 diffs)
- js/admin-scripts.js (added)
- js/customizer.js (deleted)
- js/headroom.js (added)
- js/total-custom.js (modified) (3 diffs)
- page.php (modified) (2 diffs)
- search.php (modified) (2 diffs)
- sections (added)
- sections/section-about.php (added)
- sections/section-blog.php (added)
- sections/section-client_logo.php (added)
- sections/section-counter.php (added)
- sections/section-cta.php (added)
- sections/section-featured.php (added)
- sections/section-portfolio.php (added)
- sections/section-service.php (added)
- sections/section-slider.php (added)
- sections/section-team.php (added)
- sections/section-testimonial.php (added)
- sidebar-shop.php (modified) (2 diffs)
- sidebar.php (modified) (2 diffs)
- single.php (modified) (2 diffs)
- style.css (modified) (37 diffs)
- template-parts/content-none.php (modified) (1 diff)
- template-parts/content-page.php (modified) (1 diff)
- template-parts/content-single.php (modified) (1 diff)
- template-parts/section-about.php (deleted)
- template-parts/section-blog.php (deleted)
- template-parts/section-client_logo.php (deleted)
- template-parts/section-counter.php (deleted)
- template-parts/section-cta.php (deleted)
- template-parts/section-featured.php (deleted)
- template-parts/section-portfolio.php (deleted)
- template-parts/section-service.php (deleted)
- template-parts/section-slider.php (deleted)
- template-parts/section-team.php (deleted)
- template-parts/section-testimonial.php (deleted)
- templates/home-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
total/2.0.0/404.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying 404 pages (not found). … … 6 7 */ 7 8 get_header(); 8 ?>9 9 10 <header class="ht-main-header"> 11 <div class="ht-container"> 12 <h1 class="ht-main-title"><?php esc_html_e('404 Error', 'total'); ?></h1> 13 <?php do_action('total_breadcrumbs'); ?> 14 </div> 15 </header><!-- .entry-header --> 10 do_action('total_404_template'); 16 11 17 18 <div class="ht-container">19 <div class="oops-text"><?php esc_html_e('Oops! That page can’t be found.', 'total'); ?></div>20 <span class="error-404"><?php esc_html_e('404', 'total'); ?></span>21 </div>22 23 <?php24 12 get_footer(); -
total/2.0.0/archive.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying archive pages. 4 *5 * Learn more: http://codex.wordpress.org/Template_Hierarchy6 5 * 7 6 * @package Total 8 7 */ 9 8 get_header(); 10 ?>11 9 12 <header class="ht-main-header"> 13 <div class="ht-container"> 14 <?php 15 the_archive_title('<h1 class="ht-main-title">', '</h1>'); 16 the_archive_description('<div class="taxonomy-description">', '</div>'); 17 ?> 18 <?php do_action('total_breadcrumbs'); ?> 19 </div> 20 </header><!-- .ht-main-header --> 10 do_action('total_archive_template'); 21 11 22 <div class="ht-container">23 <div id="primary" class="content-area">24 <main id="main" class="site-main" role="main">25 26 <?php if (have_posts()) : ?>27 28 <?php /* Start the Loop */ ?>29 <?php while (have_posts()) : the_post(); ?>30 31 <?php32 /*33 * Include the Post-Format-specific template for the content.34 * If you want to override this in a child theme, then include a file35 * called content-___.php (where ___ is the Post Format name) and that will be used instead.36 */37 get_template_part('template-parts/content', 'summary');38 ?>39 40 <?php endwhile; ?>41 42 <?php43 the_posts_pagination(array(44 'prev_text' => esc_html__('Prev', 'total'),45 'next_text' => esc_html__('Next', 'total'),46 ));47 ?>48 49 <?php else : ?>50 51 <?php get_template_part('template-parts/content', 'none'); ?>52 53 <?php endif; ?>54 55 </main><!-- #main -->56 </div><!-- #primary -->57 58 <?php get_sidebar(); ?>59 60 </div>61 62 <?php63 12 get_footer(); -
total/2.0.0/comments.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying comments. 4 5 * 5 * The area of the page that contains both current comments6 * and the comment form.7 6 * 8 7 * @package Total 9 8 */ 10 /* 11 * If the current post is protected by a password and 12 * the visitor has not yet entered the password we will 13 * return early without loading the comments. 14 */ 15 if (post_password_required()) { 16 return; 17 } 18 ?> 19 20 <div id="comments" class="comments-area"> 21 22 <?php // You can start editing here -- including this comment! ?> 23 24 <?php if (have_comments()) : ?> 25 <h3 class="comments-title"> 26 <?php 27 $total_comment_count = get_comments_number(); 28 if ('1' === $total_comment_count) { 29 printf( 30 /* translators: 1: title. */ 31 esc_html__('One thought on “%1$s”', 'total'), '<span>' . get_the_title() . '</span>' 32 ); 33 } else { 34 printf(// WPCS: XSS OK. 35 /* translators: 1: comment count number, 2: title. */ 36 esc_html(_nx('%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $total_comment_count, 'comments title', 'total')), number_format_i18n($total_comment_count), '<span>' . get_the_title() . '</span>' 37 ); 38 } 39 ?> 40 </h3> 41 42 <ul class="comment-list"> 43 <?php 44 wp_list_comments(array( 45 'callback' => 'total_comment' 46 )); 47 ?> 48 </ul><!-- .comment-list --> 49 50 <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // Are there comments to navigate through? ?> 51 <nav id="comment-nav-above" class="navigation pagination"> 52 <?php paginate_comments_links(); ?> 53 </nav><!-- #comment-nav-above --> 54 <?php endif; // Check for comment navigation. ?> 55 56 <?php endif; // Check for have_comments(). ?> 57 58 <?php 59 // If comments are closed and there are comments, let's leave a little note, shall we? 60 if (!comments_open() && '0' != get_comments_number() && post_type_supports(get_post_type(), 'comments')) : 61 ?> 62 <p class="no-comments"><?php esc_html_e('Comments are closed.', 'total'); ?></p> 63 <?php endif; ?> 64 65 <?php 66 $commenter = wp_get_current_commenter(); 67 $req = get_option('require_name_email'); 68 $aria_req = ( $req ? " aria-required='true'" : '' ); 69 70 $fields = array( 71 'author' => 72 '<div class="author-email-url ht-clearfix"><p class="comment-form-author"><input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . 73 '" size="30"' . $aria_req . ' placeholder="' . esc_attr__('Name', 'total') . ( $req ? '*' : '' ) . '" /></p>', 74 'email' => 75 '<p class="comment-form-email"><input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . 76 '" size="30"' . $aria_req . ' placeholder="' . esc_attr__('Email', 'total') . ( $req ? '*' : '' ) . '" /></p>', 77 'url' => 78 '<p class="comment-form-url"><input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . 79 '" size="30" placeholder="' . esc_attr__('Website', 'total') . '" /></p></div>', 80 ); 81 82 if (has_action('set_comment_cookies', 'wp_set_comment_cookies') && get_option('show_comments_cookies_opt_in')) { 83 $consent = empty($commenter['comment_author_email']) ? '' : ' checked="checked"'; 84 $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . '<label for="wp-comment-cookies-consent">' . esc_html__('Save my name, email, and website in this browser for the next time I comment.', 'total') . '</label></p>'; 85 } 86 87 88 $args = array( 89 'fields' => apply_filters('comment_form_default_fields', $fields), 90 'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="' . esc_attr__('Comment', 'total') . '">' . 91 '</textarea></p>', 92 ); 93 ?> 94 95 <?php comment_form($args); ?> 96 97 </div><!-- #comments --> 9 do_action('total_comments_template'); -
total/2.0.0/footer.php
r147862 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying the footer. … … 7 8 * @package Total 8 9 */ 9 ?> 10 do_action('total_footer_template'); 10 11 11 </div><!-- #content -->12 13 <footer id="ht-colophon" class="ht-site-footer">14 <?php if (is_active_sidebar('total-footer1') || is_active_sidebar('total-footer2') || is_active_sidebar('total-footer3') || is_active_sidebar('total-footer4')) { ?>15 <div id="ht-top-footer">16 <div class="ht-container">17 <div class="ht-top-footer ht-clearfix">18 <div class="ht-footer ht-footer1">19 <?php20 if (is_active_sidebar('total-footer1')):21 dynamic_sidebar('total-footer1');22 endif;23 ?>24 </div>25 26 <div class="ht-footer ht-footer2">27 <?php28 if (is_active_sidebar('total-footer2')):29 dynamic_sidebar('total-footer2');30 endif;31 ?>32 </div>33 34 <div class="ht-footer ht-footer3">35 <?php36 if (is_active_sidebar('total-footer3')):37 dynamic_sidebar('total-footer3');38 endif;39 ?>40 </div>41 42 <div class="ht-footer ht-footer4">43 <?php44 if (is_active_sidebar('total-footer4')):45 dynamic_sidebar('total-footer4');46 endif;47 ?>48 </div>49 </div>50 </div>51 </div>52 <?php } ?>53 54 <div id="ht-bottom-footer">55 <div class="ht-container">56 <div class="ht-site-info">57 <?php printf(esc_html__('WordPress Theme', 'total')); ?>58 <span class="sep"> | </span>59 <?php60 printf(61 // translators: 1-Theme URL, 2-Theme Author62 esc_html__('%1$s by %2$s', 'total'), '<a href="https://hashthemes.com/wordpress-theme/total/" target="_blank">Total</a>', 'HashThemes');63 ?>64 </div><!-- #site-info -->65 </div>66 </div>67 </footer><!-- #colophon -->68 </div><!-- #page -->69 70 <div id="ht-back-top" class="ht-hide"><i class="fas fa-angle-up"></i></div>71 <?php wp_footer(); ?>72 73 </body>74 </html> -
total/2.0.0/front-page.php
r140488 r150054 8 8 get_header(); 9 9 10 $total_enable_frontpage = get_theme_mod('total_enable_frontpage', false); 11 12 if ($total_enable_frontpage) { 13 $total_home_sections = total_home_section(); 14 15 get_template_part('template-parts/section', 'slider'); 16 17 foreach ($total_home_sections as $total_home_section) { 18 $total_home_section = str_replace('total_', '', $total_home_section); 19 $total_home_section = str_replace('_section', '', $total_home_section); 20 get_template_part('template-parts/section', $total_home_section); 21 } 22 } else { 23 if ('posts' == get_option('show_on_front')) { 24 include( get_home_template() ); 25 } else { 26 include( get_page_template() ); 27 } 28 } 10 do_action('total_front_page_template'); 29 11 30 12 get_footer(); -
total/2.0.0/functions.php
r147879 r150054 159 159 )); 160 160 161 register_sidebar(array( 162 'name' => esc_html__('Shop Sidebar', 'total'), 163 'id' => 'total-shop-sidebar', 164 'description' => esc_html__('Add widgets here to appear in your sidebar of shop page.', 'total'), 165 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 166 'after_widget' => '</aside>', 167 'before_title' => '<h4 class="widget-title">', 168 'after_title' => '</h4>', 169 )); 161 if (total_is_woocommerce_activated()) { 162 register_sidebar(array( 163 'name' => esc_html__('Shop Sidebar', 'total'), 164 'id' => 'total-shop-sidebar', 165 'description' => esc_html__('Add widgets here to appear in your sidebar of shop page.', 'total'), 166 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 167 'after_widget' => '</aside>', 168 'before_title' => '<h4 class="widget-title">', 169 'after_title' => '</h4>', 170 )); 171 } 170 172 171 173 register_sidebar(array( … … 223 225 function total_fonts_url() { 224 226 $fonts_url = ''; 225 $fonts = array();226 227 $subsets = 'latin,latin-ext'; 227 228 /* 229 * Translators: If there are characters in your language that are not supported 230 * by Open Sans, translate this to 'off'. Do not translate into your own language. 231 */ 232 if ('off' !== _x('on', 'Pontano Sans font: on or off', 'total')) { 233 $fonts[] = 'Pontano Sans'; 234 } 235 236 /* 237 * Translators: If there are characters in your language that are not supported 238 * by Inconsolata, translate this to 'off'. Do not translate into your own language. 239 */ 240 if ('off' !== _x('on', 'Oswald font: on or off', 'total')) { 241 $fonts[] = 'Oswald:400,700,300'; 242 } 243 228 $fonts = $standard_font_family = $default_font_list = $font_family_array = $variants_array = $font_array = $google_fonts = array(); 229 230 $customizer_fonts = apply_filters('total_customizer_fonts', array( 231 'total_body' => 'Poppins', 232 'total_menu' => 'Oswald', 233 'total_h' => 'Oswald' 234 )); 235 $standard_font = total_standard_font_array(); 236 $google_font_list = total_google_font_array(); 237 $default_font_list = total_default_font_array(); 238 239 foreach ($standard_font as $key => $value) { 240 $standard_font_family[] = $value['family']; 241 } 242 243 foreach ($default_font_list as $key => $value) { 244 $default_font_family[] = $value['family']; 245 } 246 247 foreach ($customizer_fonts as $key => $value) { 248 $font_family_array[] = get_theme_mod($key, $value); 249 } 250 251 $font_family_array = array_unique($font_family_array); 252 $font_family_array = array_diff($font_family_array, array_merge($standard_font_family, $default_font_family)); 253 254 foreach ($font_family_array as $font_family) { 255 $font_array = total_search_key($google_font_list, 'family', $font_family); 256 $variants_array = $font_array['0']['variants']; 257 $variants_keys = array_keys($variants_array); 258 $variants = implode(',', $variants_keys); 259 260 $fonts[] = $font_family . ':' . str_replace('italic', 'i', $variants); 261 } 244 262 /* 245 263 * Translators: To add an additional character subset specific to your language, 246 264 * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language. 247 265 */ 248 $subset = _x('no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', ' total');266 $subset = _x('no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'flash-news'); 249 267 250 268 if ('cyrillic' == $subset) { … … 262 280 'family' => urlencode(implode('|', $fonts)), 263 281 'subset' => urlencode($subsets), 264 'display' => 'swap' 282 'display' => 'swap', 265 283 ), '//fonts.googleapis.com/css'); 266 284 } 267 285 268 return esc_url_raw($fonts_url);286 return $fonts_url; 269 287 } 270 288 … … 283 301 wp_enqueue_script('odometer', get_template_directory_uri() . '/js/odometer.js', array('jquery'), TOTAL_VERSION, true); 284 302 wp_enqueue_script('waypoint', get_template_directory_uri() . '/js/waypoint.js', array('jquery'), TOTAL_VERSION, true); 303 wp_enqueue_script('headroom', get_template_directory_uri() . '/js/headroom.js', array('jquery'), TOTAL_VERSION, true); 285 304 wp_enqueue_script('total-custom', get_template_directory_uri() . '/js/total-custom.js', array('jquery'), TOTAL_VERSION, true); 286 305 wp_localize_script('total-custom', 'total_localize', array('template_path' => get_template_directory_uri())); 287 306 288 wp_enqueue_style('total-style', get_stylesheet_uri(), array('animate', 'owl-carousel', 'nivo-lightbox'), TOTAL_VERSION);289 wp_enqueue_style('total-fonts', total_fonts_url(), array(), NULL);290 307 wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.css', array(), TOTAL_VERSION); 291 308 wp_enqueue_style('font-awesome-4.7.0', get_template_directory_uri() . '/css/font-awesome-4.7.0.css', array(), TOTAL_VERSION); … … 293 310 wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', array(), TOTAL_VERSION); 294 311 wp_enqueue_style('nivo-lightbox', get_template_directory_uri() . '/css/nivo-lightbox.css', array(), TOTAL_VERSION); 312 wp_enqueue_style('total-fonts', total_fonts_url(), array(), NULL); 313 wp_enqueue_style('total-style', get_stylesheet_uri(), array(), TOTAL_VERSION); 295 314 wp_add_inline_style('total-style', total_dymanic_styles()); 296 315 … … 307 326 */ 308 327 function total_admin_scripts() { 309 wp_enqueue_style('total-admin-style', get_template_directory_uri() . '/ inc/css/admin-style.css', array(), TOTAL_VERSION);328 wp_enqueue_style('total-admin-style', get_template_directory_uri() . '/css/admin-style.css', array(), TOTAL_VERSION); 310 329 wp_enqueue_media(); 311 wp_enqueue_script('total-admin-scripts', get_template_directory_uri() . '/ inc/js/admin-scripts.js', array('jquery'), TOTAL_VERSION, true);330 wp_enqueue_script('total-admin-scripts', get_template_directory_uri() . '/js/admin-scripts.js', array('jquery'), TOTAL_VERSION, true); 312 331 } 313 332 … … 334 353 335 354 /** 336 * TGMPA337 */338 require get_template_directory() . '/inc/class-tgm-plugin-activation.php';339 340 /**341 355 * Custom functions that act independently of the theme templates. 342 356 */ 343 require get_template_directory() . '/inc/ total-functions.php';357 require get_template_directory() . '/inc/helper-functions.php'; 344 358 345 359 /** 346 360 * Customizer additions. 347 361 */ 348 require get_template_directory() . '/inc/customizer .php';362 require get_template_directory() . '/inc/customizer/customizer.php'; 349 363 350 364 /** 351 365 * Metabox additions. 352 366 */ 353 require get_template_directory() . '/inc/total-metabox.php'; 354 355 /** 356 * FontAwesome Array 357 */ 358 require get_template_directory() . '/inc/font-awesome-list.php'; 359 360 /** 361 * Welcome Page. 362 */ 363 require get_template_directory() . '/welcome/welcome.php'; 367 require get_template_directory() . '/inc/metabox.php'; 368 369 /** 370 * Hooks 371 */ 372 require get_template_directory() . '/inc/hooks.php'; 364 373 365 374 /** … … 375 384 require get_template_directory() . '/inc/widgets/widget-personal-info.php'; 376 385 require get_template_directory() . '/inc/widgets/widget-latest-post.php'; 386 387 /** 388 * Welcome Page. 389 */ 390 require get_template_directory() . '/welcome/welcome.php'; 391 392 /** 393 * TGMPA 394 */ 395 require get_template_directory() . '/inc/class-tgm-plugin-activation.php'; 396 -
total/2.0.0/header.php
r140488 r150054 17 17 18 18 <body <?php body_class(); ?>> 19 <?php wp_body_open(); ?> 19 <?php 20 wp_body_open(); 21 do_action('total_before_page'); 22 ?> 20 23 <div id="ht-page"> 21 24 <a class="skip-link screen-reader-text" href="#ht-content"><?php esc_html_e('Skip to content', 'total'); ?></a> 22 <header id="ht-masthead" class="ht-site-header"> 23 <div class="ht-container ht-clearfix"> 24 <div id="ht-site-branding"> 25 <?php 26 if (function_exists('has_custom_logo') && has_custom_logo()) : 27 the_custom_logo(); 28 else : 29 if (is_front_page()) : 30 ?> 31 <h1 class="ht-site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> 32 <?php else : ?> 33 <p class="ht-site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p> 34 <?php endif; ?> 35 <p class="ht-site-description"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('description'); ?></a></p> 36 <?php endif; ?> 37 </div><!-- .site-branding --> 38 39 <a href="#" class="toggle-bar"><span></span></a> 40 <nav id="ht-site-navigation" class="ht-main-navigation"> 41 <?php 42 wp_nav_menu(array( 43 'theme_location' => 'primary', 44 'container_class' => 'ht-menu ht-clearfix', 45 'menu_class' => 'ht-clearfix', 46 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 47 )); 48 ?> 49 </nav><!-- #ht-site-navigation --> 50 </div> 51 </header><!-- #ht-masthead --> 25 26 <?php do_action('total_header'); ?> 52 27 53 28 <div id="ht-content" class="ht-site-content ht-clearfix"> -
total/2.0.0/inc/style.php
r147862 r150054 5 5 */ 6 6 function total_dymanic_styles() { 7 $custom_css = $tablet_css = $mobile_css = ""; 7 8 $color = get_theme_mod('total_template_color', '#FFC107'); 8 9 $color_rgba = total_hex2rgba($color, 0.9); 9 $darker_color = totalColourBrightness($color, -0.9); 10 $custom_css = " 11 button, 12 input[type='button'], 13 input[type='reset'], 14 input[type='submit'], 15 .widget-area .widget-title:after, 16 h3#reply-title:after, 17 h3.comments-title:after, 18 .nav-previous a, 19 .nav-next a, 20 .pagination .page-numbers, 21 .ht-main-navigation .ht-menu li:hover > a, 22 .ht-main-navigation .ht-menu .current_page_item > a, 23 .ht-main-navigation .ht-menu .current-menu-item > a, 24 .ht-main-navigation .ht-menu .current_page_ancestor > a, 25 .ht-main-navigation .ht-menu .current > a, 26 .ht-slide-cap-title span, 27 .ht-progress-bar-length, 28 #ht-featured-post-section, 29 .ht-featured-icon, 30 .ht-service-post-wrap:after, 31 .ht-service-icon, 32 .ht-team-social-id a, 33 .ht-counter:after, 34 .ht-counter:before, 35 .ht-testimonial-wrap .owl-carousel .owl-nav .owl-prev, 36 .ht-testimonial-wrap .owl-carousel .owl-nav .owl-next, 37 .ht-blog-read-more a, 38 .ht-cta-buttons a.ht-cta-button1, 39 .ht-cta-buttons a.ht-cta-button2:hover, 40 #ht-back-top:hover, 41 .entry-readmore a, 42 .woocommerce #respond input#submit, 43 .woocommerce a.button, 44 .woocommerce button.button, 45 .woocommerce input.button, 46 .woocommerce ul.products li.product:hover .button, 47 .woocommerce #respond input#submit.alt, 48 .woocommerce a.button.alt, 49 .woocommerce button.button.alt, 50 .woocommerce input.button.alt, 51 .woocommerce nav.woocommerce-pagination ul li a, 52 .woocommerce nav.woocommerce-pagination ul li span, 53 .woocommerce span.onsale, 54 .woocommerce div.product .woocommerce-tabs ul.tabs li.active, 55 .woocommerce #respond input#submit.disabled, 56 .woocommerce #respond input#submit:disabled, 57 .woocommerce #respond input#submit:disabled[disabled], 58 .woocommerce a.button.disabled, .woocommerce a.button:disabled, 59 .woocommerce a.button:disabled[disabled], 60 .woocommerce button.button.disabled, 61 .woocommerce button.button:disabled, 62 .woocommerce button.button:disabled[disabled], 63 .woocommerce input.button.disabled, 64 .woocommerce input.button:disabled, 65 .woocommerce input.button:disabled[disabled], 66 .woocommerce #respond input#submit.alt.disabled, 67 .woocommerce #respond input#submit.alt.disabled:hover, 68 .woocommerce #respond input#submit.alt:disabled, 69 .woocommerce #respond input#submit.alt:disabled:hover, 70 .woocommerce #respond input#submit.alt:disabled[disabled], 71 .woocommerce #respond input#submit.alt:disabled[disabled]:hover, 72 .woocommerce a.button.alt.disabled, 73 .woocommerce a.button.alt.disabled:hover, 74 .woocommerce a.button.alt:disabled, 75 .woocommerce a.button.alt:disabled:hover, 76 .woocommerce a.button.alt:disabled[disabled], 77 .woocommerce a.button.alt:disabled[disabled]:hover, 78 .woocommerce button.button.alt.disabled, 79 .woocommerce button.button.alt.disabled:hover, 80 .woocommerce button.button.alt:disabled, 81 .woocommerce button.button.alt:disabled:hover, 82 .woocommerce button.button.alt:disabled[disabled], 83 .woocommerce button.button.alt:disabled[disabled]:hover, 84 .woocommerce input.button.alt.disabled, 85 .woocommerce input.button.alt.disabled:hover, 86 .woocommerce input.button.alt:disabled, 87 .woocommerce input.button.alt:disabled:hover, 88 .woocommerce input.button.alt:disabled[disabled], 89 .woocommerce input.button.alt:disabled[disabled]:hover, 90 .woocommerce .widget_price_filter .ui-slider .ui-slider-range, 91 .woocommerce-MyAccount-navigation-link a 92 { 93 background:{$color}; 94 } 95 96 a, 97 a:hover, 98 .ht-post-info .entry-date span.ht-day, 99 .entry-categories i, 100 .widget-area a:hover, 101 .comment-list a:hover, 102 .no-comments, 103 .ht-site-title a, 104 .woocommerce .woocommerce-breadcrumb a:hover, 105 #total-breadcrumbs a:hover, 106 .ht-featured-link a, 107 .ht-portfolio-cat-name-list i, 108 .ht-portfolio-cat-name:hover, 109 .ht-portfolio-cat-name.active, 110 .ht-portfolio-caption a, 111 .ht-team-detail, 112 .ht-counter-icon, 113 .woocommerce ul.products li.product .price, 114 .woocommerce div.product p.price, 115 .woocommerce div.product span.price, 116 .woocommerce .product_meta a:hover, 117 .woocommerce-error:before, 118 .woocommerce-info:before, 119 .woocommerce-message:before{ 120 color:{$color}; 121 } 122 123 .ht-main-navigation .ht-menu ul ul, 124 .ht-featured-link a, 125 .ht-counter, 126 .ht-testimonial-wrap .owl-carousel .owl-item img, 127 .ht-blog-post, 128 #ht-colophon, 129 .woocommerce ul.products li.product:hover, 130 .woocommerce-page ul.products li.product:hover, 131 .woocommerce #respond input#submit, 132 .woocommerce a.button, 133 .woocommerce button.button, 134 .woocommerce input.button, 135 .woocommerce ul.products li.product:hover .button, 136 .woocommerce #respond input#submit.alt, 137 .woocommerce a.button.alt, 138 .woocommerce button.button.alt, 139 .woocommerce input.button.alt, 140 .woocommerce div.product .woocommerce-tabs ul.tabs, 141 .woocommerce #respond input#submit.alt.disabled, 142 .woocommerce #respond input#submit.alt.disabled:hover, 143 .woocommerce #respond input#submit.alt:disabled, 144 .woocommerce #respond input#submit.alt:disabled:hover, 145 .woocommerce #respond input#submit.alt:disabled[disabled], 146 .woocommerce #respond input#submit.alt:disabled[disabled]:hover, 147 .woocommerce a.button.alt.disabled, 148 .woocommerce a.button.alt.disabled:hover, 149 .woocommerce a.button.alt:disabled, 150 .woocommerce a.button.alt:disabled:hover, 151 .woocommerce a.button.alt:disabled[disabled], 152 .woocommerce a.button.alt:disabled[disabled]:hover, 153 .woocommerce button.button.alt.disabled, 154 .woocommerce button.button.alt.disabled:hover, 155 .woocommerce button.button.alt:disabled, 156 .woocommerce button.button.alt:disabled:hover, 157 .woocommerce button.button.alt:disabled[disabled], 158 .woocommerce button.button.alt:disabled[disabled]:hover, 159 .woocommerce input.button.alt.disabled, 160 .woocommerce input.button.alt.disabled:hover, 161 .woocommerce input.button.alt:disabled, 162 .woocommerce input.button.alt:disabled:hover, 163 .woocommerce input.button.alt:disabled[disabled], 164 .woocommerce input.button.alt:disabled[disabled]:hover, 165 .woocommerce .widget_price_filter .ui-slider .ui-slider-handle 166 { 167 border-color: {$color}; 168 } 169 170 #ht-masthead, 171 .woocommerce-error, 172 .woocommerce-info, 173 .woocommerce-message{ 174 border-top-color: {$color}; 175 } 176 177 .nav-next a:after{ 178 border-left-color: {$color}; 179 } 180 181 .nav-previous a:after{ 182 border-right-color: {$color}; 183 } 184 185 .ht-active .ht-service-icon{ 186 box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 4px {$color}; 187 } 188 189 .woocommerce ul.products li.product .onsale:after{ 190 border-color: transparent transparent {$darker_color} {$darker_color}; 191 } 192 193 .woocommerce span.onsale:after{ 194 border-color: transparent {$darker_color} {$darker_color} transparent 195 } 196 197 .ht-portfolio-caption, 198 .ht-team-member-excerpt, 199 .ht-title-wrap{ 200 background:{$color_rgba} 201 } 202 203 @media screen and (max-width: 1000px){ 204 .toggle-bar, 205 #ht-site-navigation{ 206 background:{$color} 207 } 208 } 209 "; 10 $darker_color = total_color_brightness($color, -0.9); 11 12 $sidebar_width = get_theme_mod('total_sidebar_width', 30); 13 $primary_width = 100 - 4 - $sidebar_width; 14 15 $website_layout = get_theme_mod('total_website_layout', 'wide'); 16 if ($website_layout == 'wide') { 17 $container_width = get_theme_mod('total_wide_container_width', 1170); 18 } elseif ($website_layout == 'fluid') { 19 $container_width = get_theme_mod('total_fluid_container_width', 80); 20 } elseif ($website_layout == 'boxed') { 21 $container_width = get_theme_mod('total_wide_container_width', 1170); 22 $container_padding = get_theme_mod('total_container_padding', 80); 23 $boxed_container_width = $container_width + $container_padding + $container_padding; 24 } 25 26 /* =============== Full & Boxed width =============== */ 27 if ($website_layout == "wide") { 28 $custom_css .= " 29 .ht-container{ 30 max-width:{$container_width}px; 31 }"; 32 } else if ($website_layout == "boxed") { 33 $custom_css .= " 34 .ht-container{ 35 max-width:{$container_width}px; 36 } 37 body.ht-boxed #ht-page{ 38 max-width:{$boxed_container_width}px; 39 }"; 40 } else if ($website_layout == "fluid") { 41 $custom_css .= " 42 .ht-container{ 43 max-width:{$container_width}%; 44 }"; 45 } 46 47 $custom_css .= " 48 #primary{ width:{$primary_width}%} 49 #secondary{ width:{$sidebar_width}%} 50 "; 51 52 /* =============== Primary Color CSS =============== */ 53 $custom_css .= " 54 button, 55 input[type='button'], 56 input[type='reset'], 57 input[type='submit'], 58 .widget-area .widget-title:after, 59 h3#reply-title:after, 60 h3.comments-title:after, 61 .nav-previous a, 62 .nav-next a, 63 .pagination .page-numbers, 64 .ht-menu > ul > li.menu-item:hover > a, 65 .ht-menu > ul > li.menu-item.current_page_item > a, 66 .ht-menu > ul > li.menu-item.current-menu-item > a, 67 .ht-menu > ul > li.menu-item.current_page_ancestor > a, 68 .ht-menu > ul > li.menu-item.current > a, 69 .ht-menu ul ul li.menu-item:hover > a, 70 .ht-slide-cap-title span, 71 .ht-progress-bar-length, 72 #ht-featured-post-section, 73 .ht-featured-icon, 74 .ht-service-post-wrap:after, 75 .ht-service-icon, 76 .ht-team-social-id a, 77 .ht-counter:after, 78 .ht-counter:before, 79 .ht-testimonial-wrap .owl-carousel .owl-nav .owl-prev, 80 .ht-testimonial-wrap .owl-carousel .owl-nav .owl-next, 81 .ht-blog-read-more a, 82 .ht-cta-buttons a.ht-cta-button1, 83 .ht-cta-buttons a.ht-cta-button2:hover, 84 #ht-back-top:hover, 85 .entry-readmore a, 86 .woocommerce #respond input#submit, 87 .woocommerce a.button, 88 .woocommerce button.button, 89 .woocommerce input.button, 90 .woocommerce ul.products li.product:hover .button, 91 .woocommerce #respond input#submit.alt, 92 .woocommerce a.button.alt, 93 .woocommerce button.button.alt, 94 .woocommerce input.button.alt, 95 .woocommerce nav.woocommerce-pagination ul li a, 96 .woocommerce nav.woocommerce-pagination ul li span, 97 .woocommerce span.onsale, 98 .woocommerce div.product .woocommerce-tabs ul.tabs li.active, 99 .woocommerce #respond input#submit.disabled, 100 .woocommerce #respond input#submit:disabled, 101 .woocommerce #respond input#submit:disabled[disabled], 102 .woocommerce a.button.disabled, .woocommerce a.button:disabled, 103 .woocommerce a.button:disabled[disabled], 104 .woocommerce button.button.disabled, 105 .woocommerce button.button:disabled, 106 .woocommerce button.button:disabled[disabled], 107 .woocommerce input.button.disabled, 108 .woocommerce input.button:disabled, 109 .woocommerce input.button:disabled[disabled], 110 .woocommerce #respond input#submit.alt.disabled, 111 .woocommerce #respond input#submit.alt.disabled:hover, 112 .woocommerce #respond input#submit.alt:disabled, 113 .woocommerce #respond input#submit.alt:disabled:hover, 114 .woocommerce #respond input#submit.alt:disabled[disabled], 115 .woocommerce #respond input#submit.alt:disabled[disabled]:hover, 116 .woocommerce a.button.alt.disabled, 117 .woocommerce a.button.alt.disabled:hover, 118 .woocommerce a.button.alt:disabled, 119 .woocommerce a.button.alt:disabled:hover, 120 .woocommerce a.button.alt:disabled[disabled], 121 .woocommerce a.button.alt:disabled[disabled]:hover, 122 .woocommerce button.button.alt.disabled, 123 .woocommerce button.button.alt.disabled:hover, 124 .woocommerce button.button.alt:disabled, 125 .woocommerce button.button.alt:disabled:hover, 126 .woocommerce button.button.alt:disabled[disabled], 127 .woocommerce button.button.alt:disabled[disabled]:hover, 128 .woocommerce input.button.alt.disabled, 129 .woocommerce input.button.alt.disabled:hover, 130 .woocommerce input.button.alt:disabled, 131 .woocommerce input.button.alt:disabled:hover, 132 .woocommerce input.button.alt:disabled[disabled], 133 .woocommerce input.button.alt:disabled[disabled]:hover, 134 .woocommerce .widget_price_filter .ui-slider .ui-slider-range, 135 .woocommerce-MyAccount-navigation-link a 136 { 137 background:{$color}; 138 } 139 140 a, 141 a:hover, 142 .woocommerce .woocommerce-breadcrumb a:hover, 143 .breadcrumb-trail a:hover, 144 .ht-post-info .entry-date span.ht-day, 145 .entry-categories i, 146 .widget-area a:hover, 147 .comment-list a:hover, 148 .no-comments, 149 .woocommerce .woocommerce-breadcrumb a:hover, 150 #total-breadcrumbs a:hover, 151 .ht-featured-link a, 152 .ht-portfolio-cat-name-list i, 153 .ht-portfolio-cat-name:hover, 154 .ht-portfolio-cat-name.active, 155 .ht-portfolio-caption a, 156 .ht-team-detail, 157 .ht-counter-icon, 158 .woocommerce ul.products li.product .price, 159 .woocommerce div.product p.price, 160 .woocommerce div.product span.price, 161 .woocommerce .product_meta a:hover, 162 .woocommerce-error:before, 163 .woocommerce-info:before, 164 .woocommerce-message:before{ 165 color:{$color}; 166 } 167 168 .ht-menu ul ul, 169 .ht-featured-link a, 170 .ht-counter, 171 .ht-testimonial-wrap .owl-carousel .owl-item img, 172 .ht-blog-post, 173 #ht-colophon, 174 .woocommerce ul.products li.product:hover, 175 .woocommerce-page ul.products li.product:hover, 176 .woocommerce #respond input#submit, 177 .woocommerce a.button, 178 .woocommerce button.button, 179 .woocommerce input.button, 180 .woocommerce ul.products li.product:hover .button, 181 .woocommerce #respond input#submit.alt, 182 .woocommerce a.button.alt, 183 .woocommerce button.button.alt, 184 .woocommerce input.button.alt, 185 .woocommerce div.product .woocommerce-tabs ul.tabs, 186 .woocommerce #respond input#submit.alt.disabled, 187 .woocommerce #respond input#submit.alt.disabled:hover, 188 .woocommerce #respond input#submit.alt:disabled, 189 .woocommerce #respond input#submit.alt:disabled:hover, 190 .woocommerce #respond input#submit.alt:disabled[disabled], 191 .woocommerce #respond input#submit.alt:disabled[disabled]:hover, 192 .woocommerce a.button.alt.disabled, 193 .woocommerce a.button.alt.disabled:hover, 194 .woocommerce a.button.alt:disabled, 195 .woocommerce a.button.alt:disabled:hover, 196 .woocommerce a.button.alt:disabled[disabled], 197 .woocommerce a.button.alt:disabled[disabled]:hover, 198 .woocommerce button.button.alt.disabled, 199 .woocommerce button.button.alt.disabled:hover, 200 .woocommerce button.button.alt:disabled, 201 .woocommerce button.button.alt:disabled:hover, 202 .woocommerce button.button.alt:disabled[disabled], 203 .woocommerce button.button.alt:disabled[disabled]:hover, 204 .woocommerce input.button.alt.disabled, 205 .woocommerce input.button.alt.disabled:hover, 206 .woocommerce input.button.alt:disabled, 207 .woocommerce input.button.alt:disabled:hover, 208 .woocommerce input.button.alt:disabled[disabled], 209 .woocommerce input.button.alt:disabled[disabled]:hover, 210 .woocommerce .widget_price_filter .ui-slider .ui-slider-handle 211 { 212 border-color: {$color}; 213 } 214 215 #ht-masthead, 216 .woocommerce-error, 217 .woocommerce-info, 218 .woocommerce-message{ 219 border-top-color: {$color}; 220 } 221 222 .nav-next a:after{ 223 border-left-color: {$color}; 224 } 225 226 .nav-previous a:after{ 227 border-right-color: {$color}; 228 } 229 230 .ht-active .ht-service-icon{ 231 box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 4px {$color}; 232 } 233 234 .woocommerce ul.products li.product .onsale:after{ 235 border-color: transparent transparent {$darker_color} {$darker_color}; 236 } 237 238 .woocommerce span.onsale:after{ 239 border-color: transparent {$darker_color} {$darker_color} transparent 240 } 241 242 .ht-portfolio-caption, 243 .ht-team-member-excerpt, 244 .ht-title-wrap{ 245 background:{$color_rgba} 246 } 247 248 @media screen and (max-width: 1000px){ 249 .toggle-bar{ 250 background:{$color} 251 } 252 }"; 253 254 /* =============== Typography CSS =============== */ 255 $custom_css .= total_typography_css('total_body', 'html, body, button, input, select, textarea', array( 256 'family' => 'Poppins', 257 'style' => '400', 258 'text_transform' => 'none', 259 'text_decoration' => 'none', 260 'size' => '16', 261 'line_height' => '1.6', 262 'letter_spacing' => '0', 263 'color' => '#444444' 264 )); 265 266 $custom_css .= total_typography_css('total_menu', '.ht-menu > ul > li.menu-item > a', array( 267 'family' => 'Oswald', 268 'style' => '400', 269 'text_transform' => 'uppercase', 270 'text_decoration' => 'none', 271 'size' => '14', 272 'line_height' => '2.6', 273 'letter_spacing' => '0' 274 )); 275 276 $custom_css .= total_typography_css('total_h', 'h1, h2, h3, h4, h5, h6, .ht-site-title, .ht-slide-cap-title, .ht-counter-count', array( 277 'family' => 'Oswald', 278 'style' => '400', 279 'text_transform' => 'none', 280 'text_decoration' => 'none', 281 'line_height' => '1.3', 282 'letter_spacing' => '0' 283 )); 284 285 $i_font_size = get_theme_mod('menu_font_size', '14'); 286 $i_font_family = get_theme_mod('menu_font_family', 'Oswald'); 287 $custom_css .= ".ht-menu ul ul{ 288 font-size: {$i_font_size}px; 289 font-family: {$i_font_family}; 290 }"; 291 292 293 $content_header_color = get_theme_mod('total_content_header_color', '#000000'); 294 $content_text_color = get_theme_mod('total_content_text_color', '#333333'); 295 $content_link_color = get_theme_mod('total_content_link_color', '#000000'); 296 $content_link_hov_color = get_theme_mod('total_content_link_hov_color'); 297 298 $custom_css .= ".ht-main-content h1, .ht-main-content h2, .ht-main-content h3, .ht-main-content h4, .ht-main-content h5, .ht-main-content h6 {color:$content_header_color}"; 299 $custom_css .= ".ht-main-content{color:$content_text_color}"; 300 $custom_css .= "a{color:$content_link_color}"; 301 if ($content_link_hov_color) { 302 $custom_css .= "a:hover, .woocommerce .woocommerce-breadcrumb a:hover, .breadcrumb-trail a:hover{color:$content_link_hov_color}"; 303 } 304 305 /* =============== Site Title & Tagline Color =============== */ 306 $title_color = get_theme_mod('total_title_color', '#333333'); 307 $tagline_color = get_theme_mod('total_tagline_color', '#333333'); 308 $custom_css .= ".ht-site-title a, .ht-site-title a:hover{color:$title_color}"; 309 $custom_css .= ".ht-site-description a, .ht-site-description a:hover{color:$tagline_color}"; 310 311 $logo_width = get_theme_mod('total_logo_width'); 312 $logo_width_tablet = get_theme_mod('total_logo_width_tablet'); 313 $logo_width_mobile = get_theme_mod('total_logo_width_mobile'); 314 315 if ($logo_width === 0 || $logo_width) { 316 $custom_css .= "#ht-site-branding img.custom-logo{max-width:{$logo_width}px}"; 317 } 318 319 if ($logo_width_tablet === 0 || $logo_width_tablet) { 320 $tablet_css .= "#ht-site-branding img.custom-logo{max-width:{$logo_width_tablet}px}"; 321 } 322 323 if ($logo_width_mobile === 0 || $logo_width_mobile) { 324 $mobile_css .= "#ht-site-branding img.custom-logo{max-width:{$logo_width_mobile}px}"; 325 } 326 327 /* =============== Site Title & Tagline Color =============== */ 328 $mh_bg_color = get_theme_mod('total_mh_bg_color', '#FFFFFF'); 329 $custom_css .= ".ht-site-header{background-color:{$mh_bg_color}}"; 330 $custom_css .= total_dimension_css('total_mh_spacing', array( 331 'position' => array('left', 'top', 'bottom', 'right'), 332 'selector' => '.ht-site-header', 333 'type' => 'padding', 334 'unit' => 'px', 335 'responsive' => false 336 )); 337 338 /* =============== Primary Menu =============== */ 339 $menu_link_color = get_theme_mod('total_pm_menu_link_color'); 340 $menu_link_hover_color = get_theme_mod('total_pm_menu_link_hover_color'); 341 $menu_link_hover_bg_color = get_theme_mod('total_pm_menu_hover_bg_color'); 342 $submenu_bg_color = get_theme_mod('total_pm_submenu_bg_color'); 343 $submenu_link_color = get_theme_mod('total_pm_submenu_link_color'); 344 $submenu_link_hover_color = get_theme_mod('total_pm_submenu_link_hover_color'); 345 $submenu_link_hover_bg_color = get_theme_mod('total_pm_submenu_link_bg_color'); 346 347 if ($menu_link_color) { 348 $custom_css .= " 349 .ht-menu > ul > li.menu-item > a{ 350 color: $menu_link_color; 351 }"; 352 } 353 354 if ($menu_link_color) { 355 $custom_css .= " 356 .ht-menu > ul > li.menu-item:hover > a, 357 .ht-menu > ul > li.menu-item.current_page_item > a, 358 .ht-menu > ul > li.menu-item.current-menu-item > a, 359 .ht-menu > ul > li.menu-item.current_page_ancestor > a, 360 .ht-menu > ul > li.menu-item.current > a{ 361 color: $menu_link_hover_color; 362 }"; 363 } 364 365 if ($menu_link_hover_bg_color) { 366 $custom_css .= " 367 .ht-menu > ul > li.menu-item:hover > a, 368 .ht-menu > ul > li.menu-item.current_page_item > a, 369 .ht-menu > ul > li.menu-item.current-menu-item > a, 370 .ht-menu > ul > li.menu-item.current_page_ancestor > a, 371 .ht-menu > ul > li.menu-item.current > a{ 372 background-color: $menu_link_hover_bg_color; 373 }"; 374 } 375 376 if ($submenu_bg_color) { 377 $custom_css .= " 378 .ht-menu ul ul{ 379 background-color: $submenu_bg_color; 380 }"; 381 } 382 383 if ($submenu_link_color) { 384 $custom_css .= ".ht-menu ul ul li.menu-item > a{ 385 color: $submenu_link_color; 386 }"; 387 } 388 389 if ($submenu_link_hover_color) { 390 $custom_css .= ".ht-menu ul ul li.menu-item:hover > a{ 391 color: $submenu_link_hover_color; 392 }"; 393 } 394 395 if ($submenu_link_hover_bg_color) { 396 $custom_css .= ".ht-menu ul ul li.menu-item:hover > a{ 397 background-color: $submenu_link_hover_bg_color; 398 }"; 399 } 400 401 /* =============== Footer Settings =============== */ 402 $top_footer_title_color = get_theme_mod('total_top_footer_title_color', '#EEEEEE'); 403 $top_footer_text_color = get_theme_mod('total_top_footer_text_color', '#EEEEEE'); 404 $top_footer_anchor_color = get_theme_mod('total_top_footer_anchor_color', '#EEEEEE'); 405 $bottom_footer_text_color = get_theme_mod('total_bottom_footer_text_color', '#EEEEEE'); 406 $bottom_footer_anchor_color = get_theme_mod('total_bottom_footer_anchor_color', '#EEEEEE'); 407 $bottom_footer_bg_color = get_theme_mod('total_bottom_footer_bg_color', get_template_directory_uri().'/images/footer-bg.jpg'); 408 409 $custom_css .= total_background_css('total_footer_bg', '#ht-colophon', array( 410 'url' => '', 411 'repeat' => 'no-repeat', 412 'size' => 'cover', 413 'position' => 'center-center', 414 'attachment' => 'scroll', 415 'color' => '#222222', 416 'overlay' => '' 417 )); 418 419 $custom_css .= " 420 .ht-main-footer .widget-title{ 421 color: {$top_footer_title_color}; 422 } 423 424 .ht-main-footer *{ 425 color: {$top_footer_text_color}; 426 } 427 428 .ht-main-footer a, 429 .ht-main-footer a *{ 430 color: {$top_footer_anchor_color}; 431 }"; 432 433 $custom_css .= " 434 .ht-bottom-footer *{ 435 color: {$bottom_footer_text_color}; 436 } 437 438 .ht-bottom-footer a, 439 .ht-bottom-footer a *{ 440 color: {$bottom_footer_anchor_color}; 441 }"; 442 443 if ($bottom_footer_bg_color) { 444 $custom_css .= "#ht-bottom-footer{background-color:$bottom_footer_bg_color}"; 445 } 446 447 /* =============== Front Page Sections =============== */ 448 $total_service_left_bg = get_theme_mod('total_service_left_bg'); 449 $total_counter_bg = get_theme_mod('total_counter_bg'); 450 $total_cta_bg = get_theme_mod('total_cta_bg'); 451 $custom_css .= '.ht-service-left-bg{ background-image:url(' . esc_url($total_service_left_bg) . ');}'; 452 $custom_css .= '#ht-counter-section{ background-image:url(' . esc_url($total_counter_bg) . ');}'; 453 $custom_css .= '#ht-cta-section{ background-image:url(' . esc_url($total_cta_bg) . ');}'; 454 455 $custom_css .= "@media screen and (max-width:768px){{$tablet_css}}"; 456 $custom_css .= "@media screen and (max-width:480px){{$mobile_css}}"; 210 457 211 458 return total_css_strip_whitespace($custom_css); -
total/2.0.0/inc/template-tags.php
r147862 r150054 4 4 * Custom template tags for this theme. 5 5 * 6 * Eventually, some of the functionality here could be replaced by core features.7 6 * 8 7 * @package Total -
total/2.0.0/inc/widgets/widget-fields.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * @package Total 4 5 */ 5 6 6 function total_widgets_show_widget_field($instance = '', $widget_field = '', $total_field_value = '') { 7 7 8 8 extract($widget_field); 9 9 10 if (isset($total_widgets_default)){11 $total_field_value = !empty( $total_field_value) ? $total_field_value : $total_widgets_default;10 if (isset($total_widgets_default)) { 11 $total_field_value = !empty($total_field_value) ? $total_field_value : $total_widgets_default; 12 12 } 13 13 … … 125 125 case 'upload': 126 126 $image = $image_class = ""; 127 if ($total_field_value){128 $image = '<img src="' .esc_url($total_field_value).'" style="max-width:100%;"/>';127 if ($total_field_value) { 128 $image = '<img src="' . esc_url($total_field_value) . '" style="max-width:100%;"/>'; 129 129 $image_class = ' hidden'; 130 130 } … … 132 132 <div class="attachment-media-view"> 133 133 134 <label for="<?php echo esc_attr($instance->get_field_id($total_widgets_name)); ?>"><?php echo esc_html($total_widgets_title); ?>:</label><br />135 134 <label for="<?php echo esc_attr($instance->get_field_id($total_widgets_name)); ?>"><?php echo esc_html($total_widgets_title); ?>:</label><br /> 135 136 136 <div class="placeholder<?php echo esc_attr($image_class); ?>"> 137 137 <?php esc_html_e('No image selected', 'total'); ?> … … 144 144 <button type="button" class="button total-delete-button align-left"><?php esc_html_e('Remove', 'total'); ?></button> 145 145 <button type="button" class="button total-upload-button alignright"><?php esc_html_e('Select Image', 'total'); ?></button> 146 146 147 147 <input name="<?php echo esc_attr($instance->get_field_name($total_widgets_name)); ?>" id="<?php echo esc_attr($instance->get_field_id($total_widgets_name)); ?>" class="upload-id" type="hidden" value="<?php echo esc_url($total_field_value) ?>"/> 148 148 </div> 149 149 150 <?php if (isset($total_widgets_description)) { ?>151 <br />152 <small><?php echo wp_kses_post($total_widgets_description); ?></small>153 <?php } ?>150 <?php if (isset($total_widgets_description)) { ?> 151 <br /> 152 <small><?php echo wp_kses_post($total_widgets_description); ?></small> 153 <?php } ?> 154 154 155 155 </div> 156 <?php 156 <?php 157 157 break; 158 158 } -
total/2.0.0/index.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The main template file. … … 6 7 */ 7 8 get_header(); 8 ?>9 9 10 <?php if (is_home() && !is_front_page()) : ?> 11 <header class="ht-main-header"> 12 <div class="ht-container"> 13 <h1 class="ht-main-title"><?php single_post_title(); ?></h1> 14 <?php do_action('total_breadcrumbs'); ?> 15 </div> 16 </header><!-- .entry-header --> 17 <?php endif; ?> 10 do_action('total_home_template'); 18 11 19 20 21 <div class="ht-container">22 <div id="primary" class="content-area">23 <main id="main" class="site-main">24 25 <?php if (have_posts()) : ?>26 27 <?php /* Start the Loop */ ?>28 <?php while (have_posts()) : the_post(); ?>29 30 <?php31 /*32 * Include the Post-Format-specific template for the content.33 * If you want to override this in a child theme, then include a file34 * called content-___.php (where ___ is the Post Format name) and that will be used instead.35 */36 get_template_part('template-parts/content', 'summary');37 ?>38 39 <?php endwhile; ?>40 41 <?php42 the_posts_pagination(43 array(44 'prev_text' => esc_html__('Prev', 'total'),45 'next_text' => esc_html__('Next', 'total'),46 )47 );48 ?>49 50 <?php else : ?>51 52 <?php get_template_part('template-parts/content', 'none'); ?>53 54 <?php endif; ?>55 56 </main><!-- #main -->57 </div><!-- #primary -->58 59 <?php get_sidebar(); ?>60 61 </div>62 63 <?php64 12 get_footer(); -
total/2.0.0/js/total-custom.js
r147862 r150054 9 9 jQuery(function ($) { 10 10 11 if ($('.ht-sticky-header').length > 0) { 12 $(window).scroll(function () { 13 if ($(window).scrollTop() > 200) { 14 $('#ht-masthead').addClass('ht-sticky'); 15 } else { 16 $('#ht-masthead').removeClass('ht-sticky'); 11 /* Sticky Header */ 12 var hHeight = 0; 13 var adminbarHeight = 0; 14 if ($('body').hasClass('admin-bar')) { 15 adminbarHeight = 32; 16 } 17 var $stickyHeader = $('.ht-site-header'); 18 if ($('.ht-sticky-header').length > 0 && $stickyHeader.length > 0) { 19 hHeight = $stickyHeader.outerHeight(); 20 $pageWrapper = $('#ht-content'); 21 var hOffset = $stickyHeader.offset().top; 22 23 var offset = hOffset - adminbarHeight; 24 25 $stickyHeader.headroom({ 26 offset: offset, 27 onTop: function () { 28 $pageWrapper.css({ 29 paddingTop: 0 30 }); 31 }, 32 onNotTop: function () { 33 $pageWrapper.css({ 34 paddingTop: hHeight + 'px' 35 }); 17 36 } 18 37 }); … … 100 119 101 120 $('.toggle-bar').click(function () { 102 $(this).next('.ht-m ain-navigation').slideToggle();121 $(this).next('.ht-menu').slideToggle(); 103 122 totalKeyboardLoop($('.ht-main-navigation')); 104 123 return false; … … 263 282 264 283 } 265 284 266 285 var totalKeyboardLoop = function (elem) { 267 286 -
total/2.0.0/page.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying all pages. … … 6 7 */ 7 8 get_header(); 8 $total_hide_title = get_post_meta($post->ID, 'total_hide_title', true);9 9 10 if (!$total_hide_title) { 11 ?> 12 <header class="ht-main-header"> 13 <div class="ht-container"> 14 <?php the_title('<h1 class="ht-main-title">', '</h1>'); ?> 15 <?php 16 if (!is_front_page()) { 17 do_action('total_breadcrumbs'); 18 } 19 ?> 20 </div> 21 </header><!-- .entry-header --> 22 <?php } ?> 10 do_action('total_page_template'); 23 11 24 <div class="ht-container">25 <div id="primary" class="content-area">26 <main id="main" class="site-main">27 28 <?php while (have_posts()) : the_post(); ?>29 30 <?php get_template_part('template-parts/content', 'page'); ?>31 32 <?php33 // If comments are open or we have at least one comment, load up the comment template.34 if (comments_open() || get_comments_number()) :35 comments_template();36 endif;37 ?>38 39 <?php endwhile; // End of the loop. ?>40 41 </main><!-- #main -->42 </div><!-- #primary -->43 44 <?php get_sidebar(); ?>45 </div>46 47 <?php48 12 get_footer(); -
total/2.0.0/search.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying search results pages. … … 6 7 */ 7 8 get_header(); 8 ?>9 9 10 <header class="ht-main-header"> 11 <div class="ht-container"> 12 <h1 class="ht-main-title"> 13 <?php 14 printf( 15 /* translators: search query text */ 16 esc_html__('Search Results for: %s', 'total'), '<span>' . get_search_query() . '</span>' 17 ); 18 ?> 19 </h1> 20 <?php do_action('total_breadcrumbs'); ?> 21 </div> 22 </header><!-- .entry-header --> 10 do_action('total_search_template'); 23 11 24 <div class="ht-container">25 <section id="primary" class="content-area">26 <main id="main" class="site-main">27 28 <?php if (have_posts()) : ?>29 30 31 <?php /* Start the Loop */ ?>32 <?php while (have_posts()) : the_post(); ?>33 34 <?php35 /**36 * Run the loop for the search to output the results.37 * If you want to overload this in a child theme then include a file38 * called content-search.php and that will be used instead.39 */40 get_template_part('template-parts/content', 'search');41 ?>42 43 <?php endwhile; ?>44 45 <?php46 the_posts_pagination(47 array(48 'prev_text' => esc_html__('Prev', 'total'),49 'next_text' => esc_html__('Next', 'total'),50 )51 );52 ?>53 54 <?php else : ?>55 56 <?php get_template_part('template-parts/content', 'none'); ?>57 58 <?php endif; ?>59 60 </main><!-- #main -->61 </section><!-- #primary -->62 63 <?php get_sidebar(); ?>64 65 </div>66 67 <?php68 12 get_footer(); -
total/2.0.0/sidebar-shop.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The sidebar containing the main widget area. … … 5 6 * @package Total 6 7 */ 7 if (!is_active_sidebar('total-shop-sidebar')) { 8 return; 9 } 10 ?> 11 12 <div id="secondary" class="widget-area"> 13 <?php dynamic_sidebar('total-shop-sidebar'); ?> 14 </div><!-- #secondary --> 8 do_action('total_sidebar_shop_template'); -
total/2.0.0/sidebar.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The sidebar containing the main widget area. … … 5 6 * @package Total 6 7 */ 7 $total_sidebar_layout = "right_sidebar"; 8 9 if (is_singular(array('post', 'page'))) { 10 $total_sidebar_layout = get_post_meta($post->ID, 'total_sidebar_layout', true); 11 if (!$total_sidebar_layout) { 12 $total_sidebar_layout = "right_sidebar"; 13 } 14 } 15 16 if ($total_sidebar_layout == "no_sidebar" || $total_sidebar_layout == "no_sidebar_condensed") { 17 return; 18 } 19 20 if (is_active_sidebar('total-right-sidebar') && $total_sidebar_layout == "right_sidebar") { 21 ?> 22 <div id="secondary" class="widget-area"> 23 <?php dynamic_sidebar('total-right-sidebar'); ?> 24 </div><!-- #secondary --> 25 <?php 26 } 27 28 if (is_active_sidebar('total-left-sidebar') && $total_sidebar_layout == "left_sidebar") { 29 ?> 30 <div id="secondary" class="widget-area"> 31 <?php dynamic_sidebar('total-left-sidebar'); ?> 32 </div><!-- #secondary --> 33 <?php 34 } 8 do_action('total_sidebar_template'); -
total/2.0.0/single.php
r140488 r150054 1 1 <?php 2 2 3 /** 3 4 * The template for displaying all single posts. … … 6 7 */ 7 8 get_header(); 8 $total_hide_title = get_post_meta($post->ID, 'total_hide_title', true);9 9 10 if (!$total_hide_title) { 11 ?> 12 <header class="ht-main-header"> 13 <div class="ht-container"> 14 <?php the_title('<h1 class="ht-main-title">', '</h1>'); ?> 15 <?php do_action('total_breadcrumbs'); ?> 16 </div> 17 </header><!-- .entry-header --> 18 <?php } ?> 10 do_action('total_single_template'); 19 11 20 <div class="ht-container">21 <div id="primary" class="content-area">22 <main id="main" class="site-main">23 24 <?php while (have_posts()) : the_post(); ?>25 26 <?php get_template_part('template-parts/content', 'single'); ?>27 28 <?php29 // If comments are open or we have at least one comment, load up the comment template.30 if (comments_open() || get_comments_number()) :31 comments_template();32 endif;33 ?>34 35 <?php endwhile; // End of the loop. ?>36 37 </main><!-- #main -->38 </div><!-- #primary -->39 40 <?php get_sidebar(); ?>41 42 </div>43 44 <?php45 12 get_footer(); -
total/2.0.0/style.css
r148274 r150054 5 5 Author URI: https://hashthemes.com 6 6 Description: Total as its name suggest is a complete package theme with all the feature that you need to make a complete website. The theme has clean and elegant design with vibrant color(Theme Color Changable Option) and parallax sections. The home page consist of slider, featured section with icon, about us section with progress bar, portfolio section with masonary layout, team section, testimonial section, counter section, blog section with option to add 3, 6 or 9 blog posts, clients logo carousel slider and call to action section. The theme is fully responsive and is built on customizer that enable you to configure the website with live preview. The theme is SEO friendly, Cross browser compatible, fully translation ready and is compatible with WooCommerce - an ecommerce plugin and all other major plugins. The theme can also be used with all major page builder plugins like Elementor, SiteOrigin, WpBakery VisualComposer and Beaver Builder. The theme provides option to import the demo with just one click. DEMO: https://demo.hashthemes.com/total/ 7 Version: 1.2.597 Version: 2.0.0 8 8 License: GNU General Public License v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 --------------------------------------------------------------*/ 19 19 html { 20 font-family: sans-serif;21 20 -webkit-text-size-adjust: 100%; 22 21 -ms-text-size-adjust: 100%; … … 628 627 .entry-content:after, 629 628 .comment-content:before, 630 .comment-content:after, 631 .site-footer:before, 632 .site-footer:after, 633 .ht-container:before, 634 .ht-container:after { 629 .comment-content:after { 635 630 content: ""; 636 631 display: table; … … 639 634 .ht-clearfix:after, 640 635 .entry-content:after, 641 .comment-content:after, 642 .site-footer:after, 643 .ht-container:after { 636 .comment-content:after{ 644 637 clear: both; 645 638 } … … 717 710 .ht-latest-posts li{ 718 711 padding: 12px 0 !important; 719 font-size: 14px;720 712 line-height: 1.5; 721 713 } … … 810 802 width: 80px; 811 803 text-align: right; 812 font-family: 'Oswald', sans-serif;813 804 } 814 805 … … 874 865 875 866 .entry-header .entry-title{ 876 font-weight: 300;877 867 letter-spacing: 1px; 878 868 margin-bottom: 10px; … … 1292 1282 --------------------------------------------------------------*/ 1293 1283 .ht-container{ 1294 width: 1170px;1284 max-width: 1170px; 1295 1285 margin: 0 auto; 1286 } 1287 1288 body.ht-boxed #ht-page { 1289 max-width: 1250px; 1290 margin: 0 auto; 1291 position: relative; 1292 background: #FFF; 1296 1293 } 1297 1294 … … 1299 1296 ## Header 1300 1297 --------------------------------------------------------------*/ 1301 #ht-masthead{1298 .ht-site-header{ 1302 1299 border-top: 4px solid #FFC107; 1303 1300 background: #FFF; 1304 height: 94px;1305 1301 border-bottom: 1px solid #F1F1F1; 1306 1302 z-index: 99; 1307 transition: height 0.3s ease; 1308 -moz-transition: height 0.3s ease; 1309 -webkit-transition: height 0.3s ease; 1310 } 1311 1312 .ht-sticky-header #ht-masthead{ 1303 padding: 15px 0; 1304 transition: padding 0.3s ease; 1305 } 1306 1307 .ht-sticky-header .headroom--not-top#ht-masthead{ 1313 1308 position: fixed; 1314 1309 left: 0; 1315 1310 right: 0; 1316 } 1317 1318 .ht-sticky#ht-masthead{ 1319 height: 74px; 1311 padding: 5px 0; 1312 } 1313 1314 .ht-site-header .ht-container{ 1315 display: flex; 1316 align-items: center; 1317 justify-content: space-between; 1320 1318 } 1321 1319 1322 1320 #ht-content{ 1323 1321 clear: both; 1324 }1325 1326 body.ht-sticky-header #ht-content{1327 position: relative;1328 z-index: 9;1329 padding-top: 94px;1330 1322 } 1331 1323 … … 1343 1335 float: left; 1344 1336 width: 30%; 1345 padding: 15px 0;1346 transition: padding 0.3s ease;1347 -moz-transition: padding 0.3s ease;1348 -webkit-transition: padding 0.3s ease;1349 }1350 1351 .ht-sticky #ht-site-branding{1352 padding: 5px 0;1353 1337 } 1354 1338 1355 1339 #ht-site-branding img{ 1356 max-height: 60px; 1357 width: auto; 1340 height: auto; 1358 1341 } 1359 1342 … … 1376 1359 1377 1360 .ht-site-title{ 1378 font-family: 'Oswald', sans-serif;1379 1361 font-weight: 400; 1380 1362 margin: 0 0 8px; … … 1483 1465 ## Menus 1484 1466 --------------------------------------------------------------*/ 1485 #ht-site-navigation{ 1486 float: right; 1487 width: 70%; 1488 padding: 27px 0; 1489 transition: padding 0.3s ease; 1490 -moz-transition: padding 0.3s ease; 1491 -webkit-transition: padding 0.3s ease; 1492 } 1493 1494 .ht-sticky #ht-site-navigation{ 1495 padding: 17px 0; 1496 } 1497 1498 .ht-main-navigation .ht-menu{ 1499 float: right; 1500 } 1501 1502 .ht-main-navigation .ht-menu ul { 1467 .ht-menu ul { 1503 1468 list-style: none; 1504 1469 margin: 0; … … 1506 1471 } 1507 1472 1508 .ht-m ain-navigation .ht-menu li {1473 .ht-menu li { 1509 1474 float: left; 1510 1475 position: relative; … … 1512 1477 } 1513 1478 1514 .ht-m ain-navigation .ht-menu a {1479 .ht-menu a { 1515 1480 position: relative; 1516 1481 display: block; … … 1519 1484 text-transform: uppercase; 1520 1485 font-size: 14px; 1521 font-family: 'Oswald', sans-serif;1522 1486 line-height: 36px; 1523 1487 padding: 0 15px; … … 1528 1492 } 1529 1493 1530 .ht-m ain-navigation .ht-menu ul ul {1494 .ht-menu ul ul { 1531 1495 display: none; 1532 1496 position: absolute; … … 1542 1506 } 1543 1507 1544 .ht-sticky .ht-m ain-navigation .ht-menu ul ul{1508 .ht-sticky .ht-menu ul ul{ 1545 1509 margin-top: 17px; 1546 1510 } 1547 1511 1548 .ht-m ain-navigation .ht-menu > ul > li:last-child > ul{1512 .ht-menu > ul > li:last-child > ul{ 1549 1513 left: auto; 1550 1514 right: 0; 1551 1515 } 1552 1516 1553 .ht-m ain-navigation .ht-menu ul ul ul {1517 .ht-menu ul ul ul { 1554 1518 left: 100%; 1555 1519 top: 0; … … 1558 1522 } 1559 1523 1560 .ht-sticky .ht-m ain-navigation .ht-menu ul ul ul{1524 .ht-sticky .ht-menu ul ul ul{ 1561 1525 margin-top: 0 1562 1526 } 1563 1527 1564 .ht-m ain-navigation .ht-menu ul ul a {1528 .ht-menu ul ul a { 1565 1529 text-transform: none; 1566 1530 font-weight: 400; … … 1571 1535 } 1572 1536 1573 .ht-m ain-navigation .ht-menu ul ul li {1537 .ht-menu ul ul li { 1574 1538 float: none; 1575 1539 margin: 0 0 5px; 1576 1540 } 1577 1541 1578 .ht-m ain-navigation .ht-menu ul ul li:last-child{1542 .ht-menu ul ul li:last-child{ 1579 1543 margin-bottom: 0; 1580 1544 } 1581 1545 1582 .ht-m ain-navigation .ht-menu ul li:hover > ul {1546 .ht-menu ul li:hover > ul { 1583 1547 display: block; 1584 1548 } 1585 1549 1586 .ht-m ain-navigation .ht-menu li:hover > a,1587 .ht-m ain-navigation .ht-menu.current_page_item > a,1588 .ht-m ain-navigation .ht-menu.current-menu-item > a,1589 .ht-m ain-navigation .ht-menu.current_page_ancestor > a,1590 .ht-m ain-navigation .ht-menu.current > a{1550 .ht-menu > ul > li.menu-item:hover > a, 1551 .ht-menu > ul > li.menu-item.current_page_item > a, 1552 .ht-menu > ul > li.menu-item.current-menu-item > a, 1553 .ht-menu > ul > li.menu-item.current_page_ancestor > a, 1554 .ht-menu > ul > li.menu-item.current > a{ 1591 1555 color: #FFF; 1592 1556 background: #FFC107; 1557 } 1558 1559 .ht-menu ul ul li.menu-item:hover > a{ 1560 background: #FFC107; 1561 color: #FFF; 1593 1562 } 1594 1563 … … 1688 1657 padding: 0 10%; 1689 1658 line-height: 1.2; 1690 font-family: 'Oswald', sans-serif;1691 1659 letter-spacing: 2px; 1692 1660 text-transform: uppercase; … … 2087 2055 margin-bottom: 25px; 2088 2056 position: relative; 2089 z-index: 9 9;2057 z-index: 9; 2090 2058 } 2091 2059 … … 2354 2322 margin-bottom: 25px; 2355 2323 letter-spacing: 3px; 2356 font-family: 'Oswald', sans-serif;2357 2324 font-weight: 400; 2358 2325 } … … 2597 2564 border-radius: 1px; 2598 2565 margin: 0 4px; 2599 font-family: 'Oswald', sans-serif;2600 2566 } 2601 2567 … … 2622 2588 --------------------------------------------------------------*/ 2623 2589 #ht-colophon{ 2624 background: url(images/footer-bg.jpg);2625 2590 border-top: 4px solid #FFC107; 2626 2591 font-size: 16px; 2592 position: relative; 2593 } 2594 2595 #ht-colophon:before{ 2596 content: ""; 2597 position: absolute; 2598 left: 0; 2599 right: 0; 2600 top: 0; 2601 bottom: 0; 2602 opacity: 0.9; 2627 2603 } 2628 2604 … … 2632 2608 } 2633 2609 2634 #ht-colophona{2610 .ht-site-footer a{ 2635 2611 color: #BBB; 2636 2612 text-decoration: none; 2637 2613 } 2638 2614 2639 #ht-colophon.widget-title{2615 .ht-main-footer .widget-title{ 2640 2616 letter-spacing: 1px; 2641 2617 text-transform: uppercase; … … 2644 2620 } 2645 2621 2646 #ht-top-footer{ 2622 #ht-main-footer{ 2623 position: relative; 2647 2624 color: #BBB; 2648 2625 padding: 50px 0; 2649 2626 } 2650 2627 2651 .ht-top-footer{ 2652 margin-left: -3%; 2628 .ht-main-footer{ 2629 display: flex; 2630 margin: 0 -20px; 2653 2631 } 2654 2632 2655 2633 .ht-footer{ 2656 float: left; 2657 width: 22%; 2658 margin-left: 3%; 2634 width: 25%; 2635 padding: 0 20px; 2636 } 2637 2638 .col-1-1 .ht-footer1 { 2639 width: 100%; 2640 } 2641 2642 .col-2-1-1 .ht-footer { 2643 width: 50%; 2644 } 2645 2646 .col-3-1-1-1 .ht-footer { 2647 width: 33.33%; 2648 } 2649 2650 .col-4-1-1-1-1 .ht-footer { 2651 width: 25%; 2659 2652 } 2660 2653 … … 2678 2671 2679 2672 #ht-bottom-footer{ 2673 position: relative; 2680 2674 background: rgba(0,0,0,0.3); 2681 2675 padding: 30px 0; … … 2696 2690 height: 60px; 2697 2691 width: 40px; 2698 text-align: center;2699 2692 color: #FFF; 2700 line-height: 60px;2701 2693 z-index: 99; 2702 2694 cursor: pointer; 2695 display: flex; 2696 justify-content: center; 2697 align-items: center; 2703 2698 transition: all 0.3s ease; 2704 2699 -moz-transition: all 0.3s ease; … … 2865 2860 .woocommerce ul.products li.product .woocommerce-loop-product__title, 2866 2861 .woocommerce ul.products li.product h3{ 2867 font-family: 'Pontano Sans', sans-serif;2868 2862 margin: 0 0 6px; 2869 2863 padding: 0; … … 3352 3346 } 3353 3347 3348 .ht-sticky-header .headroom--not-top#ht-masthead{ 3349 position: relative; 3350 } 3351 3354 3352 .ht-sticky-header #ht-content{ 3355 3353 padding-top: 0 !important; 3356 3354 } 3357 3355 3358 #ht-site-navigation {3356 #ht-site-navigation .ht-menu{ 3359 3357 display: none; 3360 3358 position: absolute; 3359 background: #FFF; 3361 3360 left: 0; 3362 3361 right: 0; 3363 3362 top: 90px; 3364 background: #FFC107;3365 3363 z-index: 999; 3366 3364 width: 100%; … … 3369 3367 } 3370 3368 3371 .ht-m ain-navigation .ht-menu{3369 .ht-menu{ 3372 3370 float: none; 3373 3371 } 3374 3372 3375 .ht-m ain-navigation .ht-menu li{3373 .ht-menu li{ 3376 3374 float: none; 3377 3375 margin-left: 0; … … 3379 3377 } 3380 3378 3381 .ht-m ain-navigation .ht-menu a,3382 .ht-m ain-navigation .ht-menu ul ul a{3379 .ht-menu a, 3380 .ht-menu ul ul a{ 3383 3381 line-height: 1.3; 3384 3382 padding: 15px 20px; … … 3386 3384 } 3387 3385 3388 .page-template-home-template .ht-main-navigation .ht-menu .current_page_item > a, 3389 .page-template-home-template .ht-main-navigation .ht-menu .current-menu-item > a, 3390 .page-template-home-template .ht-main-navigation .ht-menu .current_page_ancestor > a, 3391 .home.blog .ht-main-navigation .ht-menu .current_page_item > a, 3392 .home.blog .ht-main-navigation .ht-menu .current-menu-item > a, 3393 .home.blog .ht-main-navigation .ht-menu .current_page_ancestor > a, 3394 .ht-main-navigation .ht-menu a{ 3395 color: #FFF; 3396 } 3397 3398 .ht-main-navigation .ht-menu ul ul{ 3386 .ht-menu ul ul{ 3399 3387 position: static; 3400 3388 padding: 0; … … 3403 3391 } 3404 3392 3405 .ht-m ain-navigation .ht-menu ul ul ul{3393 .ht-menu ul ul ul{ 3406 3394 margin: 0; 3407 3395 } … … 3434 3422 } 3435 3423 3436 .ht-m ain-navigation .ht-menu ul li:hover > ul{3424 .ht-menu ul li:hover > ul{ 3437 3425 display: none; 3438 3426 } 3439 3427 3440 .ht-m ain-navigation .ht-menu ul ul{3428 .ht-menu ul ul{ 3441 3429 background: none; 3442 }3443 3444 .ht-main-navigation .ht-menu ul ul a{3445 color: #FFF;3446 3430 } 3447 3431 … … 3555 3539 } 3556 3540 3557 .ht- top-footer{3558 margin-left: 0;3541 .ht-main-footer{ 3542 display: block; 3559 3543 } 3560 3544 3561 3545 .ht-footer{ 3562 width: auto ;3546 width: auto !important; 3563 3547 margin: 0 0 30px; 3564 3548 float: none; … … 3730 3714 3731 3715 @media screen and (min-width: 1001px){ 3732 .ht-m ain-navigation{3716 .ht-menu{ 3733 3717 display: block !important; 3734 3718 } -
total/2.0.0/template-parts/content-none.php
r140488 r150054 3 3 * The template part for displaying a message that posts cannot be found. 4 4 * 5 * Learn more: http://codex.wordpress.org/Template_Hierarchy6 5 * 7 6 * @package Total -
total/2.0.0/template-parts/content-page.php
r140488 r150054 10 10 11 11 <div class="page-content"> 12 <?php the_content(); ?>13 <?php12 <?php the_content(); 13 14 14 wp_link_pages(array( 15 15 'before' => '<div class="page-links">' . esc_html__('Pages:', 'total'), -
total/2.0.0/template-parts/content-single.php
r140488 r150054 13 13 <?php total_posted_on(); ?> 14 14 </div><!-- .entry-meta --> 15 15 16 <?php the_content(); ?> 17 16 18 <?php 17 19 wp_link_pages(array( -
total/2.0.0/templates/home-template.php
r140488 r150054 10 10 $total_home_sections = total_home_section(); 11 11 12 get_template_part(' template-parts/section', 'slider');12 get_template_part('sections/section', 'slider'); 13 13 14 14 foreach ($total_home_sections as $total_home_section) { 15 15 $total_home_section = str_replace('total_', '', $total_home_section); 16 16 $total_home_section = str_replace('_section', '', $total_home_section); 17 get_template_part(' template-parts/section', $total_home_section);17 get_template_part('sections/section', $total_home_section); 18 18 } 19 19
Note: See TracChangeset for help on using the changeset viewer.