Countdown Timer – Widget Countdown - Version 2.1.6

Version Description

  • Added new support URL.

=

Download this release

Release Info

Developer wpdevart
Plugin Icon 128x128 Countdown Timer – Widget Countdown
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

Files changed (3) hide show
  1. includes/admin_menu.php +13 -5
  2. readme.txt +6 -2
  3. wpdevart-countdown.php +1 -1
includes/admin_menu.php CHANGED
@@ -450,13 +450,21 @@ die;
450
  /*###################### Create menu function ##################*/
451
 
452
  public function create_menu(){
 
 
453
  $main_page = add_menu_page( $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this, 'main_menu_function'),$this->plugin_url.'images/timer.png');
454
  $page_countdown = add_submenu_page($this->menu_name, $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this, 'main_menu_function'));
455
- $page_countdown = add_submenu_page( str_replace( ' ', '-', $this->menu_name), 'Featured Plugins', 'Featured Plugins', 'manage_options', 'countdown-featured-plugins', array($this, 'featured_plugins'));
 
 
456
  add_action('admin_print_styles-' .$main_page, array($this,'menu_requeried_scripts'));
457
- add_action('admin_print_styles-' .$page_countdown, array($this,'menu_requeried_scripts'));
 
 
 
 
 
458
  }
459
-
460
  /*###################### Menu scripts required function ##################*/
461
 
462
  public function menu_requeried_scripts(){
@@ -671,7 +679,7 @@ die;
671
  -webkit-transform: translateY(0);
672
  -moz-transform: translateY0);
673
  transform: translateY(0);
674
- min-height: 344px;
675
  }
676
  .featured_plugin_main:hover{
677
  -webkit-transform: translateY(-2px);
@@ -749,7 +757,7 @@ die;
749
  .featured_plugin_main {
750
  width: calc((100% - 60px)/2);
751
  padding: 20px 20px;
752
- min-height: 363px;
753
  }
754
  }
755
  @media screen and (max-width: 768px){
450
  /*###################### Create menu function ##################*/
451
 
452
  public function create_menu(){
453
+ global $submenu;
454
+ $sub_men_cap=str_replace( ' ', '-', $this->menu_name);
455
  $main_page = add_menu_page( $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this, 'main_menu_function'),$this->plugin_url.'images/timer.png');
456
  $page_countdown = add_submenu_page($this->menu_name, $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this, 'main_menu_function'));
457
+ $page_countdown = add_submenu_page( $sub_men_cap, 'Featured Plugins', 'Featured Plugins', 'manage_options', 'countdown-featured-plugins', array($this, 'featured_plugins'));
458
+ if(isset($submenu[$sub_men_cap]))
459
+ add_submenu_page( $sub_men_cap, "Support or Any Ideas?", "<span style='color:#00ff66' >Support or Any Ideas?</span>", 'manage_options',"any_ideas",array($this, 'any_ideas'),155);
460
  add_action('admin_print_styles-' .$main_page, array($this,'menu_requeried_scripts'));
461
+ add_action('admin_print_styles-' .$page_countdown, array($this,'menu_requeried_scripts'));
462
+ if(isset($submenu[$sub_men_cap]))
463
+ $submenu[$sub_men_cap][2][2]=wpdevart_countdown_support_url;
464
+ }
465
+ public function any_ideas(){
466
+
467
  }
 
468
  /*###################### Menu scripts required function ##################*/
469
 
470
  public function menu_requeried_scripts(){
679
  -webkit-transform: translateY(0);
680
  -moz-transform: translateY0);
681
  transform: translateY(0);
682
+ min-height: 420px;
683
  }
684
  .featured_plugin_main:hover{
685
  -webkit-transform: translateY(-2px);
757
  .featured_plugin_main {
758
  width: calc((100% - 60px)/2);
759
  padding: 20px 20px;
760
+ min-height: 420px;
761
  }
762
  }
763
  @media screen and (max-width: 768px){
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.4.1
7
- Stable tag: 2.1.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -502,6 +502,10 @@ Yes dear users, you need to pay only one time for pro version, it's lifetime pla
502
 
503
  * Added new functionality - Redirect.
504
 
 
 
 
 
505
  == Step by step guide ==
506
 
507
  ### 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.4.2
7
+ Stable tag: 2.1.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
502
 
503
  * Added new functionality - Redirect.
504
 
505
+ = 2.1.6 =
506
+
507
+ * Added new support URL.
508
+
509
  == Step by step guide ==
510
 
511
  ### 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.5
7
  Author: wpdevart
8
  Author URI: http://wpdevart.com
9
  License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
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.6
7
  Author: wpdevart
8
  Author URI: http://wpdevart.com
9
  License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html