File: /home/slyfwmm/studiomilighetti/wp-content/themes/domik/template-parts/folio/single6.php
<?php
/* banner-php */
get_header();
while(have_posts()) : the_post(); ?>
<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>
<div class="content mm colum-w">
<div class="wrapper-inner no-padding">
<section class="no-padding no-border">
<?php
$gallery = get_post_gallery( get_the_ID(), false );
if(isset($gallery['ids'])) : ?>
<div class="gallery-items three-coulms popup-gallery">
<div class="grid-sizer"></div>
<?php
$gallery_ids = $gallery['ids'];
$img_ids = explode(",",$gallery_ids);
foreach( $img_ids AS $img_id ){
//$image_src = wp_get_attachment_image_src($img_id,'');
$image_alt = get_post_meta($img_id, '_wp_attachment_image_alt', true);
$item_w = '';
$item_image_w = 'folio-size-one';
if(strpos($image_alt, "gallery-item-second") !== false){
$item_w = 'gallery-item-second';
$item_image_w = 'folio-size-second';
}
if(strpos($image_alt, "gallery-item-three") !== false){
$item_w = 'gallery-item-three';
$item_image_w = 'folio-size-three';
}
if(strpos($image_alt, "gallery-item-one-tall") !== false){
$item_image_w = 'folio-size-one-tall';
}
?>
<div class="gallery-item <?php echo esc_attr($item_w );?>">
<div class="grid-item-holder">
<div class="box-item">
<a href="<?php echo wp_get_attachment_url( $img_id );?>" title="<?php the_title();?>">
<span class="overlay"></span>
<?php echo wp_get_attachment_image( $img_id, $item_image_w);?>
</a>
</div>
</div>
</div>
<?php } ?>
</div><!-- end gallery items -->
<?php endif;?>
</section>
</div>
</div>
<?php endwhile;?>
<?php get_footer(); ?>