Version Description
- Fix do_shortcode when using hardcoded.
Download this release
Release Info
Developer | ujimoto |
Plugin | Uji Countdown |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- readme.txt +6 -1
- screenshot-3.png +0 -0
- uji-countdown-front.php +6 -1
- uji-countdown.php +7 -13
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://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: 3.3.1
|
7 |
-
Stable tag: 1.0.
|
8 |
|
9 |
Uji Countdown - HTML5 Customizable Countdown Timer
|
10 |
|
@@ -40,9 +40,14 @@ WPmanage [(http://www.wpmanage.com/uji-countdown/)](http://www.wpmanage.com/uji-
|
|
40 |
|
41 |
1. Create your new Countdown style.
|
42 |
2. Place your Countdown in Post/Page via Edit: Post or Page.
|
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
|
|
46 |
= 1.0.1 =
|
47 |
|
48 |
* Fix align center.
|
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: 3.3.1
|
7 |
+
Stable tag: 1.0.2
|
8 |
|
9 |
Uji Countdown - HTML5 Customizable Countdown Timer
|
10 |
|
40 |
|
41 |
1. Create your new Countdown style.
|
42 |
2. Place your Countdown in Post/Page via Edit: Post or Page.
|
43 |
+
3. Front-end view
|
44 |
|
45 |
== Changelog ==
|
46 |
|
47 |
+
= 1.0.2 =
|
48 |
+
|
49 |
+
* Fix do_shortcode when using hardcoded.
|
50 |
+
|
51 |
= 1.0.1 =
|
52 |
|
53 |
* Fix align center.
|
screenshot-3.png
ADDED
Binary file
|
uji-countdown-front.php
CHANGED
@@ -83,6 +83,11 @@ function ujic_forms(){
|
|
83 |
|
84 |
function ujic_code( $atts, $content = null ) {
|
85 |
global $wpdb;
|
|
|
|
|
|
|
|
|
|
|
86 |
extract(shortcode_atts(array(
|
87 |
'id' => "ujic-black",
|
88 |
'expire' =>"2012/2/21 01:00:00"
|
@@ -112,7 +117,7 @@ function ujic_code( $atts, $content = null ) {
|
|
112 |
$ujic_txt = !empty($ujic_txt) ? 'true' : 'false';
|
113 |
$ujic_ani = !empty($ujic_ani) ? 'true' : 'false';
|
114 |
|
115 |
-
if($class=='center'){ $center_script = 'jQuery("#ujiCountdown").css({"width": (jQuery("#ujiCountdown").width())+"px", "padding-left": "10px", "display": "block"});';} else{$center_script = '';}
|
116 |
$script =' <script type="text/javascript">
|
117 |
<!--
|
118 |
jQuery(document).ready(function($){
|
83 |
|
84 |
function ujic_code( $atts, $content = null ) {
|
85 |
global $wpdb;
|
86 |
+
|
87 |
+
wp_enqueue_style( 'ujiStyleCount');
|
88 |
+
wp_enqueue_scripts('jQuery');
|
89 |
+
wp_print_scripts('UJI_js_countdown');
|
90 |
+
|
91 |
extract(shortcode_atts(array(
|
92 |
'id' => "ujic-black",
|
93 |
'expire' =>"2012/2/21 01:00:00"
|
117 |
$ujic_txt = !empty($ujic_txt) ? 'true' : 'false';
|
118 |
$ujic_ani = !empty($ujic_ani) ? 'true' : 'false';
|
119 |
|
120 |
+
if($class=='center'){ $center_script = 'jQuery("#ujiCountdown").css({"width": (jQuery("#ujiCountdown").width()+5)+"px", "padding-left": "10px", "display": "block"});';} else{$center_script = '';}
|
121 |
$script =' <script type="text/javascript">
|
122 |
<!--
|
123 |
jQuery(document).ready(function($){
|
uji-countdown.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Uji Countdown
|
4 |
Plugin URI: http://www.wpmanage.com/uji-countdown/
|
5 |
Description: HTML5 Countdown.
|
6 |
-
Version: 1.0.
|
7 |
Author: Ujog Raul
|
8 |
Author URI: http://www.wpmanage.com
|
9 |
|
@@ -29,7 +29,7 @@ if (!defined('UJI_VERSION_KEY'))
|
|
29 |
define('UJI_VERSION_KEY', 'UJI_version');
|
30 |
|
31 |
if (!defined('UJI_VERSION_NUM'))
|
32 |
-
define('UJI_VERSION_NUM', '1.0.
|
33 |
|
34 |
///////////////////////////////////DB///////////////////////////////////////
|
35 |
|
@@ -151,16 +151,10 @@ if(in_array(UJI_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'pos
|
|
151 |
|
152 |
////////////////////////////////////ENQUIRE SCRIPT////////////////////////////////////////
|
153 |
|
154 |
-
function
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
wp_enqueue_script('jquery');
|
160 |
-
wp_enqueue_script('UJI_js_countdown', UJI_PLUGIN_URL . '/js/jquery.countdown.js', array('jquery'), '1.0', true);
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
add_action('wp_enqueue_scripts', 'ujic_scripts_enqueue');
|
165 |
|
166 |
?>
|
3 |
Plugin Name: Uji Countdown
|
4 |
Plugin URI: http://www.wpmanage.com/uji-countdown/
|
5 |
Description: HTML5 Countdown.
|
6 |
+
Version: 1.0.2
|
7 |
Author: Ujog Raul
|
8 |
Author URI: http://www.wpmanage.com
|
9 |
|
29 |
define('UJI_VERSION_KEY', 'UJI_version');
|
30 |
|
31 |
if (!defined('UJI_VERSION_NUM'))
|
32 |
+
define('UJI_VERSION_NUM', '1.0.2');
|
33 |
|
34 |
///////////////////////////////////DB///////////////////////////////////////
|
35 |
|
151 |
|
152 |
////////////////////////////////////ENQUIRE SCRIPT////////////////////////////////////////
|
153 |
|
154 |
+
function ujic_scripts_register() {
|
155 |
+
wp_register_style('ujiStyleCount', UJI_PLUGIN_URL . '/css/jquery.countdown.css');
|
156 |
+
wp_register_script('UJI_js_countdown', UJI_PLUGIN_URL . '/js/jquery.countdown.js', array('jquery'), '1.0', true);
|
157 |
+
}
|
158 |
+
add_action('init', 'ujic_scripts_register');
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
?>
|