Plugin Directory

Changeset 3027852


Ignore:
Timestamp:
01/28/2024 04:19:08 PM (2 years ago)
Author:
monkeymays
Message:

Updated to remove deprecated code

Location:
santas-christmas-countdown/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • santas-christmas-countdown/trunk/readme.txt

    r2970427 r3027852  
    66Tags: christmas countdown, santa claus, holiday, christmas, widget-only, widget, sidebar, countdown, shortcode
    77Requires at least: 3.0
    8 Tested up to: 6.3.1
    9 Stable tag: 2.9
     8Tested up to: 6.4.2
     9Stable tag: 3.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1717The Christmas Countdown Widget displays a cute Santa Claus counting down to Christmas in your sidebar. On Christmas day Santa displays a "Merry Christmas" greeting to your visitors. Since the countdown automatically updates each year and starts the countdown over again on the day after Christmas, you can leave it in your sidebar all year round if you want!
    1818
    19 By the way... The Christmas countdown will appear in your sidebar on a transparent background so it looks good with any theme.
     19The Christmas countdown will appear in your sidebar on a transparent background so it looks good with any theme.
    2020
    21 Now you can use the shortcode `[countdown]` to add the countdown to any post or page.
     21NEW! You can use the shortcode `[countdown]` to add the countdown to any post or page. You can also use '[countdown-right]' to float the widget to the right, or '[countdown-center]' to center the widget on your page.
    2222
    23 For more information about Santa's countdown, visit [ChristmasWebmaster.com](http://christmaswebmaster.com/).
     23For more information about Santa's countdown, visit [ChristmasWebmaster](https://christmaswebmaster.com/).
    2424
    2525== Installation ==
     
    29293. Go to your widgets screen, and drag the Christmas Countdown widget to your sidebar.
    30304. Let the countdown to Christmas begin!
    31 5. NEW in version 2+: Use the shortcode `[countdown]` to display the countdown in any post or page.
     315. NEW since version 2+: Use the shortcode `[countdown]` to display the countdown in any post or page.
    3232
    3333== Frequently Asked Questions ==
     
    3939= How do I display the countdown on posts and pages?  =
    4040
    41 Use the shortcode `[countdown]` to display the countdown to the left of your text, or use `[countdown-right]` to align the countdown to the right of your text, use `[countdown-center]` to display the countdown centered on a page or post.
     41Use the shortcode `[countdown]` to display the countdown to the left of your text, or use `[countdown-right]` to align the countdown to the right of your text, or use `[countdown-center]` to display the countdown centered on a page or post.
    4242
    4343== Screenshots ==
     
    4949
    5050== Changelog ==
     51= Version 3 Released 01/24/2024 =
     52
     53 * Updated to remove deprecated php code
     54
    5155= Version 2.9 Released 09/08/2022 =
    5256
     
    5559= Version 2.6 Released 10/27/2018 =
    5660
    57  *Updated to reflect compatibility with WordPress 4.9.8
     61 * Updated to reflect compatibility with WordPress 4.9.8
    5862
    5963= Version 2.5 Released 09/04/2014 =
     
    107111
    108112== Upgrade Notice ==
     113Version 3 Released 01/24/2024
    109114Version 2.9 Released 09/08/2022
    110115Version 2.8 Released 10/10/2021
  • santas-christmas-countdown/trunk/scripts/scriptfile.js

    r2612170 r3027852  
    2323else if (daysLeft == 1 )
    2424{
    25 document.write( ""+daysLeft+" day <BR> till Christmas!");}
     25document.write( ""+daysLeft+" day<BR>till Christmas!");}
    2626else
    2727{
    28 document.write( ""+daysLeft+" days <BR> till Christmas!");}}
     28document.write( ""+daysLeft+" days<BR>till Christmas!");}}
  • santas-christmas-countdown/trunk/xmascount.php

    r2782243 r3027852  
    66Description: Displays a cute Christmas countdown in your sidebar.
    77Author: Monica Haught
    8 Version: 2.9
     8Version: 3.0
    99Author URI: https://christmaswebmaster.com/
    1010
     
    6161add_action( 'wp_enqueue_scripts', 'cw_santas_countdown_scripts' );
    6262
    63 
    64 
    65 
    6663//Extends Countdown Widget
    6764
    6865class cw_axmascount extends WP_Widget {
    69   function cw_axmascount()
    70   {
    71     $widget_ops = array('classname' => 'cw_axmascount', 'description' => 'Drag this widget to your sidebar to display Santa\'s Christmas Countdown.' );
    72     $this->WP_Widget('cw_axmascount', 'Santa\'s Countdown', $widget_ops);
     66 public function __construct() {
     67    $widget_ops = array(
     68      'classname'   => 'cw_axmascount',
     69      'description' => 'Drag this widget to your sidebar to display Santa\'s Christmas Countdown.',
     70    );
     71      parent::__construct(
     72        'cw_axmascount',
     73        'Santa\'s Countdown',
     74        $widget_ops
     75      );
    7376  }
    7477 
     
    109112 
    110113}
    111 add_action( 'widgets_init', create_function('', 'return register_widget("cw_axmascount");') );
     114  function cw_axmascount_register_widgets()
     115  {
     116    return register_widget( 'cw_axmascount' );
     117  }
     118add_action( 'widgets_init', 'cw_axmascount_register_widgets' );
Note: See TracChangeset for help on using the changeset viewer.