0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
wordpress
/
themes
/
arclite
/
[
Home
]
File: archive.php
<?php /* Arclite/digitalnature */ get_header(); ?> <!-- main wrappers --> <div id="main-wrap1"> <div id="main-wrap2"> <!-- main page block --> <div id="main" class="block-content"> <div class="mask-main rightdiv"> <div class="mask-left"> <!-- first column --> <div class="col1"> <div id="main-content"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h1 class="pagetitle"><?php printf( __('Archive for category %s', 'arclite'), single_cat_title('', false)); ?></h1> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> <h1 class="pagetitle"><?php printf( __('Posts Tagged %s', 'arclite'), single_cat_title('', false) ); ?></h1> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h1 class="pagetitle"><?php printf(__('Archive for %s', 'arclite'), get_the_time(__('F jS, Y','arclite'))); ?></h1> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h1 class="pagetitle"><?php printf(__('Archive for %s', 'arclite'), get_the_time(__('F, Y','arclite'))); ?></h1> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h1 class="pagetitle"><?php printf(__('Archive for %s', 'arclite'), get_the_time(__('Y','arclite'))); ?></h1> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h1 class="pagetitle"><?php _e('Author Archive','arclite'); ?></h1> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h1 class="pagetitle"><?php _e('Blog Archives','arclite'); ?></h1> <?php } ?> <?php while (have_posts()) : the_post(); ?> <!-- post --> <div id="post-<?php the_ID(); ?>" <?php if (function_exists("post_class")) post_class(); else print 'class="post"'; ?>> <div class="post-header"> <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','arclite'); echo ' '; the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <p class="post-date"> <span class="month"><?php the_time(__('M','arclite')); ?></span> <span class="day"><?php the_time(__('j','arclite')); ?></span> </p> <p class="post-author"> <span class="info"><?php printf(__('Posted by %s in %s','arclite'),'<a href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","arclite"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>',get_the_category_list(', ')); ?> | <?php comments_popup_link(__('No Comments', 'arclite'), __('1 Comment', 'arclite'), __('% Comments', 'arclite'), 'comments', __('Comments off', 'arclite')); ?> <?php edit_post_link(__('Edit','arclite'),' | '); ?> </span> </p> </div> <div class="post-content clearfix"> <?php if(get_arclite_option('post_preview')=='excerpt') the_excerpt(); else the_content(__('Read the rest of this entry »', 'arclite')); ?> <?php $posttags = get_the_tags(); if ($posttags) { ?> <p class="tags"> <?php the_tags(__('Tags:','arclite').' ', ', ', ''); ?></p> <?php } ?> </div> </div> <!-- /post --> <?php endwhile; ?> <div class="navigation" id="pagenavi"> <?php if(function_exists('wp_pagenavi')) : ?> <?php wp_pagenavi() ?> <?php else : ?> <div class="alignleft"><?php next_posts_link(__('« Older Entries','arclite')) ?></div> <div class="alignright"><?php previous_posts_link(__('Newer Entries »','arclite')) ?></div> <div class="clear"></div> <?php endif; ?> </div> <?php else : if ( is_category() ) { // If this is a category archive ?> <h2> <?php printf(__("Sorry, but there aren't any posts in the %s category yet.", "arclite"),single_cat_title('',false)); ?> </h2> <?php } else if ( is_date() ) { // If this is a date archive ?> <h2> <?php _e("Sorry, but there aren't any posts with this date."); ?> </h2> <?php } else if ( is_author() ) { // If this is a category archive $userdata = get_userdatabylogin(get_query_var('author_name')); ?> <h2> <?php printf(__("Sorry, but there aren't any posts by %s yet.", "arclite"),$userdata->display_name); ?> </h2> <?php } else { ?> <h2> <?php _e('No posts found.'); ?> </h2> <?php } get_search_form(); endif; ?> </div> </div> <!-- /first column --> <?php get_sidebar(); ?> <?php include(TEMPLATEPATH . '/sidebar-secondary.php'); ?> </div> </div> <div class="clear-content"></div> </div> <!-- /main page block --> </div> </div> <!-- /main wrappers --> <?php get_footer(); ?>