Plugin Directory

Changeset 1013769


Ignore:
Timestamp:
10/25/2014 10:52:44 AM (11 years ago)
Author:
toxicToad
Message:

Bumping version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jellyfish-counter-widget/trunk/jellyfish-counter-widget.php

    r1013767 r1013769  
    55    Description: Fully configurable static or animated odometer style rotating counters.
    66    Author: Rob Miller
    7     Version: 1.3
     7    Version: 1.4
    88    Author URI: http://strawberryjellyfish.com/
    99*/
     
    7373    $element_id = 'jellyfish-counter-shortcode-' . esc_attr( $a['id'] );
    7474
    75     if ($a['timestamp']) {
    76         $init_timestamp = strtotime($a['timestamp'], current_time( 'timestamp' ));
    77         if ($init_timestamp) {
     75    if ( $a['timestamp'] ) {
     76        $init_timestamp = strtotime( $a['timestamp'], current_time( 'timestamp' ) );
     77        if ( $init_timestamp ) {
    7878            if ( $a['direction'] == 'down' ) {
    7979                $a['start'] -= round( ( current_time( 'timestamp' ) - $init_timestamp ) / $a['interval'] );
     
    160160        if ( ( $persist == 'on' ) && !empty( $init_timestamp ) ) {
    161161            if ( $direction == 'down' ) {
    162                  $start_value -= round( ( current_time( 'timestamp' ) - $init_timestamp ) / $interval );
     162                $start_value -= round( ( current_time( 'timestamp' ) - $init_timestamp ) / $interval );
    163163                if ( $start_value < $end_value ) {
    164164                    $start_value = $end_value;
Note: See TracChangeset for help on using the changeset viewer.