Location: PHPKode > scripts > Photospace Gallery > photospace theme download/photospace/archive.php
<?php get_header(); ?>
<?php $options = get_option('pb_options'); ?>
	
	<div id="middle-contents" class="clearfix">
		<div id="left-col">
			<?php if (have_posts()) : ?>
				<div class="common-navi-wrapper">
					<?php $post = $posts[0]; // So the_date() works. ?>
					
					<?php if (is_category()) { ?>					
						<!-- Best not to use categories for this theme as they are used to controll the gallery -->
						<p><?php printf('Archive for the &#8216;%s&#8217; Category', single_cat_title('', false)); ?></p>
					
					<?php } elseif( is_tag() ) { ?>
					
						<p><?php printf('Posts tagged with &#8216;%s&#8217;', single_tag_title('', false) ); ?></p>
					
					<?php } elseif (is_day()) { ?>
					
						<p><?php printf('Archive for %s', get_the_time('F jS, Y')); ?></p>
					
					<?php } elseif (is_month()) { ?>
					
						<p><?php printf('Archive for %s', get_the_time('F, Y')); ?></p>
					
					<?php } elseif (is_year()) { ?>
					
						<p><?php printf('Archive for %s', get_the_time('Y')); ?></p>
					
					<?php } elseif (is_author()) { ?>
						
						<p>Author Archive</p>
						
					<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
						
						<p>Blog Archives</p>
						
					<?php } ?>
					
				</div>
				
				<?php while ( have_posts() ) : the_post(); ?>
					
					<div class="post">
					
						<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
						
						<ul class="post-info">
							<li>
								<?php the_time('F jS, Y') ?>
							</li>
							
							<?php if ($options['author']) : ?>
								<li>By <?php the_author_posts_link(); ?> </li>
							<?php endif; ?>
							
							<li class="write-comment"><a href="<?php the_permalink() ?>#comments">
							Write comment
							</a></li>
							<li class="post-edit">
							<?php edit_post_link('[ EDIT ]', '', '' ); ?>
							</li>
						</ul>
						
						<div class="post-content">
							<?php the_content('Read more'); ?>
							<?php wp_link_pages(); ?>
						</div>
						
					</div>
					
					<div class="post-meta">
						<ul class="clearfix">
							
							<li class="post-category">
							 <?php the_tags('<li class="post-tag">', ' . ', '</li>'); ?>
							</li>
						
							<li class="post-comment">
								<?php comments_popup_link('Write comment', '1 comment', '% comments'); ?>
							</li>
						</ul>
					</div>
					
				<?php endwhile; else: ?>
					<div class="common-navi-wrapper">
						<p> Sorry nothing found </p>
					</div>
				<?php endif; ?>
				
				<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { include('navigation.php'); } ?>
			
			</div>
				
			
			<?php get_sidebar(); ?>
		</div>
		
		
		<?php get_footer(); ?>
Return current item: Photospace Gallery