Version Description
- Added some code comments.
=
Download this release
Release Info
Developer | wpdevart |
Plugin | Countdown Timer – Widget Countdown |
Version | 2.1.8 |
Comparing to | |
See all releases |
Code changes from version 2.1.7 to 2.1.8
- includes/admin_menu.php +1 -1
- includes/front_end.php +4 -4
- includes/widget.php +1 -1
- readme.txt +6 -2
- wpdevart-countdown.php +5 -5
includes/admin_menu.php
CHANGED
@@ -9,7 +9,7 @@ class wpdevart_countdown_admin_menu{
|
|
9 |
private $plugin_url;
|
10 |
private $plugin_path;
|
11 |
|
12 |
-
/*######################
|
13 |
|
14 |
function __construct($param){
|
15 |
|
9 |
private $plugin_url;
|
10 |
private $plugin_path;
|
11 |
|
12 |
+
/*###################### Construct parameters function ##################*/
|
13 |
|
14 |
function __construct($param){
|
15 |
|
includes/front_end.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/*###############################
|
4 |
|
5 |
class wpdevart_countdown_front_end{
|
6 |
private $menu_name;
|
@@ -13,7 +13,7 @@ class wpdevart_countdown_front_end{
|
|
13 |
|
14 |
public static $id_for_content=0;
|
15 |
|
16 |
-
/*######################
|
17 |
|
18 |
function __construct($params){
|
19 |
if(isset($param['databese_parametrs']))
|
@@ -32,7 +32,7 @@ class wpdevart_countdown_front_end{
|
|
32 |
|
33 |
}
|
34 |
|
35 |
-
/*######################
|
36 |
|
37 |
public function generete_front_javascript(){
|
38 |
|
@@ -58,7 +58,7 @@ class wpdevart_countdown_front_end{
|
|
58 |
"countdown_end_type" => "time",
|
59 |
"hide_on_mobile" => "show",
|
60 |
"end_date" => date('d-m-Y 23:59'),
|
61 |
-
"end_time" => "0,
|
62 |
"font_color" => "#000000",
|
63 |
"action_end_time" => "hide",
|
64 |
"content_position" => "center",
|
1 |
<?php
|
2 |
|
3 |
+
/*############################### Front-end Code #######################################*/
|
4 |
|
5 |
class wpdevart_countdown_front_end{
|
6 |
private $menu_name;
|
13 |
|
14 |
public static $id_for_content=0;
|
15 |
|
16 |
+
/*###################### Construct parameters function ##################*/
|
17 |
|
18 |
function __construct($params){
|
19 |
if(isset($param['databese_parametrs']))
|
32 |
|
33 |
}
|
34 |
|
35 |
+
/*###################### Generate Front Javascript Function ##################*/
|
36 |
|
37 |
public function generete_front_javascript(){
|
38 |
|
58 |
"countdown_end_type" => "time",
|
59 |
"hide_on_mobile" => "show",
|
60 |
"end_date" => date('d-m-Y 23:59'),
|
61 |
+
"end_time" => "0,8,8",
|
62 |
"font_color" => "#000000",
|
63 |
"action_end_time" => "hide",
|
64 |
"content_position" => "center",
|
includes/widget.php
CHANGED
@@ -70,7 +70,7 @@ class wpdevart_countdown extends WP_Widget {
|
|
70 |
'start_time' => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
|
71 |
'hide_on_mobile' => 'show',
|
72 |
'end_time_type' => 'time',
|
73 |
-
'end_time' => '0,
|
74 |
'end_time_date' => date('d-m-Y 23:59'),
|
75 |
'font_color' => '#000000',
|
76 |
'action_end_time' => 'hide',
|
70 |
'start_time' => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
|
71 |
'hide_on_mobile' => 'show',
|
72 |
'end_time_type' => 'time',
|
73 |
+
'end_time' => '0,8,8',
|
74 |
'end_time_date' => date('d-m-Y 23:59'),
|
75 |
'font_color' => '#000000',
|
76 |
'action_end_time' => 'hide',
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdevart
|
|
3 |
Donate link: http://wpdevart.com/wordpress-countdown-plugin
|
4 |
Tags: countdown, countdown widget, countdown timer, countdown system, countdown generator
|
5 |
Requires at least: 3.3.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -510,6 +510,10 @@ Yes dear users, you need to pay only one time for pro version, it's lifetime pla
|
|
510 |
|
511 |
* Changed the Countdown timer text color status.
|
512 |
|
|
|
|
|
|
|
|
|
513 |
== Step by step guide ==
|
514 |
|
515 |
### Options
|
3 |
Donate link: http://wpdevart.com/wordpress-countdown-plugin
|
4 |
Tags: countdown, countdown widget, countdown timer, countdown system, countdown generator
|
5 |
Requires at least: 3.3.0
|
6 |
+
Tested up to: 5.6
|
7 |
+
Stable tag: 2.1.8
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
510 |
|
511 |
* Changed the Countdown timer text color status.
|
512 |
|
513 |
+
= 2.1.8 =
|
514 |
+
|
515 |
+
* Added some code comments.
|
516 |
+
|
517 |
== Step by step guide ==
|
518 |
|
519 |
### Options
|
wpdevart-countdown.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Countdown Wpdevart
|
4 |
Plugin URI: http://wpdevart.com/wordpress-countdown-plugin/
|
5 |
Description: Countdown plugin is an nice tool to create and insert countdown timers into your posts/pages and widgets .
|
6 |
-
Version: 2.1.
|
7 |
Author: wpdevart
|
8 |
Author URI: http://wpdevart.com
|
9 |
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -37,7 +37,7 @@ class wpdevart_countdown_main{
|
|
37 |
|
38 |
}
|
39 |
|
40 |
-
/*###################### Create
|
41 |
|
42 |
public function create_admin_menu(){
|
43 |
|
@@ -76,7 +76,7 @@ class wpdevart_countdown_main{
|
|
76 |
wp_register_style('wpda_countdown_gutenberg_css',$this->wpdevart_countdown_plugin_url.'includes/gutenberg/style.css');
|
77 |
|
78 |
}
|
79 |
-
/*######################
|
80 |
|
81 |
public function register_widget(){
|
82 |
return register_widget("wpdevart_countdown");
|
@@ -91,7 +91,7 @@ class wpdevart_countdown_main{
|
|
91 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') );
|
92 |
}
|
93 |
|
94 |
-
/*###################### Activate
|
95 |
|
96 |
public function plugin_activate_sublink($links){
|
97 |
$plugin_submenu_added_link=array();
|
@@ -103,7 +103,7 @@ class wpdevart_countdown_main{
|
|
103 |
return $plugin_submenu_added_link;
|
104 |
}
|
105 |
|
106 |
-
/*######################
|
107 |
|
108 |
public function include_requeried_scripts(){
|
109 |
wp_enqueue_script('wp-color-picker');
|
3 |
Plugin Name: Countdown Wpdevart
|
4 |
Plugin URI: http://wpdevart.com/wordpress-countdown-plugin/
|
5 |
Description: Countdown plugin is an nice tool to create and insert countdown timers into your posts/pages and widgets .
|
6 |
+
Version: 2.1.8
|
7 |
Author: wpdevart
|
8 |
Author URI: http://wpdevart.com
|
9 |
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
|
37 |
|
38 |
}
|
39 |
|
40 |
+
/*###################### Create Admin menu function ##################*/
|
41 |
|
42 |
public function create_admin_menu(){
|
43 |
|
76 |
wp_register_style('wpda_countdown_gutenberg_css',$this->wpdevart_countdown_plugin_url.'includes/gutenberg/style.css');
|
77 |
|
78 |
}
|
79 |
+
/*###################### Register widget ##################*/
|
80 |
|
81 |
public function register_widget(){
|
82 |
return register_widget("wpdevart_countdown");
|
91 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') );
|
92 |
}
|
93 |
|
94 |
+
/*###################### Activate sub-link function ##################*/
|
95 |
|
96 |
public function plugin_activate_sublink($links){
|
97 |
$plugin_submenu_added_link=array();
|
103 |
return $plugin_submenu_added_link;
|
104 |
}
|
105 |
|
106 |
+
/*###################### Required scripts function ##################*/
|
107 |
|
108 |
public function include_requeried_scripts(){
|
109 |
wp_enqueue_script('wp-color-picker');
|