$archive_title = $term->name; $attr[] = 'data-taxonomy="' . $taxonomy . '"'; $attr[] = 'data-term="' . $term->term_id . '"'; } $paginate_method = xt_option('paginate_method'); $attr[] = 'data-paginate="' . $paginate_method . '"'; $attr[] = 'data-template="' . $item_template . '"'; $load_more_class = $paginate_method; if ($paginate_method == 'paginate_scroll') { $paginate_method = "paginate_more"; } /** * Setup Dynamic Sidebar */ if (!empty($page_for_archive)) { list($has_sidebar, $sidebar_position, $sidebar_area) = xt_setup_dynamic_sidebar($page_for_archive->ID); } if (is_page_template('tpl-post-archive.php')) { $post_settings = xt_get_post_settings('post', 'archive'); $template_settings = xt_get_template_settings('post'); $post_settings = array_merge($post_settings, $template_settings); if (!empty($post_settings['query_post_formats'])) { if (!empty($post_settings['format'])) { $format = $post_settings['format']; if (!is_array($format)) { $format = explode(",", $format); } $extra_args['tax_query'] = array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => $format, 'operator' => 'IN')); } } else { $exclude_formats = xt_get_post_formats(true);
the_post(); wc_get_template_part('content', 'product'); } ?> <?php $next_link = get_next_posts_link(__('More', 'woocommerce'), ''); echo str_replace('<a ', '<a data-rel="post-list" ' . implode(' ', $attr) . ' class="button-more ' . esc_attr($load_more_class) . '" ', $next_link); ?> <?php } else { $current_page_title = woocommerce_page_title(false); get_header('shop'); list($has_sidebar, $sidebar_position, $sidebar_area) = xt_setup_dynamic_sidebar($shop_page_id); ?> <div class="row in-container"> <!-- Main Content --> <div class="small-12 medium-<?php echo $has_sidebar ? '6' : '12'; ?> large-<?php echo $has_sidebar ? '8' : '12'; ?> column"> <div class="row collapse"> <div class="small-12 medium-12 column<?php
} $post_format = get_post_format(); $is_endless_template = xt_is_endless_template(); $sidebar_below_title = xt_is_sidebar_below_title($post->ID); /** * Featured image settings */ list($single_post_featured_image, $single_post_featured_image_position) = xt_get_featured_image_settings($post->ID); $behind_title_fw = $single_post_featured_image_position == 'behind-title-fullwidth'; if ($behind_title_fw && !$sidebar_below_title) { $sidebar_below_title = true; } /** * Setup Dynamic Sidebar */ list($has_sidebar, $sidebar_position, $sidebar_area) = xt_setup_dynamic_sidebar($post->ID); if ($post_format == 'video' || $post_format == 'gallery') { $widget_zone_type = $post_format; } else { $widget_zone_type = 'post'; } $post_settings = xt_get_single_settings('post'); extract($post_settings); ?> <!-- Main Content --> <div class="row<?php echo $behind_title_fw ? ' full-width' : ''; ?> ">