Changeset 3027852
- Timestamp:
- 01/28/2024 04:19:08 PM (2 years ago)
- Location:
- santas-christmas-countdown/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (7 diffs)
-
scripts/scriptfile.js (modified) (1 diff)
-
xmascount.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
santas-christmas-countdown/trunk/readme.txt
r2970427 r3027852 6 6 Tags: christmas countdown, santa claus, holiday, christmas, widget-only, widget, sidebar, countdown, shortcode 7 7 Requires at least: 3.0 8 Tested up to: 6. 3.19 Stable tag: 2.98 Tested up to: 6.4.2 9 Stable tag: 3.0 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 17 17 The 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! 18 18 19 By the way...The Christmas countdown will appear in your sidebar on a transparent background so it looks good with any theme.19 The Christmas countdown will appear in your sidebar on a transparent background so it looks good with any theme. 20 20 21 N ow you can use the shortcode `[countdown]` to add the countdown to any post or page.21 NEW! 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. 22 22 23 For more information about Santa's countdown, visit [ChristmasWebmaster .com](http://christmaswebmaster.com/).23 For more information about Santa's countdown, visit [ChristmasWebmaster](https://christmaswebmaster.com/). 24 24 25 25 == Installation == … … 29 29 3. Go to your widgets screen, and drag the Christmas Countdown widget to your sidebar. 30 30 4. Let the countdown to Christmas begin! 31 5. NEW inversion 2+: Use the shortcode `[countdown]` to display the countdown in any post or page.31 5. NEW since version 2+: Use the shortcode `[countdown]` to display the countdown in any post or page. 32 32 33 33 == Frequently Asked Questions == … … 39 39 = How do I display the countdown on posts and pages? = 40 40 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.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, or use `[countdown-center]` to display the countdown centered on a page or post. 42 42 43 43 == Screenshots == … … 49 49 50 50 == Changelog == 51 = Version 3 Released 01/24/2024 = 52 53 * Updated to remove deprecated php code 54 51 55 = Version 2.9 Released 09/08/2022 = 52 56 … … 55 59 = Version 2.6 Released 10/27/2018 = 56 60 57 * Updated to reflect compatibility with WordPress 4.9.861 * Updated to reflect compatibility with WordPress 4.9.8 58 62 59 63 = Version 2.5 Released 09/04/2014 = … … 107 111 108 112 == Upgrade Notice == 113 Version 3 Released 01/24/2024 109 114 Version 2.9 Released 09/08/2022 110 115 Version 2.8 Released 10/10/2021 -
santas-christmas-countdown/trunk/scripts/scriptfile.js
r2612170 r3027852 23 23 else if (daysLeft == 1 ) 24 24 { 25 document.write( ""+daysLeft+" day <BR>till Christmas!");}25 document.write( ""+daysLeft+" day<BR>till Christmas!");} 26 26 else 27 27 { 28 document.write( ""+daysLeft+" days <BR>till Christmas!");}}28 document.write( ""+daysLeft+" days<BR>till Christmas!");}} -
santas-christmas-countdown/trunk/xmascount.php
r2782243 r3027852 6 6 Description: Displays a cute Christmas countdown in your sidebar. 7 7 Author: Monica Haught 8 Version: 2.98 Version: 3.0 9 9 Author URI: https://christmaswebmaster.com/ 10 10 … … 61 61 add_action( 'wp_enqueue_scripts', 'cw_santas_countdown_scripts' ); 62 62 63 64 65 66 63 //Extends Countdown Widget 67 64 68 65 class 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 ); 73 76 } 74 77 … … 109 112 110 113 } 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 } 118 add_action( 'widgets_init', 'cw_axmascount_register_widgets' );
Note: See TracChangeset
for help on using the changeset viewer.