correct close minicard_block
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
*/
|
||||
|
||||
get_header( 'pets' );
|
||||
$nn = 0;?>
|
||||
$nn = 0;
|
||||
$miniblock_open = false;?>
|
||||
|
||||
|
||||
|
||||
@@ -39,12 +40,14 @@ $nn = 0;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?elseif ($nn == 2):?>
|
||||
|
||||
<?elseif ($nn > 1):?>
|
||||
|
||||
<?if ($nn == 2):?>
|
||||
<?$miniblock_open = true;?>
|
||||
<div class="mini-card-block">
|
||||
<?endif?>
|
||||
|
||||
<?if ($nn > 1):?>
|
||||
|
||||
<div class="mini-card">
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<div class="mini-card-img">
|
||||
@@ -76,6 +79,8 @@ $nn = 0;?>
|
||||
|
||||
<?get_template_part( '/blocks/paginator');?>
|
||||
|
||||
<?if ($miniblock_open):?>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<?php get_footer( 'pets' ); ?>
|
||||
Reference in New Issue
Block a user