PluginProbe
Welcart e-Commerce / 1.3.2
Welcart e-Commerce v1.3.2
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 / archive.php

archive.php in Welcart e-Commerce 1.3.2, at theme/welcart_default/archive.php

70 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * <meta content="charset=UTF-8">
4 * @package Welcart
5 * @subpackage Welcart Default Theme
6 */
7 get_header();
8 ?>
9
10 <div id="content" class="two-column">
11
12 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
13 <?php /* If this is a category archive */ if (is_category()) { ?>
14 <h1 class="pagetitle"><?php printf( __( 'Category Archives: %s', 'uscestheme' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
15 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
16 <h1 class="pagetitle"><?php printf( __( 'Tag Archives: %s', 'uscestheme' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
17 <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
18 <h1 class="pagetitle"><?php printf( __( 'Daily Archives: <span>%s</span>', 'uscestheme' ), get_the_time(__('Y/m/d'))); ?></h1>
19 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
20 <h1 class="pagetitle"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'uscestheme' ), get_the_time(__('F, Y'))); ?></h1>
21 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
22 <h1 class="pagetitle"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'uscestheme' ), get_the_time(__('Y'))); ?></h1>
23 <?php /* If this is an author archive */ } elseif (is_author()) { ?>
24 <h1 class="pagetitle"><?php printf( __( 'Author Archives: %s', 'uscestheme' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1>
25 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
26 <h1 class="pagetitle"><?php _e( 'Blog Archives', 'uscestheme' ); ?></h1>
27 <?php } ?>
28
29 <div class="catbox">
30 <?php if (have_posts()) : ?>
31 <div class="navigation clearfix">
32 <div class="alignright"><?php next_posts_link( __( 'Older posts', 'uscestheme' ) ); ?></div>
33 <div class="alignleft"><?php previous_posts_link( __( 'Newer posts', 'uscestheme' ) ); ?></div>
34 </div>
35
36 <?php while (have_posts()) : the_post(); ?>
37 <div <?php post_class(); ?>>
38 <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'uscestheme' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2>
39 <div class="entry clearfix">
40 <?php if(!usces_is_item()): ?>
41 <p><small><?php the_date('Y/n/j'); ?></small></p>
42 <?php endif; ?>
43 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'uscestheme' ) ) ?>
44 </div>
45 </div><!-- end of post -->
46 <?php endwhile; ?>
47
48 <div class="navigation clearfix">
49 <div class="alignright"><?php next_posts_link( __( 'Older posts', 'uscestheme' ) ); ?></div>
50 <div class="alignleft"><?php previous_posts_link( __( 'Newer posts', 'uscestheme' ) ); ?></div>
51 </div>
52
53 <?php else : ?>
54
55 <div id="post-0" class="post error404 not-found">
56 <h2 class="entry-title"><?php _e( 'Not Found', 'uscestheme' ); ?></h2>
57 <div class="entry-content">
58 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'uscestheme' ); ?></p>
59 <?php get_search_form(); ?>
60 </div><!-- .entry-content -->
61 </div><!-- #post-0 -->
62
63 <?php endif; ?>
64
65 </div><!-- end of catbox -->
66 </div><!-- end of content -->
67
68 <?php get_sidebar( 'other' ); ?>
69
70 <?php get_footer(); ?>