Changeset 854244
- Timestamp:
- 02/09/2014 02:58:29 PM (12 years ago)
- Location:
- post-author
- Files:
-
- 18 added
- 1 deleted
- 2 edited
-
assets (added)
-
assets/banner-1544x500.jpg (added)
-
assets/banner-772x250.jpg (added)
-
trunk/languages (added)
-
trunk/languages/post-author_sk_SK.mo (added)
-
trunk/languages/post_author-be_BY.mo (added)
-
trunk/languages/post_author-be_BY.po (added)
-
trunk/languages/post_author-de_DE.mo (added)
-
trunk/languages/post_author-de_DE.po (added)
-
trunk/languages/post_author-en_US.mo (added)
-
trunk/languages/post_author-en_US.po (added)
-
trunk/languages/post_author-fa_IR.mo (added)
-
trunk/languages/post_author-fa_IR.po (added)
-
trunk/languages/post_author-fr_FR.mo (added)
-
trunk/languages/post_author-fr_FR.po (added)
-
trunk/languages/post_author-he_IL.mo (added)
-
trunk/languages/post_author-he_IL.po (added)
-
trunk/languages/post_author-ro_RO.mo (added)
-
trunk/locale (deleted)
-
trunk/post_author.php (modified) (10 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-author/trunk/post_author.php
r630645 r854244 5 5 Description: Adds the name of author at the top or bottom of the content or excerpts (post / page / archive), plus optional publishing and last editing date, complete with surrounding text and a per-post hide option for exceptions. 6 6 Author: David Shabtai 7 Version: 1. 08 Author URI: http://www. tzav.fr9 Copyright (C) 201 0David Shabtai7 Version: 1.1 8 Author URI: http://www.glanum.com 9 Copyright (C) 2014 David Shabtai 10 10 david@glanum.com 11 11 http://www.glanum.com … … 25 25 function ad_post_author_option($name, $value, $type) 26 26 { 27 $value = 'off'; 27 28 if( ($type == 'bool') && (strlen($value) == 0) ) 28 $value = 'off';29 29 if( get_option($name) == FALSE ) 30 30 add_option($name, $value); … … 36 36 function post_author_init() 37 37 { 38 /* === OBSOLETE since version 1.1 38 39 $locale = get_locale(); 39 40 if( empty($locale) ) 40 41 $locale = 'en_US'; 41 $mofile = dirname(__FILE__) . "/l ocale/$locale.mo";42 $mofile = dirname(__FILE__) . "/languages/$locale.mo"; 42 43 load_textdomain('post_author', $mofile); 43 44 */ 45 46 /** 47 * Load the plugin translation files 48 * 49 * Used instead of load_textdomain() function. 50 * The .mo and .po files are now prefixed by plugin name 51 * 52 * @since version 1.1 53 */ 54 load_plugin_textdomain('post_author',false, dirname( plugin_basename( __FILE__ ) ). '/languages/' ); 55 44 56 if( !get_option('Post_Author_Options') ) 45 57 { … … 501 513 if( is_page() && $options['post_author_author_avatar'] == 'on' ) 502 514 { 503 $content .='<div id="post_author_avatar">';515 $content .='<div class="post_author_avatar">'; 504 516 $content .= $author_link_start; 505 517 $content .= get_avatar(get_the_author_meta('user_email'), $options['post_author_author_avatar_size'], '', $moreabout, $options['post_author_author_avatar_float']); … … 507 519 $content .= '</div>'; 508 520 }else if( !is_page() && $options['post_author_author_avatar_on_post'] == 'on'){ 509 $content .='<div id="post_author_avatar">';521 $content .='<div class="post_author_avatar">'; 510 522 $content .= $author_link_start; 511 523 $content .= get_avatar(get_the_author_meta('user_email'), $options['post_author_author_avatar_size_on_post'], '', $moreabout, $options['post_author_author_avatar_float_on_post']); … … 517 529 518 530 519 $content .='<span id="post_author_author">' . $options['post_author_txt_before'] . ' ';531 $content .='<span class="post_author_author">' . $options['post_author_txt_before'] . ' '; 520 532 $content .= $author_link_start; 521 533 $content .= $author; … … 525 537 if( $options['post_author_create_dat'] == 'on' ) 526 538 { 527 $content .= '<span id="post_author_create">' . $options['post_author_dat_before'] . $post_date . $options['post_author_dat_after'] . '</span>'; 528 } 529 539 $content .= '<span class="post_author_create">' . $options['post_author_dat_before'] . $post_date . $options['post_author_dat_after'] . '</span>'; 540 } 541 542 530 543 // NOW ADD REVISION 531 if( $options['post_author_modify_author'] == 'on' ) 532 { 533 if( $modified_author <> $author) 534 { 535 $content .= '<span id="post_author_modify">' . $options['post_author_modified_before']; 536 $content .= $author_modify_link_start; 537 $content .= $modified_author; 538 $content .= $author_link_end; 539 if( $post_date != $modified_date && $options['post_author_modify_dat'] == 'on') 540 { 541 $content .= $options['post_author_modified_after_follow'] ; 542 }else{ 543 $content .= $options['post_author_modified_after'] ; 544 } 545 $content .= '</span>'; 546 } 544 if( $options['post_author_modify_author'] == 'on' AND $modified_author != $author) 545 { 546 $content .= '<span class="post_author_modify">' . $options['post_author_modified_before']; 547 $content .= $author_modify_link_start; 548 $content .= $modified_author; 549 $content .= $author_link_end; 550 if( $post_date != $modified_date AND $options['post_author_modify_dat'] == 'on') 551 { 552 $content .= $options['post_author_modified_after_follow'] ; 553 }else{ 554 $content .= $options['post_author_modified_after'] ; 555 } 556 $content .= '</span>'; 547 557 } 548 558 … … 553 563 if( $post_date != $modified_date ) 554 564 { 555 $content .= '<span id="post_author_modify_dat">';565 $content .= '<span class="post_author_modify_dat">'; 556 566 if( $modified_author == $author OR $options['post_author_modify_author'] != 'on') 557 567 { … … 602 612 $modified_author = get_the_modified_author(); 603 613 604 605 614 606 615 if( ((is_home() && !($options['post_author_cat_home'] == 'on')) || is_category()) && ($options['post_author_type_cat'] == 'on') ) … … 1071 1080 </p> 1072 1081 <p class="submit"> 1073 <input name="Submit" type="submit" class="button-primary" value=" Save changes" />1082 <input name="Submit" type="submit" class="button-primary" value="<?php _e('Save changes', 'post_author') ?>" /> 1074 1083 </p> 1075 1084 -
post-author/trunk/readme.txt
r630645 r854244 4 4 Tags: author, post author, page author, content, date, publication date, update, editing date, revision date 5 5 Requires at least: 3.2 6 Tested up to: 3. 4.27 Stable tag: 1. 06 Tested up to: 3.8.1 7 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 10 Add name of author - good if you have multiple authors - at the beginning or end of content / excerpt / home / archive category, with lots of options.10 Display author, writing and editing date - fully customizable for content, excerpt, home, archive... with exceptions. Great for multi-author websites. 11 11 12 12 == Description == … … 37 37 * Lastly, information is displayed in nested `div` and `span` so it is CSS ready, just up to you to do the styling to your taste. See the screenshots. 38 38 * Integrates great with qTranslate for multilingual or international blogs, using [Quicktags](http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3&p=15#p15) 39 * Available in English, French, Belarusian (credit [Marcis Gasuns](http://pc.de/)), German (credit [Rian Kremer](http://diensten.kiwa.nl/mvo)), Hebrew (credit [Sagive](http://www.sagive.co.il)) and Romanian (credit Luke Tyler).39 * Available in English, French, Belarusian (credit [Marcis Gasuns](http://pc.de/)), German (credit [Rian Kremer](http://diensten.kiwa.nl/mvo)), Hebrew (credit [Sagive](http://www.sagive.co.il)), Romanian (credit Luke Tyler), Slovak (credit [Branco Radenovich](http://webhostinggeeks.com/user-reviews/)) and Farsi (credit [Hamed Nourhani](http://www.itstar.ir)). 40 40 41 *Notice*: Please, after you download the plugin, TRANSLATE it, HELP debug by reporting anything going wrong, but mostly if you like it, RATE IT!42 41 43 42 … … 87 86 * Requires WP >= 3.2 88 87 88 = 1.1 = 89 * Improvement : Updated the method for loading translation files. 90 * Improvement : Some frontend CSS id/class declaration updates. 91 * Improvement : Added Slovak translation, thanks to [Branco Radenovich](http://webhostinggeeks.com/user-reviews/). 92 * Improvement : Added Farsi translation, thanks to [Hamed Nourhani](http://www.itstar.ir). 93 89 94 = 1.0 = 90 95 * Improvement : Added the choice of default WP author posts list or custom author profile URL to use as the link on the author's name.
Note: See TracChangeset
for help on using the changeset viewer.