equal
deleted
inserted
replaced
129 //détection de la langue |
129 //détection de la langue |
130 if (class_exists('xili_language')) { |
130 if (class_exists('xili_language')) { |
131 $current_lang = the_cur_lang_dir(); |
131 $current_lang = the_cur_lang_dir(); |
132 if (get_cur_language($post->ID)!=$current_lang['lang']){continue;} |
132 if (get_cur_language($post->ID)!=$current_lang['lang']){continue;} |
133 } |
133 } |
|
134 $url = get_post_meta($post->ID, '_link', true); |
|
135 $blank = false; |
|
136 if (preg_match("/^http:\/{2}/",$url)){ |
|
137 $blank = true; |
|
138 } |
134 ?> |
139 ?> |
135 <li><a href="<?php echo get_post_meta($post->ID, '_link', true); ?>"> |
140 <li><a <?php if($blank){echo 'target="_blank"';}?> href="<?php echo $url; ?>"> |
136 <?php the_post_thumbnail('slider'); ?> |
141 <?php the_post_thumbnail('slider'); ?> |
137 <div class="pikslider-content"> |
142 <div class="pikslider-content"> |
138 <h2><?php echo the_title(); ?></h2> |
143 <h2><?php echo the_title(); ?></h2> |
139 <?php echo the_content(); ?> |
144 <?php echo the_content(); ?> |
140 </div> |
145 </div> |