author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 1 | f6eb5a861d2f |
permissions | -rwxr-xr-x |
0 | 1 |
<?php get_header(); ?> |
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
$(document).ready(function(){ |
|
5 |
$("a#example1").fancybox(); |
|
6 |
}); |
|
7 |
</script> |
|
8 |
|
|
9 |
<div id="content" class="clearfix"> |
|
10 |
<div id="blog-post"><!-- start BLOG section --> |
|
11 |
<?php menu(-1); ?> |
|
12 |
<div class="clearfix"></div> |
|
13 |
<div class="page-title mt37"> |
|
14 |
<h2 class="titleH2" ><?php _e('Controverses','pego_tr'); ?></h2> |
|
15 |
<span class="shortDesc11">}</span><p class="shortDesc12">Études réalisées par les étudiants de BTS communication et médias numériques </p> |
|
16 |
|
|
17 |
</div> |
|
18 |
</div> |
|
19 |
<div id="main-left" class="fl"> |
|
20 |
|
|
21 |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
|
22 |
||
23 |
<div <?php post_class() ?> id="post-<?php the_ID(); ?>"> |
|
24 |
|
|
25 |
|
|
26 |
<?php setPostViews(get_the_ID()); ?><!-- counting views of post --> |
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
<h3 class="blog-post-title"><?php the_title(); ?></h3> |
|
32 |
|
|
33 |
<div class="clearfix"></div> |
|
34 |
<?php |
|
35 |
//portofolio meta |
|
36 |
$postType = get_post_meta($post->ID, 'post_type_selected' , true); |
|
37 |
||
38 |
||
39 |
if($postType == 'Slideshow') //slidehow portfolio |
|
40 |
{ |
|
41 |
$attachments = get_children(array('post_parent' => $post->ID, |
|
42 |
'post_status' => 'inherit', |
|
43 |
'post_type' => 'attachment', |
|
44 |
'post_mime_type' => 'image', |
|
45 |
'order' => 'ASC', |
|
46 |
'orderby' => 'menu_order ID')); |
|
47 |
||
48 |
echo '<div id="slides">'; |
|
49 |
echo '<div class="slides_container">'; |
|
50 |
||
51 |
foreach($attachments as $att_id => $attachment) { |
|
52 |
$full_img_url = wp_get_attachment_url($attachment->ID); |
|
53 |
echo '<div class="slide">'; |
|
54 |
?> |
|
1
f6eb5a861d2f
remove unnessary files. Make timthumb work
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
55 |
<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> |
0 | 56 |
<?php |
57 |
echo '</div>'; |
|
58 |
} //end foreach |
|
59 |
echo '</div>'; |
|
60 |
echo '</div>'; |
|
61 |
||
62 |
}// end if slideshow |
|
63 |
||
64 |
if($postType == 'Image') //slidehow KOPIJA!!!.. če zgoraj zajebeš.. |
|
65 |
{ |
|
66 |
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); |
|
67 |
?> |
|
68 |
<a id="example1" class="lightbox-image" href="<?php echo $image[0]; ?>"><img src="<?php echo $image[0]; ?>" alt="" /></a> |
|
69 |
<?php |
|
70 |
||
71 |
}// end if image |
|
72 |
||
73 |
||
74 |
if($postType == 'Video') //video post |
|
75 |
{ |
|
76 |
$video_url= get_post_meta($post->ID, 'post_video_url' , true); //POPRAVI, KO NAJDEŠ NAPAKO ZA VIDEO |
|
77 |
if(!empty($video_url)) |
|
78 |
{ |
|
79 |
echo '<figure>'.$video_url.'</figure>'; |
|
80 |
} |
|
81 |
}// end if video |
|
82 |
?> |
|
83 |
|
|
84 |
<?php /******************************************************** AFTER IMAGE ***********************************************************************************/ ?> |
|
85 |
<div class="blog-line"></div> |
|
86 |
|
|
87 |
<div class="blog-post-content"> |
|
88 |
<p><?php the_content(); ?></p> |
|
89 |
</div> |
|
90 |
|
|
91 |
<div class="blog-post-tags fl"> |
|
92 |
<?php |
|
93 |
$tagss=get_the_tags( '', ', ', ''); |
|
94 |
if(!empty($tagss)){ |
|
95 |
?> |
|
96 |
<p class="blog-post-tags"> |
|
97 |
<?php _e('Tags:','pego_tr'); ?> <?php the_tags( '', ', ', ''); |
|
98 |
} |
|
99 |
?></p> |
|
100 |
</div> |
|
101 |
<div class="share-socials fr"> |
|
102 |
<p class="dinline fl"><?php _e('Share:','pego_tr'); ?> </p> |
|
103 |
<ul> |
|
104 |
<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> |
|
105 |
<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> |
|
106 |
<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> |
|
107 |
<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> |
|
108 |
</ul> |
|
109 |
|
|
110 |
</div> |
|
111 |
|
|
112 |
<div class="clearfix"></div> |
|
113 |
<div class="blog-line"></div> |
|
114 |
|
|
115 |
<div class="entry clearfix mt20" ><!-- start comments --> |
|
116 |
<div class="project-details fl projectDetailsFix" > |
|
117 |
<h3 class="blog-post-title"><?php _e('Comments','pego_tr'); ?></h3> |
|
118 |
<?php comments_template(); ?> |
|
119 |
</div> |
|
120 |
</div><!-- end comments --> |
|
121 |
|
|
122 |
</div><!-- end div for reading posts --> |
|
123 |
<?php endwhile; endif; ?> |
|
124 |
</div><!-- end main left --> |
|
125 |
|
|
126 |
<div id="sidebar-right" class="fl"> |
|
127 |
<?php get_sidebar(); ?> |
|
128 |
</div> |
|
129 |
</div> |
|
130 |
</div> |
|
1
f6eb5a861d2f
remove unnessary files. Make timthumb work
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
131 |
<?php get_footer(); ?> |