Plugin Directory

Changeset 741916


Ignore:
Timestamp:
07/16/2013 08:13:12 PM (13 years ago)
Author:
tschinkes
Message:

Change Code, add language file German

Location:
age-shortcode/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • age-shortcode/trunk/age_short.php

    r739639 r741916  
    44Plugin URI: http://www.tobi-mobile.de/plugins/age-shortcode
    55Description: 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.0
     6Version: 1.1
    77Author: Tobias Kraft
    88Author URI: http://www.tobi-mobile.de
     
    7171            $age = explode( ".", $author_birth );
    7272            $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] )
    7474            $alter--;
    75            
    7675            return $alter;
    7776        }
  • age-shortcode/trunk/readme.txt

    r741620 r741916  
    1 === Age Shortcode ===
     1=== Age Shortcode ===
    22Contributors: tschinkes
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWLQU6PEQNH4L
     
    1717Displays the age of the author. Simply insert shortcode [age] in post or page and the current age is displayed.
    1818
    19 After activating the plugin, simply enter the date of birth on the profile (DAY.MONTH.YEAR in Numbers, eg. '04.06.1980').
     19After activating the plugin, simply enter the date of birth on the profile.
    2020
    2121
     
    2424Zeigt das Alter des Autors an. Einfach Shortcode [age] in Post oder Page einfügen und das aktuelle Alter wird angezeigt.
    2525
    26 Nach dem aktivieren des Plugins, einfach über das Profil das Geburtsdatum eingeben (Tag.Monat.Jahr in Zahlen, bsp. '04.06.1980')
     26Nach dem aktivieren des Plugins, einfach über das Profil das Geburtsdatum eingeben.
    2727
    2828= Dokumentation =
     
    6161== Changelog ==
    6262
     63= 1.1 =
     64EN:
     65* Add special German Language File
     66* Fix PHP mktime problems
     67
     68DE:
     69* Deutsche Üersetzungsdatei hinzugefügt
     70* PHP mktime Problem behoben
     71
    6372= 1.0 =
    6473* EN: Release DE: Veröffentlichung
Note: See TracChangeset for help on using the changeset viewer.