forked from TheYahya/thewhite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
30 lines (30 loc) · 1.13 KB
/
single.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
<?php get_header(); ?>
<div class="container">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="post-date-divider">
<span><?php the_time('l j F Y') ?></span>
</div>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="post-title">
<?php the_title(); ?>
</h1>
<div>
<p class="comments-number"><?php comments_number(__('بدون دیدگاه'), '1 ' . __('دیدگاه'), '% ' . __('دیدگاهها')); ?></p>
</div>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<br><br>
<p>
<?php if (get_the_tags()) {?>
<?php _e('Tags')?>:
<?php foreach (get_the_tags() as $tag) { ?>
<a href="<?php echo get_term_link($tag->term_id)?>" class="post-tag"><?php echo $tag->name?></a>
<?php } ?>
<?php } ?>
</p>
<?php comments_template(); ?>
<?php endwhile; ?>
</div><!--.container-->
<?php get_footer(); ?>