Changeset 567188
- Timestamp:
- 07/04/2012 02:47:59 AM (14 years ago)
- Location:
- countdown-timer/trunk
- Files:
-
- 4 edited
-
fergcorp_countdownTimer.php (modified) (8 diffs)
-
js/fergcorp_countdownTimer_java_debug.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
countdown-timer/trunk/fergcorp_countdownTimer.php
r561478 r567188 4 4 Plugin URI: http://www.andrewferguson.net/wordpress-plugins/countdown-timer/ 5 5 Description: Use shortcodes and a widget to count down or up to the years, months, weeks, days, hours, minutes, and/or seconds to a particular event. 6 Version: 3.0. 26 Version: 3.0.3 7 7 Author: Andrew Ferguson 8 8 Author URI: http://www.andrewferguson.net … … 374 374 foreach ( $this->eventList as $thisEvent ) { 375 375 //If the user wants, cycle through the array to find out if they have already occured, if so: set them to NULL 376 if ( ( $this->deleteOneTimeEvents ) && ( $thisEvent <= new DateTime() ) ) {376 if ( ( $this->deleteOneTimeEvents ) && ( $thisEvent <= new DateTime() ) && ( !$thisEvent->getTimeSince() ) ) { 377 377 $thisEvent = NULL; 378 378 } … … 647 647 * @author Andrew Ferguson 648 648 */ 649 public function singleTimer($date){ 650 651 return $this->formatEvent(new Fergcorp_Countdown_Timer_Event(strtotime($date)), TRUE); 652 653 //return 654 655 //atEventp_countdownTimer_format('', strtotime($date), ( date('Z') - (get_option('gmt_offset') * 3600) ), true, '0', '', get_option('fergcorp_countdownTimer_timeFormat'), true); 649 public function singleTimer( $date ){ 650 651 return $this->formatEvent( new Fergcorp_Countdown_Timer_Event( strtotime( $date ) ) , TRUE ); 652 656 653 } 657 654 … … 683 680 $this->eventsPresent = FALSE; //Reset the test 684 681 for($i = 0; $i < $eventCount; $i++){ 685 $toReturn .= $this->formatEvent($this->eventList[$i], FALSE); //stripslashes($fergcorp_countdownTimer_oneTimeEvent[$i]->getTitle()), $fergcorp_countdownTimer_oneTimeEvent[$i]["date"], 0, $fergcorp_countdownTimer_oneTimeEvent[$i]["timeSince"], get_option('fergcorp_countdownTimer_timeSinceTime'), stripslashes($fergcorp_countdownTimer_oneTimeEvent[$i]["link"]), get_option('fergcorp_countdownTimer_timeFormat'), false); 682 if( ( '' == ( $thisTimer = $this->formatEvent($this->eventList[$i], FALSE ) ) ) && ( $eventCount < count( $this->eventList ) ) ) { 683 $eventCount++; 684 } 685 else{ 686 $toReturn .= $thisTimer; 687 } 686 688 } 687 689 } … … 718 720 $time_left = $thisEvent->getTimestamp() - time(); 719 721 722 $content = ''; 723 720 724 if(!$standAlone) 721 725 $content = "<li class = 'fergcorp_countdownTimer_event_li'>"; … … 728 732 $timePrefix = "<abbr title = \"".date_i18n($this->timeFormat, $thisEvent->getTimestamp(), FALSE)."\" id = '".$thisEvent->getUID()."' class = 'fergcorp_countdownTimer_event_time'>"; 729 733 730 if ( ( $time_left < 0 ) && ( $thisEvent->getTimeSince() ) && ( ( ( $time_left + $this->timeSinceTime ) > 0 ) || ( 0 == $this->timeSinceTime ) ) ){ //If the event has already passed and we still want to display the event 734 if ( ( $time_left <= 0 ) && 735 ( ( ( $thisEvent->getTimeSince() ) && 736 ( ( ( $time_left + $this->timeSinceTime ) > 0 ) || ( 0 == $this->timeSinceTime ) ) ) 737 || ( $standAlone) ) ) { 738 739 //If the event has already passed and we still want to display the event 740 731 741 $this->eventsPresent = TRUE; //Set to TRUE so we know there's an event to display 732 742 if ( $thisEvent->getTitle() ) { … … 938 948 939 949 /** 940 * Processes [fergcorp_cdt max=##] shortcode950 * Processes [fergcorp_cdt_single date="_DATE_"] shortcode 941 951 * 942 952 * @param $atts array Attributes of the shortcode … … 951 961 ), $atts)); 952 962 953 return $this-> formatEvent(new Fergcorp_Countdown_Timer_Event(strtotime($date)), TRUE);963 return $this->singleTimer( $date ); 954 964 } 955 965 -
countdown-timer/trunk/js/fergcorp_countdownTimer_java_debug.js
r561478 r567188 1 1 /*******************************************************************************\ 2 2 Countdown Timer JavaScript Module 3 Version 3.0. 2(kept in step with fergcorp_countdownTimer.php)3 Version 3.0.3 (kept in step with fergcorp_countdownTimer.php) 4 4 Copyright (c) 2007-2012 Andrew Ferguson 5 5 --------------------------------------------------------------------------------- -
countdown-timer/trunk/readme.txt
r561478 r567188 4 4 Tags: countdown, timer, count, date, event, widget, countup, age, fun, time, international, i18n, countdown timer, wedding, localization, i18n 5 5 Requires at least: 3.4 6 Tested up to: 3. 47 Stable tag: 3.0. 26 Tested up to: 3.5 7 Stable tag: 3.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 177 177 == Changelog == 178 178 179 = 3.0.3 = 180 Release date: 7/3/2012 181 182 * Bug fix: Shortcode for events in the past will always display 183 * Bug fix: Don't delete events that have their getTimeSince flag set 184 * Bug fix: Fixed expired timers that didn't show counting against limit of timers displayed 185 * Other minor code cleanup 186 179 187 = 3.0.2 = 180 188 Release date: 6/20/2012 -
countdown-timer/trunk/uninstall.php
r561478 r567188 2 2 /* 3 3 Countdown Timer Uninstall Module 4 Version 3.0. 2(kept in step with fergcorp_countdownTimer.php)4 Version 3.0.3 (kept in step with fergcorp_countdownTimer.php) 5 5 Copyright (c) 2009-2012 Andrew Ferguson 6 6 ---------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.