-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
52 lines (34 loc) · 1.08 KB
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php get_header(); ?>
<div class="quote-wrap">
<ul class="breadcrumb">
<?php the_breadcrumb(); ?>
</ul>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="main-post">
<h1><?php the_title() ?></h1>
<div class="main-post-content">
<?php the_content() ?>
<?php
$posttags = get_the_tags();
if ($posttags) {
?>
<span class="label label-warning">Метки записи</span>
<div class="meta"><i class="icon-tags"></i>
<?php
foreach($posttags as $tag) {
$tag_links[] = '<a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a>';
}
echo join( ', ', $tag_links );
echo "</div>";
}
?>
</div>
</div>
<?php comments_template(); ?>
</div>
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<?php else : ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>