HEX
Server: Apache
System: Linux webm006.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/post-rightsidebar.php
<?php
/* banner-php */
/**
 * Template Name: Post Right Sidebar
 * Template Post Type: post
 */
$sb_w = domik_get_option('blog-sidebar-width') ? domik_get_option('blog-sidebar-width') : 3;
get_header(); 
get_header('inner'); 
if(domik_get_option('blog_single_title')) : ?>
<section class="no-padding no-border">
    <!-- page title -->		
    <div class="domik_container">
        <div class="page-title">
            <h1 class="title"><?php single_post_title( );?></h1>
            
        </div>
    </div>
</section>
<div class="clearfix"></div>
<?php 
endif;
?>
<div class="domik_container domik-blog-single">
<?php while(have_posts()) : the_post(); ?>
	<!-- post -->
    <section>
	    <div class="row">

			

			<div class="col-md-<?php echo (12 - $sb_w);?> hassidebar post-content-column">

				<article <?php post_class('cth-single sinnle-post' );?>>
				<?php if(!domik_get_option('blog_single_title')) : ?>
		            <h1 class="single-title"><?php single_post_title( ); ?></h1>
				<?php endif; ?>
		            <?php if(domik_get_option('blog_date_single') || domik_get_option('blog_author_meta') || domik_get_option('blog_cats_single') || domik_get_option('blog_comments_single') || domik_get_option('blog_tags_single') ):?>
						<ul class="blog-title">
							<?php if(domik_get_option('blog_date_single')) :?>
							<li><a class="tag" href="<?php echo get_day_link((int)get_the_time('Y' ), (int)get_the_time('m' ), (int)get_the_time('d' )); ?>"> <?php the_date(get_option('date_format' ));?></a></li>
							<?php endif;?>
							<?php if(domik_get_option('blog_author_meta')) :?>
							<li> - </li>
							<li><?php the_author_posts_link( );?></li>
							<?php endif;?>  
							
							<?php if(domik_get_option('blog_cats_single')) :?>
							<li> - </li>
							<li><?php the_category(', ' );?></li>
							<?php endif;?>
							<?php if(domik_get_option('blog_tags_single')) :?>
							<?php the_tags('<li> - </li><li>',', ','</li>');?>
							<?php endif;?>
							<?php if(domik_get_option('blog_comments_single')) :?>
							<li> - </li>
							<li><?php comments_popup_link(__('0 comment', 'domik'), __('1 comment', 'domik'), __('% comments', 'domik')); ?></li>
							<?php endif;?>
						</ul>
					<?php endif;?>
				<?php 
				if(domik_get_option('blog_featured_single')): ?>
		            
		            <?php 
					// Get the list of files
				    $slider_images = get_post_meta( get_the_ID(), '_cmb_post_slider_images', true);
				    if( !empty($slider_images) ){
					    if( get_post_format( ) !== 'gallery' ): ?>
						<div class="blog-media">
							<div class="fullwidth-slider-holder">
								<div class="customNavigation">
							        <a class="next-slide transition"><i class="fa fa-long-arrow-right"></i></a>
							        <a class="prev-slide transition"><i class="fa fa-long-arrow-left"></i></a>
							    </div>
				                <div class="fullwidth-slider owl-carousel owl-theme refreshowlonresize">
				                   	<?php 
					                foreach ( (array) $slider_images as $img_id => $img_url ) {
								        echo '<div class="post-slider-item item">';
								        echo wp_get_attachment_image( $img_id, 'blog-thumb', false, array('class'=>'respimg') );
								        echo '</div>';
								    }
									?>
				                   	
				                </div>
				            </div>
					    </div>
						<?php else: ?>
						<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">
			                            	<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>

				                <?php
							    }
								?>
				                

				            </div>
					    </div>
						<?php endif; ?>
					<?php }elseif(get_post_meta(get_the_ID(), '_cmb_embed_video', true)!=""){ 

					if(get_post_format( ) == 'audio') :
					?>
					<div class="blog-media">
						<div class="resp-audio">
						<?php
						$audio_url = get_post_meta(get_the_ID(), '_cmb_embed_video', true);
						if(preg_match('/(.mp3|.ogg|.wma|.m4a|.wav)$/i', $audio_url )){
							$attr = array(
								'src'      => $audio_url,
								'loop'     => '',
								'autoplay' => '',
								'preload'  => 'none'
							);
							echo wp_audio_shortcode( $attr );
						}else{
							echo wp_oembed_get($audio_url, array('height'=>'166') );
						}
						?>
						</div>
					</div>
					<?php else : ?>
					<div class="blog-media">
						<div class="resp-video">
							<?php echo wp_oembed_get(get_post_meta(get_the_ID(), '_cmb_embed_video', true)); ?>
						</div>
					</div>
					<?php endif ; ?>
					<?php }elseif(has_post_thumbnail( )){ ?>
					<div class="blog-media">
						<div class="box-item">
		                    <?php the_post_thumbnail('full',array('class'=>'respimg') ); ?>
		                </div>
		            </div>
					<?php } ?>
		        <?php endif;?>
		            <div class="blog-text">
		                <?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>
		        </article>
			
		        <!-- post end -->
			    <div class="content-nav nav-border-top">
			    	<?php domik_post_nav();?>
			        <div class="p-all">
			            <a href="<?php echo esc_url( domik_get_option('blog_list_link') );?>" class="ajax"><i class="fa fa-th-large"></i></a>
			        </div>
			    </div>
			    <?php
				if ( comments_open() || get_comments_number() ) :
					
				 	comments_template(); 
				 	
				endif; ?>
			

				<?php endwhile;?>

		    </div>
		    
		    <div class="col-md-<?php echo esc_attr($sb_w );?> post-sidebar-column sidebar-right">
				<div class="blog-sidebar">
        			<?php get_sidebar( ); ?>
        		</div>
			</div>

	    </div><!-- end .row -->
        
    </section>
    
</div>

<?php 
get_footer('inner'); 
get_footer(); 
?>