✏️ 编辑:category.php
路径:
/virtual/bigbrother/public_html/hyper-tool.com/wp-content/themes/welcart_earth/category.php
大小:1.58 KB · 修改:2015-11-06 23:35:00 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** Template Name: Earth WelCart */ get_header(); ?> <!-- category --> <?php $object = get_queried_object(); ?> <div class="bloc bgc-white l-bloc" id="category"> <div class="container bloc-lg"> <div class="row"> <div class="col-sm-12"> <h1 class="text-center mg-md drag-obj animated fadeIn sm-shadow"> <?php echo $object->cat_name;?> </h1> <p class="text-center sub-heading animated fadeIn text-w-md sm-shadow"> Just a sample of category items. </p> </div> </div> <div class="row voffset"> <?php $reco_ob = new wp_query(array('category_name'=>$object->slug, 'posts_per_page'=>8, 'post_status'=>'publish')); ?> <?php if ($reco_ob->have_posts()) : while ($reco_ob->have_posts()) : $reco_ob->the_post(); usces_the_item(); ?> <?php if (usces_is_skus()) : ?> <div class="col-sm-3 display-inline-table"> <a href="<?php the_permalink() ?>"><?php usces_the_itemImage($number = 0, $width = 290, $height = 400 ); ?></a> <div class="thumtitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php usces_the_itemName(); ?></a></div> <?php if (usces_is_skus()) : ?> <div class="price"><?php usces_crform( usces_the_firstPrice('return'), true, false ); ?></div> <?php endif; ?> </div> <?php endif; ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; wp_reset_query(); ?> </div> </div> </div> <!-- category END --> <?php //edit_post_link(__('Edit this entry.', 'uscestheme'), '<div class="container bloc-lg">', '</div>'); ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF