Changeset 888082
- Timestamp:
- 04/05/2014 08:33:09 PM (12 years ago)
- Location:
- wp-about-author
- Files:
-
- 24 added
- 4 edited
-
tags/1.5 (added)
-
tags/1.5/images (added)
-
tags/1.5/images/delicious.png (added)
-
tags/1.5/images/digg.png (added)
-
tags/1.5/images/facebook.png (added)
-
tags/1.5/images/feed.png (added)
-
tags/1.5/images/flickr.png (added)
-
tags/1.5/images/googleplus.png (added)
-
tags/1.5/images/jonbishopcom.png (added)
-
tags/1.5/images/linkedin.png (added)
-
tags/1.5/images/pinterest.png (added)
-
tags/1.5/images/reddit.png (added)
-
tags/1.5/images/stumbleupon.png (added)
-
tags/1.5/images/twitter.png (added)
-
tags/1.5/images/wordpress.png (added)
-
tags/1.5/images/wordpressorg.png (added)
-
tags/1.5/images/yelp.png (added)
-
tags/1.5/images/youtube.png (added)
-
tags/1.5/readme.txt (added)
-
tags/1.5/screenshot-1.png (added)
-
tags/1.5/screenshot-2.png (added)
-
tags/1.5/wp-about-author-admin.php (added)
-
tags/1.5/wp-about-author.css (added)
-
tags/1.5/wp-about-author.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-about-author-admin.php (modified) (2 diffs)
-
trunk/wp-about-author.css (modified) (1 diff)
-
trunk/wp-about-author.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-about-author/trunk/readme.txt
r884341 r888082 5 5 Requires at least: 3.0 6 6 Tested up to: 3.8.1 7 Stable tag: 1. 47 Stable tag: 1.5 8 8 9 9 Easily display customizable author bios below your posts … … 89 89 90 90 The following filters have been added: 91 wp_about_author_name- Modify the output of the name in the author box92 wp_about_author_description- Modify the output of the description in the author box93 wp_about_author_more_posts- Modify the "More Posts" text in the author box94 wp_about_author_website- Modify the "Website" text in the author box95 wp_about_author_follow_me- Modify the "Follow Me:" text in the author box96 wp_about_author_separator- Change the separator displayed between text links91 * `wp_about_author_name()` - Modify the output of the name in the author box 92 * `wp_about_author_description()` - Modify the output of the description in the author box 93 * `wp_about_author_more_posts()` - Modify the "More Posts" text in the author box 94 * `wp_about_author_website()` - Modify the "Website" text in the author box 95 * `wp_about_author_follow_me()` - Modify the "Follow Me:" text in the author box 96 * `wp_about_author_separator()` - Change the separator displayed between text links 97 97 98 98 … … 105 105 == Changelog == 106 106 107 The current version is 1.4 (2014.3.29) 107 The current version is 1.5 (2014.4.5) 108 109 = 1.5 (2014.4.5) = 110 * Fixed update 111 * Fixing title alignment with avatar 112 * Fixing display of text area next to avatar 108 113 109 114 = 1.4 (2014.3.29) = -
wp-about-author/trunk/wp-about-author-admin.php
r884341 r888082 89 89 //============================================= 90 90 function wp_about_author_general_settings() { 91 92 // Make sure we have defaults 93 add_defaults_wp_about_author(); 94 91 95 $wp_about_author_settings = wp_about_author_process_settings(); 92 96 … … 148 152 // 149 153 function wp_about_author_get_options(){ 150 $fields = array(151 'wp_author_alert_border' => "",152 'wp_author_display_front' => "",153 'wp_author_display_archives' => "",154 'wp_author_display_search' => "",155 'wp_author_display_posts' => "",156 'wp_author_display_pages' => "",157 'wp_author_display_feed' => "",158 'wp_author_social_images' => "",159 'wp_author_avatar_size' => "100",160 'wp_author_avatar_shape' => ""161 );162 154 $wp_about_author_settings = get_option('wp_about_author_settings'); 155 // Make sure we have defaults 156 add_defaults_wp_about_author($wp_about_author_settings); 157 163 158 return wp_parse_args( $wp_about_author_settings, $fields ); 164 159 } -
wp-about-author/trunk/wp-about-author.css
r884341 r888082 42 42 .wp-about-author-text{ 43 43 margin: 0 0 0 140px; 44 display: inline-block; 44 display: table; 45 } 46 .wp-about-author-text > h3 { 47 margin-top: 0; 45 48 } 46 49 .wp-about-author-text p { -
wp-about-author/trunk/wp-about-author.php
r884341 r888082 4 4 Plugin URI: http://www.jonbishop.com/downloads/wordpress-plugins/wp-about-author/ 5 5 Description: Easily display customizable author bios below your posts 6 Version: 1. 46 Version: 1.5 7 7 Author: Jon Bishop 8 8 Author URI: http://www.jonbishop.com … … 19 19 define('WPAUTHORURL_BASENAME', plugin_basename(__FILE__)); 20 20 } 21 if (!defined('WPAUTHORURL_VER')) { 22 define('WPAUTHORURL_VER', '17'); 23 } 21 24 22 25 require_once(WPAUTHORURL_PATH."/wp-about-author-admin.php"); … … 26 29 function wp_about_author_display($for_feed = false){ 27 30 global $post; 31 28 32 $wp_about_author_settings=array(); 29 33 $wp_about_author_settings=get_option('wp_about_author_settings'); … … 103 107 // Add buttons to page 104 108 function insert_wp_about_author($content) { 105 $wp_about_author_settings=wp_about_author_get_options(); 109 $wp_about_author_settings = wp_about_author_get_options(); 110 // Make sure we have defaults 111 add_defaults_wp_about_author($wp_about_author_settings); 106 112 107 if(is_front_page() && isset($wp_about_author_settings['wp_author_display_front']) && $wp_about_author_settings['wp_author_display_front']){113 if(is_front_page() && isset($wp_about_author_settings['wp_author_display_front']) && $wp_about_author_settings['wp_author_display_front']){ 108 114 $content.=wp_about_author_display(); 109 115 } else if(is_archive() && isset($wp_about_author_settings['wp_author_display_archives']) && $wp_about_author_settings['wp_author_display_archives']){ … … 184 190 register_activation_hook(__FILE__, 'add_defaults_wp_about_author'); 185 191 // Define default option settings 186 function add_defaults_wp_about_author() { 187 $tmp = get_option('wp_about_author_settings'); 192 function add_defaults_wp_about_author($tmp = "") { 193 if(empty($tmp)){ 194 $tmp = get_option('wp_about_author_settings'); 195 } 196 197 // Check to see if we're up to date 198 if(intval($tmp['wp_author_version']) >= WPAUTHORURL_VER){ 199 return false; 200 } 201 188 202 if(!is_array($tmp)) { 189 203 $tmp = array( 190 "wp_author_installed"=>"on",191 "wp_author_version"=>"15",192 "wp_author_alert_bg"=>"#FFEAA8",193 "wp_author_display_front"=>"on",194 "wp_author_display_archives"=>"on",195 "wp_author_display_search"=>"",196 "wp_author_display_posts"=>"on",197 "wp_author_display_pages"=>"on",198 "wp_author_display_feed"=>"",199 "wp_author_alert_border"=>"top",200 "wp_author_social_images"=>"on",201 "wp_author_avatar_size"=>"100",202 "wp_author_avatar_shape"=>""203 );204 "wp_author_installed"=>"on", 205 "wp_author_version"=>"16", 206 "wp_author_alert_bg"=>"#FFEAA8", 207 "wp_author_display_front"=>"on", 208 "wp_author_display_archives"=>"on", 209 "wp_author_display_search"=>"", 210 "wp_author_display_posts"=>"on", 211 "wp_author_display_pages"=>"on", 212 "wp_author_display_feed"=>"", 213 "wp_author_alert_border"=>"top", 214 "wp_author_social_images"=>"on", 215 "wp_author_avatar_size"=>"100", 216 "wp_author_avatar_shape"=>"" 217 ); 204 218 update_option('wp_about_author_settings', $tmp); 205 219 } 206 220 if (!$tmp['wp_author_social_images']){ 221 $tmp['wp_author_version'] = "14"; 207 222 $tmp['wp_author_display_feed'] = ""; 208 223 update_option('wp_about_author_settings', $tmp); 209 224 } 210 225 if (!$tmp['wp_author_display_feed']){ 226 $tmp['wp_author_version'] = "15"; 211 227 $tmp['wp_author_display_feed'] = ""; 212 228 update_option('wp_about_author_settings', $tmp); 213 229 } 214 if (!$tmp['wp_author_avatar_size']){ 215 $tmp['wp_author_avatar_size'] = "100"; 216 $tmp['wp_author_avatar_shape'] = ""; 230 if (intval($tmp['wp_author_version']) < 17){ 231 $tmp['wp_author_version'] = "17"; 232 if(!isset($tmp['wp_author_avatar_size'])) 233 $tmp['wp_author_avatar_size'] = "100"; 234 if(!isset($tmp['wp_author_avatar_shape'])) 235 $tmp['wp_author_avatar_shape'] = ""; 217 236 update_option('wp_about_author_settings', $tmp); 218 219 237 } 220 238 } 221 239 222 240 function wp_about_author_shortcode( ){ 223 return wp_about_author_display(); 224 } 225 241 wp_about_author_display(); 242 } 226 243 227 244 add_shortcode( 'wp_about_author', 'wp_about_author_shortcode' );
Note: See TracChangeset
for help on using the changeset viewer.