All pastes #741182 Raw Edit

archive.php

public text v1 · immutable
·published 2007-10-18 14:44 UTC
rendered paste body
<?php get_header(); ?>

<div class="col1 fl">
			
	<?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()) { ?>
			<h2 class="pagetitle"><?php echo single_cat_title(); ?> Dizini</h2>

			<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
			<h2 class="pagetitle"><?php the_time('F jS Y'); ?> Dizini</h2>
	
			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
			<h2 class="pagetitle"><?php the_time('F Y'); ?> Dizini</h2>
	
			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
			<h2 class="pagetitle"><?php the_time('Y'); ?> Dizini</h2>
	
			<?php /* If this is a search */ } elseif (is_search()) { ?>
			<h2 class="pagetitle">Arama Sonuçları</h2>
	
			<?php /* If this is an author archive */ } elseif (is_author()) { ?>
			<h2 class="pagetitle">Yazar Arşivi</h2>
	
			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
			<h2 class="pagetitle">WeBlog Arşivi</h2>
	
			<?php } ?>	
		
		<?php while (have_posts()) : the_post(); ?>	
		
		<div class="post" id="post-<?php the_ID(); ?>">
			
			<h2><a title="<?php the_title(); ?> Balığı İçin Bağlantı" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
			
			<div class="postmetadata">
				<span class="meta-cal"><?php the_time('d F Y'); ?></span> <span class="meta-comm"><?php comments_popup_link('(0)', '(1)', '(%)'); ?></span> <span class="meta-auth"><?php the_author_posts_link() ?></span><br />
				<span class="meta-tag"><?php the_category(', ') ?></span> <span class="meta-read"><?php if(function_exists('the_views')) { the_views(); } ?></span> <span class="meta-prnt"><?php if(function_exists('wp_print')) { print_link(); } ?></span>
			</div><!--/postmetadata-->
			
			<div class="entry"><div class="post-meta">
								<?php the_content_limit(1000, 'Devamı &raquo;'); ?>
			</div></div><!--/entry-->
		
		</div><!--/post -->

		<?php endwhile; ?>
		
		<div class="Nav"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>			
		
	<?php endif; ?>		
				
</div><!--/col1-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>