add files
This commit is contained in:
21
content.php
Normal file
21
content.php
Normal 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>
|
||||
Reference in New Issue
Block a user