HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/studiomilighetti/wp-content/themes/domik/template-parts/post/content-gallery.php
<?php
/* banner-php */
 
?>

<div <?php post_class('content-gallery gallery-item');?>>
    <div class="grid-item-holder">
        <article>
        	
        	<?php domik_list_meta_post(); ?>
        	
			<?php 
			// Get the list of files
		    $slider_images = get_post_meta( get_the_ID(), '_cmb_post_slider_images', true);
		    if( !empty($slider_images) ){ ?>
			<div class="blog-media">
				<div class="gallery-itemss <?php echo get_post_meta( get_the_ID() , '_cmb_gallery_cols', true );?>-coulms grid-small-pad popup-gallery">
					<div class="grid-sizers"></div>
		    			
					<?php 
	                foreach ( (array) $slider_images as $img_id => $img_url ) {
				        ?>

				        <div class="gallery-ites">
		                    <div class="grid-item-holder">
		                        
		                            <!-- <div class="blog-post-gal"> -->
		                            	<a href="<?php echo wp_get_attachment_url( $img_id );?>" class="blog-gal-href">

		                            		<?php echo wp_get_attachment_image( $img_id, 'blog-gallery', false, array('class'=>'respimg') ); ?>

		                            	</a>
		                            <!-- </div> -->
		                        
		                    </div>
		                </div>

	                <?php
				    }
					?>
	                

	            </div>
		    </div>
			<?php
			}elseif(has_post_thumbnail( )){ ?>
			<div class="blog-media">
				<div class="box-item">
	                <a href="<?php the_permalink();?>" class="ajax">
	                <span class="overlay"></span>
	                <?php the_post_thumbnail('blog-thumb',array('class'=>'respimg') ); ?>
	                </a>
	            </div>
		    </div>
			<?php } ?>
        
            <div class="blog-text">
                <h3 class="post-title"><a class="ajax" href="<?php the_permalink();?>"><?php the_title();?></a> <?php edit_post_link( __( 'Edit', 'domik' ), '<span class="edit-link">', '</span>' ); ?></h3>
                
                <?php the_excerpt();?>
                
                <?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 class="clearfix"></div>
				<a href="<?php the_permalink();?>" class="ajax btn"><span><?php _e('read more','domik');?> </span> <i class="fa fa-long-arrow-right"></i></a>
            </div>
        </article>
    </div>
</div>