Changeset 221541
- Timestamp:
- 03/25/2010 04:36:08 AM (16 years ago)
- Location:
- frontpage-slideshow/trunk
- Files:
-
- 2 edited
-
frontpage-slideshow.php (modified) (30 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontpage-slideshow/trunk/frontpage-slideshow.php
r171580 r221541 24 24 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 */ 26 define ('FRONTPAGE_SLIDESHOW_VERSION', '0. 8');26 define ('FRONTPAGE_SLIDESHOW_VERSION', '0.9'); 27 27 $fs_already_displayed = false; // the slideshow dont have been displayed yet 28 28 function frontpageSlideshow($content,$force_display=false,$options=array()) { … … 75 75 $fslast = count($fsentries) -1; 76 76 if (count($fsentries)) { 77 $fscontent = '<div id="fs-main"><div id="fs-slide"><div id="fs-picture"><div id="fs-placeholder"><a href="#frontpage-slideshow" onclick="if (fsid>-1) { if ( $(\'fs-entry-link-\'+fsid).innerHTML != \'\') { this.href=$(\'fs-entry-link-\'+fsid).innerHTML; } }"> </a></div><div id="fs-text"><div id="fs-title"> </div><div id="fs-excerpt"> </div></div></div></div><ul>';77 $fscontent = '<div id="fs-main"><div id="fs-slide"><div id="fs-picture"><div id="fs-placeholder"><a href="#frontpage-slideshow" onclick="if (fsid>-1) { if (jQuery(\'#fs-entry-link-\'+fsid).html() != \'\') { this.href=jQuery(\'#fs-entry-link-\'+fsid).html(); alert(jQuery(\'#fs-entry-link-\'+fsid).html()); } }"> </a></div><div id="fs-text"><div id="fs-title"> </div><div id="fs-excerpt"> </div></div></div></div><ul>'; 78 78 foreach ($fsentries as $id=>$entry) { 79 79 $fscontent .= '<li id="fs-entry-'.$id.'" class="fs-entry" onclick="window.clearInterval(fsinterval); fsChangeSlide('.$id.')">'; … … 97 97 function frontpageSlideshow_init() { 98 98 // loads the needed frameworks to load as a safe way 99 wp_enqueue_script('scriptaculous-effects'); // will load PrototypeJS ans Scriptaculous + Scriptaculous Effects 99 // now using jQuery framework instead of Prototype+Scriptaculous 100 wp_register_script('jquery-ui-effects',get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/js/jquery-ui-effects.js', array('jquery-ui-core')); 101 wp_enqueue_script('jquery-ui-effects'); 102 } 103 function frontpageSlideshow_admin_init() { 104 // loads the needed frameworks to load as a safe way into admin page 105 // now using jQuery framework instead of Prototype+Scriptaculous 106 wp_register_script('jquery-ui-interactions',get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/js/jquery-ui-interactions.js', array('jquery-ui-core')); 107 wp_enqueue_script('jquery-ui-interactions'); 108 wp_enqueue_script('thickbox'); 100 109 } 101 110 … … 114 123 } 115 124 125 function frontpageSlideshow_JS_effect($effect) { 126 if ($effect == 'same') $effect = $options['values']['fs_transition']; 127 if ($effect == 'random') { 128 $transitions = array('fade', 'shrink', 'dropout', 'jumpup', 'explode', 'clip', 'dropleft', 'dropright', 'slideleft', 'slideright', 'fold', 'puff'); 129 $effect = $transitions[rand(0,count($transitions)-1)]; 130 } 131 switch ($effect) { 132 case 'fadeout': 133 case 'fade': 134 return 'jQuery("#fs-slide").toggle("fade", {}, 500, fsChangeSlide2);'; 135 case 'scale': 136 case 'shrink': 137 return 'jQuery("#fs-slide").toggle("scale", {}, 500, fsChangeSlide2);'; 138 case 'dropout': 139 case 'drodown': 140 return 'jQuery("#fs-slide").toggle("drop", {direction: "down"}, 500, fsChangeSlide2);'; 141 case 'jumpup': 142 case 'dropup': 143 return 'jQuery("#fs-slide").toggle("drop", {direction: "up"}, 500, fsChangeSlide2);'; 144 case 'explode': 145 return 'jQuery("#fs-slide").toggle("explode", {}, 500, fsChangeSlide2);'; 146 case 'clip': 147 return 'jQuery("#fs-slide").toggle("clip", {direction: "vertical"}, 500, fsChangeSlide2);'; 148 case 'dropleft': 149 return 'jQuery("#fs-slide").toggle("drop", {direction: "left"}, 500, fsChangeSlide2);'; 150 case 'dropright': 151 return 'jQuery("#fs-slide").toggle("drop", {direction: "right"}, 500, fsChangeSlide2);'; 152 case 'slideleft': 153 return 'jQuery("#fs-slide").toggle("slide", {direction: "left"}, 500, fsChangeSlide2);'; 154 case 'slideright': 155 return 'jQuery("#fs-slide").toggle("drop", {direction: "right"}, 500, fsChangeSlide2);'; 156 case 'fold': 157 return 'jQuery("#fs-slide").toggle("fold", {}, 500, fsChangeSlide2);'; 158 case 'puff': 159 return 'jQuery("#fs-slide").toggle("puff", {}, 500, fsChangeSlide2);'; 160 default: 161 return 'jQuery("#fs-slide").toggle("fade", {}, 500, fsChangeSlide2);'; 162 } 163 } 116 164 function frontpageSlideshow_JS($options,$fslast) { 117 165 ?> 118 166 <!-- added by plugin FrontpageSlideshow --> 119 167 <script type="text/javascript"> 120 / * <![CDATA[ */121 var fslast = <?php echo $fslast?>; // # of last slide (if less than 4)168 // <![CDATA[ 169 var fslast = <?php echo $fslast?>; // # of last slide 122 170 var fsid = -1; // the current slide 123 171 var fsinterval = 0; // the setInterval var 124 172 function fsChangeSlide(id) { 125 $('fs-entry-'+fsid).removeClassName('fs-current');173 jQuery("#fs-entry-"+fsid).removeClass("fs-current"); 126 174 fsid=id; 127 175 window.clearInterval(fsinterval); 128 <?php 129 switch ($options['values']['fs_transition']) { 130 case 'fade': 131 echo "\tnew Effect.Fade('fs-slide',{ duration: 0.5, afterFinish: fsChangeSlide2 });\n"; 132 break; 133 case 'shrink': 134 echo "\tnew Effect.Shrink('fs-slide',{ duration: 0.5, afterFinish: fsChangeSlide2 });\n"; 135 break; 136 case 'dropout': 137 echo "\tnew Effect.DropOut('fs-slide',{ duration: 0.5, afterFinish: fsChangeSlide2 });\n"; 138 break; 139 case 'jumpup': 140 echo "\tnew Effect.toggle('fs-slide','slide',{ duration: 0.5, afterFinish: fsChangeSlide2 });\n"; 141 break; 142 } 143 ?> 176 <?php echo frontpageSlideshow_JS_effect($options['values']['fs_transition']); ?> 177 144 178 } 145 179 function fsChangeSlide2() { 146 $('fs-picture').style.backgroundImage='url('+$('fs-entry-img-'+fsid).src+')'; 147 $('fs-title').innerHTML=$('fs-entry-title-'+fsid).innerHTML; 148 $('fs-excerpt').innerHTML=$('fs-entry-comment-'+fsid).innerHTML; 149 new Effect.Appear('fs-slide',{ duration: 0.5}); 150 $('fs-entry-'+fsid).addClassName('fs-current'); 180 jQuery('#fs-picture').css({backgroundImage : "url("+jQuery("#fs-entry-img-"+fsid).attr("src")+")"}); 181 jQuery('#fs-title').html(jQuery('#fs-entry-title-'+fsid).html()); 182 jQuery('#fs-excerpt').html(jQuery('#fs-entry-comment-'+fsid).html()); 183 jQuery("#fs-slide").fadeIn(500); 184 //<?php //echo str_replace(', fsChangeSlide2','',frontpageSlideshow_JS_effect($options['values']['fs_transition_on'])); ?> 185 186 jQuery("#fs-entry-"+fsid).addClass('fs-current'); 151 187 frontpageSlideshow(); 152 188 } 153 189 function fsDoSlide() { 154 if (fsid>-1) $('fs-entry-'+fsid).removeClassName('fs-current'); 190 // fixes the width of slide to convert its width from % to px 191 jQuery("#fs-slide").css({width : jQuery("#fs-slide").css('width')}); 192 193 if (fsid>-1) jQuery("#fs-entry-"+fsid).removeClass("fs-current"); 155 194 fsid++; 156 195 if (fsid>fslast) fsid = 0; // new loop ! … … 160 199 fsinterval = window.setInterval('fsDoSlide()',5000); 161 200 } 162 / * ]]> */201 // ]]> 163 202 </script> 164 203 <!-- /added by plugin FrontpageSlideshow --> … … 176 215 <!-- added by plugin FrontpageSlideshow --> 177 216 <!--[if IE]> 178 <style type="text/css"> 179 #fs-text { 180 filter: alpha(opacity=<?php echo str_replace('%','',$options['values']['fs_text_opacity'])?>); 181 } 182 </style> 217 <style type="text/css"> 218 #fs-text { filter: alpha(opacity=<?php echo str_replace('%','',$options['values']['fs_text_opacity'])?>); } 219 </style> 183 220 <![endif]--> 184 221 <?php ob_start(); ?> … … 192 229 border-radius: 5px; 193 230 overflow: hidden; 194 background-color: <?php echo $options['values']['fs_main_color']?>; 231 background: <?php echo $options['values']['fs_main_color']?> <?php 232 if ($options['values']['fs_main_background_image'] != '' && $options['values']['fs_main_background_image'] != 'none') { 233 $url = $options['values']['fs_main_background_image']; 234 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')'; 235 } else { 236 echo 'none'; 237 } 238 ?> repeat scroll center center!important; 195 239 color: <?php echo $options['values']['fs_font_color']?>; 196 240 font-family: Verdana, Sans, Helvetica, Arial, sans-serif!important; 197 241 text-align: left; 198 242 } 243 199 244 #fs-slide { 200 245 float: <?php if ($options['values']['fs_buttons_position']=='right') echo 'left'; else echo 'right'; ?>; … … 211 256 background-position: center center; 212 257 background-repeat: no-repeat; 213 background-image: url(<?php (is_ssl()) ? $url = str_replace('http://','https://',get_bloginfo('url')) : $url = str_replace('https://','http://',get_bloginfo('url')); echo $url ?>/wp-content/plugins/frontpage-slideshow/images/loading_black.gif); 258 background-image: url(<?php 259 if ($options['values']['fs_loader_image'] != '') { 260 $url = $options['values']['fs_loader_image']; 261 } else { 262 $url = get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/images/loading_black.gif'; 263 } 264 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo $url ?>); 214 265 -moz-border-radius: 5px; 215 266 -khtml-border-radius: 5px; … … 279 330 float: <?php echo $options['values']['fs_buttons_position']?>!important; 280 331 clear: none!important; 281 282 332 margin: 0!important; 283 333 padding: 0!important; 284 285 width: <?php echo $options['values']['fs_buttons_width']?>!important; 334 width: <?php if ($options['values']['fs_slide_width']=='100%') echo '0'; else echo $options['values']['fs_buttons_width']?>!important; 286 335 height: 100%; 287 288 336 list-style: none!important; 289 290 background-image: none!important; 291 337 background: <?php echo $options['values']['fs_ul_background_color']?> <?php 338 if ($options['values']['fs_ul_background_image'] != '' && $options['values']['fs_ul_background_image'] != 'none') { 339 $url = $options['values']['fs_ul_background_image']; 340 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')'; 341 } else { 342 echo 'none'; 343 } 344 ?> repeat scroll center center!important; 292 345 -moz-border-radius: 5px; 293 346 -khtml-border-radius: 5px; 294 347 -webkit-border-radius: 5px; 295 348 border-radius: 5px; 349 z-index: 99999; 296 350 } 297 351 #fs-main li { 298 352 display: block!important; 299 300 353 padding: 5px!important; 301 margin: 0; 302 354 margin: 0!important; 303 355 width: 100%!important; 304 height: 55px; 305 306 background-image: none!important; 307 356 height: 55px!important; 308 357 -moz-border-radius: 3px; 309 358 -khtml-border-radius: 3px; 310 359 -webkit-border-radius: 3px; 311 360 border-radius: 3px; 312 313 361 cursor: pointer; 314 362 } … … 317 365 318 366 .fs-entry { 319 background-color: <?php echo $options['values']['fs_button_normal_color']?>!important; 320 margin: 0; 321 overflow: hidden; 367 background: <?php echo $options['values']['fs_button_normal_color']?> <?php 368 if ($options['values']['fs_button_background_image'] != '' && $options['values']['fs_button_background_image'] != 'none') { 369 $url = $options['values']['fs_button_background_image']; 370 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')'; 371 } else { 372 echo 'none'; 373 } 374 ?> repeat scroll center center!important; 375 margin: 0!important; 376 overflow: hidden!important; 322 377 } 323 378 .fs-entry:hover { 324 background-color: <?php echo $options['values']['fs_button_hover_color']?>!important; 379 background: <?php echo $options['values']['fs_button_hover_color']?> <?php 380 if ($options['values']['fs_button_hover_background_image'] != '' && $options['values']['fs_button_hover_background_image'] != 'none') { 381 $url = $options['values']['fs_button_hover_background_image']; 382 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')'; 383 } else { 384 echo 'none'; 385 } 386 ?> repeat scroll center center!important; 325 387 } 326 388 .fs-current { 327 background-color: <?php echo $options['values']['fs_button_current_color']?>!important; 389 background: <?php echo $options['values']['fs_button_current_color']?> <?php 390 if ($options['values']['fs_current_button_background_image'] != '' && $options['values']['fs_current_button_background_image'] != 'none') { 391 $url = $options['values']['fs_current_button_background_image']; 392 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo 'url('.$url.')'; 393 } else { 394 echo 'none'; 395 } 396 ?> repeat scroll center center!important; 328 397 } 329 398 .fs-skip { 330 399 position: absolute!important; 331 400 top: -300000px!important; 401 width: 0!important; 402 height: 0!important; 332 403 } 333 404 <?php 334 405 $css = ob_get_contents(); 406 define('FS_CSS',$css); 335 407 ob_end_clean(); 336 408 ?> … … 429 501 'fs_button_current_color' => '#444', 430 502 'fs_buttons_position' => 'right', 503 'fs_ul_color' => '#000', 431 504 'fs_text_bgcolor' => '#000', 432 505 'fs_text_opacity' => '75%', … … 435 508 'fs_main_border_color' => '#444', 436 509 'fs_transition' => 'fade', 510 //'fs_transition_on' => 'fade', 437 511 'fs_orderby' => 'ID', 438 512 'fs_order' => 'DESC', 439 513 'fs_show_comment' => 1, 514 'fs_main_background_image' => '', 515 'fs_ul_background_image' => '', 516 'fs_button_background_image' => '', 517 'fs_button_hover_background_image' => '', 518 'fs_current_button_background_image' => '', 519 'fs_loader_image' => get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/images/loading_black.gif', 440 520 )); 441 521 $infos = array ( … … 457 537 'fs_button_current_color' => 'css-color', 458 538 'fs_buttons_position' => 'left-right', 539 'fs_ul_color' => 'css-color', 459 540 'fs_text_bgcolor' => 'css-color', 460 541 'fs_text_opacity' => 'percent', … … 463 544 'fs_main_border_color' => 'css-color', 464 545 'fs_transition' => 'transition', 546 //'fs_transition_on' => 'transition_on', 465 547 'fs_orderby' => 'orderby', 466 548 'fs_order' => 'order', 467 549 'fs_show_comment' => 'bool', 550 'fs_main_background_image' => 'variant', 551 'fs_ul_background_image' => 'variant', 552 'fs_button_background_image' => 'variant', 553 'fs_button_hover_background_image' => 'variant', 554 'fs_current_button_background_image' => 'variant', 555 'fs_loader_image' => 'variant', 468 556 ), 469 557 'names' => array ( … … 484 572 'fs_button_current_color' => __('The buttons\' color (current)','frontpage-slideshow'), 485 573 'fs_buttons_position' => __('The buttons position','frontpage-slideshow'), 574 'fs_ul_color' => __('The buttons bar background color','frontpage-slideshow'), 486 575 'fs_text_bgcolor' => __('The main text background color','frontpage-slideshow'), 487 576 'fs_text_opacity' => __('The main text opacity','frontpage-slideshow'), … … 489 578 'fs_font_color' => __('The font color','frontpage-slideshow'), 490 579 'fs_main_border_color' => __('The slideshow border color','frontpage-slideshow'), 491 'fs_transition' => __('The transition mode','frontpage-slideshow'), 580 'fs_transition' => __('The transition mode at the end of a slide','frontpage-slideshow'), 581 //'fs_transition_on' => __('The transition mode at the begining of a slide','frontpage-slideshow'), 492 582 'fs_orderby' => __('The slide order base','frontpage-slideshow'), 493 583 'fs_order' => __('The slide order','frontpage-slideshow'), 494 584 'fs_order' => __('The show comment option','frontpage-slideshow'), 585 'fs_main_background_image' => __('The slideshow background image','frontpage-slideshow'), 586 'fs_ul_background_image' => __('The buttons bar background image','frontpage-slideshow'), 587 'fs_button_background_image' => __('The buttons background image','frontpage-slideshow'), 588 'fs_button_hover_background_image' => __('The hovered button background image','frontpage-slideshow'), 589 'fs_current_button_background_image' => __('The current button background image','frontpage-slideshow'), 590 'fs_loader_image' => __('The loader animation image','frontpage-slideshow'), 495 591 ), 496 592 ); … … 608 704 break; 609 705 case 'transition': 610 $transitions = array('fade', 'shrink', 'dropout', 'jumpup' );706 $transitions = array('fade', 'shrink', 'dropout', 'jumpup', 'explode', 'clip', 'dropleft', 'dropright', 'slideleft', 'slideright', 'fold', 'puff', 'random'); 611 707 if (!in_array(trim($val),$transitions)) { 612 708 $bad_values[] = $options['names'][$key]; … … 616 712 } 617 713 break; 714 /* case 'transition_on': 715 $transitions = array('fade', 'shrink', 'dropout', 'jumpup', 'explode', 'clip', 'dropleft', 'dropright', 'slideleft', 'slideright', 'fold', 'puff', 'random', 'same'); 716 if (!in_array(trim($val),$transitions)) { 717 $bad_values[] = $options['names'][$key]; 718 } else { 719 $val = trim($val); 720 $value_ok = true; 721 } 722 break;*/ 618 723 case 'orderby': 619 724 $orderby = array('date', 'modified', 'menu_order', 'ID', 'rand'); … … 634 739 } 635 740 break; 741 case 'variant': 742 default: 743 $val = trim($val); 744 $value_ok = true; 636 745 } 637 746 if ($value_ok) { … … 896 1005 <option value="0"<?php if (!$options['values']['fs_show_buttons']) echo ' selected="selected"'?>><?php _e('No','frontpage-slideshow'); ?></option> 897 1006 </select></p> 898 <p><label for="fs_transition"><?php _e('Tansition mode between slides to use','frontpage-slideshow')?> <select id="fs_transition" name="fs_transition"> 899 <option value="fade"<?php if ($options['values']['fs_transition']=='fade') echo ' selected="selected"'?>><?php _e('fade','frontpage-slideshow'); ?></option> 900 <option value="shrink"<?php if ($options['values']['fs_transition']=='shrink') echo ' selected="selected"'?>><?php _e('shrink','frontpage-slideshow'); ?></option> 901 <option value="dropout"<?php if ($options['values']['fs_transition']=='dropout') echo ' selected="selected"'?>><?php _e('drop out','frontpage-slideshow'); ?></option> 902 <option value="jumpup"<?php if ($options['values']['fs_transition']=='jumpup') echo ' selected="selected"'?>><?php _e('jump up','frontpage-slideshow'); ?></option> 1007 <p><label for="fs_transition"><?php _e('Tansition mode between slides : at the end of a slide','frontpage-slideshow')?> <select id="fs_transition" name="fs_transition"> 1008 <option value="fade"<?php if ($options['values']['fs_transition']=='fade') echo ' selected="selected"'?>><?php _e('fade','frontpage-slideshow'); ?></option> 1009 <option value="shrink"<?php if ($options['values']['fs_transition']=='shrink') echo ' selected="selected"'?>><?php _e('shrink / scale','frontpage-slideshow'); ?></option> 1010 <option value="dropout"<?php if ($options['values']['fs_transition']=='dropout') echo ' selected="selected"'?>><?php _e('drop (fade and slide) out / down','frontpage-slideshow'); ?></option> 1011 <option value="jumpup"<?php if ($options['values']['fs_transition']=='jumpup') echo ' selected="selected"'?>><?php _e('jump up / slide up','frontpage-slideshow'); ?></option> 1012 <option value="explode"<?php if ($options['values']['fs_transition']=='explode') echo ' selected="selected"'?>><?php _e('explode','frontpage-slideshow'); ?></option> 1013 <option value="clip"<?php if ($options['values']['fs_transition']=='clip') echo ' selected="selected"'?>><?php _e('clip','frontpage-slideshow'); ?></option> 1014 <option value="dropleft"<?php if ($options['values']['fs_transition']=='dropleft') echo ' selected="selected"'?>><?php _e('drop (fade and slide) on left','frontpage-slideshow'); ?></option> 1015 <option value="dropright"<?php if ($options['values']['fs_transition']=='dropright') echo ' selected="selected"'?>><?php _e('drop (fade and slide) on right','frontpage-slideshow'); ?></option> 1016 <option value="slideleft"<?php if ($options['values']['fs_transition']=='slideleft') echo ' selected="selected"'?>><?php _e('slide on left','frontpage-slideshow'); ?></option> 1017 <option value="slideright"<?php if ($options['values']['fs_transition']=='slideright') echo ' selected="selected"'?>><?php _e('slide on right','frontpage-slideshow'); ?></option> 1018 <option value="fold"<?php if ($options['values']['fs_transition']=='fold') echo ' selected="selected"'?>><?php _e('fold','frontpage-slideshow'); ?></option> 1019 <option value="random"<?php if ($options['values']['fs_transition']=='random') echo ' selected="selected"'?>><?php _e('random effect','frontpage-slideshow'); ?></option> 903 1020 </select></p> 1021 <!--p><label for="fs_transition_on"><?php _e('Tansition mode between slides : at the begining','frontpage-slideshow')?> <select id="fs_transition_on" name="fs_transition_on"> 1022 <option value="fade"<?php if ($options['values']['fs_transition_on']=='fade') echo ' selected="selected"'?>><?php _e('fade','frontpage-slideshow'); ?></option> 1023 <option value="shrink"<?php if ($options['values']['fs_transition_on']=='shrink') echo ' selected="selected"'?>><?php _e('shrink / scale','frontpage-slideshow'); ?></option> 1024 <option value="dropout"<?php if ($options['values']['fs_transition_on']=='dropout') echo ' selected="selected"'?>><?php _e('drop (fade and slide) out / down','frontpage-slideshow'); ?></option> 1025 <option value="jumpup"<?php if ($options['values']['fs_transition_on']=='jumpup') echo ' selected="selected"'?>><?php _e('jump up / slide up','frontpage-slideshow'); ?></option> 1026 <option value="explode"<?php if ($options['values']['fs_transition_on']=='explode') echo ' selected="selected"'?>><?php _e('explode','frontpage-slideshow'); ?></option> 1027 <option value="clip"<?php if ($options['values']['fs_transition_on']=='clip') echo ' selected="selected"'?>><?php _e('clip','frontpage-slideshow'); ?></option> 1028 <option value="dropleft"<?php if ($options['values']['fs_transition_on']=='dropleft') echo ' selected="selected"'?>><?php _e('drop (fade and slide) on left','frontpage-slideshow'); ?></option> 1029 <option value="dropright"<?php if ($options['values']['fs_transition_on']=='dropright') echo ' selected="selected"'?>><?php _e('drop (fade and slide) on right','frontpage-slideshow'); ?></option> 1030 <option value="slideleft"<?php if ($options['values']['fs_transition_on']=='slideleft') echo ' selected="selected"'?>><?php _e('slide on left','frontpage-slideshow'); ?></option> 1031 <option value="slideright"<?php if ($options['values']['fs_transition_on']=='slideright') echo ' selected="selected"'?>><?php _e('slide on right','frontpage-slideshow'); ?></option> 1032 <option value="fold"<?php if ($options['values']['fs_transition_on']=='fold') echo ' selected="selected"'?>><?php _e('fold','frontpage-slideshow'); ?></option> 1033 <option value="random"<?php if ($options['values']['fs_transition_on']=='random') echo ' selected="selected"'?>><?php _e('random effect','frontpage-slideshow'); ?></option> 1034 <option value="same"<?php if ($options['values']['fs_transition_on']=='same') echo ' selected="selected"'?>><?php _e('same as the end of slide','frontpage-slideshow'); ?></option> 1035 </select></p--> 904 1036 <p><label for="fs_show_comment"><?php _e('Show slide comment zone ?','frontpage-slideshow')?> <select id="fs_show_comment" name="fs_show_comment"> 905 1037 <option value="1"<?php if ($options['values']['fs_show_comment']) echo ' selected="selected"'?>><?php _e('Yes','frontpage-slideshow'); ?></option> … … 914 1046 <div class="inside" style="padding: 5px;"> 915 1047 <p><label for="fs_default_link_to_page_link"><select id="fs_default_link_to_page_link" name="fs_default_link_to_page_link"> 916 <option value="0"<?php if ( $options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?php _e('If no link is specidied : dont use the slide URL','frontpage-slideshow'); ?></option>917 <option value="1"<?php if ( !$options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?php _e('If no link is specidied : use the slide URL','frontpage-slideshow'); ?></option>1048 <option value="0"<?php if (!$options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?php _e('If no link is specidied : dont use the slide URL','frontpage-slideshow'); ?></option> 1049 <option value="1"<?php if ($options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?php _e('If no link is specidied : use the slide URL','frontpage-slideshow'); ?></option> 918 1050 </select></p> 919 1051 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> … … 940 1072 <h3><span><?php _e('About colors and opacities','frontpage-slideshow')?></span></h3> 941 1073 <div class="inside" style="padding: 5px;"> 942 <p><label for="fs_main_color"><?php _e('Slideshow background color','frontpage-slideshow')?> <input type="text" id="fs_main_color" name="fs_main_color" size="15" value="<?php echo $options['values']['fs_main_color']?>" /></label></p> 943 <p><label for="fs_main_border_color"><?php _e('Slideshow border color','frontpage-slideshow')?> <input type="text" id="fs_main_border_color" name="fs_main_border_color" size="15" value="<?php echo $options['values']['fs_main_border_color']?>" /></label></p> 944 <p><label for="fs_font_color"><?php _e('Font color','frontpage-slideshow')?> <input type="text" id="fs_font_color" name="fs_font_color" size="15" value="<?php echo $options['values']['fs_font_color']?>" /></label></p> 945 <p><label for="fs_button_normal_color"><?php _e('Buttons\' color (normal state)','frontpage-slideshow')?> <input type="text" id="fs_button_normal_color" name="fs_button_normal_color" size="15" value="<?php echo $options['values']['fs_button_normal_color']?>" /></label></p> 946 <p><label for="fs_button_hover_color"><?php _e('Buttons\' color (hover)','frontpage-slideshow')?> <input type="text" id="fs_button_hover_color" name="fs_button_hover_color" size="15" value="<?php echo $options['values']['fs_button_hover_color']?>" /></label></p> 947 <p><label for="fs_button_current_color"><?php _e('Buttons\' color (current)','frontpage-slideshow')?> <input type="text" id="fs_button_current_color" name="fs_button_current_color" size="15" value="<?php echo $options['values']['fs_button_current_color']?>" /></label></p> 948 <p><label for="fs_text_bgcolor"><?php _e('Main text background color','frontpage-slideshow')?> <input type="text" id="fs_text_bgcolor" name="fs_text_bgcolor" size="15" value="<?php echo $options['values']['fs_text_bgcolor']?>" /></label></p> 1074 <p><label for="fs_main_color"><?php _e('Slideshow background color','frontpage-slideshow')?> <input type="text" id="fs_main_color" name="fs_main_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_main_color']?>" /></label></p> 1075 <p><label for="fs_main_border_color"><?php _e('Slideshow border color','frontpage-slideshow')?> <input type="text" id="fs_main_border_color" name="fs_main_border_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_main_border_color']?>" /></label></p> 1076 <p><label for="fs_font_color"><?php _e('Font color','frontpage-slideshow')?> <input type="text" id="fs_font_color" name="fs_font_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_font_color']?>" /></label></p> 1077 <p><label for="fs_ul_color"><?php _e('Buttons bar\'s color','frontpage-slideshow')?> <input type="text" id="fs_ul_color" name="fs_ul_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_ul_color']?>" /></label></p> 1078 <p><label for="fs_button_normal_color"><?php _e('Buttons\' color (normal state)','frontpage-slideshow')?> <input type="text" id="fs_button_normal_color" name="fs_button_normal_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_button_normal_color']?>" /></label></p> 1079 <p><label for="fs_button_hover_color"><?php _e('Buttons\' color (hover)','frontpage-slideshow')?> <input type="text" id="fs_button_hover_color" name="fs_button_hover_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_button_hover_color']?>" /></label></p> 1080 <p><label for="fs_button_current_color"><?php _e('Buttons\' color (current)','frontpage-slideshow')?> <input type="text" id="fs_button_current_color" name="fs_button_current_color" class="colorpicker" size="15" value="<?php echo $options['values']['fs_button_current_color']?>" /></label></p> 1081 <p><label for="fs_text_bgcolor"><?php _e('Main text background color','frontpage-slideshow')?> <input type="text" id="fs_text_bgcolor" name="fs_text_bgcolor" class="colorpicker" size="15" value="<?php echo $options['values']['fs_text_bgcolor']?>" /></label></p> 949 1082 <p><label for="fs_text_opacity"><?php _e('Main text opacity','frontpage-slideshow')?> <input type="text" id="fs_text_opacity" name="fs_text_opacity" size="15" value="<?php echo $options['values']['fs_text_opacity']?>" /></label></p> 1083 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 1084 </div> 1085 </div> 1086 <div class="postbox closed"> 1087 <div class="handlediv" title="<?php _e('Click to open/close','frontpage-slideshow')?>"><br /></div> 1088 <h3><span><?php _e('About background images / textures and loader animation','frontpage-slideshow')?></span></h3> 1089 <div class="inside" style="padding: 5px;"> 1090 1091 <?php 1092 $attachments = get_children(array( 1093 'post_type' => 'attachment', 1094 'post_mime_type' => 'image', 1095 'post_status' => null, 1096 'post_parent' => null, 1097 )); 1098 $pics = ''; 1099 1100 foreach ($attachments as $attachment) { 1101 $pics.= '<img class="draggable" style="border: 1px solid transparent; cursor: pointer;" src="'.$attachment->guid.'" width="100" onmouseover="jQuery(this).draggable({revert: true});" /> '; 1102 } 1103 echo '<p>'._e('Drag\'n\'drop a picture to the place you want it to be to specify a background image/texture or loader.','frontpage-slideshow').'</p>'; 1104 echo '<textarea id="fs-pictures-chooser-keeper" style="display: none!important;">'.$pics.'</textarea><div id="background_images_selector" style="display: block; height: 100px; width: 100%; border: 1px solid #dfdfdf;"><a href="#" onclick="jQuery(this).parent().html(jQuery(\'#fs-pictures-chooser-keeper\').val()); return false;">'.__('Click here to load the image selector and choose an image.').'</a></div>'; 1105 1106 $image_selectors = array( 1107 array( 1108 'id' => 'fs_main_background_image', 1109 'message' => __('Drop here the image you want to use as slideshow background','frontpage-slideshow'), 1110 'name' => __('Slideshow background image','frontpage-slideshow'), 1111 ), 1112 array( 1113 'id' => 'fs_ul_background_image', 1114 'message' => __('Drop here the image you want to use as buttons bar background','frontpage-slideshow'), 1115 'name' => __('Buttons bar background image','frontpage-slideshow'), 1116 ), 1117 array( 1118 'id' => 'fs_button_background_image', 1119 'message' => __('Drop here the image you want to use as buttons background','frontpage-slideshow'), 1120 'name' => __('Buttons background image','frontpage-slideshow'), 1121 ), 1122 array( 1123 'id' => 'fs_button_hover_background_image', 1124 'message' => __('Drop here the image you want to use as hovered button background','frontpage-slideshow'), 1125 'name' => __('Hovered button background image','frontpage-slideshow'), 1126 ), 1127 array( 1128 'id' => 'fs_current_button_background_image', 1129 'message' => __('Drop here the image you want to use as active button background','frontpage-slideshow'), 1130 'name' => __('Current button background image','frontpage-slideshow'), 1131 ), 1132 array( 1133 'id' => 'fs_loader_image', 1134 'message' => __('Drop here the image you want to use as loader animation','frontpage-slideshow'), 1135 'name' => __('Loader animation','frontpage-slideshow'), 1136 ), 1137 ); 1138 $size = floor(100 / count($image_selectors)) - 1; 1139 foreach ($image_selectors as $selector) { 1140 ?> 1141 <div id="<?php echo $selector['id']; ?>_droppable" class="droppable" style="width: <?php echo $size; ?>%; margin: 0.2%; padding: 3px; border: solid 1px #aaa; text-align: center; float: left;"> 1142 <label for="<?php echo $selector['id']; ?>"><?php 1143 if ($options['values'][$selector['id']]!='') { 1144 echo $selector['name']; 1145 } else { 1146 echo $selector['message']; 1147 } 1148 ?></label> 1149 <div style="width: 100%; height: 100px; border: solid 1px #ddd;<?php 1150 if ($options['values'][$selector['id']]!='') { 1151 echo ' background-image: url('.$options['values'][$selector['id']].');'; 1152 } else { 1153 if ($selector['id'] == 'fs_loader_image') { 1154 $url = get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/images/loading_black.gif'; 1155 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); 1156 echo ' background-image: url('.$url.'); background-repeat: no-repeat!important; background-position: center center;'; 1157 $options['values'][$selector['id']] = $url; 1158 } else { 1159 echo ' display: none;'; 1160 } 1161 } 1162 ?>"></div> 1163 <input type="text" title="<?php _e('Type here the URL of an external image','frontpage-slideshow')?>" name="<?php echo $selector['id']; ?>" id="<?php echo $selector['id']; ?>" value="<?php echo $options['values'][$selector['id']]; ?>" style="width: 100%" /> 1164 <a href="#" onclick="if (confirm('<?php _e('Press OK to reset','frontpage-slideshow'); ?>')) {<?php 1165 if ($selector['id'] != 'fs_loader_image') { 1166 ?>jQuery(this).parent().find('input').val(''); jQuery(this).parent().find('div').hide('clip'); jQuery(this).parent().find('div').css('background-image','none'); jQuery(this).parent().find('label').html('<?php echo $selector['message']; ?>');<?php 1167 } else { 1168 ?>jQuery(this).parent().find('input').val('<?php 1169 $url = get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/images/loading_black.gif'; 1170 (is_ssl()) ? $url = str_replace('http://','https://',$url) : $url = str_replace('https://','http://',$url); echo $url; 1171 ?>'); jQuery(this).parent().find('div').hide('clip'); jQuery(this).parent().find('div').css('background-image','url(<?php echo $url; ?>)'); jQuery(this).find('div').css('background-repeat', 'no-repeat'); jQuery(this).find('div').css('background-position', 'center center'); jQuery(this).parent().find('div').show('clip');<?php 1172 1173 } 1174 ?>} return false;">Reset</a> 1175 </div> 1176 <?php 1177 } 1178 ?> 1179 <div style="clear: both"></div> 1180 <div><?php _e('You can use the following service to create a custom loader animation :','frontpage-slideshow'); ?> <a href="http://www.ajaxload.info/" target="_blank">Ajaxload</a></div> 1181 <script type="text/javascript"> 1182 // <![CDATA[ 1183 jQuery(".droppable").each(function() { 1184 jQuery(this).droppable({ 1185 accept: '#background_images_selector img', 1186 activeClass: 'ui-state-hover', 1187 hoverClass: 'ui-state-active', 1188 over: function(event, ui) { 1189 jQuery(this).css('background-color','#cfffcf'); 1190 }, 1191 out: function(event, ui) { 1192 jQuery(this).css('background-color','inherit'); 1193 }, 1194 drop: function(event, ui) { 1195 switch (jQuery(this).attr('id')) { 1196 <?php 1197 foreach ($image_selectors as $selector) { 1198 ?> 1199 case '<?php echo $selector['id']; ?>_droppable': 1200 jQuery(this).find('label').html('<?php echo $selector['name']; ?>'); 1201 break; 1202 <?php 1203 } 1204 ?> 1205 1206 } 1207 jQuery(this).find('label').html('<?php _e('Slideshow background image','frontpage-slideshow')?>'); 1208 jQuery(this).find('div').css('background-image','url('+ui.draggable.attr('src')+')'); 1209 alert(jQuery(this).attr('id')); 1210 if (jQuery(this).attr('id') == 'fs_loader_image_droppable') { 1211 jQuery(this).find('div').css('background-repeat', 'no-repeat'); 1212 jQuery(this).find('div').css('background-position', 'center center'); 1213 } 1214 if (jQuery(this).find('div').css('display') == 'none') jQuery(this).find('div').show('clip'); 1215 jQuery(this).find('input').val(ui.draggable.attr('src')); 1216 jQuery(this).css('background-color','inherit'); 1217 } 1218 }); 1219 }); 1220 //]]> 1221 </script> 950 1222 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 951 1223 </div> … … 964 1236 </form> 965 1237 </div> 966 <script type="text/javascript"> 1238 <div id="CLCP" class="CLCP"></div> 1239 <script type="text/javascript"> 967 1240 // <![CDATA[ 968 1241 jQuery('.postbox h3').prepend('<a class="togbox">+</a> '); … … 970 1243 jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } ); 971 1244 jQuery('.postbox.close-me').each(function(){ 972 jQuery(this).addClass("closed");1245 jQuery(this).addClass("closed"); 973 1246 }); 974 1247 //]]> … … 988 1261 'fs-picture' => array( 989 1262 'name' => 'fs-picture', 990 'type' => ' url',1263 'type' => 'picture', 991 1264 'title' => __('Slide picture','frontpage-slideshow'), 992 1265 'description' => __('You can also use the <em>Add an Image</em> button, upload an image and paste the URL here, or use an external picture.<br />If you leave this blank, the first image found into the post content will be used.','frontpage-slideshow'), … … 1013 1286 ?> 1014 1287 <p><?php _e('All those options will be savend when you will save the changes made on this post');?></p> 1288 <?php echo '<input type="hidden" name="'.$meta_box['name'].'_noncename" id="'.$meta_box['name'].'_noncename" value="'.wp_create_nonce( plugin_basename(__FILE__) ).'" />'; ?> 1015 1289 <table class="widefat" cellspacing="0" width="100%" id="inactive-plugins-table"> 1016 1290 … … 1027 1301 <td width="100" align="center" style="border-bottom: 1px solid #dfdfdf; overflow: auto;"> 1028 1302 <?php 1029 echo '<input type="hidden" name="'.$meta_box['name'].'_noncename" id="'.$meta_box['name'].'_noncename" value="'.wp_create_nonce( plugin_basename(__FILE__) ).'" />';1030 1303 echo '<h2>'.$meta_box['title'].'</h2>'; 1031 1304 ?> </td> 1032 1305 <td style="border-bottom: 1px solid #dfdfdf;"> 1033 1306 <?php 1034 if ($meta_box[' name'] == 'fs-picture') {1307 if ($meta_box['type'] == 'picture') { 1035 1308 $attachments = get_children(array( 1036 1309 'post_type' => 'attachment', … … 1043 1316 $pics.= '<img style="border: 1px solid transparent; cursor: pointer;'; 1044 1317 if (get_post_meta($post->ID, $meta_box['name'], true) == $attachment->guid) $pics.= ' border-color: red;'; 1045 $pics.= '" onclick=" document.getElementById(\''.$meta_box['name'].'\').value = this.src; this.style.borderColor=\'red\';" onmouseout="if (document.getElementById(\''.$meta_box['name'].'\').value != this.src) this.style.borderColor=\'transparent\';" onmouseover="if (document.getElementById(\''.$meta_box['name'].'\').value!= this.src) this.style.borderColor=\'cyan\';" src="'.$attachment->guid.'" width="100" /> ';1318 $pics.= '" onclick="jQuery(\'#'.$meta_box['name'].'\').val(this.src); this.style.borderColor=\'red\';" onmouseout="if (jQuery(\'#'.$meta_box['name'].'\').val() != this.src) this.style.borderColor=\'transparent\';" onmouseover="if (jQuery(\'#'.$meta_box['name'].'\').val() != this.src) this.style.borderColor=\'cyan\';" src="'.$attachment->guid.'" width="100" /> '; 1046 1319 } 1047 $pics.='<a href="media-upload.php?post_id=1&type=image&TB_iframe=true" id="add_image2" class="thickbox" title="'.__('Add an Image').'" onclick="return false;"><img width="100" src="images/media-button-image.gif" alt="'.__('Add an Image').'"></a>';1320 //$pics.='<a href="media-upload.php?post_id=1&type=image&TB_iframe=true" id="add_image2" class="thickbox" title="'.__('Add an Image').'" onclick="return false;"><img width="100" src="images/media-button-image.gif" alt="'.__('Add an Image').'"></a>'; 1048 1321 echo '<p>'.__('Click on one of the following image (or add one) to choose the slide picture.').'</p>'; 1049 echo '< div style="display: block; overflow:hidden; overflow-x: hidden; overflow-y: auto; height: 100px; width: 100%; border: 1px solid #dfdfdf;">'.$pics.'</div>';1050 echo '<p><a href="#" target="_blank" onclick="if ( document.getElementById(\''.$meta_box['name'].'\').value !=\'\') { this.href=document.getElementById(\''.$meta_box['name'].'\').value } else { alert(\''.__('No specified picture, no preview...').'\') }">'.__('Preview the current picture').'</a></p>';1322 echo '<textarea id="fs-pictures-chooser-keeper" style="display: none!important;">'.$pics.'</textarea><div style="display: block; overflow:hidden; overflow-x: hidden; overflow-y: auto; height: 100px; width: 100%; border: 1px solid #dfdfdf;"><a href="#" onclick="jQuery(this).parent().html(jQuery(\'#fs-pictures-chooser-keeper\').val()); return false;" onkeypress="jQuery(this).parent().html(jQuery(\'#fs-pictures-chooser-keeper\').val()); return false;">'.__('Click here to load the image selector and choose an image.').'</a></div>'; 1323 echo '<p><a href="#" target="_blank" onclick="if (jQuery(\'#'.$meta_box['name'].'\').val() !=\'\') { this.href=jQuery(\'#'.$meta_box['name'].'\').val(); this.title=jQuery(\'#'.$meta_box['name'].'\').val(); } else { alert(\''.__('No specified picture, no preview...').'\') }" class="thickbox">'.__('Preview the current picture').'</a></p>'; 1051 1324 } 1052 1325 if ($meta_box['name'] == 'fs-link') { … … 1119 1392 1120 1393 1121 add_action('admin_menu', 'frontpageSlideshow_create_meta_box');1122 add_action('save_post', 'frontpageSlideshow_save_postdata');1123 1394 1124 1395 /******************************************************************************/ … … 1141 1412 if (function_exists('add_action')) { 1142 1413 add_action('admin_menu', 'frontpageSlideshow_admin_menu'); 1414 add_action('admin_init', 'frontpageSlideshow_admin_init'); 1415 add_action('admin_menu', 'frontpageSlideshow_create_meta_box'); 1416 add_action('save_post', 'frontpageSlideshow_save_postdata'); 1143 1417 } 1144 1418 function frontpageSlideshow_Widget_init() { -
frontpage-slideshow/trunk/readme.txt
r171583 r221541 4 4 Tags: frontpage, slideshow, pictures, no-flash, css, javascript, XHTML, 5 5 Requires at least: 2.7.0 6 Tested up to: 2. 8.57 Stable tag: 0. 86 Tested up to: 2.9.2 7 Stable tag: 0.9 8 8 9 9 Frontpage Slideshow provides a slide show like you can see in linux.com front page … … 81 81 * v 0.7.4 : fixing bugs introduced in 0.7.3 that causes no start of the slideshow sometimes + possibility to change slide transitions + order of slides + putting a different title on slides + option to hide the comment zone 82 82 * v 0.8 : Adding an admin zone to easily add or modify options for posts into the edit post page. + adding the complete shortcode under the preview + modifying the "How to use / Getting help section" + if no picture is available, display a default picture (a 1x1 transparent pixel GIF) 83 * v 0.9 : Port from PrototypeJS+ScriptAculoUs to jQuery ; Add ability to configure background-images of all elements and loader animation picture by simple drag-drop ; fixing default link bug ; fixing quick buttons bar show when image is has 100% width bug ; adding some way to load the image chooser on demand to allow people that have alot of images to not stand by all images to be loaded. 83 84 84 85 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.