function theme_woocommerce_output_content_wrapper() { $layout = wt_get_option('general', 'woo_layout'); if ($layout != 'full') { $product_class = 'wt_product_columns_3 '; } else { $product_class = 'wt_product_columns_4 '; } ?> </div> <!-- End headerWrapper --> <div id="wt_containerWrapper" class="clearfix"> <div id="containerWrapp" class="clearfix"> <?php wt_theme_generator('wt_breadcrumbs', get_queried_object_id()); wt_theme_generator('wt_custom_header', get_queried_object_id()); ?> <div id="wt_container" class="<?php echo $product_class; ?> clearfix"> <?php wt_theme_generator('wt_content', get_queried_object_id()); ?> <div class="container"> <div class="row"> <?php if (wt_get_option('general', 'woo_layout') == 'full') { echo '<div class="col-sm-12">'; } ?> <?php if (wt_get_option('general', 'woo_layout') == 'left') { echo '<aside id="wt_sidebar" class="col-sm-3 col-md-3 col-lg-3 col-xs-12">'; get_sidebar(); echo '</aside> <!-- End wt_sidebar -->'; } ?> <?php if (wt_get_option('general', 'woo_layout') != 'full') { echo '<div id="wt_main" role="main" class="col-lg-9 col-md-9 col-sm-9 col-xs-12">'; echo '<div id="wt_mainInner">'; } ?> <?php }
get_header(); ?> </div> <!-- End headerWrapper --> <div id="wt_containerWrapper" class="clearfix"> <?php wt_theme_generator('wt_breadcrumbs', $post->ID); ?> <?php wt_theme_generator('wt_custom_header', $post->ID); ?> <?php wt_theme_generator('wt_containerWrapp', $post->ID); ?> <div id="wt_container" class="clearfix"> <?php wt_theme_generator('wt_content', $post->ID); ?> <div class="container"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php if (has_post_thumbnail()) { ?> <div class="styled_image"> <?php the_post_thumbnail('full'); ?> </div>
<div class="container"> <?php if ($layout != 'full') { echo '<div class="row">'; echo '<div id="wt_main" role="main" class="col-lg-9 col-md-9 col-sm-9 col-xs-12">'; echo '<div id="wt_mainInner">'; } ?> <?php if (have_posts()) { the_post(); } ?> <?php wt_theme_generator('wt_blog_author_info'); ?> <?php rewind_posts(); get_template_part('loop', 'author'); ?> <?php if ($layout != 'full') { echo '</div> <!-- End wt_mainInner -->'; echo '</div> <!-- End wt_main -->'; } ?> <?php if ($layout != 'full') { echo '<aside id="wt_sidebar" class="col-sm-3 col-md-3 col-lg-3 col-xs-12">'; get_sidebar();
<h2 class="blogEntry_title"><a href="<?php echo get_permalink(); ?> " rel="bookmark" title="<?php printf(__("Permanent Link to %s", 'wt_front'), get_the_title()); ?> "><?php the_title(); ?> </a></h2> <?php if (!is_search()) { ?> <footer class="blogEntry_metadata"> <?php echo wt_theme_generator('wt_blog_meta'); ?> </footer> <?php } ?> <?php if (wt_get_option('blog', 'display_full')) { global $more; $more = 0; the_content(__('Read more »', 'wt_front'), false); } else { the_excerpt(); ?> <?php wp_link_pages(array('before' => '<div class="wp-pagenavi post_navi"><span class="page-links-title">' . __('Pages:', 'wt_front') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
?> </div> <?php if ($responsiveNav == 'drop_down') { wp_enqueue_script('mobileMenu'); } ?> <!-- Navigation --> <?php wt_theme_generator('wt_nav', $post->ID); ?> <?php if (has_nav_menu('primary-menu')) { wt_theme_generator('wt_menu'); } else { echo '<ul class="menu nav navbar-nav navbar-right">'; $short_walker = new My_Page_Walker(); wp_list_pages(array('walker' => $short_walker, 'link_before' => '<span>', 'link_after' => '</span>', 'title_li' => '')); echo '</ul>'; } ?> </nav> </div> <!-- End container --> </header> <!-- End header --> <?php echo "\n"; ?> </div> <!-- End headerWrapper --> </div> <!-- End wt_page -->
} ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " class="portEntry"> <?php if (wt_get_option('portfolio', 'featured_image')) { ?> <?php echo wt_theme_generator('wt_portfolio_featured_image'); ?> <?php } ?> <?php //wt_theme_generator('wt_breadcrumbs',$post->ID); ?> <div class="portEntry_content"> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="wp-pagenavi post_navi"><span class="page-links-title">' . __('Pages:', 'wt_front') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>')); ?>
protected function WT_VCSC_BlogList(&$wt_query, $atts, $current) { extract($atts); $anim_class_left = $this->wt_sc->getWTCSSAnimationClass($css_animation, $anim_type); $anim_class_right = $this->wt_sc->getWTCSSAnimationClass($css_animation_right, $anim_type); $anim_data_left = $this->wt_sc->getWTCSSAnimationData($css_animation, $anim_delay); $anim_data_right = $this->wt_sc->getWTCSSAnimationData($css_animation_right, $anim_delay); if ($grid == 'true') { $class = array('half', 'third', 'fourth', 'sixth'); $cssColumn = $class[$columns - 2]; if ($cssColumn == 'half') { $css = 'col-lg-6 col-md-6 col-sm-6'; } elseif ($cssColumn == 'third') { $css = 'col-lg-4 col-md-4 col-sm-4'; } elseif ($cssColumn == 'fourth') { $css = 'col-lg-3 col-md-3 col-sm-3'; } elseif ($cssColumn == 'sixth') { $css = 'col-lg-2 col-md-2 col-sm-2'; } } else { $start = ($current - 1) * $posts_per_column + 1; $end = $current * $posts_per_column; if ($wt_query->post_count < $start) { return ''; } } //global $layout; $layout = 'full'; $output = ''; // If sortable blog shortcode if ($masonry == 'true') { wp_enqueue_script('jquery-isotope'); wp_enqueue_script('jquery-init-isotope'); $output .= '<div class="wt_isotope">'; $element = 'wt_element '; } else { $element = ''; } $i = 0; // Get global $post var global $post; if ($wt_query->have_posts()) { while ($wt_query->have_posts()) { $i++; $anim_class = ''; $anim_data = ''; if ($grid == 'false') { if ($i < $start) { continue; } if ($i > $end) { break; } } $wt_query->the_post(); if ($grid == 'true' && $columns != 1) { $output .= "<div class=\"{$element}{$css}\">"; } if ($columns == 1) { if ($i & 1) { $anim_class = $anim_class_left; $anim_data = $anim_data_left; } else { $anim_class = $anim_class_right; $anim_data = $anim_data_right; } $output .= '<article data-order="' . $i . '" id="post-' . get_the_ID() . '" class="blogEntry col-lg-12 col-md-12 col-sm-12' . $anim_class . ' clearfix"' . $anim_data . '><span class="note-arrow"></span>'; } else { $output .= '<article data-order="' . $i . '" id="post-' . get_the_ID() . '" class="blogEntry clearfix"><span class="note-arrow"></span>'; } /* Display featured entry */ if ($featured_entry == 'true') { $output .= '<header class="blogEntry_frame entry_' . $featured_entry_type . '">'; $thumbnail_type = get_post_meta($post->ID, '_thumbnail_type', true); // Default sizes for featured image / slide $width = 705; $height = 380; switch ($thumbnail_type) { case "timage": $output .= wt_theme_generator('wt_blog_featured_image', $featured_entry_type, $layout, $width, $height); break; case "tvideo": $video_link = get_post_meta($post->ID, '_featured_video', true); $output .= '<div class="blog-thumbnail-video">'; $output .= wt_video_featured($video_link, $featured_entry_type, $layout); $output .= '</div>'; break; case "tplayer": wp_enqueue_script('mediaelementjs-scripts'); $player_link = get_post_meta($post->ID, '_thumbnail_player', true); $output .= '<div class="blog-thumbnail-player">'; $output .= wt_media_player($featured_entry_type, $layout, $player_link); $output .= '</div>'; break; case "tslide": $output .= '<div class="blog-thumbnail-slide">'; $output .= wt_get_slide($featured_entry_type, $layout, $width, $height); $output .= '</div>'; break; } $output .= '</header>'; } $output .= '<div class="wt_dates"><div class="entry_date">'; $output .= '<a href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '"><span class="day">' . get_the_time('d') . '</span><span class="month">' . get_the_time('M') . '</span></a></div>'; $output .= '</div>'; /* Display description (post excerpt / content) */ if ($excerpt == 'false') { $output .= '<div class="blogEntry_content">'; if ($title == 'true') { $output .= '<h3 class="blogEntry_title"><a href="' . get_permalink() . '" rel="bookmark" title="' . sprintf(__("Permanent Link to %s", 'wt_vcsc'), get_the_title()) . '">' . get_the_title() . '</a></h3>'; } if ($meta == 'true') { $output .= '<footer class="blogEntry_metadata">'; $output .= wt_theme_generator('wt_blog_meta'); $output .= '</footer>'; } if ($read_more == 'true') { $readmore_link = '<p class="readMore"><a href="' . get_permalink($id) . '" title="' . $read_more_text . '" rel="bookmark" class="read_more_link">' . $read_more_text . ' <span class="wt-readmore-rarr">»</span></a></p>'; $output .= apply_filters('wt_readmore_link', $readmore_link); } $output .= '</div>'; // End blogEntry_content div } else { /* If description is YES */ $output .= '<div class="blogEntry_content">'; if ($title == 'true') { $output .= '<h3 class="blogEntry_title"><a href="' . get_permalink() . '" rel="bookmark" title="' . sprintf(__("Permanent Link to %s", 'wt_vcsc'), get_the_title()) . '">' . get_the_title() . '</a></h3>'; } if ($meta == 'true') { $output .= '<footer class="blogEntry_metadata">'; $output .= wt_theme_generator('wt_blog_meta'); $output .= '</footer>'; } /* Display all post content or post excerpt */ if ($full == 'true') { global $more; $more = 0; $content = get_the_content(__("Read More", 'wt_vcsc'), false); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $output .= $content; } else { /* $content = get_the_excerpt(); $content = apply_filters('the_excerpt', $content); $output .= '<div class="blogEntry_excerpt">'.$content.'</div>'; $output .= '<p class="readMore"><a class="read_more_link" href="'.get_permalink().'">'. __('Read more »','wt_vcsc').'</a></p>'; */ $content = WT_VCSC_Excerpt($excerpt_length, $read_more, $read_more_text); $output .= '<div class="blogEntry_excerpt">' . $content . '</div>'; } $output .= '</div>'; // End blogEntry_content div if ($featured_entry_type == 'left') { $output .= '<div class="wt_clearboth"></div>'; } } $output .= '</article>'; if ($grid == 'true' && $columns != 1) { $output .= '</div>'; } } } return $output; }
<div id="wt_sidebarInner"> <?php if (isset($post)) { wt_theme_generator('wt_sidebar', $post->ID); } else { wt_theme_generator('wt_sidebar'); } ?> </div> <!-- End wt_sidebarInner -->
} $type = get_post_meta($post->ID, '_intro_type', true); $intro_title = get_post_meta($post->ID, '_intro_title', true); $intro_text = get_post_meta($post->ID, '_intro_text', true); get_header(); ?> </div> <!-- End headerWrapper --> <div id="wt_containerWrapper" class="clearfix"> <?php wt_theme_generator('wt_breadcrumbs', $post->ID); ?> <?php wt_theme_generator('wt_custom_header', $post->ID); ?> <?php wt_theme_generator('wt_containerWrapp', $post->ID); ?> <?php if (!empty($intro_title) || !empty($intro_text)) { echo '<section class="wt_intro_section"><div class="intro_box wt_animate wt_animate_if_visible" data-animation="fadeInUp">'; echo apply_filters('the_content', get_post_meta($post->ID, '_intro_title', true)); echo apply_filters('the_content', get_post_meta($post->ID, '_intro_text', true)); echo '</div></section>'; } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php
function wt_custom_header($post_id = NULL) { $type = get_post_meta($post_id, '_intro_type', true); $textcolor = wt_check_input(get_post_meta($post_id, '_intro_text_color', true)); if (!empty($textcolor) && $textcolor != "transparent") { $textcolor = 'color:' . $textcolor . ';'; } else { $textcolor = ''; } if (is_blog()) { $blog_page_id = wt_get_option('blog', 'blog_page'); $post_id = get_object_id($blog_page_id, 'page'); } if (is_single() || is_page() || is_front_page() && $post_id != NULL || is_home() && $post_id != NULL) { $type = get_post_meta($post_id, '_intro_type', true); if (empty($type)) { $type = 'default'; } if (wt_get_option('introheader', 'slideshow_everywhere') && $type == 'default') { $type = 'slideshow'; } if (wt_get_option('introheader', 'static_image_everywhere') && $type == 'default') { $type = 'static_image'; } /*if ((wt_get_option('general', 'woocommerce')) && (is_woocommerce() || is_cart() || is_checkout() || is_account_page())) { $type = 'default'; }*/ if (is_front_page() && $type == 'default') { $type = 'slideshow'; } if ($type == 'disable') { return; } if ($type == 'slideshow') { $stype = get_post_meta($post_id, '_slideshow_type', true); if (empty($stype) || $stype == 'default') { $stype = wt_get_option('introheader', 'slideshow_type'); } //return wt_theme_generator('wt_slideShow',$stype); } if ($type == 'static_image') { return wt_theme_generator('wt_staticImage', $type); } if ($type == 'static_video') { return wt_theme_generator('wt_staticVideo', $type); } if (in_array($type, array('default', 'title', 'title_custom'))) { $custom_title = get_post_meta($post_id, '_custom_title', true); if (!empty($custom_title)) { $title = $custom_title; } else { $title = get_the_title($post_id); } } $blog_page_id = wt_get_option('blog', 'blog_page'); if ($type == 'default' && is_singular('post') && $post_id != $blog_page_id) { //$show_in_header = wt_get_option('blog','show_in_header'); //if($show_in_header){ //$title = get_the_title($post_id); /*$text = '<span class="single_metadata">'; if (wt_get_option('blog','single_meta_date')){ $text .= '<span class="single_date">'.__('Date: ', 'wt_front').'</span>'; $text .= '<a href="'.get_month_link(get_the_time('Y'), get_the_time('m')).'">'.get_the_time('d F Y').'</a><span class="meta_separator">/</span>'; } if (wt_get_option('blog','single_meta_category')){ $text .= '<span class="single_category">'.__('Categories: ', 'wt_front').'</span>'; $text .= get_the_category_list(', '); $text .= '<span class="meta_separator">/</span>'; } $all_the_tags = get_the_tags(); if (wt_get_option('blog','single_meta_tags') && $all_the_tags){ $text .= '<span class="single_tags">'.__('Tags: ', 'wt_front').'</span>'; $text .= get_the_tag_list('',', '); $text .= '<span class="meta_separator">/</span>'; } $text .= get_edit_post_link( __( 'Edit', 'wt_front' ), '<span class="edit-link">', '</span>' ); if(wt_get_option('blog','single_meta_comment') && (comments_open())){ ob_start(); comments_popup_link(__('No comments ','wt_front'), __('1 Comment','wt_front'), __('% Comments','wt_front'),''); $text .= ob_get_clean(); } $text .= '</span>';*/ //}else{ return $this->wt_custom_header($blog_page_id); //} } if (in_array($type, array('custom', 'title_custom'))) { $text = trim(get_post_meta($post_id, '_custom_introduce_text', true)); } } if (is_archive()) { if (wt_get_option('general', 'woocommerce') && (is_shop() || is_product_category() || is_product())) { $custom_title = get_post_meta($post_id, '_custom_title', true); $text = trim(get_post_meta($post_id, '_custom_introduce_text', true)); if (!empty($custom_title)) { $title = $custom_title; } else { $title = get_the_title(get_option('woocommerce_shop_page_id')); } } else { $title = __('Archives', 'wt_front'); } if (is_category()) { $text = sprintf(__('Category Archive for: <strong>"%s"</strong>', 'wt_front'), single_cat_title('', false)); } elseif (is_tag()) { $text = sprintf(__('Tag Archives for: <strong>"%s"</strong>', 'wt_front'), single_tag_title('', false)); } elseif (is_day()) { $text = sprintf(__('Daily Archive for: <strong>"%s"</strong>', 'wt_front'), get_the_time('F jS, Y')); } elseif (is_month()) { $text = sprintf(__('Monthly Archive for: <strong>"%s"</strong>', 'wt_front'), get_the_time('F, Y')); } elseif (is_year()) { $text = sprintf(__('Yearly Archive for: <strong>"%s"</strong>', 'wt_front'), get_the_time('Y')); } elseif (is_author()) { if (get_query_var('author_name')) { $curauth = get_user_by('slug', get_query_var('author_name')); } else { $curauth = get_userdata(get_query_var('author')); } $text = sprintf(__('Author Archive for: <strong>"%s"</strong>', 'wt_front'), $curauth->nickname); } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { $text = __('Blog Archives', 'wt_front'); } elseif (is_tax()) { if (wt_get_option('general', 'woocommerce') && is_product_category()) { $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy')); $text = sprintf(__('Category: %s', 'wt_front'), $term->name); } else { $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy')); $text = sprintf(__('Archives for: <strong>"%s"</strong>', 'wt_front'), $term->name); } } } if (is_404()) { $title = __("Sorry! We couldn't find it.", "wt_front"); $text = __("You have requested a page or file which does not exists anymore. Below are a few options to find what you are looking for.", 'wt_front'); } if (is_search()) { $title = __('Search', 'wt_front'); $text = sprintf(__('Search Results for: "%s"', 'wt_front'), stripslashes(strip_tags(get_search_query()))); } if (function_exists('is_woocommerce') && is_woocommerce()) { if (function_exists('is_shop') && is_shop()) { $shop_id = woocommerce_get_page_id('shop'); if ($shop_id != $post_id) { $type = get_post_meta($shop_id, '_intro_type', true); if (empty($type)) { $type = 'default'; } if ($type !== 'default') { return wt_theme_generator('wt_custom_header', $shop_id, false, true); } } } } if (function_exists('is_woocommerce') && (is_product() || is_product_category())) { $shop_id = woocommerce_get_page_id('shop'); if ($shop_id != $post_id) { $type = get_post_meta($shop_id, '_intro_type', true); if ($type !== 'default') { return wt_theme_generator('wt_custom_header', $shop_id, false, true); } else { $title = get_the_title(get_option('woocommerce_shop_page_id')); } } } echo wt_theme_generator('wt_intro', $post_id); echo "\n\t\t" . '<div class="container">' . "\n"; if (is_front_page() && wt_get_option('general', 'intro_header_text')) { //echo "\n<div id='introHeaderWidget'>\n"; //echo '<h1>'.wt_get_option('general','intro_header_text').'</h1>'; //echo "\n</div>\n"; } echo "\t\t\t" . '<div id="introType" class="wt_intro"><div class="intro_text">'; if (isset($title)) { if (!empty($textcolor)) { echo '<h1 style="' . $textcolor . '">' . $title . '</h1>'; } else { echo '<h1>' . $title . '</h1>'; } } if (isset($text)) { echo '<h3 class="custom_title">' . $text . '</h3>'; } echo "</div></div>\n\t\t"; if ($type != 'slideshow' || $type != 'disable' || $type != 'static_image' || $type != 'static_video') { //wt_theme_generator('wt_breadcrumbs',$post_id); } echo "</div>\n\t"; echo "</header>\n"; }
wt_theme_generator('wt_footer_sidebar'); ?> </div> <?php break; } } ?> </div> <!-- End row --> </div> <!-- End container --> </footer> <!-- End footer --> <?php } if (wt_get_option('footer', 'sub_footer')) { wt_theme_generator('wt_footerBottom', $post->ID); ?> <?php if (wt_get_option('footer', 'copyright')) { ?> <div id="copyright"> <p class="copyright"> <?php echo wpml_t(THEME_NAME, 'Copyright Footer Text', stripslashes(wt_get_option('footer', 'copyright'))); ?> </div> <?php } ?> <?php dynamic_sidebar(__('Footer Bottom Area', 'wt_admin'));
echo '<h1>' . $title . '</h1>'; } if (isset($text)) { echo '<h3 class="custom_title">' . $text . '</h3>'; } echo "</div></div>\n\t\t"; echo "</div>\n\t"; echo "</header>\n"; ?> <div id="wt_containerWrapp" class="clearfix"> <div id="wt_container" class="clearfix"> <div id="wt_content"> <div class="container"> <div class="row"> <?php wt_theme_generator('wt_breadcrumbs'); ?> <?php if ($layout != 'full') { echo '<div id="wt_main" role="main" class="col-lg-9 col-md-9 col-sm-9 col-xs-12">'; echo '<div id="wt_mainInner">'; } ?> <?php $page = get_query_var('paged') ? get_query_var('paged') : 1; $s = get_query_var('s'); query_posts("s={$s}&paged={$page}&cat="); get_template_part('loop', 'search'); ?> <?php
</a></li> <li><a href="#tab2"><?php _e('Popular Posts', 'wt_front'); ?> </a></li> </ul> <div class="panes blogPosts"> <div class="pane" style="display:block"> <?php wt_theme_generator('wt_blog_related_posts'); ?> <div class="wt_clearboth"></div> </div> <div class="pane"> <?php wt_theme_generator('wt_blog_popular_posts'); ?> <div class="wt_clearboth"></div> </div> </div> </section> <?php } ?> <?php if (wt_get_option('blog', 'author') || wt_get_option('blog', 'related_popular')) { ?> </footer><?php } ?>
wt-nice-scrolling <?php } if ($smoothScroll) { ?> wt-smooth-scrolling <?php } ?> no-js" <?php language_attributes(); ?> > <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title><?php wt_theme_generator('wt_title'); ?> </title> <?php if (wt_get_option('general', 'enable_responsive')) { ?> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <?php } if ($favicon = wt_get_option('general', 'favicon')) { ?> <link rel="shortcut icon" href="<?php echo wt_get_image_src($favicon); ?> " /> <?php