-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
41 lines (35 loc) · 1.14 KB
/
single.php
File metadata and controls
41 lines (35 loc) · 1.14 KB
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
<?php
get_header(); // فراخوانی هدر
?>
<main id="primary" class="site-main">
<?php
while (have_posts()) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- نمایش تصویر شاخص به عنوان یک عنصر مستقل -->
<?php if (has_post_thumbnail()) : ?>
<div class="featured-image-container">
<?php the_post_thumbnail('full', array('class' => 'featured-image')); ?>
</div>
<?php endif; ?>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
<?php
// بررسی آیا نظرات باز هستند و آیا نظری وجود دارد
if (comments_open() || get_comments_number()) :
comments_template();
endif;
?>
</div>
</article>
<?php
endwhile;
?>
</main>
<?php
get_footer(); // فراخوانی فوتر
?>