wordpress_theme_weblog/page.php
mohammadelendil f847592c7b first
2024-08-24 11:31:19 +03:30

31 lines
No EOL
1.1 KiB
PHP

<?php get_header(); ?>
<?php get_template_part("inc/page","baner"); ?>
<div class="container">
<div class="row">
<div class="page-content single_content">
<?php while(have_posts()){the_post();?>
<div class="col-md-9">
<div class="content_bx">
<?php if (has_post_thumbnail()) { ?>
<img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>">
<?php } ?>
<div class="meta">
<span><i class="fa fa-calendar-o"></i><?php echo get_the_date(); ?></span>
<span><i class="fa fa-comment-o"></i><?php echo get_comments_number(); ?></span>
</div>
<h1><?php the_title(); ?></h1>
<hr>
<div class="p_text">
<?php the_content();?>
</div>
<div class="comments_box">
<?php comments_template() ?>
</div>
</div>
</div>
<?php } ?>
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>