PluginProbe
Welcart e-Commerce / 1.4.12
Welcart e-Commerce v1.4.12
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / theme / welcart_default / item_category.php

item_category.php in Welcart e-Commerce 1.4.12, at theme/welcart_default/item_category.php

53 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Template Name: Item category template
4 * <meta content="charset=UTF-8">
5 * @package Welcart
6 * @subpackage Welcart Default Theme
7 */
8 get_header();
9 ?>
10
11 <div id="content" class="two-column">
12 <?php if (have_posts()) the_post(); ?>
13 <h1 class="pagetitle"><?php the_title(); ?></h1>
14
15 <div class="catbox">
16 <div class="post" id="<?php echo $post->post_name; ?>">
17 <?php the_content(); ?>
18
19 <?php $paged = $wp_query->query_vars['paged']; ?>
20 <?php $category_name = get_post_meta($post->ID, 'category_slug', true); ?>
21 <?php $posts_per_page = get_post_meta($post->ID, 'posts_per_page', true); ?>
22 <?php $order = get_post_meta($post->ID, 'order', true); ?>
23 <?php query_posts('category_name=' . $category_name . '&status=post&paged=' . $paged . '&posts_per_page=' . $posts_per_page . '&order='. $order); ?>
24 <div class="pagenavi"><?php posts_nav_link(' &#8212; ', __("&laquo; Previous page", 'usces'), __("next page &raquo;", 'usces')); ?></div>
25 <div class="clearfix">
26
27 <?php if (have_posts()) : while (have_posts()) : the_post(); usces_the_item(); ?>
28
29 <div class="thumbnail_box">
30 <div class="thumimg"><a href="<?php the_permalink() ?>"><?php usces_the_itemImage($number = 0, $width = 108, $height = 108 ); ?></a></div>
31 <div class="thumtitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php usces_the_itemName(); ?> (<?php usces_the_itemCode(); ?>)</a></div>
32 <?php if (usces_is_skus()) : ?>
33 <div class="price"><?php usces_crform( usces_the_firstPrice('return'), true, false ); ?><?php usces_guid_tax(); ?></div>
34 <?php endif; ?>
35 </div><!-- thumbnail_box -->
36
37 <?php //comments_template(); // Get wp-comments.php template ?>
38
39 <?php endwhile; else: ?>
40 <p><?php _e('The article was not found.', 'usces'); ?></p>
41 <?php endif; ?>
42 </div><!-- clearfix -->
43
44 <div class="pagenavi"><?php posts_nav_link(' &#8212; ', __("&laquo; Previous page", 'usces'), __("next page &raquo;", 'usces')); ?></div>
45
46 </div>
47 </div><!-- end of catbox -->
48 </div><!-- end of content -->
49
50 <?php get_sidebar( 'other' ); ?>
51
52 <?php get_footer(); ?>
53