Version Description
- Fixed activation error conflict
- Fixed server time instead of user local time
- NEW: Option to show timer based on the user local time or based on server time(default)
Download this release
Release Info
Developer | ujimoto |
Plugin | Uji Countdown |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- README.txt +10 -4
- classes/class-uji-countdown-admin.php +1 -1
- classes/class-uji-countdown-front.php +3 -2
- classes/class-uji-countdown.php +1 -1
- js/uji-countdown.js +1 -1
- ujicountdown.php +1 -1
README.txt
CHANGED
@@ -1,9 +1,10 @@
|
|
|
|
1 |
=== Uji Countdown ===
|
2 |
Contributors: ujimoto
|
3 |
Donate link: http://www.wpmanage.com/uji-countdown
|
4 |
Tags: countdown, counter, html5 countdown, animated countdown, countdown timer, count down, countdown clock, jQuery countdown, clock, timer
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.0
|
7 |
Stable tag: 2.0
|
8 |
|
9 |
Uji Countdown - HTML5 Customizable Countdown Timer
|
@@ -40,8 +41,13 @@ WPmanage [(http://www.wpmanage.com/uji-countdown/)](http://www.wpmanage.com/uji-
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
43 |
= 2.0.1 =
|
44 |
-
*
|
45 |
|
46 |
= 2.0 =
|
47 |
|
@@ -61,12 +67,12 @@ WPmanage [(http://www.wpmanage.com/uji-countdown/)](http://www.wpmanage.com/uji-
|
|
61 |
= 1.2 =
|
62 |
|
63 |
* Important Fix: WP 3.5 links bug fix
|
64 |
-
*
|
65 |
|
66 |
= 1.1 =
|
67 |
|
68 |
* Important Fix: Get server time instead of local PC time. See same values on any GMT/UTC time zone
|
69 |
-
*
|
70 |
* Move script to separate file. More cleaner code
|
71 |
|
72 |
= 1.0 =
|
1 |
+
|
2 |
=== Uji Countdown ===
|
3 |
Contributors: ujimoto
|
4 |
Donate link: http://www.wpmanage.com/uji-countdown
|
5 |
Tags: countdown, counter, html5 countdown, animated countdown, countdown timer, count down, countdown clock, jQuery countdown, clock, timer
|
6 |
Requires at least: 3.0
|
7 |
+
Tested up to: 4.0.1
|
8 |
Stable tag: 2.0
|
9 |
|
10 |
Uji Countdown - HTML5 Customizable Countdown Timer
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 2.0.2 =
|
45 |
+
* Fixed activation error conflict
|
46 |
+
* Fixed server time instead of user local time
|
47 |
+
* NEW: Option to show timer based on the user local time or based on server time(default)
|
48 |
+
|
49 |
= 2.0.1 =
|
50 |
+
* Fixed select style option.
|
51 |
|
52 |
= 2.0 =
|
53 |
|
67 |
= 1.2 =
|
68 |
|
69 |
* Important Fix: WP 3.5 links bug fix
|
70 |
+
* Fixed datapicker
|
71 |
|
72 |
= 1.1 =
|
73 |
|
74 |
* Important Fix: Get server time instead of local PC time. See same values on any GMT/UTC time zone
|
75 |
+
* Fixed p or br tag inclusion on some themes
|
76 |
* Move script to separate file. More cleaner code
|
77 |
|
78 |
= 1.0 =
|
classes/class-uji-countdown-admin.php
CHANGED
@@ -654,7 +654,7 @@ class Uji_Countdown_Admin {
|
|
654 |
|
655 |
//Build Forms
|
656 |
$cnt = '<form method="post" action="options-general.php?page=uji-countdown&tab=tab_ujic_set&saveset=true">';
|
657 |
-
|
658 |
$cnt .= $this->cform_checkbox( __( "Right-To-Left (RTL):", $this->plugin_slug ), array( 'ujic_rtl' ), array( __("Writing starts from the right of the page and continues to the left.", $this->plugin_slug ) ), array( ( isset($vars['ujic_rtl']) ? $vars['ujic_rtl'] : false ) ) );
|
659 |
$cnt .= $this->cform_title( __( "Quick Translation", $this->plugin_slug ) );
|
660 |
|
654 |
|
655 |
//Build Forms
|
656 |
$cnt = '<form method="post" action="options-general.php?page=uji-countdown&tab=tab_ujic_set&saveset=true">';
|
657 |
+
$cnt .= $this->cform_checkbox( __( "Enable user time:", $this->plugin_slug ), array( 'ujic_utime' ), array( __("Timer based on the users system time not the server time.<br> Don't enable it if you need the same time for any timezone!<br><strong>Default is the server time!</strong>", $this->plugin_slug ) ), array( ( isset($vars['ujic_utime']) ? $vars['ujic_utime'] : false ) ) );
|
658 |
$cnt .= $this->cform_checkbox( __( "Right-To-Left (RTL):", $this->plugin_slug ), array( 'ujic_rtl' ), array( __("Writing starts from the right of the page and continues to the left.", $this->plugin_slug ) ), array( ( isset($vars['ujic_rtl']) ? $vars['ujic_rtl'] : false ) ) );
|
659 |
$cnt .= $this->cform_title( __( "Quick Translation", $this->plugin_slug ) );
|
660 |
|
classes/class-uji-countdown-front.php
CHANGED
@@ -137,9 +137,10 @@ class UjiCountdown extends Uji_Countdown {
|
|
137 |
'ujic_y' => $ujic_y, //Secondary format: Years
|
138 |
'ujic_o' => $ujic_o, //Secondary format: Months
|
139 |
'ujic_w' => $ujic_w, //Secondary format: Weeks
|
140 |
-
'uji_time' => date_i18n( 'M j, Y H:i:s ' )
|
141 |
'uji_hide' => ($hide == "true") ? 'true' : 'false',
|
142 |
-
'ujic_rtl' => ( $this->ujic_get_option('ujic_rtl') ) ? $this->ujic_get_option('ujic_rtl') : false
|
|
|
143 |
) );
|
144 |
|
145 |
wp_enqueue_script( $this->plugin_slug . '-init' );
|
137 |
'ujic_y' => $ujic_y, //Secondary format: Years
|
138 |
'ujic_o' => $ujic_o, //Secondary format: Months
|
139 |
'ujic_w' => $ujic_w, //Secondary format: Weeks
|
140 |
+
'uji_time' => date_i18n( 'M j, Y H:i:s O' ),
|
141 |
'uji_hide' => ($hide == "true") ? 'true' : 'false',
|
142 |
+
'ujic_rtl' => ( $this->ujic_get_option('ujic_rtl') ) ? $this->ujic_get_option('ujic_rtl') : false,
|
143 |
+
'uji_utime' => ( $this->ujic_get_option('ujic_utime') ) ? $this->ujic_get_option('ujic_utime') : false
|
144 |
) );
|
145 |
|
146 |
wp_enqueue_script( $this->plugin_slug . '-init' );
|
classes/class-uji-countdown.php
CHANGED
@@ -337,7 +337,7 @@ class Uji_Countdown extends Uji_Countdown_Admin {
|
|
337 |
private function upgrade_db() {
|
338 |
global $wpdb;
|
339 |
|
340 |
-
if
|
341 |
|
342 |
// Create DB
|
343 |
self::create_ujic_db();
|
337 |
private function upgrade_db() {
|
338 |
global $wpdb;
|
339 |
|
340 |
+
if( $wpdb->get_var("SHOW TABLES LIKE '" . self::ujic_tab_name()."'") === $wpdb->prefix . self::ujic_tab_name() ) {
|
341 |
|
342 |
// Create DB
|
343 |
self::create_ujic_db();
|
js/uji-countdown.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function
|
1 |
+
(function(e){"use strict";e(function(){function Y(){var e=null;if(V){return false}else{e=new Date(z);var t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());e=t;return e}}var t="ujiCount";var n=window[t];var r=n.uji_style;var i=n.uji_plugin;var s=n.ujic_id;var o=n.expire;var u=n.exp_days;var a=n.Years;var f=n.Months;var l=n.Weeks;var c=n.Days;var h=n.Hours;var p=n.Minutes;var d=n.Seconds;var v=n.Year;var m=n.Month;var g=n.Week;var y=n.Day;var b=n.Hour;var w=n.Minute;var E=n.Second;var S=n.ujic_txt_size;var x=n.ujic_col_dw;var T=n.ujic_col_up;var N=n.ujic_col_txt;var C=n.ujic_col_sw;var k=n.ujic_col_lab;var L=n.ujic_lab_sz;var A=n.ujic_y;var O=n.ujic_o;var M=n.ujic_w;var _=n.ujic_d;var D=n.ujic_h;var P=n.ujic_m;var H=n.ujic_s;var B=n.ujic_thick;var j=n.ujic_txt=="true"?true:false;var F=n.ujic_ani=="true"?true:false;var I="http://";var q=n.ujic_url?n.ujic_url.substr(0,I.length)!==I?I+n.ujic_url:n.ujic_url:"";var R=n.ujic_goof;var U=n.uji_center;var z=n.uji_time;var W=n.uji_hide;var X=n.ujic_rtl=="true"?true:false;var V=n.uji_utime=="true"?true:false;var J=new Date(""+o+"");var K="";K+=A=="true"?"Y":"";K+=O=="true"?"O":"";K+=M=="true"?"W":"";K+=_=="true"?"D":"";K+=D=="true"?"H":"";K+=P=="true"?"M":"";K+=H=="true"?"S":"";var Q=[];if(A=="true")Q.push("uji_year");if(O=="true")Q.push("uji_mont");if(M=="true")Q.push("uji_week");if(_=="true")Q.push("uji_days");if(D=="true")Q.push("uji_hour");if(P=="true")Q.push("uji_minu");if(H=="true")Q.push("uji_secu");e.countdown.regionalOptions["uji"]={labels:[""+a+"",""+f+"",""+l+"",""+c+"",""+h+"",""+p+"",""+d+""],labels1:[""+v+"",""+m+"",""+g+"",""+y+"",""+b+"",""+w+"",""+E+""],compactLabels:["A","L","S","Z"],format:K,whichLabels:null,timeSeparator:":",isRTL:false};e.countdown.setDefaults(e.countdown.regionalOptions["uji"]);if(R){var G=R.replace(/\s+/g,"+");e("head").append('<link href="http://fonts.googleapis.com/css?family='+G+'" rel="stylesheet" type="text/css">')}e("#ujiCountdown").countdown({until:J,ujic_id:""+s+"",serverSync:Y,isRTL:X,text_size:""+S+"",color_down:""+x+"",color_up:""+T+"",color_txt:""+N+"",color_sw:""+C+"",color_lab:""+k+"",lab_sz:""+L+"",ujic_txt:j,animate_sec:F,ujic_hide:W,expiryUrl:q,ujic_goof:""+R+""})})})(jQuery)
|
ujicountdown.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: Uji Countdown
|
11 |
* Plugin URI: http://wpmanage.com/uji-countdown
|
12 |
* Description: HTML5 Countdown.
|
13 |
-
* Version: 2.0.
|
14 |
* Author: Wpmanage
|
15 |
* Author URI: http://wpmanage.com
|
16 |
* Text Domain: uji-countdown
|
10 |
* Plugin Name: Uji Countdown
|
11 |
* Plugin URI: http://wpmanage.com/uji-countdown
|
12 |
* Description: HTML5 Countdown.
|
13 |
+
* Version: 2.0.2
|
14 |
* Author: Wpmanage
|
15 |
* Author URI: http://wpmanage.com
|
16 |
* Text Domain: uji-countdown
|