correct single 3 footer
This commit is contained in:
49
blocks/arh_more.php
Normal file
49
blocks/arh_more.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
$posts = get_posts( array(
|
||||
'posts_per_page' => -1 ,
|
||||
'category' => 3, // 19 - архив газеты,
|
||||
'year' => $numbers_year,
|
||||
'orderby' => 'date',
|
||||
'post__not_in' => array (get_the_ID()),
|
||||
'order' => 'DESC',
|
||||
'post_type' => 'post',
|
||||
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
|
||||
) );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?if (count($posts) > 0):?>
|
||||
|
||||
<div class="numbers-year-title">Архив выпусков, <?=$numbers_year?></div>
|
||||
|
||||
<div class="mini-card-block">
|
||||
|
||||
<?foreach($posts as $post):
|
||||
setup_postdata( $post );
|
||||
?>
|
||||
|
||||
|
||||
<?$curr_number = number_info(get_the_title());?>
|
||||
|
||||
|
||||
<div class="mini-card-number">
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<div class="mini-card-img">
|
||||
<a href="<?the_permalink();?>"><img class="mini-card-number-img" width="147" style="width: 147px;" src="<?php echo get_the_post_thumbnail_url(null, 'large'); ?>" alt="<?the_title();?>"></a>
|
||||
<?if( has_tag( 'видео' ) ):?>
|
||||
<span class="play-card"></span>
|
||||
<?endif?>
|
||||
</div>
|
||||
<?endif?>
|
||||
<h2 class="mini-card-number-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php endforeach;?>
|
||||
|
||||
</div> <!--//end minicard block -->
|
||||
|
||||
<?endif?>
|
||||
Reference in New Issue
Block a user