Plugin Directory

Changeset 1027864


Ignore:
Timestamp:
11/18/2014 11:52:35 AM (11 years ago)
Author:
toxicToad
Message:

Fixed slider inputs bug.
Slide Duration & Fade Speed settings now save correctly.

Location:
jellyfish-backdrop/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • jellyfish-backdrop/trunk/admin.php

    r1027217 r1027864  
    133133      $value = isset($options['slide_duration']) ? $options['slide_duration'] : 10;
    134134      echo "<div id='jellyfish_backdrop_slide_duration_slider' class='at-slider' data-value='".$value."' data-min='0' data-max='30' data-step='0.1'></div>";
    135       echo "<input type='text' class='at-text' name='jellyfish_backdrop_slide_duration' id='jellyfish_backdrop_slide_duration' value='{$value}' size='5' />";
     135      echo "<input type='text' class='at-text' name='jellyfish_backdrop[slide_duration]' id='jellyfish_backdrop[slide_duration]' value='{$value}' size='5' />";
    136136      echo "<div class='desc-field'>" . __('Time in seconds', 'jellyfish-backdrop') . "</div>";
    137137    }
     
    148148      $value = isset($options['fade_speed']) ? $options['fade_speed'] : 0.5;
    149149      echo "<div id='jellyfish_backdrop_fade_speed_slider' class='at-slider' data-value='".$value."' data-min='0' data-max='5' data-step='0.01'></div>";
    150       echo "<input type='text' class='at-text' name='jellyfish_backdrop_fade_speed' id='jellyfish_backdrop_fade_speed' value='{$value}' size='5' />";
     150      echo "<input type='text' class='at-text' name='jellyfish_backdrop[fade_speed]' id='jellyfish_backdrop[fade_speed]' value='{$value}' size='5' />";
    151151      echo "<div class='desc-field'>" . __('Time in seconds', 'jellyfish-backdrop') . "</div>";
    152152    }
  • jellyfish-backdrop/trunk/jellyfish-backdrop.php

    r1027230 r1027864  
    55  Description: Add fullscreen background images and background slideshows to any WordPress page element.
    66  Author: Robert Miller <[email protected]>
    7   Version: 0.6
     7  Version: 0.6.1
    88  Author URI: http://strawberryjellyfish.com/
    99*/
     
    3131    public function __construct() {
    3232      if (!defined('JELLYFISH_BACKDROP_VERSION_NUM'))
    33         define('JELLYFISH_BACKDROP_VERSION_NUM', '0.6');
     33        define('JELLYFISH_BACKDROP_VERSION_NUM', '0.6.1');
    3434
    3535      update_option('jellyfish_backdrop_version', JELLYFISH_BACKDROP_VERSION_NUM);
  • jellyfish-backdrop/trunk/meta-box-class/my-meta-box-class.php

    r1027217 r1027864  
    577577   */
    578578  public function show_field_slider( $field, $meta ) {
    579     $meta = $meta != '' ? intval( $meta ) : $field['std'];
     579    $meta = is_numeric($meta) ? $meta : $field['std'];
    580580    $this->show_field_begin( $field, $meta );
    581581    echo "<div id='" . $field['id'] . "-slider' class='at-slider' data-value='".$meta."' data-min='".$field['min']."' data-max='".$field['max']."' data-step='".$field['step']."'></div>";
  • jellyfish-backdrop/trunk/readme.txt

    r1027227 r1027864  
    77Requires at least: 3.0
    88Tested up to: 4.0
    9 Stable tag: 0.6
     9Stable tag: 0.6.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    105105== Changelog ==
    106106
     107= 0.6.1 =
     108* Fixed bug saving slider values (slide duration and fade speed)
     109
    107110= 0.6 =
    108111* First release via WordPress.org
Note: See TracChangeset for help on using the changeset viewer.