Changeset 1804890
- Timestamp:
- 01/18/2018 02:19:39 AM (8 years ago)
- Location:
- nowon/trunk
- Files:
-
- 2 edited
-
nowon.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nowon/trunk/nowon.php
r1505568 r1804890 2 2 /* 3 3 * Plugin Name: autometa's NOWON 4 * Description: It generates the current time and date in pages or posts or portfolios or products simply via: [nowon] and [nowaday].5 * Version: 1.14 * Description: It generates current time and date in pages, posts, portfolios or products simply via: [nowon] and [nowadays]. 5 * Version: 2.1 6 6 * Author: JorgeAmVF 7 7 * Author URI: https://profiles.wordpress.org/jorgeamvf/ … … 27 27 28 28 // [nowon] = current time 29 function now_on(){30 $time = current_time('H:i:s');31 return $time;29 function autometa_current_time() { 30 $am_nowon = current_time( 'H:i:s' ); 31 return $am_nowon; 32 32 } 33 add_shortcode( "nowon", "now_on");33 add_shortcode( "nowon", "autometa_current_time" ); 34 34 35 35 // [nowadays] = current date 36 function now_a_days(){37 $date = current_time('d M Y');38 return $date;36 function autometa_current_date() { 37 $am_nowadays = current_time( 'd M Y' ); 38 return $am_nowadays; 39 39 } 40 add_shortcode( "nowadays", "now_a_days");40 add_shortcode( "nowadays", "autometa_current_date" ); 41 41 ?> -
nowon/trunk/readme.txt
r1701019 r1804890 2 2 Contributors: JorgeAmVF 3 3 Donate link: https://quaestio.org/ 4 Tags: shortcode, automation, current -time, current-date4 Tags: shortcode, automation, current, current date, current time, date, time 5 5 Requires at least: 2.5.0 6 Tested up to: 4. 86 Tested up to: 4.9.2 7 7 Stable Tag: trunk 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 It generates the current time and date in pages or posts or portfolios or products simply via: [nowon] and [nowaday].11 It reproduces current time and date in pages, posts, portfolios or products simply via: `[nowon]` and `[nowadays]`. 12 12 == Description == 13 13 14 <strong>autometa's NOWON</strong>is a simple plugin that uses the following shortcodes:14 **autometa's NOWON** is a simple plugin that uses the following shortcodes: 15 15 16 16 * `[nowon]` = to generate the current time; 17 17 * `[nowadays]` = to generate the current date. 18 18 19 <strong>autometa's NOWON</strong> is an element of [autometa](https://wordpress.org/plugins/autometa/) plugin set.19 **autometa's NOWON** is a standalone component of **[autometa](https://wordpress.org/plugins/autometa/)** shortcodes pack. 20 20 21 21 == Installation == 22 22 23 1. Download it or installit to your plugin folder;24 2. Activate it from the plugin tab inside your dashboard;23 1. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder; 24 2. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*; 25 25 3. Write the following shortcodes in text fields: `[nowon]`, `[nowadays]`. 26 26 27 27 == Frequently Asked Questions == 28 28 29 = How does autometa's NOWON work?=29 = Plugin Features = 30 30 31 [autometa](https://wordpress.org/plugins/autometa/) reproduces metadata information automatically via shorcodes in general, <strong>autometa's NOWON</strong> generates the current time and datein special.31 **[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's NOWON** reproduces time-related data in special. 32 32 33 = What is needed to use autometa's NOWON?=33 = How To = 34 34 35 35 Just write one or more of the following shortcodes inside a text field and between brackets as usual: `[nowon]` and/or `[nowadays]`. 36 36 37 = Which functions are used by autometa's NOWON?=37 = CSS Style Selectors = 38 38 39 These: [add_shortcode](https://codex.wordpress.org/Function_Reference/add_shortcode) and [current_time](https://codex.wordpress.org/Function_Reference/current_time). 39 * `#nowon` = `[nowon]` ID; 40 * `#nowadays` = `[nowadays]` ID; 41 * `.autometa` = **autometa** class. 42 43 = PHP Functions Reference = 44 45 * [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/) 46 * [`current_time()`](https://developer.wordpress.org/reference/functions/current_time/)
Note: See TracChangeset
for help on using the changeset viewer.