add calendar events

This commit is contained in:
2021-10-31 13:01:31 +03:00
parent cbefa787b1
commit f97013cfaf
16 changed files with 701 additions and 52 deletions

View File

@@ -37,11 +37,18 @@ $nn = 0;?>
<?php while($query->have_posts()) : $query->the_post();?>
<?$nn++?>
<?if ($nn == 2){
get_template_part( '/blocks/krasavica');
}
?>
<div class="mini-card">
<?if ( has_post_thumbnail() ) :?>
<div class="mini-card-img">
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'large'); ?>" alt="<?the_title();?>"></a>
</div>
<?endif?>
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
@@ -57,6 +64,7 @@ $nn = 0;?>
<?php endif;?>
<?php wp_reset_postdata();?>
@@ -65,7 +73,7 @@ $nn = 0;?>
<?get_template_part( '/blocks/citata', null, ['subclass' => 'mob-lite']);?>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<div class="publ-to-main"><a href="<?=get_site_url()?>/category/sobytiya"> <span class="arrow-go-main"><</span>&nbsp;&nbsp;&nbsp;<span class="go-to-main">Все события</span></a></div>
<div class="publ-to-main"><a href="<?=get_category_link(2)?>/page/2"><span class="go-to-main">Показать ещe</span></a></div>
</div> <!-- end content -->