Changeset 1013769
- Timestamp:
- 10/25/2014 10:52:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jellyfish-counter-widget/trunk/jellyfish-counter-widget.php
r1013767 r1013769 5 5 Description: Fully configurable static or animated odometer style rotating counters. 6 6 Author: Rob Miller 7 Version: 1. 37 Version: 1.4 8 8 Author URI: http://strawberryjellyfish.com/ 9 9 */ … … 73 73 $element_id = 'jellyfish-counter-shortcode-' . esc_attr( $a['id'] ); 74 74 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 ) { 78 78 if ( $a['direction'] == 'down' ) { 79 79 $a['start'] -= round( ( current_time( 'timestamp' ) - $init_timestamp ) / $a['interval'] ); … … 160 160 if ( ( $persist == 'on' ) && !empty( $init_timestamp ) ) { 161 161 if ( $direction == 'down' ) { 162 $start_value -= round( ( current_time( 'timestamp' ) - $init_timestamp ) / $interval );162 $start_value -= round( ( current_time( 'timestamp' ) - $init_timestamp ) / $interval ); 163 163 if ( $start_value < $end_value ) { 164 164 $start_value = $end_value;
Note: See TracChangeset
for help on using the changeset viewer.