/** * Template changes. */ function woo_template() { /* * Conditionally. */ if (is_woo()) { // } /** * Loop. */ require get_stylesheet_directory() . '/includes/woocommerce/template/loop.php'; }
echo '<section class="page-title"><div class="container clearfix">'; $post_title = is_woo() ? woocommerce_page_title(false) : get_the_title(); $page_tile = is_front_page() ? __("HOME", THEME_SLUG) : (isset($GLOBALS['wp_query']->tribe_is_event_query) ? $post_title ? $post_title : __("EVENTS", THEME_SLUG) : (is_404() ? __('404 PAGE', THEME_SLUG) : $post_title)); echo '<h1>' . $page_tile . "</h1>"; //echo '<h1>'' . ( is_front_page() ? __("HOME",THEME_SLUG) : get_the_title() ) . "</h1>"; echo cws_get_option("breadcrumbs") ? is_woo() ? woocommerce_breadcrumb() : dimox_breadcrumbs() : ""; echo '</div></section>'; } } } else { echo '<section class="page-title"><div class="container clearfix">'; $post_title = is_woo() ? woocommerce_page_title(false) : get_the_title(); $page_tile = __("Search", THEME_SLUG); echo '<h1>' . $page_tile . "</h1>"; //echo '<h1>'' . ( is_front_page() ? __("HOME",THEME_SLUG) : get_the_title() ) . "</h1>"; echo cws_get_option("breadcrumbs") ? is_woo() ? woocommerce_breadcrumb() : dimox_breadcrumbs() : ""; echo '</div></section>'; } if (is_front_page() && !is_search() && !isset($_GET['asearch'])) { $benefits_sb = cws_get_option("benefits-sidebar"); if (!empty($benefits_sb)) { ob_start(); dynamic_sidebar($benefits_sb); $benefits_sb_content = ob_get_clean(); if (!empty($benefits_sb_content)) { ?> <section class="benefits <?php echo $slider_type == 'video-slider' ? 'under' : ''; ?> "> <div class="container">