File: /home/slyfwmm/studiomilighetti/wp-content/themes/domik/template-parts/folio/single4.php
<?php
/* banner-php */
get_header();
?>
<?php while(have_posts()) : the_post(); ?>
<div class="content full-height">
<div class="show-info"><?php _e('Info','domik');?></div>
<div class="media-container">
<div class="video-mask"></div>
<?php
$bg_video = get_post_meta(get_the_ID(), '_cmb_embed_video', true);
$bg_image = get_post_meta(get_the_ID(), '_cmb_right_parallax_bg', true);?>
<a id="bgndVideo" class="player" data-property="{videoURL:'<?php echo esc_url($bg_video );?>',containment:'.media-container',autoPlay:1, mute:1,showControls:1, startAt:0, opacity:1,addRaster:0}">My video</a>
<div class="bg mob-bg" style="background-image:url(<?php echo esc_url($bg_image );?>)"></div>
</div>
</div>
<div class="fixed-column not-vis-column">
<div class="hide-column"></div>
<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
$gallery = get_post_gallery( get_the_ID(), false );//echo'<pre>';var_dump($gallery);die;
if(isset($gallery['ids'])) : ?>
<ul class="inline-gallery popup-gallery">
<?php
$gallery_ids = $gallery['ids'];
$img_ids = explode(",",$gallery_ids);
foreach( $img_ids AS $img_id ){
?>
<li>
<div class="box-item">
<a href="<?php echo wp_get_attachment_url( $img_id );?>">
<span class="overlay"></span>
<?php echo wp_get_attachment_image( $img_id, 'folio-size-one', '', array('class'=>'respimg') );?>
</a>
</div>
</li>
<?php } ?>
</ul>
<?php endif;?>
<?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(); ?>