Changeset 3713526
- Timestamp:
- 09/25/2026 08:16:44 PM (4 weeks ago)
- Location:
- simple-show-date/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
simple-show-date.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-show-date/trunk/readme.txt
r3243014 r3713526 1 1 === Simple Show Date === 2 Contributors: Come2theweb2 Contributors: jitendra742744 3 3 Donate link: https://come2theweb.com/ 4 Tags: Show current date, Show Today date, simple show today date, previous day widget, show next day, Shortcode for current date, Simple current date, simple add today date shortcode, show day after tomorrow date, show tomorrow date, simple add date, offer expiry date, offer show date, coming soon offer.4 Tags: current date, show date, date shortcode, today date, relative date 5 5 Requires at least: 4.6 6 Tested up to: 6.7.2 7 Stable tag: 1.0 6 Tested up to: 7.1 7 Requires PHP: 5.6 8 Stable tag: 1.1 8 9 License: GPLv2 or later 9 License URI: http ://www.gnu.org/licenses/gpl-2.0.html10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 Show Current date on your website with this plugin, very simple way to use for any website, Show current date with shortcode, show next day date on website with shortcode, Its very simple to use also without any code confliction, this is free plugin to use.12 Display the current date, tomorrow, or custom relative dates on your site using simple shortcodes. Lightweight and free. 12 13 13 14 == Description == 14 15 15 Add today date anywhere on your website with simple way by using this plugin, this plugin make very easy steps for user to add today date, tomorrow date, day after tomorrow date, 2 day ahead date, previous date without having technical knowledge, just install & activate plugin and go to Show Date menu will appear, also you will get setting page where you can choose style / type. You can add your custom created date format, very simple and easy to use this plugin, you can try one time, and you will not face any code confliction issue with this plugin. 16 Add today's date (or tomorrow, yesterday, or any relative day) anywhere on your website using simple shortcodes. No coding knowledge required. 17 18 Just install & activate the plugin, copy a shortcode from the settings page, and paste it where you want the date to appear. 16 19 17 20 = Features = 18 * Show today date 19 * Show tomorrow date 20 * Show previous date 21 * Fully Compatible to all devices 22 * Without conflict with any other plugin or code 23 * Fully Responsive 24 * Shortcode provided 25 * Custom formats create 26 * Video Tutorial 27 * Free to Use 21 * Show today's date 22 * Show tomorrow / previous day / any relative day 23 * Multiple built-in date formats 24 * Custom date format shortcode 25 * Fully compatible with all devices 26 * Lightweight – no conflicts with other plugins 27 * Completely free – no ads or upsells 28 28 29 = Shortcodes = 29 30 31 **Default styles** 32 * `[ssdc2tw_date]` – Default format 33 * `[ssdc2tw_date style="2"]` – d/m/Y 34 * `[ssdc2tw_date style="3"]` – Full day name 35 * `[ssdc2tw_date day="1"]` – Tomorrow 36 * `[ssdc2tw_date day="-1"]` – Yesterday 37 38 **Custom format** 39 * `[ssdc2tw_custom_date format="d/m/Y"]` 40 * `[ssdc2tw_custom_date day="2" format="l, F j, Y"]` 30 41 31 42 == Installation == 32 43 33 This section describes how to install the plugin and get it working. 34 35 1. Upload simple-show-date folder to your wp-content/plugins/ directory. 44 1. Upload the `simple-show-date` folder to the `/wp-content/plugins/` directory. 36 45 2. Activate the plugin through the 'Plugins' menu in WordPress. 37 3. Go to setting page and choose your shortcode.38 4. Copy shortcode and paste where you want to show date, That’s All46 3. Go to **Show Date** in the admin menu. 47 4. Copy the shortcode you need and paste it on any page, post, or widget. 39 48 40 49 == Frequently Asked Questions == 41 50 42 = How can i add today date on my website? = 51 = How do I show today's date? = 52 Use the shortcode `[ssdc2tw_date]`. 43 53 44 You simply have to install plugin then activate and take shortcode from setting page, that’s all 54 = How do I show tomorrow or yesterday? = 55 Use the `day` attribute: `[ssdc2tw_date day="1"]` for tomorrow, `[ssdc2tw_date day="-1"]` for yesterday. 45 56 46 = How can i show yesterday date? = 57 = Can I use a custom date format? = 58 Yes. Use `[ssdc2tw_custom_date format="YOUR_FORMAT"]`. 47 59 48 You can go to setting page and see you will get -day or + day option. 49 50 = Can i add custom date format? = 51 52 Yes, just go to setting page and choose custom style, and you can see code for day, month, year etc. 53 54 = Can my date visible on desktop & mobile both? = 55 56 Yes, by default it will visible on mobile & desktop both, if you want to write some css, you can write with class name. 57 58 = Are you facing any other issue with this plugin? = 59 60 Yes, - Ok please write a mail at support@come2theweb.com or submit your query in support we will get back to you within 24 hours. 61 60 = Where can I get support? = 61 Contact us at support@come2theweb.com or info@come2theweb.com. 62 62 63 63 == Screenshots == 64 64 65 1. Wordpress Backend plugin view. 66 2. Simple show date setting view. 67 2. Custom shortcode hints view. 68 2. Shortcode added on page. 69 3. Shortcode working on frontend. 70 65 1. WordPress backend plugin view 66 2. Simple Show Date settings page 67 3. Custom shortcode hints 68 4. Shortcode added on a page 69 5. Shortcode working on the frontend 71 70 72 71 == Changelog == 72 73 = 1.1 = 74 * Fixed all WordPress.org guideline issues 75 * Removed activation email that sent site data without consent 76 * Fixed Plugin URI (was returning 404) 77 * Updated Contributors, Tested up to 7.1, reduced tags to 5 78 * Fixed short description length 79 * Improved admin script loading (only on plugin page) 80 * Code cleanup 81 73 82 = 1.0 = 74 83 * Initial version 75 84 76 85 == Upgrade Notice == 86 87 = 1.1 = 88 Important update required to comply with WordPress.org guidelines. Removes activation tracking and fixes review issues. Safe to update. -
simple-show-date/trunk/simple-show-date.php
r3035410 r3713526 1 1 <?php 2 /* 3 * Plugin Name: Simple Show Date4 * Plugin URI: https://come2theweb.com/plugins/ssd/5 * Description: Show Current date on your website with this plugin, very simple way to use for any website, Show current date with shortcode, show next day date on website with shortcode, Its very simple to use also without any code confliction, this is free plugin to use.6 * Version: 1.02 /** 3 * Plugin Name: Simple Show Date 4 * Plugin URI: https://come2theweb.com/ 5 * Description: Display the current date, tomorrow, or custom relative dates on your site using simple shortcodes. Lightweight and free. 6 * Version: 1.1 7 7 * Requires at least: 4.6 8 * Requires PHP: 7.2 9 * Author: Come2theweb 10 * Author URI: https://come2theweb.com 11 * License: GPL v2 or later 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 * Text Domain: come2theweb 14 * Domain Path: /languages 15 */ 16 17 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 8 * Requires PHP: 5.6 9 * Author: Come2theweb 10 * Author URI: https://come2theweb.com 11 * License: GPL-2.0-or-later 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 * Text Domain: simple-show-date 14 */ 15 16 if ( ! defined( 'ABSPATH' ) ) { 17 exit; // Exit if accessed directly. 18 } 18 19 19 20 /* ==== Load script and style here for admin ======= */ 20 function ssdc2tw_load_adminplugin_scripts() { 21 $plugin_url = plugin_dir_url( __FILE__ ); 22 wp_enqueue_style( 'ssdc2tw_style', $plugin_url . 'assets/css/ssdc2tw_admin.css' ); 23 wp_enqueue_style('thickbox'); 21 function ssdc2tw_load_adminplugin_scripts( $hook ) { 22 // Only load on our settings page. 23 if ( 'toplevel_page_simple-show-date' !== $hook ) { 24 return; 25 } 26 $plugin_url = plugin_dir_url( __FILE__ ); 27 wp_enqueue_style( 'ssdc2tw_style', $plugin_url . 'assets/css/ssdc2tw_admin.css', array(), '1.1' ); 24 28 } 25 29 add_action( 'admin_enqueue_scripts', 'ssdc2tw_load_adminplugin_scripts' ); … … 260 264 add_shortcode('ssdc2tw_custom_date', 'ssdc2tw_customgenerate_shortcode'); 261 265 262 // Register activation hook 263 register_activation_hook(__FILE__, 'ssdc2tw_activate_function'); 264 function ssdc2tw_activate_function() { 265 $siteurl = get_site_url(); 266 $sdate = date('d M Y'); 267 $autmail ='jitendra.wd@gmail.com'; 268 $authsub='A user activated plugin - Simple Show Date'; 269 $autmsg='Dear Author, A user activate your plugin[Simple Show Date] url is - '. $siteurl.' | Date - '.$sdate; 270 wp_mail($autmail, $authsub, $autmsg); 271 } 266 272 267 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)