Plugin Directory

Changeset 1503143


Ignore:
Timestamp:
09/26/2016 09:02:01 PM (9 years ago)
Author:
dogano
Message:

new placeholders 'last_modified_timestamp_gmt' and 'publication_timestamp_gmt'

Location:
wp-open-last-modified/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-open-last-modified/trunk/languages/wp-open-last-modified-de_DE.po

    r1417828 r1503143  
    22msgstr ""
    33"Project-Id-Version: wp-open-last-modified\n"
    4 "POT-Creation-Date: 2016-05-15 22:54+0200\n"
    5 "PO-Revision-Date: 2016-05-15 23:47+0200\n"
     4"POT-Creation-Date: 2016-09-26 21:34+0200\n"
     5"PO-Revision-Date: 2016-09-26 21:34+0200\n"
    66"Last-Translator: Dogan Ucar <[email protected]>\n"
    77"Language-Team: \n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 1.8.7\n"
     12"X-Generator: Poedit 1.8.9\n"
    1313"X-Poedit-Basepath: ..\n"
    1414"Plural-Forms: nplurals=2; plural=(n != 1);\n"
     
    1717"X-Poedit-SearchPath-0: .\n"
    1818
    19 #: open_last_modified.php:108
     19#: open_last_modified.php:98 open_last_modified.php:112
    2020msgid "WP Last Modified Settings"
    2121msgstr "WP Last Modified Einstellungen"
    2222
    23 #: open_last_modified.php:113
     23#: open_last_modified.php:117
    2424msgid ""
    2525"Define the settings by overriding the defaults with your own preferences"
    2626msgstr " Du kannst hier die Default-Einstellungen überschreiben"
    2727
    28 #: open_last_modified.php:120
     28#: open_last_modified.php:124
    2929msgid "settings saved"
    3030msgstr "Einstellungen gespeichert"
    3131
    32 #: open_last_modified.php:128
     32#: open_last_modified.php:132
    3333msgid "Error occured. Please enter a message"
    3434msgstr "Fehler. Bitte gebe eine Nachricht ein"
    3535
    36 #: open_last_modified.php:139
     36#: open_last_modified.php:143
    3737msgid ""
    3838"Just use the *timestamp* or *last_modified_timestamp* shortcuts for "
    3939"inserting the modification date/time, *publication_timestamp* for the "
    40 "publication date/time and *revision_count* for the number of revisions."
     40"publication date/time and *revision_count* for the number of revisions. "
     41"There are also options for GMT timezones (*last_modified_timestamp_gmt* and "
     42"*publication_timestamp_gmt*)."
    4143msgstr ""
    4244"Benutzte einfach den *timestamp* oder *last_modified_timestamp* Shortcut für "
    4345"das letzte Änderungsdatum, *publication_timestamp* für das "
    44 "Veröffentlichungsdatum und *revision_count* für die aktuelle Revision."
     46"Veröffentlichungsdatum und *revision_count* für die aktuelle Revision. Um "
     47"die Datumsangaben in der GMT Zeitzone zu erhalten kannst du "
     48"*last_modified_timestamp_gmt* und *publication_timestamp_gmt* verwenden."
    4549
    46 #: open_last_modified.php:143
     50#: open_last_modified.php:146
    4751msgid "If you don't need one of the values, just remove them from your text!"
    4852msgstr ""
     
    5054"Text entfernen!"
    5155
    52 #: open_last_modified.php:147
     56#: open_last_modified.php:150
    5357msgid ""
    5458"Notice: you can configure the date format via the shortcut attribute "
     
    5862"setzt."
    5963
    60 #: open_last_modified.php:151
     64#: open_last_modified.php:154
    6165msgid ""
    6266"Notice: you should use the *last_modified_timestamp* instead of *timestamp* "
     
    6670"*timestamp* in zukünftigen Releases entfernt wird."
    6771
    68 #: open_last_modified.php:155
     72#: open_last_modified.php:158
    6973msgid "Sample usage: [last_modified_date format=\"Y-m-d H:i:s\"]"
    7074msgstr "Beispiel: [last_modified_date format=\"Y-m-d H:i:s\"]"
    7175
    72 #: open_last_modified.php:166
     76#: open_last_modified.php:177
    7377msgid "Save Changes"
    7478msgstr "Änderungen übernehmen"
     79
     80#~ msgid ""
     81#~ "Just use the *timestamp* or *last_modified_timestamp* shortcuts for "
     82#~ "inserting the modification date/time, *publication_timestamp* for the "
     83#~ "publication date/time and *revision_count* for the number of revisions. "
     84#~ "There are also options for GMT timezones (last_modified_timestamp_gmt and "
     85#~ "publication_timestamp_gmt)."
     86#~ msgstr ""
     87#~ "Benutzte einfach den *timestamp* oder *last_modified_timestamp* Shortcut "
     88#~ "für das letzte Änderungsdatum, *publication_timestamp* für das "
     89#~ "Veröffentlichungsdatum und *revision_count* für die aktuelle Revision. Um "
     90#~ "die Datumsangaben in der GMT Zeitzone zu erhalten kannst du "
     91#~ "*last_modified_timestamp_gmt* und *publication_timestamp_gmt* verwenden."
     92
     93#~ msgid ""
     94#~ "Just use the *timestamp* or *last_modified_timestamp* shortcuts for "
     95#~ "inserting the modification date/time, *publication_timestamp* for the "
     96#~ "publication date/time and *revision_count* for the number of revisions."
     97#~ msgstr ""
     98#~ "Benutzte einfach den *timestamp* oder *last_modified_timestamp* Shortcut "
     99#~ "für das letzte Änderungsdatum, *publication_timestamp* für das "
     100#~ "Veröffentlichungsdatum und *revision_count* für die aktuelle Revision."
    75101
    76102#~ msgid "WP Open Last Modified Settings"
  • wp-open-last-modified/trunk/open_last_modified.php

    r1439678 r1503143  
    44 * Plugin URI: www.dogan-ucar.de/wp-open-last-modified
    55 * Description: WP Last Modified adds the ‚last_modified_date‘ shortcut to your WordPress installation. This shortcut shows the last timestamp of your post/page. Simply use the „format“ attribute for custom date formats (it uses PHP’s date() function). This plugin shows also the actual revision of your post/page. You can customize the text which will be shown under each post/page under settings -> WP Last Modified Settings.
    6  * Version: 1.1.1
     6 * Version: 1.2.0
    77 * Author: Dogan Ucar
    88 * Author URI: www.dogan-ucar.de
     
    7272    $_lastModifiedDateTime = date ( $format, strtotime ( $lastModifiedDateTime ) );
    7373   
     74    $lastModifiedDateTimeGmt = $post->post_modified_gmt;
     75    $_lastModifiedDateTimeGmt = date ( $format, strtotime ( $lastModifiedDateTimeGmt ) );
     76   
    7477    $creationDateTime = $post->post_date;
    7578    $_creationDateTime = date ( $format, strtotime ( $creationDateTime ) );
     79   
     80    $creationDateTimeGmt = $post->post_date_gmt;
     81    $_creationDateTimeGmt = date ( $format, strtotime ( $creationDateTimeGmt ) );
    7682   
    7783    $revisions = wp_get_post_revisions ( $post->ID );
     
    8187    $text = str_replace ( "*timestamp*", $_lastModifiedDateTime, $text );
    8288    $text = str_replace ( "*last_modified_timestamp*", $_lastModifiedDateTime, $text );
     89    $text = str_replace ( "*last_modified_timestamp_gmt*", $_lastModifiedDateTimeGmt, $text );
    8390    $text = str_replace ( "*publication_timestamp*", $_creationDateTime, $text );
     91    $text = str_replace ( "*publication_timestamp_gmt*", $_creationDateTimeGmt, $text );
    8492    $text = str_replace ( "*revision_count*", $revisionCount, $text );
    8593   
     
    133141    // Begin descriptions
    134142    echo "<p>";
    135     _e ( "Just use the *timestamp* or *last_modified_timestamp* shortcuts for inserting the modification date/time, *publication_timestamp* for the publication date/time and *revision_count* for the number of revisions.", 'wp-open-last-modified' );
     143    _e ( "Just use the *timestamp* or *last_modified_timestamp* shortcuts for inserting the modification date/time, *publication_timestamp* for the publication date/time and *revision_count* for the number of revisions. There are also options for GMT timezones (*last_modified_timestamp_gmt* and *publication_timestamp_gmt*).", 'wp-open-last-modified' );
    136144    echo "</p>";
    137    
    138145    echo "<p>";
    139146    _e ( "If you don't need one of the values, just remove them from your text!", 'wp-open-last-modified' );
    140147    echo "</p>";
    141    
     148
    142149    echo "<p>";
    143150    _e ( "Notice: you can configure the date format via the shortcut attribute 'format'.", 'wp-open-last-modified' );
     
    173180    echo "</div>";
    174181}
     182/**
     183 * loads the plugin specific text domain.
     184 * wrapper function for WordPress function 'load_plugin_textdomain'.
     185 */
    175186function loadPluginTextdomain() {
    176187    load_plugin_textdomain ( "wp-open-last-modified", false, dirname ( plugin_basename ( __FILE__ ) ) . '/languages' );
    177188}
    178 
    179189?>
  • wp-open-last-modified/trunk/readme.txt

    r1468849 r1503143  
    66License: GPLv3
    77License URI: http://www.gnu.org/licenses/gpl-3.0.txt
    8 Stable tag: 1.1.1
     8Stable tag: 1.2.0
    99
    1010This plugins adds the last modified date, current revision and the publication date of your post/page.
     
    3636
    3737== Changelog ==
     38= 1.2.0 =
     39* new placeholder 'last_modified_timestamp_gmt'
     40* new placeholder 'publication_timestamp_gmt'
     41
    3842= 1.1.1 =
    3943* added donation link
Note: See TracChangeset for help on using the changeset viewer.