Changeset 986779
- Timestamp:
- 09/10/2014 08:26:43 PM (12 years ago)
- Location:
- date-calculator
- Files:
-
- 2 edited
-
tags/1.0/readme.txt (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
date-calculator/tags/1.0/readme.txt
r986773 r986779 1 1 === Date Calculator === 2 2 3 Contributors: matthias.s 3 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K73Z3MNV82UTQ … … 12 13 13 14 == Description == 15 14 16 The Date Calculator plugin has two basic functions. 15 17 16 * = 1. =It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.18 * 1. It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms. 17 19 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.20 * 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. 19 21 20 22 This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there. 21 23 22 24 == Installation == 25 23 26 1. Upload the unziped date_calculator folder to the /wp-content/plugins/ directory -or- install the plugin via WordPress build-in Plugin-Installation-Function. 24 27 … … 30 33 31 34 The following shortcodes are available: 32 <code>[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 33 <code>[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 35 ´[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]´ 36 ´[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]´ 37 38 Examples: 39 40 = Calculating the date down: = 41 Suppose today is the 01.10.2014 42 43 ´[date_sub day="1"]´ returns: 30.09.2014 44 ´[date_sub month="3"]´ returns: 01.07.2014 45 ´[date_sub year="4"]´ returns: 01.10.2010 46 ´[date_sub day="1" month="3" year="4"]´ returns: 30.06.2010 34 47 35 48 36 Examples: 49 = Calculating the date up: = 50 Suppose today is the 01.10.2014 37 51 38 2.1 - Calculating the date down: 39 Suppose today is the 01.10.2014 40 41 <code>[date_sub day="1"]</code> returns: 30.09.2014 42 <code>[date_sub month="3"]</code> returns: 01.07.2014 43 <code>[date_sub year="4"]</code> returns: 01.10.2010 44 45 <code>[date_sub day="1" month="3" year="4"]</code> returns: 30.06.2010 52 ´[date_add day="1"]´ returns: 02.10.2014 53 ´[date_add month="3"]´ returns: 01.01.2015 54 ´[date_add year="4"]´ returns: 01.10.2018 55 ´[date_add day="1" month="3" year="4"]´ returns: 02.01.2018 46 56 47 57 48 2.2 - Calculating the date up: 49 Suppose today is the 01.10.2014 50 51 <code>[date_add day="1"]</code> returns: 02.10.2014 52 <code>[date_add month="3"]</code> returns: 01.01.2015 53 <code>[date_add year="4"]</code> returns: 01.10.2018 54 55 <code>[date_add day="1" month="3" year="4"]</code> returns: 02.01.2018 56 57 58 2.3 - Displaying of certain date-parts: 58 = Displaying of certain date-parts: = 59 59 60 60 It is also possible to only impersonate one part of the date, for example, only the day … … 62 62 Suppose today is the 01.10.2014 63 63 64 <code>[date_add day="1" show="dayonly"]</code>returns: 0265 <code>[date_add month="3" show="monthonly"]</code>returns: 0166 <code>[date_add year="4" show="yearonly"]</code>returns: 201867 <code>[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]</code>returns: 30.0768 <code>[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]</code>returns: 2014-11-0264 ´[date_add day="1" show="dayonly"]´ returns: 02 65 ´[date_add month="3" show="monthonly"]´ returns: 01 66 ´[date_add year="4" show="yearonly"]´ returns: 2018 67 ´[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]´ returns: 30.07 68 ´[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]´ returns: 2014-11-02 69 69 70 70 == Screenshots == 71 /assets/screenshot-1.png 71 72 72 The shortcode documentation 73 (/assets/screenshot-1.png) 73 74 74 /assets/screenshot-2.png75 75 Put it in posts, pages and also in Contact Form 7-forms 76 [/assets/screenshot-2.png] 76 77 78 Make your things... 77 79 /assets/screenshot-3.png 78 Make your things... 80 79 81 80 82 == Changelog == -
date-calculator/trunk/readme.txt
r986773 r986779 1 1 === Date Calculator === 2 2 3 Contributors: matthias.s 3 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K73Z3MNV82UTQ … … 12 13 13 14 == Description == 15 14 16 The Date Calculator plugin has two basic functions. 15 17 16 * = 1. =It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.18 * 1. It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms. 17 19 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.20 * 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. 19 21 20 22 This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there. 21 23 22 24 == Installation == 25 23 26 1. Upload the unziped date_calculator folder to the /wp-content/plugins/ directory -or- install the plugin via WordPress build-in Plugin-Installation-Function. 24 27 … … 30 33 31 34 The following shortcodes are available: 32 <code>[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 33 <code>[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 35 ´[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]´ 36 ´[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]´ 37 38 Examples: 39 40 = Calculating the date down: = 41 Suppose today is the 01.10.2014 42 43 ´[date_sub day="1"]´ returns: 30.09.2014 44 ´[date_sub month="3"]´ returns: 01.07.2014 45 ´[date_sub year="4"]´ returns: 01.10.2010 46 ´[date_sub day="1" month="3" year="4"]´ returns: 30.06.2010 34 47 35 48 36 Examples: 49 = Calculating the date up: = 50 Suppose today is the 01.10.2014 37 51 38 2.1 - Calculating the date down: 39 Suppose today is the 01.10.2014 40 41 <code>[date_sub day="1"]</code> returns: 30.09.2014 42 <code>[date_sub month="3"]</code> returns: 01.07.2014 43 <code>[date_sub year="4"]</code> returns: 01.10.2010 44 45 <code>[date_sub day="1" month="3" year="4"]</code> returns: 30.06.2010 52 ´[date_add day="1"]´ returns: 02.10.2014 53 ´[date_add month="3"]´ returns: 01.01.2015 54 ´[date_add year="4"]´ returns: 01.10.2018 55 ´[date_add day="1" month="3" year="4"]´ returns: 02.01.2018 46 56 47 57 48 2.2 - Calculating the date up: 49 Suppose today is the 01.10.2014 50 51 <code>[date_add day="1"]</code> returns: 02.10.2014 52 <code>[date_add month="3"]</code> returns: 01.01.2015 53 <code>[date_add year="4"]</code> returns: 01.10.2018 54 55 <code>[date_add day="1" month="3" year="4"]</code> returns: 02.01.2018 56 57 58 2.3 - Displaying of certain date-parts: 58 = Displaying of certain date-parts: = 59 59 60 60 It is also possible to only impersonate one part of the date, for example, only the day … … 62 62 Suppose today is the 01.10.2014 63 63 64 <code>[date_add day="1" show="dayonly"]</code>returns: 0265 <code>[date_add month="3" show="monthonly"]</code>returns: 0166 <code>[date_add year="4" show="yearonly"]</code>returns: 201867 <code>[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]</code>returns: 30.0768 <code>[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]</code>returns: 2014-11-0264 ´[date_add day="1" show="dayonly"]´ returns: 02 65 ´[date_add month="3" show="monthonly"]´ returns: 01 66 ´[date_add year="4" show="yearonly"]´ returns: 2018 67 ´[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]´ returns: 30.07 68 ´[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]´ returns: 2014-11-02 69 69 70 70 == Screenshots == 71 /assets/screenshot-1.png 71 72 72 The shortcode documentation 73 (/assets/screenshot-1.png) 73 74 74 /assets/screenshot-2.png75 75 Put it in posts, pages and also in Contact Form 7-forms 76 [/assets/screenshot-2.png] 76 77 78 Make your things... 77 79 /assets/screenshot-3.png 78 Make your things... 80 79 81 80 82 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.