✏️ 编辑:archive.php
路径:
/virtual/bigbrother/public_html/hyper-tool.com/wp-content/themes/welcart_earth/archive.php
大小:3.02 KB · 修改:2015-11-06 23:35:00 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** Template Name: Earth WelCart */ get_header(); ?> <div class="container bloc-lg"> <div class="row"> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <hgroup class="categoryhead"> <h1 class="pagetitle"><?php printf(__('%s', 'usces'), single_cat_title('', false)); ?></h1> <span><?php echo category_description(); ?></span> </hgroup> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> <h1 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'usces'), single_tag_title('', false) ); ?></h1> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h1 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'usces'), get_the_time(__('Y/m/d'))); ?></h1> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h1 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'uscestheme'), get_the_time(__('Y/m/d'))); ?></h1> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h1 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'uscestheme'), get_the_time(__('Y/m/d'))); ?></h1> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h1 class="pagetitle"><?php _e('Author Archive', 'uscestheme'); ?></h1> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h1 class="pagetitle"><?php _e('Blog Archives', 'uscestheme'); ?></h1> <?php } ?> <div> <?php if (have_posts()) : ?> <div class="thumbindex"> <?php while (have_posts()) : the_post();usces_the_item(); ?> <div class="thumbnail_box"> <div class="thumimg"><a href="<?php the_permalink() ?>"><?php usces_the_itemImage($number = 0, $width = 290, $height = 400 ); ?></a></div> <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 ); ?><?php usces_guid_tax(); ?></div> <?php endif; ?> </div><!-- thumbnail_box --> <?php endwhile; ?> </div> <?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?> <?php else : ?> <?php if ( is_category() ) : // If this is a category archive ?> <p><?php echo single_cat_title('', false); ?><?php _e('in not yet registered', 'usces') ?></p> <?php elseif( is_date() ) : ?> <p><?php _e('Data for this date is not yet registered.', 'usces') ?></p> <?php elseif( is_author() ) : $userdata = get_userdatabylogin(get_query_var('author_name')); ?> <p><?php _e('Data by', 'usces') ?> <?php echo $userdata->display_name; ?> <?php _e('is not yet registered.', 'usces') ?></p> <?php else : ?> <p><?php echo __('No posts found.', 'uscestheme'); ?></p> <?php endif; ?> <?php endif; ?> </div> </div> </div><!-- end of container bloc-lg --> <?php get_sidebar(); ?> <?php get_footer(); ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF