Plugin Directory

Changeset 1804890


Ignore:
Timestamp:
01/18/2018 02:19:39 AM (8 years ago)
Author:
JorgeAmVF
Message:

better-formed readme.txt file provided and update

Location:
nowon/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nowon/trunk/nowon.php

    r1505568 r1804890  
    22/*
    33* 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.1
     4* Description: It generates current time and date in pages, posts, portfolios or products simply via: [nowon] and [nowadays].
     5* Version: 2.1
    66* Author: JorgeAmVF
    77* Author URI: https://profiles.wordpress.org/jorgeamvf/
     
    2727
    2828// [nowon] = current time
    29 function now_on(){
    30 $time = current_time('H:i:s');
    31  return $time;
     29function autometa_current_time() {
     30    $am_nowon = current_time( 'H:i:s' );
     31        return $am_nowon;
    3232}
    33 add_shortcode("nowon", "now_on");
     33add_shortcode( "nowon", "autometa_current_time" );
    3434
    3535// [nowadays] = current date
    36 function now_a_days(){
    37 $date = current_time('d M Y');
    38  return $date;
     36function autometa_current_date() {
     37    $am_nowadays = current_time( 'd M Y' );
     38        return $am_nowadays;
    3939}
    40 add_shortcode("nowadays", "now_a_days");
     40add_shortcode( "nowadays", "autometa_current_date" );
    4141?>
  • nowon/trunk/readme.txt

    r1701019 r1804890  
    22Contributors: JorgeAmVF
    33Donate link: https://quaestio.org/
    4 Tags: shortcode, automation, current-time, current-date
     4Tags: shortcode, automation, current, current date, current time, date, time
    55Requires at least: 2.5.0
    6 Tested up to: 4.8
     6Tested up to: 4.9.2
    77Stable Tag: trunk
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 It generates the current time and date in pages or posts or portfolios or products simply via: [nowon] and [nowaday].
     11It reproduces current time and date in pages, posts, portfolios or products simply via: `[nowon]` and `[nowadays]`.
    1212== Description ==
    1313
    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:
    1515
    1616* `[nowon]`    = to generate the current time;
    1717* `[nowadays]` = to generate the current date.
    1818
    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.
    2020
    2121== Installation ==
    2222
    23 1. Download it or install it to your plugin folder;
    24 2. Activate it from the plugin tab inside your dashboard;
     231. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder;
     242. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*;
    25253. Write the following shortcodes in text fields: `[nowon]`, `[nowadays]`.
    2626
    2727== Frequently Asked Questions ==
    2828
    29 = How does autometa's NOWON work? =
     29= Plugin Features =
    3030
    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 date in 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.
    3232
    33 = What is needed to use autometa's NOWON? =
     33= How To =
    3434
    3535Just write one or more of the following shortcodes inside a text field and between brackets as usual: `[nowon]` and/or `[nowadays]`.
    3636
    37 = Which functions are used by autometa's NOWON? =
     37= CSS Style Selectors =
    3838
    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.