Plugin Directory

Changeset 986759


Ignore:
Timestamp:
09/10/2014 07:53:45 PM (12 years ago)
Author:
matthias.s
Message:

Next try

Location:
date-calculator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • date-calculator/tags/1.0/readme.txt

    r986755 r986759  
    1414The Date Calculator plugin has two basic functions.
    1515
    16 =1.= It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.
     161. It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.
    1717
    18 =2.= It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms.
     182. It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms.
    1919
    2020This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there.
     
    2626
    2727== Frequently Asked Questions ==
    28 How are the short codes
     28How are the shortcodes?
    2929
    3030The following shortcodes are available:
    31 
    3231<code>[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code>
    3332<code>[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code>
    3433
    3534
    36 <b>Examples:</b>
    37 
     35Examples:
    3836
    39372.1 - Calculating the date down:
    4038Suppose today is the 01.10.2014
    4139
    42 <code>[date_sub day="1"]</code>   returns: 30.09.2014
     40<code>[date_sub day="1"]</code> returns: 30.09.2014
    4341<code>[date_sub month="3"]</code> returns: 01.07.2014
    44 <code>[date_sub year="4"]</code>  returns: 01.10.2010
     42<code>[date_sub year="4"]</code> returns: 01.10.2010
    4543
    46 <code>[date_sub day="1" month="3" year="4"]</code> would display: 30.06.2010
     44<code>[date_sub day="1" month="3" year="4"]</code> returns: 30.06.2010
    4745
    4846
     
    5048Suppose today is the 01.10.2014
    5149
    52 <code>[date_add day="1"]</code>   returns: 02.10.2014
     50<code>[date_add day="1"]</code> returns: 02.10.2014
    5351<code>[date_add month="3"]</code> returns: 01.01.2015
    54 <code>[date_add year="4"]</code>  returns: 01.10.2018
     52<code>[date_add year="4"]</code> returns: 01.10.2018
    5553
    5654<code>[date_add day="1" month="3" year="4"]</code> returns: 02.01.2018
     
    6058
    6159It is also possible to only impersonate one part of the date, for example, only the day
    62 This is specified with the "show-parameter".
     60This is specified with the "show-parameter".
     61Suppose today is the 01.10.2014 
    6362
    64 
    65 <code>[date_add day="1" show="dayonly"]</code>     returns: 02
     63<code>[date_add day="1" show="dayonly"]</code> returns: 02
    6664<code>[date_add month="3" show="monthonly"]</code> returns: 01
    67 <code>[date_add year="4" show="yearonly"]</code>   returns: 2018
    68 
     65<code>[date_add year="4" show="yearonly"]</code> returns: 2018
    6966<code>[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]</code> returns: 30.07
    7067<code>[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]</code> returns: 2014-11-02
     
    8885
    8986
    90 Make your things with it...
     87Make your things...
    9188
    9289== Changelog ==
  • date-calculator/trunk/readme.txt

    r986755 r986759  
    1414The Date Calculator plugin has two basic functions.
    1515
    16 =1.= It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.
     161. It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.
    1717
    18 =2.= It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms.
     182. It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms.
    1919
    2020This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there.
     
    2626
    2727== Frequently Asked Questions ==
    28 How are the short codes
     28How are the shortcodes?
    2929
    3030The following shortcodes are available:
    31 
    3231<code>[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code>
    3332<code>[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code>
    3433
    3534
    36 <b>Examples:</b>
    37 
     35Examples:
    3836
    39372.1 - Calculating the date down:
    4038Suppose today is the 01.10.2014
    4139
    42 <code>[date_sub day="1"]</code>   returns: 30.09.2014
     40<code>[date_sub day="1"]</code> returns: 30.09.2014
    4341<code>[date_sub month="3"]</code> returns: 01.07.2014
    44 <code>[date_sub year="4"]</code>  returns: 01.10.2010
     42<code>[date_sub year="4"]</code> returns: 01.10.2010
    4543
    46 <code>[date_sub day="1" month="3" year="4"]</code> would display: 30.06.2010
     44<code>[date_sub day="1" month="3" year="4"]</code> returns: 30.06.2010
    4745
    4846
     
    5048Suppose today is the 01.10.2014
    5149
    52 <code>[date_add day="1"]</code>   returns: 02.10.2014
     50<code>[date_add day="1"]</code> returns: 02.10.2014
    5351<code>[date_add month="3"]</code> returns: 01.01.2015
    54 <code>[date_add year="4"]</code>  returns: 01.10.2018
     52<code>[date_add year="4"]</code> returns: 01.10.2018
    5553
    5654<code>[date_add day="1" month="3" year="4"]</code> returns: 02.01.2018
     
    6058
    6159It is also possible to only impersonate one part of the date, for example, only the day
    62 This is specified with the "show-parameter".
     60This is specified with the "show-parameter".
     61Suppose today is the 01.10.2014 
    6362
    64 
    65 <code>[date_add day="1" show="dayonly"]</code>     returns: 02
     63<code>[date_add day="1" show="dayonly"]</code> returns: 02
    6664<code>[date_add month="3" show="monthonly"]</code> returns: 01
    67 <code>[date_add year="4" show="yearonly"]</code>   returns: 2018
    68 
     65<code>[date_add year="4" show="yearonly"]</code> returns: 2018
    6966<code>[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]</code> returns: 30.07
    7067<code>[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]</code> returns: 2014-11-02
     
    8885
    8986
    90 Make your things with it...
     87Make your things...
    9188
    9289== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.