wp/wp-content/themes/IN-MOTION-package-u1/in-motion/single.php
author ymh <ymh.work@gmail.com>
Mon, 08 Sep 2025 19:44:41 +0200
changeset 23 417f20492bf7
parent 1 f6eb5a861d2f
permissions -rwxr-xr-x
Update Docker configuration and plugin versions - Upgrade MariaDB from 10.6 to 11 with auto-upgrade support - Add WordPress debug environment variable to FPM container - Update PHP-FPM Dockerfile base image - Update Include Mastodon Feed plugin with bug fixes and improvements - Update Portfolio plugin (v2.58) with latest translations and demo data enhancements - Remove old README.md from Mastodon Feed plugin 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>

<?php get_header(); ?>
			
	<script type="text/javascript">
	$(document).ready(function(){
		$("a#example1").fancybox();
	}); 
</script>
			
	<div id="content" class="clearfix">
	<div id="blog-post"><!-- start BLOG section -->
	<?php menu(-1); ?>
	<div class="clearfix"></div>
						<div class="page-title mt37">
							<h2  class="titleH2" ><?php _e('Controverses','pego_tr'); ?></h2>
							<span class="shortDesc11">}</span><p class="shortDesc12">Études réalisées par les étudiants de BTS communication et médias numériques </p>
		
						</div>
					</div>
		<div id="main-left" class="fl">
			
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

				<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
					
					
					<?php setPostViews(get_the_ID()); ?><!--  counting views of post -->
					
					
					
					
					<h3 class="blog-post-title"><?php the_title(); ?></h3>
					
					<div class="clearfix"></div>	
					<?php 
					//portofolio meta
						 $postType = get_post_meta($post->ID, 'post_type_selected' , true); 
						 
						 
						 if($postType == 'Slideshow') 			//slidehow portfolio    
						 {
						 		$attachments = get_children(array('post_parent' => $post->ID,
				                        'post_status' => 'inherit',
			                            'post_type' => 'attachment',
				                        'post_mime_type' => 'image',
				                        'order' => 'ASC',
				                        'orderby' => 'menu_order ID'));
				 		
				 					echo '<div id="slides">';
									echo '<div class="slides_container">';
									
									foreach($attachments as $att_id => $attachment) {
										$full_img_url = wp_get_attachment_url($attachment->ID);
										echo '<div class="slide">';
										?>
										<a href="#"><img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo get_image_path($full_img_url); ?>&h=350&w=640&zc=1" title="" alt=""></a>
										<?php
										echo '</div>';
								} //end foreach
								echo '</div>';
								echo '</div>';

						 }// end if slideshow
						 
						if($postType == 'Image') 			//slidehow KOPIJA!!!.. če zgoraj zajebeš..
						{
								 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
								 ?>
								 <a id="example1" class="lightbox-image" href="<?php echo $image[0]; ?>"><img  src="<?php echo $image[0]; ?>"  alt="" /></a>
								 <?php
						
						}// end if image
						 
			
						 if($postType == 'Video') 			//video post
						 {
						 	$video_url= get_post_meta($post->ID, 'post_video_url' , true);   //POPRAVI, KO NAJDEŠ NAPAKO ZA VIDEO
						 	if(!empty($video_url)) 
						 	{
						 		echo '<figure>'.$video_url.'</figure>';
						 	}						
						 }// end if video
						?>			
			
			<?php /******************************************************** AFTER IMAGE ***********************************************************************************/ ?>
				<div class="blog-line"></div>
				
				<div class="blog-post-content">
					<p><?php the_content(); ?></p>	
				</div>
				
				<div class="blog-post-tags fl">
					<?php 
						$tagss=get_the_tags( '', ', ', '');
							if(!empty($tagss)){
					?>
								<p class="blog-post-tags">
									<?php _e('Tags:','pego_tr'); ?> <?php the_tags( '', ', ', '');
							}
							 ?></p>	
				</div>
				<div class="share-socials fr">
					<p class="dinline fl"><?php _e('Share:','pego_tr'); ?> </p>
							<ul>
								<li><a rel="external" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>?p=274&t=<?php the_title(); ?>" target="blank"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook11.png" alt="" title="Facebook"></a></li>
								<li><?php echo 	'<a rel="external" href="http://twitter.com/home?status=Look this- '.get_permalink($post->ID).'" title="" target="_blank">'; ?> <img src="<?php echo get_template_directory_uri(); ?>/images/twitter1.png" alt="" title="Twitter" ><?php echo '</a>'; ?></li>
								<li><a rel="external" href="https://www.google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="blank"><img src="<?php echo get_template_directory_uri(); ?>/images/google-plus1.png" alt="" title="Google Plus"></a></li>
								<li class="last"><a rel="external" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="blank"><img src="<?php echo get_template_directory_uri(); ?>/images/linkedin1.png" alt="" title="Linkedin" ></a></li>
							</ul>	
					
				</div>
				
				<div class="clearfix"></div>
				<div class="blog-line"></div>
				
				<div class="entry clearfix mt20" ><!-- start comments -->
					<div class="project-details fl projectDetailsFix" >
						<h3 class="blog-post-title"><?php _e('Comments','pego_tr'); ?></h3>
						<?php comments_template(); ?>
					</div>
				</div><!-- end comments -->
					
				</div><!-- end div for reading posts -->
			<?php endwhile; endif; ?>			
		</div><!-- end main left -->
		
		<div id="sidebar-right" class="fl"> 
			<?php get_sidebar(); ?>
		</div>
	</div>
</div>
<?php get_footer(); ?>