File: /var/www/ilya/data/www/eeggs.ru/wp-content/themes/minyx2Lite/index.php
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; ?>
<?php if (is_category()) { ?>
<h2 class="pagetitle">‘
<?php single_cat_title(); ?>
’
<?php _e('- архив','minyx2Lite')?>
</h2>
<?php } elseif (is_day()) { ?>
<h2 class="pagetitle">
<?php _e('Архив за','minyx2Lite')?>
<?php the_time('j F, Y'); ?>
</h2>
<?php } elseif (is_month()) { ?>
<h2 class="pagetitle">
<?php _e('Архив за','minyx2Lite')?>
<?php the_time('F Y'); ?>
</h2>
<?php } elseif (is_year()) { ?>
<h2 class="pagetitle">
<?php _e('Архив за','minyx2Lite') ?>
<?php the_time('Y'); ?>
</h2>
<?php } elseif (is_search()) { ?>
<h2 class="pagetitle">
<?php _e('Результаты поиска','minyx2Lite')?>
«<?php echo($s); ?>» </h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('','minyx2Lite')?> <?php the_title(); ?>">
<?php the_title(); ?>
</a></h2>
<?php if(!is_page()) { ?>
<small>
<?php the_time('d F, y') ?>
<?php _e('от','minyx2Lite')?>
<?php the_author() ?>
<?php edit_post_link('e', ' - ', ' '); ?>
</small>
<?php } ?>
<?php if(!is_search()) : ?>
<div class="entry">
<?php the_content(__('Далее »')); ?>
</div>
<?php endif; ?>
<?php if(!is_page()) { ?>
<?php if(is_single()) : ?>
<ul class="postmetadata alt">
<li class="icon_date"> <strong>
<?php _e('Дата:','minyx2Lite')?>
</strong>
<?php the_time('d.m.Y') ?>
<?php _e('','minyx2Lite')?>
<?php the_time() ?>
</li><br />
<li class="icon_cat"><strong>
<?php _e('Категория:','minyx2Lite')?>
</strong>
<?php the_category(', ') ?>
</li>
<li>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</li>
<h4 style="padding: 7px 0px 0px 0px; margin: 0px; font-size:11px;">На эту же тему:</h4>
<ul class='st-related-posts'>
<?php related_posts(); ?>
</ul>
</ul>
<?php else : ?>
<ul class="postmetadata">
<li class="icon_comment icon_r">
<?php comments_popup_link(__('Нет комментариев','minyx2Lite'),__('1 комментарий','minyx2Lite'),__('Комментариев - %','minyx2Lite')); ?>
</li>
<li class="icon_cat"><strong>
<?php _e('Категория:','minyx2Lite')?>
</strong>
<?php the_category(', ') ?>
</li>
</ul>
<?php endif; ?>
<?php } ?>
</div>
<?php if(is_single()) : ?>
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php if(is_single() || is_page() ) : ?>
<?php else: ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link(__('Предыдущие материалы','minyx2Lite')); ?>
</div>
<div class="alignright">
<?php previous_posts_link(__('Следующие материалы','minyx2Lite')); ?>
</div>
</div>
<?php endif; ?>
<?php else : ?>
<?php include (TEMPLATEPATH . '/notfound.php');?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>