File: /home/slyfwmm/studiomilighetti/wp-content/themes/domik/template-parts/folio/single3.php
<?php
/* banner-php */
get_header();
while(have_posts()) : the_post(); ?>
<div class="content full-height mm">
<div class="wrapper-inner full-height no-padding">
<?php
$gallery = get_post_gallery( get_the_ID(), false );
if(isset($gallery['ids'])) : ?>
<div class="horizontal-slider-holder full-height">
<div class="swiper-container horizontal-slider" id="horizontal-slider" data-mws="1200" data-mwd="horizontal" data-mwc="1" data-mwa="5000" data-mwl="0">
<div class="swiper-wrapper">
<?php
$gallery_ids = $gallery['ids'];
$img_ids = explode(",",$gallery_ids);
foreach( $img_ids AS $img_id ){
?>
<div class="swiper-slide">
<div class="bg" style="background-image:url(<?php echo wp_get_attachment_url( $img_id );?>)"></div>
<div class="overlay"></div>
<div class="zoomimage"><?php echo wp_get_attachment_image( $img_id, 'full', '', array('class'=>'intense') );?><i class="fa fa-expand"></i></div>
</div>
<?php } ?>
</div>
<div class="swiper-nav-holder hor">
<a class="swiper-nav arrow-left transition " href="#"><i class="fa fa-long-arrow-left"></i></a>
<a class="swiper-nav arrow-right transition" href="#"><i class="fa fa-long-arrow-right"></i></a>
</div>
</div>
<div class="pagination"></div>
</div>
<?php endif;?>
</div>
</div>
<div class="fixed-column">
<div class="domik_container">
<section class="no-border">
<div class="section-title">
<h1><?php the_title();?></h1>
<?php if(get_post_meta(get_the_ID(), '_cmb_folio_subtitle', true)!=""){
echo get_post_meta(get_the_ID(), '_cmb_folio_subtitle', true);
} ?>
</div>
<div class="project-details">
<?php the_content();?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'domik' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
</div>
<?php
domik_portfolio_nav();
if ( comments_open() || get_comments_number() ) :
comments_template();
endif; ?>
</section>
</div>
</div>
<?php endwhile;?>
<?php get_footer(); ?>