Я не особо силен в php, вот код страницы. И почему то не грузится футер. Я так понял что какой то тег не закрыт. Но найти его у меня так и не получилось. Если убрать
<div class="content-block"> .... </div>
, то все нормально работает. Помогите исправить этот косяк((
<?php get_header(); ?>
<section class="pagegallery">
<div class="ml-layers">
<div class="ml-layer ml-layer-gallery-1" data-parallaxify-range-x="-10" data-parallaxify-range-y="-20"></div>
<div class="ml-layer ml-layer-gallery-2" data-parallaxify-range-x="-10" data-parallaxify-range-y="-20"></div>
<div class="ml-layer ml-layer-gallery-3" data-parallaxify-range-x="-10" data-parallaxify-range-y="-20"></div>
<div class="ml-layer ml-layer-gallery-4" data-parallaxify-range-x="10" data-parallaxify-range-y="-20"></div>
</div>
<div class="row zindex">
<div class="columns large-12">
<div class="page-title"><h1>title</h1></div>
<div class="page-stitle">none</div>
<?php
if(function_exists('yoast_breadcrumb')) {
yoast_breadcrumb('<div class="breadcrumbs">','</div>');
}
?>
</div>
</div>
<img src="<?php echo TEMPLATE_URI;?>/assets/img/handkerchief.png" alt="" class="elem-decor elem-decor-handkerchief">
<img src="<?php echo TEMPLATE_URI;?>/assets/img/arrow-down.png " alt="" class="elem-decor elem-decor-arrowdown">
<div class="content-block">
<div class="articles-list">
<?php
$wp_query = new WP_Query(array('post_type' => 'gallery'));
$i = 1;
$cnt = $wp_query->post_count;
if (have_posts()) : while (have_posts()) : the_post();
$c_photos = count(get_field('photos', get_the_ID()));
if($i == 1 ) {
?>
<div class="row firstnews">
<div class="columns large-6">
<div class="firstnews-img">
<div class="image-bordered">
<a href="<?php the_permalink(); ?>">
<?php echo get_the_post_thumbnail($row->ID, 'news_preview_big'); ?>
</a>
</div>
</div>
</div>
<div class="columns large-5 large-offset-1">
<div class="firstnews-content-cnt">
<div class="firstnews-content">
<div class="firstnews-text">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</div>
<div class="firstnews-date">
<div class="count-numbers"><?php echo $c_photos; ?> фотографий</div>
<div class="count-date"><?php echo get_the_date(); ?></div>
</div>
</div>
</div>
</div>
</div>
<?php
} else {
if($i == 1 || !is_paged() && $i == 2) {
echo '<div class="row">';
}
?>
<div class="columns large-4 medium-6 art-item">
<div class="image-bordered small">
<a href="<?php the_permalink(); ?>">
<?php echo get_the_post_thumbnail($row->ID, 'news_preview_small'); ?>
</a>
</div>
<div class="articles-ntitle">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</div>
<div class="articles-cndate">
<div class="count-numbers"><?php echo $c_photos; ?> фотографий</div>
<div class="articles-ndate"><?php echo get_the_date(); ?></div>
</div>
</div>
<?php
}
?>
<?php
$i++;
endwhile; ?>
</div>
<?php joints_page_navi(); ?>
<?php else : ?>
<?php get_template_part( 'parts/content', 'missing' ); ?>
<?php endif; ?>
</div>
</div>
</div>
<div class="pr-block1"></div>
<img src="<?php echo TEMPLATE_URI;?>/assets/img/artobj-twirl.png" alt="" class="elem-decor elem-decor-twirl">
</section>
<?php get_footer(); ?>