Countdown Timer – Widget Countdown - Version 2.1.1

Version Description

  • Edit plugin admin panel.

=

Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.1

images/clasic_editor_button_place.jpg ADDED
Binary file
images/gutenberg_button_place.jpg ADDED
Binary file
images/support-white.png ADDED
Binary file
images/widget_place.jpg ADDED
Binary file
includes/admin_menu.php CHANGED
@@ -8,7 +8,6 @@ class wpdevart_countdown_admin_menu{
8
private $databese_parametrs;
9
private $plugin_url;
10
private $plugin_path;
11
- private $text_parametrs;
12
13
/*###################### Constract parameters function ##################*/
14
@@ -30,9 +29,6 @@ class wpdevart_countdown_admin_menu{
30
// Insert button code
31
add_action('media_buttons_context', array($this,'wpdevart_countdown_button'));
32
add_action( 'wp_ajax_wpdevart_countdown_window_manager', array($this,'wpdevart_countdown_window_insert_content') );
33
-
34
- add_action( 'wp_ajax_wpdevart_countdown_page_save', array($this,'save_in_databese') );
35
- add_action( 'wp_ajax_wpdevart_countdown_send_mail', array($this,'sending_mail') );
36
/*gutenberg editor integration*/
37
$this->integrete_gutenberg();
38
}
@@ -459,74 +455,120 @@ die;
459
460
public function main_menu_function(){
461
?>
462
- <h2 class="headin_countdown">WordPress Countdown General Page <a target="blank" href="<?php echo wpdevart_countdown_support_url; ?>" class="wp_support">Support</a></h2>
463
- <style>
464
- .headin_countdown{
465
- font-size: 23px;
466
- font-weight: 400;
467
- padding: 9px 15px 4px 0;
468
- line-height: 29px;
469
- }
470
- .image_width_description{
471
- display:inline-block;
472
- margin-right:40px;
473
- margin-top:30px;
474
- max-width:510px;
475
- }
476
- .image{
477
- border:3px solid #0073AA;
478
- border-radius:20px;
479
- }
480
- .description{
481
- display:block;
482
- margin-bottom:15px;
483
- font-style: normal !important;
484
- font-weight: bold;
485
- font-size: 14px;
486
- }
487
-
488
- /*For Support link*/
489
-
490
- .wp_support {
491
- display: inline-block;
492
- float: right;
493
- background: #fff url(<?php echo $this->plugin_url; ?>images/support.png) no-repeat 7px center;
494
- padding: 8px 20px 9px 45px;
495
- font-size: 16px;
496
- text-decoration: none;
497
- border-radius: 2px;
498
- border: 1px solid #d4d4d4;
499
- margin-right: 20px;
500
- }
501
- </style>
502
<div class="image_width_description">
503
- <span class="description">For adding countdown timer into your website pages/posts go to your pages/posts editor and use Countdown Insert Button. Click on shortcode button and set Countdown timer options, then click on "Insert Countdown" button. Check the screenshot below</span>
504
- <img class="image" src="<?php echo $this->plugin_url.'images/post_example.jpg' ?>">
505
- </div>
506
<div class="image_width_description">
507
- <span class="description">For adding countdown timer into your website Sidebars go to your website Widgets page, pick and drop Countdown widget into your sidebar. Then set the Countdown timer options, then save changes. Look the screenshot below</span>
508
- <img class="image" src="<?php echo $this->plugin_url.'images/widget_example.jpg' ?>">
509
</div>
510
511
<?php
512
}
513
514
/*############################### Featured plugins function ########################################*/
515
-
516
- public function featured_plugins(){
517
$plugins_array=array(
518
- 'countdown_extended'=>array(
519
- 'image_url' => $this->plugin_url.'images/featured_plugins/icon-128x128.png',
520
- 'site_url' => 'http://wpdevart.com/wordpress-countdown-extended-version',
521
- 'title' => 'Countdown - Extended version ',
522
- 'description' => 'Countdown extended is an fresh and extended version of countdown timer. You can easily create and add countdown timers to your website.'
523
- ),
524
- 'gallery_album'=>array(
525
'image_url' => $this->plugin_url.'images/featured_plugins/gallery-album-icon.png',
526
'site_url' => 'http://wpdevart.com/wordpress-gallery-plugin',
527
'title' => 'WordPress Gallery plugin',
528
'description' => 'Gallery plugin is an useful tool that will help you to create Galleries and Albums. Try our nice Gallery views and awesome animations.'
529
- ),
530
'coming_soon'=>array(
531
'image_url' => $this->plugin_url.'images/featured_plugins/coming_soon.jpg',
532
'site_url' => 'http://wpdevart.com/wordpress-coming-soon-plugin/',
@@ -557,6 +599,12 @@ die;
557
'title' => 'Wpdevart Social comments',
558
'description' => 'WordPress Facebook comments plugin will help you to display Facebook Comments on your website. You can use Facebook Comments on your pages/posts.'
559
),
560
'lightbox'=>array(
561
'image_url' => $this->plugin_url.'images/featured_plugins/lightbox.png',
562
'site_url' => 'http://wpdevart.com/wordpress-lightbox-plugin',
@@ -575,33 +623,69 @@ die;
575
'title' => 'WordPress Polls system',
576
'description' => 'WordPress Polls system is an handy tool for creating polls and survey forms for your visitors. You can use our polls on widgets, posts and pages.'
577
),
578
-
579
580
);
581
?>
582
<style>
583
.featured_plugin_main{
584
- background-color: #ffffff;
585
- border: 1px solid #dedede;
586
- box-sizing: border-box;
587
- float:left;
588
- margin-right:20px;
589
- margin-bottom:20px;
590
-
591
- width:450px;
592
}
593
.featured_plugin_image{
594
- padding: 15px;
595
display: inline-block;
596
- float:left;
597
}
598
.featured_plugin_image a{
599
display: inline-block;
600
}
601
- .featured_plugin_information{
602
- float: left;
603
- width: auto;
604
- max-width: 282px;
605
606
}
607
.featured_plugin_title{
@@ -611,46 +695,70 @@ die;
611
}
612
.featured_plugin_title a{
613
text-decoration:none;
614
615
}
616
.featured_plugin_title h4{
617
- margin:0px;
618
- margin-top: 20px;
619
- margin-bottom:8px;
620
}
621
.featured_plugin_description{
622
- display: inline-block;
623
}
624
-
625
- </style>
626
- <script>
627
-
628
- jQuery(window).resize(wpdevart_countdown_feature_resize);
629
- jQuery(document).ready(function(e) {
630
- wpdevart_countdown_feature_resize();
631
- });
632
-
633
- function wpdevart_countdown_feature_resize(){
634
- var wpdevart_countdown_width=jQuery('.featured_plugin_main').eq(0).parent().width();
635
- var count_of_elements=Math.max(parseInt(wpdevart_countdown_width/450),1);
636
- var width_of_plugin=((wpdevart_countdown_width-count_of_elements*24-2)/count_of_elements);
637
- jQuery('.featured_plugin_main').width(width_of_plugin);
638
- jQuery('.featured_plugin_information').css('max-width',(width_of_plugin-160)+'px');
639
}
640
- </script>
641
- <h2>Featured Plugins</h2>
642
- <br>
643
- <br>
644
- <?php foreach($plugins_array as $key=>$plugin) { ?>
645
- <div class="featured_plugin_main">
646
- <span class="featured_plugin_image"><a target="_blank" href="<?php echo $plugin['site_url'] ?>"><img src="<?php echo $plugin['image_url'] ?>"></a></span>
647
- <span class="featured_plugin_information">
648
- <span class="featured_plugin_title"><h4><a target="_blank" href="<?php echo $plugin['site_url'] ?>"><?php echo $plugin['title'] ?></a></h4></span>
649
- <span class="featured_plugin_description"><?php echo $plugin['description'] ?></span>
650
- </span>
651
- <div style="clear:both"></div>
652
- </div>
653
- <?php }
654
- }
655
656
}
8
private $databese_parametrs;
9
private $plugin_url;
10
private $plugin_path;
11
12
/*###################### Constract parameters function ##################*/
13
29
// Insert button code
30
add_action('media_buttons_context', array($this,'wpdevart_countdown_button'));
31
add_action( 'wp_ajax_wpdevart_countdown_window_manager', array($this,'wpdevart_countdown_window_insert_content') );
32
/*gutenberg editor integration*/
33
$this->integrete_gutenberg();
34
}
455
456
public function main_menu_function(){
457
?>
458
+ <style>
459
+ .wpdevart_plugins_get_pro {
460
+ border-radius: 10px;
461
+ background: #ffffff;
462
+ padding: 15px 20px;
463
+ box-sizing: border-box;
464
+ float: left;
465
+ box-shadow: 1px 1px 7px rgba(0,0,0,0.04);
466
+ }
467
+ .wpdevart_plugins_get_pro_info {
468
+ float: left;
469
+ margin-right: 30px;
470
+ }
471
+ .wpdevart_plugins_get_pro_info h3 {
472
+ margin: 0 0 5px 0;
473
+ font-size: 17px;
474
+ font-weight: 500;
475
+ }
476
+ .wpdevart_plugins_get_pro_info p {
477
+ margin: 0;
478
+ font-size: 14px;
479
+ font-weight: 200;
480
+ }
481
+ .wpdevart_support, .wpdevart_upgrade {
482
+ display: inline-block;
483
+ font-size: 16px;
484
+ text-decoration: none;
485
+ border-radius: 5px;
486
+ border: 0;
487
+ color: #ffffff;
488
+ font-weight: 400;
489
+ opacity: 1;
490
+ -webkit-transition: opacity 0.3s;
491
+ -moz-transition: opacity 0.3s;
492
+ transition: opacity 0.3s;
493
+ background-image: linear-gradient(141deg, #32d6db, #00a0d2);
494
+ }
495
+ .wpdevart_upgrade {
496
+ float: left;
497
+ padding: 11px 25px 12px;
498
+ text-transform: uppercase;
499
+ }
500
+ .wpdevart_support {
501
+ float: right;
502
+ padding: 11px 20px 12px 50px;
503
+ margin-right:20px;
504
+ margin-top:15px;
505
+ position: relative;
506
+ }
507
+ .wpdevart_support:before {
508
+ content: "";
509
+ background: url(<?php echo $this->plugin_url ?>images/support-white.png) no-repeat;
510
+ width: 25px;
511
+ height: 25px;
512
+ background-size: 25px;
513
+ top: 8px;
514
+ position: absolute;
515
+ left: 15px;
516
+ }
517
+ .div-for-clear:after {
518
+ content: '';
519
+ clear: both;
520
+ display: table;
521
+ }
522
+ .wpdevart_support:hover,
523
+ .wpdevart_upgrade:hover,
524
+ .wpdevart_support:focus,
525
+ .wpdevart_upgrade:focus {
526
+ color:#ffffff;
527
+ opacity:0.85;
528
+ box-shadow: none;
529
+ outline: none;
530
+ text-decoration:none;
531
+ }
532
+ #wpwrap{
533
+ background-color: white;
534
+ }
535
+ </style>
536
+ <div class="wpdevart_plugins_header div-for-clear">
537
+ <div class="wpdevart_plugins_get_pro div-for-clear">
538
+ <div class="wpdevart_plugins_get_pro_info">
539
+ <h3>WpDevArt Countdown Premium</h3>
540
+ <p>Powerful and Customizable Countdown</p>
541
+ </div>
542
+ <a target="blank" href="https://wpdevart.com/wordpress-countdown-plugin/" class="wpdevart_upgrade">Upgrade</a>
543
+ </div>
544
+ <a target="blank" href="<?php echo wpdevart_countdown_support_url; ?>" class="wpdevart_support">Have any Questions? Get quick support!</a>
545
+ </div>
546
+ <h1 style="text-align:center; font-size:35px">Quick guideline for countdown</h1>
547
+ <br>
548
<div class="image_width_description">
549
+ <h2 style="font-size: 20px; text-align: center; ">Adding countdown in post or page</h2><br>
550
+ <div style="font-size:15px; text-align: center; max-width: 1024px; margin: 0 auto;">If you are using Classic Editor, then click on shortcode button and set Countdown timer options, then click on "Insert Countdown" button. Check the left screenshot below. If you are using Block-Enabled Editor, then click on Plus button and open Common Blocks tab, then click on WpDevArt countdown and configure settings. Check the right screenshot below.</div>
551
+ <br/>
552
+ <div style="text-align:center"><img class="image" style="max-width:35%;margin-right:10px;border: 1px solid #000000;" src="<?php echo $this->plugin_url.'images/clasic_editor_button_place.jpg' ?>"><img style="max-width:35%; border: 1px solid #000000;" class="image" src="<?php echo $this->plugin_url.'images/gutenberg_button_place.jpg' ?>"></div>
553
+ </div>
554
<div class="image_width_description">
555
+ <h2 style="font-size: 20px; text-align:center;">Adding countdown in widget</h2><br>
556
+ <div style="font-size:15px; text-align: center; max-width: 1024px; margin: 0 auto;">For adding countdown timer into your website Sidebars go to your website Widgets page, pick and drop Countdown widget into your sidebar. Then set the Countdown timer options, then save changes. Look the screenshot below</div><br>
557
+ <div style="text-align:center"><img style="max-width:35%; border: 1px solid #000000;" class="image" src="<?php echo $this->plugin_url.'images/widget_place.jpg' ?>"></div>
558
</div>
559
560
<?php
561
}
562
563
/*############################### Featured plugins function ########################################*/
564
+ public function featured_plugins(){
565
$plugins_array=array(
566
+ 'gallery_album'=>array(
567
'image_url' => $this->plugin_url.'images/featured_plugins/gallery-album-icon.png',
568
'site_url' => 'http://wpdevart.com/wordpress-gallery-plugin',
569
'title' => 'WordPress Gallery plugin',
570
'description' => 'Gallery plugin is an useful tool that will help you to create Galleries and Albums. Try our nice Gallery views and awesome animations.'
571
+ ),
572
'coming_soon'=>array(
573
'image_url' => $this->plugin_url.'images/featured_plugins/coming_soon.jpg',
574
'site_url' => 'http://wpdevart.com/wordpress-coming-soon-plugin/',
599
'title' => 'Wpdevart Social comments',
600
'description' => 'WordPress Facebook comments plugin will help you to display Facebook Comments on your website. You can use Facebook Comments on your pages/posts.'
601
),
602
+ 'countdown'=>array(
603
+ 'image_url' => $this->plugin_url.'images/featured_plugins/countdown.jpg',
604
+ 'site_url' => 'http://wpdevart.com/wordpress-countdown-plugin/',
605
+ 'title' => 'WordPress Countdown plugin',
606
+ 'description' => 'WordPress Countdown plugin is an nice tool for creating countdown timers for your website posts/pages and widgets.'
607
+ ),
608
'lightbox'=>array(
609
'image_url' => $this->plugin_url.'images/featured_plugins/lightbox.png',
610
'site_url' => 'http://wpdevart.com/wordpress-lightbox-plugin',
623
'title' => 'WordPress Polls system',
624
'description' => 'WordPress Polls system is an handy tool for creating polls and survey forms for your visitors. You can use our polls on widgets, posts and pages.'
625
),
626
+
627
628
);
629
?>
630
<style>
631
.featured_plugin_main{
632
+ background-color: #ffffff;
633
+ -webkit-box-sizing: border-box;
634
+ -moz-box-sizing: border-box;
635
+ box-sizing: border-box;
636
+ float: left;
637
+ margin-right: 30px;
638
+ margin-bottom: 30px;
639
+ width: calc((100% - 90px)/3);
640
+ border-radius: 15px;
641
+ box-shadow: 1px 1px 7px rgba(0,0,0,0.04);
642
+ padding: 20px 25px;
643
+ text-align: center;
644
+ -webkit-transition:-webkit-transform 0.3s;
645
+ -moz-transition:-moz-transform 0.3s;
646
+ transition:transform 0.3s;
647
+ -webkit-transform: translateY(0);
648
+ -moz-transform: translateY0);
649
+ transform: translateY(0);
650
+ min-height: 344px;
651
+ }
652
+ .featured_plugin_main:hover{
653
+ -webkit-transform: translateY(-2px);
654
+ -moz-transform: translateY(-2px);
655
+ transform: translateY(-2px);
656
}
657
.featured_plugin_image{
658
+ max-width: 128px;
659
+ margin: 0 auto;
660
+ }
661
+ .blue_button{
662
display: inline-block;
663
+ font-size: 15px;
664
+ text-decoration: none;
665
+ border-radius: 5px;
666
+ color: #ffffff;
667
+ font-weight: 400;
668
+ opacity: 1;
669
+ -webkit-transition: opacity 0.3s;
670
+ -moz-transition: opacity 0.3s;
671
+ transition: opacity 0.3s;
672
+ background-image: linear-gradient(141deg, #32d6db, #00a0d2);
673
+ padding: 10px 22px;
674
+ text-transform: uppercase;
675
+ }
676
+ .blue_button:hover,
677
+ .blue_button:focus {
678
+ color:#ffffff;
679
+ box-shadow: none;
680
+ outline: none;
681
+ }
682
+ .featured_plugin_image img{
683
+ max-width: 100%;
684
}
685
.featured_plugin_image a{
686
display: inline-block;
687
}
688
+ .featured_plugin_information{
689
690
}
691
.featured_plugin_title{
695
}
696
.featured_plugin_title a{
697
text-decoration:none;
698
+ font-size: 19px;
699
+ line-height: 22px;
700
+ color: #00a0d2;
701
702
}
703
.featured_plugin_title h4{
704
+ margin: 0px;
705
+ margin-top: 20px;
706
+ min-height: 44px;
707
}
708
.featured_plugin_description{
709
+ font-size: 14px;
710
+ min-height: 63px;
711
}
712
+ @media screen and (max-width: 1460px){
713
+ .featured_plugin_main {
714
+ margin-right: 20px;
715
+ margin-bottom: 20px;
716
+ width: calc((100% - 60px)/3);
717
+ padding: 20px 10px;
718
+ }
719
+ .featured_plugin_description {
720
+ font-size: 13px;
721
+ min-height: 63px;
722
+ }
723
}
724
+ @media screen and (max-width: 1279px){
725
+ .featured_plugin_main {
726
+ width: calc((100% - 60px)/2);
727
+ padding: 20px 20px;
728
+ min-height: 363px;
729
+ }
730
+ }
731
+ @media screen and (max-width: 768px){
732
+ .featured_plugin_main {
733
+ width: calc(100% - 30px);
734
+ padding: 20px 20px;
735
+ min-height: auto;
736
+ margin: 0 auto 20px;
737
+ float: none;
738
+ }
739
+ .featured_plugin_title h4{
740
+ min-height: auto;
741
+ }
742
+ .featured_plugin_description{
743
+ min-height: auto;
744
+ font-size: 14px;
745
+ }
746
+ }
747
+
748
+ </style>
749
+
750
+ <h1>Featured Plugins</h1>
751
+ <?php foreach($plugins_array as $key=>$plugin) { ?>
752
+ <div class="featured_plugin_main">
753
+ <div class="featured_plugin_image"><a target="_blank" href="<?php echo $plugin['site_url'] ?>"><img src="<?php echo $plugin['image_url'] ?>"></a></div>
754
+ <div class="featured_plugin_information">
755
+ <div class="featured_plugin_title"><h4><a target="_blank" href="<?php echo $plugin['site_url'] ?>"><?php echo $plugin['title'] ?></a></h4></div>
756
+ <p class="featured_plugin_description"><?php echo $plugin['description'] ?></p>
757
+ <a target="_blank" href="<?php echo $plugin['site_url'] ?>" class="blue_button">Check The Plugin</a>
758
+ </div>
759
+ <div style="clear:both"></div>
760
+ </div>
761
+ <?php }
762
763
+ }
764
}
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.3
7
- Stable tag: 2.1.0
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
@@ -482,6 +482,10 @@ Yes dear users, you need to pay only one time for pro version, it's lifetime pla
482
483
* Added new option for mobile devices.
484
485
== Step by step guide ==
486
487
### 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.3.1
7
+ Stable tag: 2.1.1
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
482
483
* Added new option for mobile devices.
484
485
+ = 2.1.1 =
486
+
487
+ * Edit plugin admin panel.
488
+
489
== Step by step guide ==
490
491
### 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.0
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.1
7
Author: wpdevart
8
Author URI: http://wpdevart.com
9
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html