SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /* | |
3 | Template Name: Шаблон страницы с сайдбаром | |
4 | */ | |
5 | ||
6 | ?> | |
7 | ||
8 | <?php get_header () ; ?> | |
9 | ||
10 | <div id="container" class="cf"> | |
11 | <h1 class="cat-title"> <?php single_cat_title(); ?> </h1> | |
12 | <?php query_posts( array('showposts' => 0, 'paged' => get_query_var('paged') ) ); ?> | |
13 | <?php if (have_posts()) : while (have_posts()) : the_post();?> | |
14 | ||
15 | <div class="post post-left"> | |
16 | ||
17 | <div class="post-image"> | |
18 | <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> | |
19 | </div> | |
20 | <h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="К посту <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> | |
21 | ||
22 | <div class="entry-content"> | |
23 | <?php the_content(); ?> | |
24 | ||
25 | <div class="entry-readmore"><a href="<?php the_permalink(); ?>" class="more-link">Читать полностью</a></div> | |
26 | </div> | |
27 | <div class="entry-meta"> | |
28 | <div class="meta-inner"> | |
29 | <span class="date"> | |
30 | <strong class="day"><?php the_time('d') ?></strong> | |
31 | <div class="holder"> | |
32 | <div class="month"><?php the_time('M') ?></div> | |
33 | <div class="year"><?php the_time('Y') ?></div> | |
34 | </div> | |
35 | </span> | |
36 | <span class="author"> | |
37 | <strong class="title">АВТОР</strong><br /> | |
38 | <?php the_author_posts_link() ?> </span> | |
39 | <span class="cat"> | |
40 | <strong class="title">РУБРИКА</strong><br /> | |
41 | <?php the_category(); ?> </span> | |
42 | <span class="Tags"> | |
43 | <strong class="title">МЕТКИ</strong><br /> | |
44 | <?php the_tags(''); ?></span> | |
45 | <span class="comments"> | |
46 | <strong class="title">КОММЕНТАРИИ</strong><br> | |
47 | <?php comments_popup_link( 'Комментариев нет', '1 комментарий', '% штука', 'comments-link', 'Админ закрыл напрочь комментирование'); ?> </span> | |
48 | </div> | |
49 | ||
50 | </div> | |
51 | </div> | |
52 | <?php get_sidebar('Sidebar'); ?> | |
53 | <?php endwhile; ?> | |
54 | ||
55 | <div class='pagination'> | |
56 | <?php my_pagination(); ?> | |
57 | </div> | |
58 | ||
59 | <?php endif; ?> | |
60 | <?php wp_reset_query(); ?> | |
61 | ||
62 | </div> | |
63 | <?php get_footer () ; ?> |