Plugin Directory

Changeset 599320


Ignore:
Timestamp:
09/15/2012 03:46:10 PM (14 years ago)
Author:
Nitay
Message:

add Continuous Mode

Location:
sponsors-carousel/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sponsors-carousel/trunk/readme.txt

    r525939 r599320  
    44Tags: gallery, images, javascript, jquery, banners, sponsors, jcarousel
    55Requires at least: 2.6
    6 Tested up to: 3.3.1
     6Tested up to: 3.4.2
    77Stable tag: trunk
    88
     
    5959* 2.00: New functionality:open link in new window and autoscroll (Thanks for <a href="http://wordpress.org/support/topic/plugin-sponsors-carousel-another-patch-new-window-and-auto-scroll">elija</a> ).
    6060* 2.01: i18n update
     61* 2.02: Continuous Mode (Thanks for Sebastián Valerio G.)
  • sponsors-carousel/trunk/sponsors-carousel.php

    r522965 r599320  
    44Plugin URI: http://wordpress.org/extend/plugins/sponsors-carousel
    55Description: Sponsors logos on javascript carousel.
    6 Version: 2.01
     6Version: 2.02
    77Author: Sergey Panasenko
    88Author URI: http://nitay.dp.ua
     
    144144          $speed = stripslashes(get_option('scwp_animation_speed'));
    145145        }
     146        if (get_option('scwp_auto_scroll')=='1')
     147            $auto = "0.001
     148            ,easing: 'linear'";
     149        else
     150            $auto = stripslashes(get_option('scwp_auto_scroll'));
     151       
    146152        $output .= "jQuery('#mycarousel".$randomid."').jcarousel({
    147153            scroll: ".stripslashes(get_option('scwp_scroll_amount'))."
    148154            ,animation: ".$speed."
    149155            ,wrap: 'circular'
    150             ,auto: " . stripslashes(get_option('scwp_auto_scroll')) . "
     156             ,auto: " . $auto . "
    151157           
    152158        });
     
    334340                    <select type="select" name="scwp_auto_scroll" id="scwp_auto_scroll">
    335341                        <option value="0" <?php if ('0' == stripslashes(get_option('scwp_auto_scroll'))) {  echo 'selected="selected"'; }?>><?php _e("Off", 'sponsors-carousel'); ?></option>
     342                        <option value="1" <?php if ('1' == stripslashes(get_option('scwp_auto_scroll'))) {  echo 'selected="selected"'; }?>><?php _e("Continuous", 'sponsors-carousel'); ?></option>
    336343                        <option value="3" <?php if ('3' == stripslashes(get_option('scwp_auto_scroll'))) {  echo 'selected="selected"'; }?>><?php _e("Fast", 'sponsors-carousel'); ?></option>
    337344                        <option value="6" <?php if ('6' == stripslashes(get_option('scwp_auto_scroll'))) {  echo 'selected="selected"'; }?>><?php _e("Medium", 'sponsors-carousel'); ?></option>
Note: See TracChangeset for help on using the changeset viewer.