Make WordPress Themes

Changeset 150054

Timestamp:
06/22/2021 06:28:15 PM (4 years ago)
Author:
themedropbox
Message:

New version of Total - 2.0.0

Location:
total/2.0.0
Files:
154 added
19 deleted
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • total/2.0.0/404.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying 404 pages (not found).
     
    67 */
    78get_header();
    8 ?>
    99
    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 -->
     10do_action('total_404_template');
    1611
    17 
    18 <div class="ht-container">
    19     <div class="oops-text"><?php esc_html_e('Oops! That page can&rsquo;t be found.', 'total'); ?></div>
    20     <span class="error-404"><?php esc_html_e('404', 'total'); ?></span>
    21 </div>
    22 
    23 <?php
    2412get_footer();
  • total/2.0.0/archive.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying archive pages.
    4  *
    5  * Learn more: http://codex.wordpress.org/Template_Hierarchy
    65 *
    76 * @package Total
    87 */
    98get_header();
    10 ?>
    119
    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 -->
     10do_action('total_archive_template');
    2111
    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                     <?php
    32                     /*
    33                      * Include the Post-Format-specific template for the content.
    34                      * If you want to override this in a child theme, then include a file
    35                      * 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                 <?php
    43                 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 <?php
    6312get_footer();
  • total/2.0.0/comments.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying comments.
    45 *
    5  * The area of the page that contains both current comments
    6  * and the comment form.
    76 *
    87 * @package Total
    98 */
    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 &ldquo;%1$s&rdquo;', '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 &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $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 -->
     9do_action('total_comments_template');
  • total/2.0.0/footer.php

    r147862 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying the footer.
     
    78 * @package Total
    89 */
    9 ?>
     10do_action('total_footer_template');
    1011
    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                         <?php
    20                         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                         <?php
    28                         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                         <?php
    36                         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                         <?php
    44                         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                 <?php
    60                 printf(
    61                         // translators: 1-Theme URL, 2-Theme Author
    62                         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  
    88get_header();
    99
    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 }
     10do_action('total_front_page_template');
    2911
    3012get_footer();
  • total/2.0.0/functions.php

    r147879 r150054  
    159159    ));
    160160
    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    }
    170172
    171173    register_sidebar(array(
     
    223225    function total_fonts_url() {
    224226        $fonts_url = '';
    225         $fonts = array();
    226227        $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        }
    244262        /*
    245263         * Translators: To add an additional character subset specific to your language,
    246264         * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language.
    247265         */
    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');
    249267
    250268        if ('cyrillic' == $subset) {
     
    262280                'family' => urlencode(implode('|', $fonts)),
    263281                'subset' => urlencode($subsets),
    264                 'display' => 'swap'
     282                'display' => 'swap',
    265283                    ), '//fonts.googleapis.com/css');
    266284        }
    267285
    268         return esc_url_raw($fonts_url);
     286        return $fonts_url;
    269287    }
    270288
     
    283301    wp_enqueue_script('odometer', get_template_directory_uri() . '/js/odometer.js', array('jquery'), TOTAL_VERSION, true);
    284302    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);
    285304    wp_enqueue_script('total-custom', get_template_directory_uri() . '/js/total-custom.js', array('jquery'), TOTAL_VERSION, true);
    286305    wp_localize_script('total-custom', 'total_localize', array('template_path' => get_template_directory_uri()));
    287306
    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);
    290307    wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.css', array(), TOTAL_VERSION);
    291308    wp_enqueue_style('font-awesome-4.7.0', get_template_directory_uri() . '/css/font-awesome-4.7.0.css', array(), TOTAL_VERSION);
     
    293310    wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', array(), TOTAL_VERSION);
    294311    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);
    295314    wp_add_inline_style('total-style', total_dymanic_styles());
    296315
     
    307326 */
    308327function 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);
    310329    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);
    312331}
    313332
     
    334353
    335354/**
    336  * TGMPA
    337  */
    338 require get_template_directory() . '/inc/class-tgm-plugin-activation.php';
    339 
    340 /**
    341355 * Custom functions that act independently of the theme templates.
    342356 */
    343 require get_template_directory() . '/inc/total-functions.php';
     357require get_template_directory() . '/inc/helper-functions.php';
    344358
    345359/**
    346360 * Customizer additions.
    347361 */
    348 require get_template_directory() . '/inc/customizer.php';
     362require get_template_directory() . '/inc/customizer/customizer.php';
    349363
    350364/**
    351365 * Metabox additions.
    352366 */
    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';
     367require get_template_directory() . '/inc/metabox.php';
     368
     369/**
     370 * Hooks
     371 */
     372require get_template_directory() . '/inc/hooks.php';
    364373
    365374/**
     
    375384require get_template_directory() . '/inc/widgets/widget-personal-info.php';
    376385require get_template_directory() . '/inc/widgets/widget-latest-post.php';
     386
     387/**
     388 * Welcome Page.
     389 */
     390require get_template_directory() . '/welcome/welcome.php';
     391
     392/**
     393 * TGMPA
     394 */
     395require get_template_directory() . '/inc/class-tgm-plugin-activation.php';
     396
  • total/2.0.0/header.php

    r140488 r150054  
    1717
    1818    <body <?php body_class(); ?>>
    19         <?php wp_body_open(); ?>
     19        <?php
     20        wp_body_open();
     21        do_action('total_before_page');
     22        ?>
    2023        <div id="ht-page">
    2124            <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'); ?>
    5227
    5328            <div id="ht-content" class="ht-site-content ht-clearfix">
  • total/2.0.0/inc/style.php

    r147862 r150054  
    55 */
    66function total_dymanic_styles() {
     7    $custom_css = $tablet_css = $mobile_css = "";
    78    $color = get_theme_mod('total_template_color', '#FFC107');
    89    $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}}";
    210457
    211458    return total_css_strip_whitespace($custom_css);
  • total/2.0.0/inc/template-tags.php

    r147862 r150054  
    44 * Custom template tags for this theme.
    55 *
    6  * Eventually, some of the functionality here could be replaced by core features.
    76 *
    87 * @package Total
  • total/2.0.0/inc/widgets/widget-fields.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * @package Total
    45 */
    5 
    66function total_widgets_show_widget_field($instance = '', $widget_field = '', $total_field_value = '') {
    77
    88    extract($widget_field);
    99
    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;
    1212    }
    1313
     
    125125        case 'upload':
    126126            $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%;"/>';
    129129                $image_class = ' hidden';
    130130            }
     
    132132            <div class="attachment-media-view">
    133133
    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
    136136                <div class="placeholder<?php echo esc_attr($image_class); ?>">
    137137                    <?php esc_html_e('No image selected', 'total'); ?>
     
    144144                    <button type="button" class="button total-delete-button align-left"><?php esc_html_e('Remove', 'total'); ?></button>
    145145                    <button type="button" class="button total-upload-button alignright"><?php esc_html_e('Select Image', 'total'); ?></button>
    146                    
     146
    147147                    <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) ?>"/>
    148148                </div>
    149149
    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 } ?>
    154154
    155155            </div>
    156             <?php                       
     156            <?php
    157157            break;
    158158    }
  • total/2.0.0/index.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The main template file.
     
    67 */
    78get_header();
    8 ?>
    99
    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; ?>
     10do_action('total_home_template');
    1811
    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                     <?php
    31                     /*
    32                      * Include the Post-Format-specific template for the content.
    33                      * If you want to override this in a child theme, then include a file
    34                      * 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                 <?php
    42                 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 <?php
    6412get_footer();
  • total/2.0.0/js/total-custom.js

    r147862 r150054  
    99jQuery(function ($) {
    1010
    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                });
    1736            }
    1837        });
     
    100119
    101120    $('.toggle-bar').click(function () {
    102         $(this).next('.ht-main-navigation').slideToggle();
     121        $(this).next('.ht-menu').slideToggle();
    103122        totalKeyboardLoop($('.ht-main-navigation'));
    104123        return false;
     
    263282
    264283    }
    265    
     284
    266285    var totalKeyboardLoop = function (elem) {
    267286
  • total/2.0.0/page.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying all pages.
     
    67 */
    78get_header();
    8 $total_hide_title = get_post_meta($post->ID, 'total_hide_title', true);
    99
    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 } ?>
     10do_action('total_page_template');
    2311
    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                 <?php
    33                 // 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 <?php
    4812get_footer();
  • total/2.0.0/search.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying search results pages.
     
    67 */
    78get_header();
    8 ?>
    99
    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 -->
     10do_action('total_search_template');
    2311
    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                     <?php
    35                     /**
    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 file
    38                      * 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                 <?php
    46                 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 <?php
    6812get_footer();
  • total/2.0.0/sidebar-shop.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The sidebar containing the main widget area.
     
    56 * @package Total
    67 */
    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 -->
     8do_action('total_sidebar_shop_template');
  • total/2.0.0/sidebar.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The sidebar containing the main widget area.
     
    56 * @package Total
    67 */
    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 }
     8do_action('total_sidebar_template');
  • total/2.0.0/single.php

    r140488 r150054  
    11<?php
     2
    23/**
    34 * The template for displaying all single posts.
     
    67 */
    78get_header();
    8 $total_hide_title = get_post_meta($post->ID, 'total_hide_title', true);
    99
    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 } ?>
     10do_action('total_single_template');
    1911
    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                 <?php
    29                 // 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 <?php
    4512get_footer();
  • total/2.0.0/style.css

    r148274 r150054  
    55Author URI: https://hashthemes.com
    66Description: 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.59
     7Version: 2.0.0
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1818--------------------------------------------------------------*/
    1919html {
    20     font-family: sans-serif;
    2120    -webkit-text-size-adjust: 100%;
    2221    -ms-text-size-adjust:     100%;
     
    628627.entry-content:after,
    629628.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 {
    635630    content: "";
    636631    display: table;
     
    639634.ht-clearfix:after,
    640635.entry-content:after,
    641 .comment-content:after,
    642 .site-footer:after,
    643 .ht-container:after {
     636.comment-content:after{
    644637    clear: both;
    645638}
     
    717710.ht-latest-posts li{
    718711    padding: 12px 0 !important;
    719     font-size: 14px;
    720712    line-height: 1.5;
    721713}
     
    810802    width: 80px;
    811803    text-align: right;
    812     font-family: 'Oswald', sans-serif;
    813804}
    814805
     
    874865
    875866.entry-header .entry-title{
    876     font-weight: 300;
    877867    letter-spacing: 1px;
    878868    margin-bottom: 10px;
     
    12921282--------------------------------------------------------------*/
    12931283.ht-container{
    1294     width: 1170px;
     1284    max-width: 1170px;
    12951285    margin: 0 auto;
     1286}
     1287
     1288body.ht-boxed #ht-page {
     1289    max-width: 1250px;
     1290    margin: 0 auto;
     1291    position: relative;
     1292    background: #FFF;
    12961293}
    12971294
     
    12991296## Header
    13001297--------------------------------------------------------------*/
    1301 #ht-masthead{
     1298.ht-site-header{
    13021299    border-top: 4px solid #FFC107;
    13031300    background: #FFF;
    1304     height: 94px;
    13051301    border-bottom: 1px solid #F1F1F1;
    13061302    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{
    13131308    position: fixed;
    13141309    left: 0;
    13151310    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;
    13201318}
    13211319
    13221320#ht-content{
    13231321    clear: both;
    1324 }
    1325 
    1326 body.ht-sticky-header #ht-content{
    1327     position: relative;
    1328     z-index: 9;
    1329     padding-top: 94px;
    13301322}
    13311323
     
    13431335    float: left;
    13441336    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;
    13531337}
    13541338
    13551339#ht-site-branding img{
    1356     max-height: 60px;
    1357     width: auto;
     1340    height: auto;
    13581341}
    13591342
     
    13761359
    13771360.ht-site-title{
    1378     font-family: 'Oswald', sans-serif;
    13791361    font-weight: 400;
    13801362    margin: 0 0 8px;
     
    14831465## Menus
    14841466--------------------------------------------------------------*/
    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 {
    15031468    list-style: none;
    15041469    margin: 0;
     
    15061471}
    15071472
    1508 .ht-main-navigation .ht-menu li {
     1473.ht-menu li {
    15091474    float: left;
    15101475    position: relative;
     
    15121477}
    15131478
    1514 .ht-main-navigation .ht-menu a {
     1479.ht-menu a {
    15151480    position: relative;
    15161481    display: block;
     
    15191484    text-transform: uppercase;
    15201485    font-size: 14px;
    1521     font-family: 'Oswald', sans-serif;
    15221486    line-height: 36px;
    15231487    padding: 0 15px;
     
    15281492}
    15291493
    1530 .ht-main-navigation .ht-menu ul ul {
     1494.ht-menu ul ul {
    15311495    display: none;
    15321496    position: absolute;
     
    15421506}
    15431507
    1544 .ht-sticky .ht-main-navigation .ht-menu ul ul{
     1508.ht-sticky .ht-menu ul ul{
    15451509    margin-top: 17px;
    15461510}
    15471511
    1548 .ht-main-navigation .ht-menu > ul > li:last-child > ul{
     1512.ht-menu > ul > li:last-child > ul{
    15491513    left: auto;
    15501514    right: 0;
    15511515}
    15521516
    1553 .ht-main-navigation .ht-menu ul ul ul {
     1517.ht-menu ul ul ul {
    15541518    left: 100%;
    15551519    top: 0;
     
    15581522}
    15591523
    1560 .ht-sticky .ht-main-navigation .ht-menu ul ul ul{
     1524.ht-sticky .ht-menu ul ul ul{
    15611525    margin-top: 0
    15621526}
    15631527
    1564 .ht-main-navigation .ht-menu ul ul a {
     1528.ht-menu ul ul a {
    15651529    text-transform: none;
    15661530    font-weight: 400;
     
    15711535}
    15721536
    1573 .ht-main-navigation .ht-menu ul ul li {
     1537.ht-menu ul ul li {
    15741538    float: none;
    15751539    margin: 0 0 5px;
    15761540}
    15771541
    1578 .ht-main-navigation .ht-menu ul ul li:last-child{
     1542.ht-menu ul ul li:last-child{
    15791543    margin-bottom: 0;
    15801544}
    15811545
    1582 .ht-main-navigation .ht-menu ul li:hover > ul {
     1546.ht-menu ul li:hover > ul {
    15831547    display: block;
    15841548}
    15851549
    1586 .ht-main-navigation .ht-menu li:hover > a,
    1587 .ht-main-navigation .ht-menu .current_page_item > a,
    1588 .ht-main-navigation .ht-menu .current-menu-item > a,
    1589 .ht-main-navigation .ht-menu .current_page_ancestor > a,
    1590 .ht-main-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{
    15911555    color: #FFF;
    15921556    background: #FFC107;
     1557}
     1558
     1559.ht-menu ul ul li.menu-item:hover > a{
     1560    background: #FFC107;
     1561    color: #FFF;
    15931562}
    15941563
     
    16881657    padding: 0 10%;
    16891658    line-height: 1.2;
    1690     font-family: 'Oswald', sans-serif;
    16911659    letter-spacing: 2px;
    16921660    text-transform: uppercase;
     
    20872055    margin-bottom: 25px;
    20882056    position: relative;
    2089     z-index: 99;
     2057    z-index: 9;
    20902058}
    20912059
     
    23542322    margin-bottom: 25px;
    23552323    letter-spacing: 3px;
    2356     font-family: 'Oswald', sans-serif;
    23572324    font-weight: 400;
    23582325}
     
    25972564    border-radius: 1px;
    25982565    margin: 0 4px;
    2599     font-family: 'Oswald', sans-serif;
    26002566}
    26012567
     
    26222588--------------------------------------------------------------*/
    26232589#ht-colophon{
    2624     background: url(images/footer-bg.jpg);
    26252590    border-top: 4px solid #FFC107;
    26262591    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;
    26272603}
    26282604
     
    26322608}
    26332609
    2634 #ht-colophon a{
     2610.ht-site-footer a{
    26352611    color: #BBB;
    26362612    text-decoration: none;
    26372613}
    26382614
    2639 #ht-colophon .widget-title{
     2615.ht-main-footer .widget-title{
    26402616    letter-spacing: 1px;
    26412617    text-transform: uppercase;
     
    26442620}
    26452621
    2646 #ht-top-footer{
     2622#ht-main-footer{
     2623    position: relative;
    26472624    color: #BBB;
    26482625    padding: 50px 0;
    26492626}
    26502627
    2651 .ht-top-footer{
    2652     margin-left: -3%;
     2628.ht-main-footer{
     2629    display: flex;
     2630    margin: 0 -20px;
    26532631}
    26542632
    26552633.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%;
    26592652}
    26602653
     
    26782671
    26792672#ht-bottom-footer{
     2673    position: relative;
    26802674    background: rgba(0,0,0,0.3);
    26812675    padding: 30px 0;
     
    26962690    height: 60px;
    26972691    width: 40px;
    2698     text-align: center;
    26992692    color: #FFF;
    2700     line-height: 60px;
    27012693    z-index: 99;
    27022694    cursor: pointer;
     2695    display: flex;
     2696    justify-content: center;
     2697    align-items: center;
    27032698    transition: all 0.3s ease;
    27042699    -moz-transition: all 0.3s ease;
     
    28652860.woocommerce ul.products li.product .woocommerce-loop-product__title,
    28662861.woocommerce ul.products li.product h3{
    2867     font-family: 'Pontano Sans', sans-serif;
    28682862    margin: 0 0 6px;
    28692863    padding: 0;
     
    33523346    }
    33533347
     3348    .ht-sticky-header .headroom--not-top#ht-masthead{
     3349        position: relative;
     3350    }
     3351
    33543352    .ht-sticky-header #ht-content{
    33553353        padding-top: 0 !important;
    33563354    }
    33573355
    3358     #ht-site-navigation{
     3356    #ht-site-navigation .ht-menu{
    33593357        display: none;
    33603358        position: absolute;
     3359        background: #FFF;
    33613360        left: 0;
    33623361        right: 0;
    33633362        top: 90px;
    3364         background: #FFC107;
    33653363        z-index: 999;
    33663364        width: 100%;
     
    33693367    }
    33703368
    3371     .ht-main-navigation .ht-menu{
     3369    .ht-menu{
    33723370        float: none;
    33733371    }
    33743372
    3375     .ht-main-navigation .ht-menu li{
     3373    .ht-menu li{
    33763374        float: none;
    33773375        margin-left: 0;
     
    33793377    }
    33803378
    3381     .ht-main-navigation .ht-menu a,
    3382     .ht-main-navigation .ht-menu ul ul a{
     3379    .ht-menu a,
     3380    .ht-menu ul ul a{
    33833381        line-height: 1.3;
    33843382        padding: 15px 20px;
     
    33863384    }
    33873385
    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{
    33993387        position: static;
    34003388        padding: 0;
     
    34033391    }
    34043392
    3405     .ht-main-navigation .ht-menu ul ul ul{
     3393    .ht-menu ul ul ul{
    34063394        margin: 0;
    34073395    }
     
    34343422    }
    34353423
    3436     .ht-main-navigation .ht-menu ul li:hover > ul{
     3424    .ht-menu ul li:hover > ul{
    34373425        display: none;
    34383426    }
    34393427
    3440     .ht-main-navigation .ht-menu ul ul{
     3428    .ht-menu ul ul{
    34413429        background: none;
    3442     }
    3443 
    3444     .ht-main-navigation .ht-menu ul ul a{
    3445         color: #FFF;
    34463430    }
    34473431
     
    35553539    }
    35563540
    3557     .ht-top-footer{
    3558         margin-left: 0;
     3541    .ht-main-footer{
     3542        display: block;
    35593543    }
    35603544
    35613545    .ht-footer{
    3562         width: auto;
     3546        width: auto !important;
    35633547        margin: 0 0 30px;
    35643548        float: none;
     
    37303714
    37313715@media screen and (min-width: 1001px){
    3732     .ht-main-navigation{
     3716    .ht-menu{
    37333717        display: block !important;
    37343718    }
  • total/2.0.0/template-parts/content-none.php

    r140488 r150054  
    33 * The template part for displaying a message that posts cannot be found.
    44 *
    5  * Learn more: http://codex.wordpress.org/Template_Hierarchy
    65 *
    76 * @package Total
  • total/2.0.0/template-parts/content-page.php

    r140488 r150054  
    1010
    1111    <div class="page-content">
    12         <?php the_content(); ?>
    13         <?php
     12        <?php the_content();
     13       
    1414        wp_link_pages(array(
    1515            'before' => '<div class="page-links">' . esc_html__('Pages:', 'total'),
  • total/2.0.0/template-parts/content-single.php

    r140488 r150054  
    1313            <?php total_posted_on(); ?>
    1414        </div><!-- .entry-meta -->
     15       
    1516        <?php the_content(); ?>
     17       
    1618        <?php
    1719        wp_link_pages(array(
  • total/2.0.0/templates/home-template.php

    r140488 r150054  
    1010$total_home_sections = total_home_section();
    1111
    12 get_template_part('template-parts/section', 'slider');
     12get_template_part('sections/section', 'slider');
    1313
    1414foreach ($total_home_sections as $total_home_section) {
    1515    $total_home_section = str_replace('total_', '', $total_home_section);
    1616    $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);
    1818}
    1919
Note: See TracChangeset for help on using the changeset viewer.