add files

This commit is contained in:
2021-09-16 12:14:35 +03:00
commit 5a50fb1a94
34 changed files with 386 additions and 0 deletions

21
content.php Normal file
View File

@@ -0,0 +1,21 @@
<div id="content">
<h1 class="my-4">Главное</h1>
<?php if (have_posts()): while(have_posts()): the_post();?>
<h2 class="card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
<div class="card mb-4">
<a href="<?the_permalink();?>"><img class="card-img-top" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
<div class="card-body">
<p class="card-text"><a href="<?the_permalink();?>"><?the_excerpt();?></a></p>
<div class="news_date"><?the_time('j F Y, G:i');?></div>
</div>
</div>
<?php endwhile; else:?>
<p>Записей не найдено.</p>
<?php endif;?>
<?php /**the_posts_pagination(array(
'mid_size' => 4,
'end_size' => 2,
));*/?>
</div>