Changeset 741916
- Timestamp:
- 07/16/2013 08:13:12 PM (13 years ago)
- Location:
- age-shortcode/trunk
- Files:
-
- 2 added
- 2 edited
-
age_short.php (modified) (2 diffs)
-
languages/age_short-de_DE.mo (added)
-
languages/age_short-de_DE.po (added)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
age-shortcode/trunk/age_short.php
r739639 r741916 4 4 Plugin URI: http://www.tobi-mobile.de/plugins/age-shortcode 5 5 Description: This plugin adds the shortcode <b>[age]</b>. About this shortcode the age of the author is given. <em>Importantly, registered in the profile, a date of birth.</em> 6 Version: 1. 06 Version: 1.1 7 7 Author: Tobias Kraft 8 8 Author URI: http://www.tobi-mobile.de … … 71 71 $age = explode( ".", $author_birth ); 72 72 $alter = date( "Y", time() )-$age[2]; 73 if ( mktime( 0,0,0,date( "m",time() ), date("d",time()), date( "Y",time() ) ) < mktime( 0,0,0,$age[1],$age[0], date( "Y",time() ) ))73 if ( date("m",time()) < $age[1] || date("d",time()) < $age[0] ) 74 74 $alter--; 75 76 75 return $alter; 77 76 } -
age-shortcode/trunk/readme.txt
r741620 r741916 1 === Age Shortcode ===1 === Age Shortcode === 2 2 Contributors: tschinkes 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWLQU6PEQNH4L … … 17 17 Displays the age of the author. Simply insert shortcode [age] in post or page and the current age is displayed. 18 18 19 After activating the plugin, simply enter the date of birth on the profile (DAY.MONTH.YEAR in Numbers, eg. '04.06.1980').19 After activating the plugin, simply enter the date of birth on the profile. 20 20 21 21 … … 24 24 Zeigt das Alter des Autors an. Einfach Shortcode [age] in Post oder Page einfügen und das aktuelle Alter wird angezeigt. 25 25 26 Nach dem aktivieren des Plugins, einfach über das Profil das Geburtsdatum eingeben (Tag.Monat.Jahr in Zahlen, bsp. '04.06.1980')26 Nach dem aktivieren des Plugins, einfach über das Profil das Geburtsdatum eingeben. 27 27 28 28 = Dokumentation = … … 61 61 == Changelog == 62 62 63 = 1.1 = 64 EN: 65 * Add special German Language File 66 * Fix PHP mktime problems 67 68 DE: 69 * Deutsche Üersetzungsdatei hinzugefügt 70 * PHP mktime Problem behoben 71 63 72 = 1.0 = 64 73 * EN: Release DE: Veröffentlichung
Note: See TracChangeset
for help on using the changeset viewer.