YouSuf adlı üyeden alıntı:
mesajı görüntüle
Arsıve.php
<?php get_header(); ?>
<div id="contents" class="clearfix">
<div id="left_col">
<?php if (have_posts()) : ?>
<div id="headline">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php if (is_category()) { ?>
<p><?php printf(__('‘ %s ’ kategorisi altındaki tüm yazılar...'), single_cat_title('', false)); ?></p>
<?php } elseif( is_tag() ) { ?>
<p><?php printf(__('‘ %s ’ kelimesi ile ilgili yazılar'), single_tag_title('', false) ); ?></p>
<?php } elseif (is_day()) { ?>
<p><?php printf(__('% tarihinde yazılan yazılar...s'), get_the_time(__('j F Y', 'monochrome'))); ?></p>
<?php } elseif (is_month()) { ?>
<p><?php printf(__('%s ayında yazılan yazılar...'), get_the_time(__('F Y', 'monochrome'))); ?></p>
<?php } elseif (is_year()) { ?>
<p><?php printf(__('%s yılında yazılan yazılar...'), get_the_time(__('Y'))); ?></p>
<?php } elseif (is_author()) { ?>
<p>Yazar arşivi...</p>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>Blog arşivi</p>
<?php } ?>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post">
<div class="posttop"> </div>
<div class="postmiddle">
<div id="icon"><?php if (function_exists('get_cat_icon')) get_cat_icon(); ?></div>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div id="single_meta">
<div id="dates"><?php the_time(__('j F Y', 'inove')) ?></div>
<div id="com"><?php comments_popup_link(__('Yorum yapılmamış'), __('1 Yorum'), __('% Yorum')); ?></div>
</div>
<div class="post_content">
<?php the_content(__('Devamını oku »')); ?>
<div class="pos"></div>
</div>
</div>
<div class="postbottom"></div>
</div>
<?php endwhile; else: ?>
<div class="posttop"> </div>
<div class="postmiddle">
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
</div>
<div class="postbottom"></div>
<div class="archive_contents">
<p><?php _e("Sorry, but you are looking for something that isn't here.","monochrome"); ?></p>
</div>
<?php endif; ?>
</div><!-- #left_col end -->
<?php get_sidebar(); ?>
</div><!-- #contents end -->
<?php get_footer(); ?>