Uji Countdown - Version 2.0.6

Version Description

  • Fixed datapicker arrows to switch month
  • Fixed https URL redirection
Download this release

Release Info

Developer ujimoto
Plugin Icon 128x128 Uji Countdown
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

README.txt CHANGED
@@ -3,8 +3,8 @@ 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, recurring timer
5
  Requires at least: 3.0
6
- Tested up to: 4.3.1
7
- Stable tag: 2.0.5
8
 
9
  Uji Countdown - HTML5 Customizable Countdown Timer
10
 
@@ -51,6 +51,10 @@ Please feel free to visit our [demo site](http://wpmanage.com/project/ujicountdo
51
 
52
  == Changelog ==
53
 
 
 
 
 
54
  = 2.0.5 =
55
  * Minor bug fixes
56
  * Uninstall multisite
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, recurring timer
5
  Requires at least: 3.0
6
+ Tested up to: 4.4
7
+ Stable tag: 2.0.6
8
 
9
  Uji Countdown - HTML5 Customizable Countdown Timer
10
 
51
 
52
  == Changelog ==
53
 
54
+ = 2.0.6 =
55
+ * Fixed datapicker arrows to switch month
56
+ * Fixed https URL redirection
57
+
58
  = 2.0.5 =
59
  * Minor bug fixes
60
  * Uninstall multisite
assets/css/admin.css CHANGED
@@ -38,6 +38,7 @@ Admin NEW
38
  color: #a61ba6;
39
  }
40
 
 
41
  #ujic_new h2,
42
  #ujic_new h3{
43
  color: #ffffff;
38
  color: #a61ba6;
39
  }
40
 
41
+ #ujic_new h1,
42
  #ujic_new h2,
43
  #ujic_new h3{
44
  color: #ffffff;
assets/images/jq_UI/ui-bg_flat_0_aaaaaa_40x100.png ADDED
Binary file
assets/images/jq_UI/ui-bg_flat_75_ffffff_40x100.png ADDED
Binary file
assets/images/jq_UI/ui-bg_glass_55_fbf9ee_1x400.png ADDED
Binary file
assets/images/jq_UI/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
assets/images/jq_UI/ui-bg_glass_75_dadada_1x400.png ADDED
Binary file
assets/images/jq_UI/ui-bg_glass_75_e6e6e6_1x400.png ADDED
Binary file
assets/images/jq_UI/ui-bg_glass_95_fef1ec_1x400.png ADDED
Binary file
assets/images/jq_UI/ui-bg_highlight-soft_75_cccccc_1x100.png ADDED
Binary file
assets/images/jq_UI/ui-icons_222222_256x240.png ADDED
Binary file
assets/images/jq_UI/ui-icons_2e83ff_256x240.png ADDED
Binary file
assets/images/jq_UI/ui-icons_454545_256x240.png ADDED
Binary file
assets/images/jq_UI/ui-icons_888888_256x240.png ADDED
Binary file
assets/images/jq_UI/ui-icons_cd0a0a_256x240.png ADDED
Binary file
assets/images/ujic-ps3.png CHANGED
File without changes
classes/class-uji-countdown-admin.php CHANGED
@@ -135,8 +135,8 @@ class Uji_Countdown_Admin {
135
  </li>
136
  <li>
137
  <img alt="wordpress" src="'.UJICOUNTDOWN_URL.'assets/images/icon-wp.png">
138
- <h3>WordPress 4.1.1</h3>
139
- <p>Fully supports WordPress 4.1.1, while maintaining compatibility through version 3.5+</p>
140
  </li>
141
  </ul>';
142
  echo '</div></div>';
@@ -244,26 +244,26 @@ class Uji_Countdown_Admin {
244
 
245
  }
246
 
247
- /**
248
- * Print checkbox field.
249
- *
250
- * @since 2.0
251
- */
252
- private function cform_checkbox( $label, $names, $name_val, $val ) {
253
- $form = '<div class="ujic-box">';
254
- $form .= '<div class="label">' . $label . '</div>';
255
- $form .= '<div class="ujic-chkbtn">';
256
- $i = 0;
257
- foreach ( $names as $name ) {
258
- $form .= '<input id="' . $name . '" type="checkbox" value="true" class="icheckbox_flat-pink" name="' . $name . '" ' . checked( $val[$i], "true", false ) . '>';
259
- $form .= '<label for="' . $name . '">' . $name_val[$i] . '</label>';
260
- $i++;
261
- }
262
- $form .= '</div>';
263
- $form .= '</div>';
264
-
265
- return $form;
266
- }
267
 
268
 
269
 
@@ -724,6 +724,7 @@ class Uji_Countdown_Admin {
724
  $cnt = '<form method="post" action="options-general.php?page=uji-countdown&tab=tab_ujic_set&saveset=true">';
725
  $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 ) ) );
726
  $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 ) ) );
 
727
  $cnt .= $this->cform_title( __( "Quick Translation", $this->plugin_slug ) );
728
 
729
  $labels = self::ujic_labels();
135
  </li>
136
  <li>
137
  <img alt="wordpress" src="'.UJICOUNTDOWN_URL.'assets/images/icon-wp.png">
138
+ <h3>WordPress 4.4.1</h3>
139
+ <p>Fully supports WordPress 4.4.1, while maintaining compatibility through version 3.5+</p>
140
  </li>
141
  </ul>';
142
  echo '</div></div>';
244
 
245
  }
246
 
247
+ /**
248
+ * Print checkbox field.
249
+ *
250
+ * @since 2.0
251
+ */
252
+ private function cform_checkbox( $label, $names, $name_val, $val ) {
253
+ $form = '<div class="ujic-box">';
254
+ $form .= '<div class="label">' . $label . '</div>';
255
+ $form .= '<div class="ujic-chkbtn">';
256
+ $i = 0;
257
+ foreach ( $names as $name ) {
258
+ $form .= '<input id="' . $name . '" type="checkbox" value="true" class="icheckbox_flat-pink" name="' . $name . '" ' . checked( $val[$i], "true", false ) . '>';
259
+ $form .= '<label for="' . $name . '">' . $name_val[$i] . '</label>';
260
+ $i++;
261
+ }
262
+ $form .= '</div>';
263
+ $form .= '</div>';
264
+
265
+ return $form;
266
+ }
267
 
268
 
269
 
724
  $cnt = '<form method="post" action="options-general.php?page=uji-countdown&tab=tab_ujic_set&saveset=true">';
725
  $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 ) ) );
726
  $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 ) ) );
727
+ $cnt .= $this->cform_checkbox( __( "Remove Settings", $this->plugin_slug ), array( 'ujic_remove' ), array( __("This option will remove all settings and styles when <strong>Delete plugin</strong>", $this->plugin_slug ) ), array( ( isset($vars['ujic_remove']) ? $vars['ujic_remove'] : false ) ) );
728
  $cnt .= $this->cform_title( __( "Quick Translation", $this->plugin_slug ) );
729
 
730
  $labels = self::ujic_labels();
classes/class-uji-countdown.php CHANGED
@@ -246,7 +246,7 @@ class Uji_Countdown extends Uji_Countdown_Admin
246
  "ujic_txt" => "true", //Show Label Text
247
  "ujic_ani" => 0, //Animation for seconds
248
 
249
- "ujic_subscrFrmIsEnabled" => "true", // Enable subscribe form
250
  "ujic_subscrFrmAboveText" => "",//__("Join Our Newsletter"), // Subscription form text above
251
  "ujic_subscrFrmInputText" => "",//__("Enter your email here"), // Subscription form input text placeholder
252
  "ujic_subscrFrmSubmitText" => "",//__("Subscribe"), // Subscription form input text placeholder
246
  "ujic_txt" => "true", //Show Label Text
247
  "ujic_ani" => 0, //Animation for seconds
248
 
249
+ "ujic_subscrFrmIsEnabled" => "false", // Enable subscribe form
250
  "ujic_subscrFrmAboveText" => "",//__("Join Our Newsletter"), // Subscription form text above
251
  "ujic_subscrFrmInputText" => "",//__("Enter your email here"), // Subscription form input text placeholder
252
  "ujic_subscrFrmSubmitText" => "",//__("Subscribe"), // Subscription form input text placeholder
js/uji-countdown.js CHANGED
@@ -1,117 +1 @@
1
- (function ($) {
2
- "use strict";
3
- $(function () {
4
-
5
- var counter_id = window['ujiCount'];
6
-
7
- var style = counter_id.uji_style;
8
-
9
- var uji_plugin = counter_id.uji_plugin;
10
-
11
- var ujic_id = 'ujiCountdown';
12
- var expire = counter_id.expire;
13
- var exp_days = counter_id.exp_days;
14
-
15
- var Years = counter_id.Years;
16
- var Months = counter_id.Months;
17
- var Weeks = counter_id.Weeks;
18
- var Days = counter_id.Days;
19
- var Hours = counter_id.Hours;
20
- var Minutes = counter_id.Minutes;
21
- var Seconds = counter_id.Seconds;
22
-
23
- var Year = counter_id.Year;
24
- var Month = counter_id.Month;
25
- var Week = counter_id.Week;
26
- var Day = counter_id.Day;
27
- var Hour = counter_id.Hour;
28
- var Minute = counter_id.Minute;
29
- var Second = counter_id.Second;
30
-
31
- var ujic_txt_size = counter_id.ujic_txt_size;
32
- var ujic_col_dw = counter_id.ujic_col_dw;
33
- var ujic_col_up = counter_id.ujic_col_up;
34
- var ujic_col_txt = counter_id.ujic_col_txt;
35
- var ujic_col_sw = counter_id.ujic_col_sw;
36
- var ujic_col_lab = counter_id.ujic_col_lab;
37
- var ujic_lab_sz = counter_id.ujic_lab_sz;
38
-
39
- var ujic_y = counter_id.ujic_y;
40
- var ujic_o = counter_id.ujic_o;
41
- var ujic_w = counter_id.ujic_w;
42
- var ujic_d = counter_id.ujic_d;
43
- var ujic_h = counter_id.ujic_h;
44
- var ujic_m = counter_id.ujic_m;
45
- var ujic_s = counter_id.ujic_s;
46
-
47
- var ujic_thick = counter_id.ujic_thick;
48
- var ujic_txt = (counter_id.ujic_txt == "true") ? true : false ;
49
- var ujic_ani = (counter_id.ujic_ani == "true") ? true : false ;
50
- var ujic_prefix = 'http://';
51
- var ujic_url = (counter_id.ujic_url) ? ( (counter_id.ujic_url.substr(0, ujic_prefix.length) !== ujic_prefix) ? ujic_prefix + counter_id.ujic_url : counter_id.ujic_url ) : '';
52
- var ujic_expire = (ujic_url != '') ? true : false;
53
- var ujic_goof = counter_id.ujic_goof;
54
-
55
- var uji_center = counter_id.uji_center;
56
- var uji_time = counter_id.uji_time;
57
-
58
- var ujic_hide = counter_id.uji_hide;
59
- var ujic_rtl = (counter_id.ujic_rtl == "true") ? true : false ;
60
-
61
- var austDay = new Date(''+ expire +'');
62
-
63
- var cformat = '';
64
- cformat += (ujic_y == 'true') ? 'Y' : '';
65
- cformat += (ujic_o == 'true') ? 'O' : '';
66
- cformat += (ujic_w == 'true') ? 'W' : '';
67
- cformat += (ujic_d == 'true') ? 'D' : '';
68
- cformat += (ujic_h == 'true') ? 'H' : '';
69
- cformat += (ujic_m == 'true') ? 'M' : '';
70
- cformat += (ujic_s == 'true') ? 'S' : '';
71
-
72
- var cids = [];
73
- if (ujic_y == 'true') cids.push('uji_year');
74
- if (ujic_o == 'true') cids.push('uji_mont');
75
- if (ujic_w == 'true') cids.push('uji_week');
76
- if (ujic_d == 'true') cids.push('uji_days');
77
- if (ujic_h == 'true') cids.push('uji_hour');
78
- if (ujic_m == 'true') cids.push('uji_minu');
79
- if (ujic_s == 'true') cids.push('uji_secu');
80
-
81
-
82
- $.countdown.regionalOptions["uji"] = {
83
- labels: [''+ Years +'', ''+ Months +'', ''+ Weeks +'', ''+ Days +'', ''+ Hours +'', ''+ Minutes +'', ''+ Seconds +''],
84
- labels1: [''+ Year +'', ''+ Month +'', ''+ Week +'', ''+ Day +'', ''+ Hour +'', ''+ Minute +'', ''+ Second +''],
85
- compactLabels: ["A", "L", "S", "Z"],
86
- format: cformat,
87
- whichLabels: null,
88
- timeSeparator: ':', isRTL: false};
89
- $.countdown.setDefaults($.countdown.regionalOptions["uji"]);
90
-
91
- if(ujic_goof){
92
- var the_font = ujic_goof.replace(/\s+/g, '+');
93
- //add reference to google font family
94
- $( 'head' ).append( '<link href="https://fonts.googleapis.com/css?family='+ the_font +'" rel="stylesheet" type="text/css">' );
95
- }
96
-
97
-
98
- //******************************************* CLASSIC
99
-
100
-
101
- $("#"+ujic_id).countdown({until: austDay, ujic_id: ''+ ujic_id +'', serverSync: serverTime, isRTL: ujic_rtl, text_size: ''+ ujic_txt_size +'', color_down: ''+ ujic_col_dw +'', color_up: ''+ ujic_col_up +'', color_txt: ''+ ujic_col_txt +'', color_sw: ''+ ujic_col_sw +'', color_lab: ''+ ujic_col_lab +'', lab_sz: ''+ ujic_lab_sz +'', ujic_txt: ujic_txt, animate_sec: ujic_ani, ujic_hide: ujic_hide, alwaysExpire: ujic_expire, expiryUrl: ujic_url, ujic_goof: ''+ ujic_goof +'' });
102
-
103
-
104
-
105
- // Get Server Time
106
- function serverTime() {
107
- var time = null;
108
-
109
- time = new Date(uji_time);
110
- var utcTime = new Date(time.getUTCFullYear(), time.getUTCMonth(), time.getUTCDate(), time.getUTCHours(), time.getUTCMinutes(), time.getUTCSeconds());
111
- time = utcTime;
112
-
113
- return time;
114
- }
115
-
116
- });
117
- }(jQuery));
1
+ (function(a){a(function(){var V=window.ujiCount;var G=V.uji_style;var K=V.uji_plugin;var s="ujiCountdown";var I=V.expire;var d=V.exp_days;var p=V.Years;var R=V.Months;var H=V.Weeks;var X=V.Days;var N=V.Hours;var z=V.Minutes;var f=V.Seconds;var W=V.Year;var E=V.Month;var Q=V.Week;var e=V.Day;var i=V.Hour;var x=V.Minute;var b=V.Second;var m=V.ujic_txt_size;var U=V.ujic_col_dw;var q=V.ujic_col_up;var M=V.ujic_col_txt;var c=V.ujic_col_sw;var r=V.ujic_col_lab;var o=V.ujic_lab_sz;var A=V.ujic_y;var J=V.ujic_o;var C=V.ujic_w;var S=V.ujic_d;var P=V.ujic_h;var L=V.ujic_m;var D=V.ujic_s;var h=V.ujic_thick;var y=(V.ujic_txt=="true")?true:false;var g=(V.ujic_ani=="true")?true:false;var v=(V.ujic_url)?((V.ujic_url.substr(0,7)!=="http://"&&V.ujic_url.substr(0,8)!=="https://")?"http://"+V.ujic_url:V.ujic_url):"";var w=(v!="")?true:false;var u=V.ujic_goof;var O=V.uji_center;var n=V.uji_time;var k=V.uji_hide;var j=(V.ujic_rtl=="true")?true:false;var T=new Date(""+I+"");var F="";F+=(A=="true")?"Y":"";F+=(J=="true")?"O":"";F+=(C=="true")?"W":"";F+=(S=="true")?"D":"";F+=(P=="true")?"H":"";F+=(L=="true")?"M":"";F+=(D=="true")?"S":"";var t=[];if(A=="true"){t.push("uji_year")}if(J=="true"){t.push("uji_mont")}if(C=="true"){t.push("uji_week")}if(S=="true"){t.push("uji_days")}if(P=="true"){t.push("uji_hour")}if(L=="true"){t.push("uji_minu")}if(D=="true"){t.push("uji_secu")}a.countdown.regionalOptions.uji={labels:[""+p+"",""+R+"",""+H+"",""+X+"",""+N+"",""+z+"",""+f+""],labels1:[""+W+"",""+E+"",""+Q+"",""+e+"",""+i+"",""+x+"",""+b+""],compactLabels:["A","L","S","Z"],format:F,whichLabels:null,timeSeparator:":",isRTL:false};a.countdown.setDefaults(a.countdown.regionalOptions.uji);if(u){var l=u.replace(/\s+/g,"+");a("head").append('<link href="http://fonts.googleapis.com/css?family='+l+'" rel="stylesheet" type="text/css">')}a("#"+s).countdown({until:T,ujic_id:""+s+"",serverSync:B,isRTL:j,text_size:""+m+"",color_down:""+U+"",color_up:""+q+"",color_txt:""+M+"",color_sw:""+c+"",color_lab:""+r+"",lab_sz:""+o+"",ujic_txt:y,animate_sec:g,ujic_hide:k,alwaysExpire:w,expiryUrl:v,ujic_goof:""+u+""});function B(){var Z=null;Z=new Date(n);var Y=new Date(Z.getUTCFullYear(),Z.getUTCMonth(),Z.getUTCDate(),Z.getUTCHours(),Z.getUTCMinutes(),Z.getUTCSeconds());Z=Y;return Z}})}(jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/uji-newsletter.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(e){"use strict";function t(e,t){var n=parseInt(e.slice(1),16),r=Math.round(2.55*t),i=(n>>16)+r,s=(n>>8&255)+r,o=(n&255)+r;return"#"+(16777216+(i<255?i<1?0:i:255)*65536+(s<255?s<1?0:s:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1)}e(".ujic-hold form input[type=text]").focus(function(){e(".ujic-hold form .uji-msg-ok").css("display","none");e(".ujic-hold form .uji-msg-err").css("display","none")});e(".ujic-hold form").submit(function(t){t.preventDefault();e.ajax({type:"POST",url:ujiCount.ajaxUrl,data:e(this).serialize()+"&"+e.param({action:"ujiSubscribe"}),dataType:"json",success:function(t){t.success?e(".ujic-hold form .uji-msg-ok").css("display","block"):e(".ujic-hold form .uji-msg-err").css("display","block")}})});e(".ujic-hold form input[type=submit]").each(function(){var n=e(this);var r=n.attr("color-attr");if(typeof r==="undefined")return;n.css("background","-moz-linear-gradient(top, "+r+" 0%, "+t(r,20)+" 100%)");n.css("background","-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+r+"), color-stop(100%,"+t(r,20)+"))");n.css("background","-webkit-linear-gradient(top, "+r+" 50%,"+t(r,20)+" 100%)");n.css("background","-o-linear-gradient(top, "+r+" 0%,"+t(r,20)+" 100%)");n.css("background","-ms-linear-gradient(top, "+r+" 0%,"+t(r,20)+" 100%)");n.css("background","linear-gradient(to bottom, "+r+" 0%,"+t(r,20)+" 100%)");n.css("filter","progid:DXImageTransform.Microsoft.gradient( startColorstr='"+r+"', endColorstr='"+t(r,20)+"',GradientType=0 )")});})
1
+ jQuery(document).ready(function(b){b(".ujic-hold form input[type=text]").focus(function(){b(".ujic-hold form .uji-msg-ok").css("display","none");b(".ujic-hold form .uji-msg-err").css("display","none")});b(".ujic-hold form").submit(function(c){c.preventDefault();b.ajax({type:"POST",url:ujiCount.ajaxUrl,data:b(this).serialize()+"&"+b.param({action:"ujiSubscribe"}),dataType:"json",success:function(d){d.success?b(".ujic-hold form .uji-msg-ok").css("display","block"):b(".ujic-hold form .uji-msg-err").css("display","block")}})});b(".ujic-hold form input[type=submit]").each(function(){var d=b(this);var c=d.attr("color-attr");if(typeof c==="undefined"){return}d.css("background","-moz-linear-gradient(top, "+c+" 0%, "+a(c,20)+" 100%)");d.css("background","-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+c+"), color-stop(100%,"+a(c,20)+"))");d.css("background","-webkit-linear-gradient(top, "+c+" 50%,"+a(c,20)+" 100%)");d.css("background","-o-linear-gradient(top, "+c+" 0%,"+a(c,20)+" 100%)");d.css("background","-ms-linear-gradient(top, "+c+" 0%,"+a(c,20)+" 100%)");d.css("background","linear-gradient(to bottom, "+c+" 0%,"+a(c,20)+" 100%)");d.css("filter","progid:DXImageTransform.Microsoft.gradient( startColorstr='"+c+"', endColorstr='"+a(c,20)+"',GradientType=0 )")});function a(c,g){var d=parseInt(c.slice(1),16),i=Math.round(2.55*g),f=(d>>16)+i,e=(d>>8&255)+i,h=(d&255)+i;return"#"+(16777216+(f<255?f<1?0:f:255)*65536+(e<255?e<1?0:e:255)*256+(h<255?h<1?0:h:255)).toString(16).slice(1)}});
lang/uji-countdown-de_DE.mo CHANGED
File without changes
lang/uji-countdown-de_DE.po CHANGED
File without changes
lang/uji-countdown-es_ES.mo CHANGED
File without changes
lang/uji-countdown-fr_FR.mo CHANGED
File without changes
lang/uji-countdown-fr_FR.po CHANGED
File without changes
lang/uji-countdown-hu_HU.mo CHANGED
File without changes
lang/uji-countdown-it_IT.mo CHANGED
File without changes
lang/uji-countdown-nl_NL.mo CHANGED
File without changes
lang/uji-countdown-nl_NL.po CHANGED
File without changes
lang/uji-countdown-ru_RU.mo CHANGED
File without changes
lang/uji-countdown-ru_RU.po CHANGED
File without changes
ujicountdown.php CHANGED
@@ -1,22 +1,22 @@
1
  <?php
2
  /*
3
- Plugin Name: Uji Countdown
4
  Plugin URI: http://www.wpmanage.com/uji-countdown
5
  Description: HTML5 Customizable Countdown.
6
- Version: 2.0.5
7
  Text Domain: uji-countdown
8
  Domain Path: /lang
9
  Author: Wpmanage.com
10
  Author URI: http://wpmanage.com
11
  License: GPLv2
12
- Copyright 2015 WPmanage (email : info@wpmanage.com)
13
  */
14
 
15
  // If this file is called directly, abort.
16
  defined( 'WPINC' ) || exit;
17
 
18
  define( 'UJIC_NAME', 'Uji Countdown' );
19
- define( 'UJIC_VERS', '2.0.5' );
20
  define( 'UJIC_FOLD', 'uji-countdown' );
21
  define( 'UJICOUNTDOWN', trailingslashit( dirname(__FILE__) ) );
22
  define( 'UJICOUNTDOWN_URL', plugin_dir_url( __FILE__ ) );
@@ -33,4 +33,4 @@ require_once( plugin_dir_path( __FILE__ ) . 'classes/class-uji-countdown-front.p
33
  require_once( plugin_dir_path( __FILE__ ) . 'classes/class-uji-widget.php' );
34
 
35
  // INIT
36
- Uji_Countdown::get_instance();
1
  <?php
2
  /*
3
+ Plugin Name: Uji&#32;Countdown
4
  Plugin URI: http://www.wpmanage.com/uji-countdown
5
  Description: HTML5 Customizable Countdown.
6
+ Version: 2.0.6
7
  Text Domain: uji-countdown
8
  Domain Path: /lang
9
  Author: Wpmanage.com
10
  Author URI: http://wpmanage.com
11
  License: GPLv2
12
+ Copyright 2016 WPmanage (email : info@wpmanage.com)
13
  */
14
 
15
  // If this file is called directly, abort.
16
  defined( 'WPINC' ) || exit;
17
 
18
  define( 'UJIC_NAME', 'Uji Countdown' );
19
+ define( 'UJIC_VERS', '2.0.6' );
20
  define( 'UJIC_FOLD', 'uji-countdown' );
21
  define( 'UJICOUNTDOWN', trailingslashit( dirname(__FILE__) ) );
22
  define( 'UJICOUNTDOWN_URL', plugin_dir_url( __FILE__ ) );
33
  require_once( plugin_dir_path( __FILE__ ) . 'classes/class-uji-widget.php' );
34
 
35
  // INIT
36
+ Uji_Countdown::get_instance();
uninstall.php CHANGED
@@ -16,19 +16,25 @@ function single_uninstall() {
16
  delete_option('ujic_set');
17
  }
18
 
19
- // Let's do it!
20
- if (is_multisite()) {
21
- single_uninstall();
22
 
23
- // delete data foreach blog
24
- $blogs_list = $GLOBALS['wpdb']->get_results("SELECT blog_id FROM {$GLOBALS['wpdb']->blogs}", ARRAY_A);
25
- if (!empty($blogs_list)) {
26
- foreach ($blogs_list as $blog) {
27
- switch_to_blog($blog['blog_id']);
28
- single_uninstall();
29
- restore_current_blog();
 
 
 
 
 
 
30
  }
 
 
31
  }
32
- } else {
33
- single_uninstall();
34
- }
16
  delete_option('ujic_set');
17
  }
18
 
19
+ $_set = get_option('ujic_set');
20
+ $delete_set = (isset( $_set['ujic_remove'] ) && !empty( $_set['ujic_remove'] ) ) ? $_set['ujic_remove'] : false;
 
21
 
22
+ if( $delete_set == "true" ):
23
+ // Let's do it!
24
+ if (is_multisite()) {
25
+ single_uninstall();
26
+
27
+ // delete data foreach blog
28
+ $blogs_list = $GLOBALS['wpdb']->get_results("SELECT blog_id FROM {$GLOBALS['wpdb']->blogs}", ARRAY_A);
29
+ if (!empty($blogs_list)) {
30
+ foreach ($blogs_list as $blog) {
31
+ switch_to_blog($blog['blog_id']);
32
+ single_uninstall();
33
+ restore_current_blog();
34
+ }
35
  }
36
+ } else {
37
+ single_uninstall();
38
  }
39
+
40
+ endif;