Uji Countdown - Version 1.0.5

Version Description

  • Fix several bugs.
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

Files changed (3) hide show
  1. readme.txt +6 -2
  2. uji-countdown-front.php +0 -1
  3. uji-countdown.php +9 -8
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ujimoto
3
  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.4
8
 
9
  Uji Countdown - HTML5 Customizable Countdown Timer
10
 
@@ -44,6 +44,10 @@ WPmanage [(http://www.wpmanage.com/uji-countdown/)](http://www.wpmanage.com/uji-
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 1.0.4 =
48
 
49
  * Fix few bugs.
3
  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.4.1
7
+ Stable tag: 1.0.5
8
 
9
  Uji Countdown - HTML5 Customizable Countdown Timer
10
 
44
 
45
  == Changelog ==
46
 
47
+ = 1.0.5 =
48
+
49
+ * Fix several bugs.
50
+
51
  = 1.0.4 =
52
 
53
  * Fix few bugs.
uji-countdown-front.php CHANGED
@@ -145,7 +145,6 @@ function ujic_code( $atts, $content = null ) {
145
  return $content;
146
  }else{
147
  wp_enqueue_style( 'ujiStyleCount');
148
- wp_enqueue_script('jQuery');
149
  wp_enqueue_script('UJI_js_countdown');
150
 
151
  $table_name = $wpdb->prefix ."uji_counter";
145
  return $content;
146
  }else{
147
  wp_enqueue_style( 'ujiStyleCount');
 
148
  wp_enqueue_script('UJI_js_countdown');
149
 
150
  $table_name = $wpdb->prefix ."uji_counter";
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.4
7
  Author: Ujog Raul
8
  Author URI: http://www.wpmanage.com
9
 
@@ -100,10 +100,10 @@ function UJI_color_js() {
100
  wp_enqueue_script ('UJI_acolor_js', UJI_PLUGIN_URL . '/inc/js/admin.color.js', array('jquery'), '1.0', true);
101
  }
102
 
103
- ////////////////////////////////////Language////////////////////////////////
104
 
105
  function ujic_init() {
106
- load_plugin_textdomain( 'uji-countdown', false, '/uji-countdown/languages' );
107
  }
108
  add_action('init', 'ujic_init');
109
 
@@ -123,8 +123,8 @@ function my_UJI_menu() {
123
  ////////////////////////////////////INIT////////////////////////////////////////
124
 
125
  function UJI_set_links($links) {
126
- array_unshift($links, '<a class="edit" href="options-general.php?page=ujic-count">Settings</a>');
127
- return $links;
128
  }
129
 
130
  add_filter('plugin_action_links_'.UJI_PLUGIN_BASE, 'UJI_set_links', 10, 2 );
@@ -133,21 +133,22 @@ add_filter('plugin_action_links_'.UJI_PLUGIN_BASE, 'UJI_set_links', 10, 2 );
133
 
134
  function ujic_form_button($context){
135
  $image_btn = UJI_PLUGIN_URL. '/images/icon.png';
136
- $out = '<a href="#TB_inline?width=300&height=200&inlineId=select_countdown_form" class="thickbox" id="add_ujic" title="Add Countdown"><img src="'.$image_btn.'" alt="Add Counter" /></a>';
137
  return $context . $out;
138
  }
139
  add_action('media_buttons_context', 'ujic_form_button');
140
 
141
  if(in_array(UJI_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))){
142
- add_action('admin_footer', 'add_ujic_popup');
143
  }
144
 
145
  ////////////////////////////////////ENQUIRE SCRIPT////////////////////////////////////////
146
 
147
  function ujic_scripts_register() {
148
  wp_register_style('ujiStyleCount', UJI_PLUGIN_URL . '/css/jquery.countdown.css');
 
149
  wp_register_script('UJI_js_countdown', UJI_PLUGIN_URL . '/js/jquery.countdown.js', array('jquery'), '1.0', true);
150
  }
151
- add_action('init', 'ujic_scripts_register');
152
 
153
  ?>
3
  Plugin Name: Uji Countdown
4
  Plugin URI: http://www.wpmanage.com/uji-countdown/
5
  Description: HTML5 Countdown.
6
+ Version: 1.0.5
7
  Author: Ujog Raul
8
  Author URI: http://www.wpmanage.com
9
 
100
  wp_enqueue_script ('UJI_acolor_js', UJI_PLUGIN_URL . '/inc/js/admin.color.js', array('jquery'), '1.0', true);
101
  }
102
 
103
+ ////////////////////////////////////LOCALIZATION////////////////////////////////
104
 
105
  function ujic_init() {
106
+ load_plugin_textdomain( 'uji-countdown', false, '/uji-countdown/languages' );
107
  }
108
  add_action('init', 'ujic_init');
109
 
123
  ////////////////////////////////////INIT////////////////////////////////////////
124
 
125
  function UJI_set_links($links) {
126
+ array_unshift($links, '<a class="edit" href="options-general.php?page=ujic-count">Settings</a>');
127
+ return $links;
128
  }
129
 
130
  add_filter('plugin_action_links_'.UJI_PLUGIN_BASE, 'UJI_set_links', 10, 2 );
133
 
134
  function ujic_form_button($context){
135
  $image_btn = UJI_PLUGIN_URL. '/images/icon.png';
136
+ $out = '<a href="#TB_inline?width=300&height=450&inlineId=select_countdown_form" class="thickbox" id="add_ujic" title="Add Countdown"><img src="'.$image_btn.'" alt="Add Counter" /></a>';
137
  return $context . $out;
138
  }
139
  add_action('media_buttons_context', 'ujic_form_button');
140
 
141
  if(in_array(UJI_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))){
142
+ add_action('admin_footer', 'add_ujic_popup');
143
  }
144
 
145
  ////////////////////////////////////ENQUIRE SCRIPT////////////////////////////////////////
146
 
147
  function ujic_scripts_register() {
148
  wp_register_style('ujiStyleCount', UJI_PLUGIN_URL . '/css/jquery.countdown.css');
149
+ wp_enqueue_script('jquery');
150
  wp_register_script('UJI_js_countdown', UJI_PLUGIN_URL . '/js/jquery.countdown.js', array('jquery'), '1.0', true);
151
  }
152
+ add_action('wp_enqueue_scripts', 'ujic_scripts_register');
153
 
154
  ?>