Changeset 574635
- Timestamp:
- 07/19/2012 02:02:31 PM (14 years ago)
- Location:
- social-autho-bio/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (5 diffs)
-
social_author_bio.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-autho-bio/trunk/readme.txt
r564777 r574635 5 5 Requires at least: 2.9 6 6 Tested up to: 3.4.1 7 Stable tag: 2. 27 Stable tag: 2.3 8 8 License: GPLv2 9 9 … … 14 14 15 15 = Examples = 16 [Social Author Bio Main Site](http://nickpowers.info/wordpress-plugins/social-author-bio/)17 [Social Author Bio Example](http://www.elirose.com/)16 * [Social Author Bio Main Site](http://nickpowers.info/wordpress-plugins/social-author-bio/) 17 * [Social Author Bio Example](http://www.elirose.com/) 18 18 19 19 = Built in Social Icons = … … 96 96 Add code like below to your theme template files: 97 97 98 [?php $socialauthor = do_shortcode('[social-bio]'); echo $socialauthor; ?]98 [?php echo do_shortcode('[social-bio]'); ?] 99 99 (Replace the first and last []'s with normal html greater/less than signs). 100 100 … … 103 103 Yes, since v2.1 you can use the following code to retrieve the Social Icons (Images with links) 104 104 105 $icons = apply_filters('social_author_icons', $ID); 105 $icons = apply_filters('social_author_icons', $ID); echo $icons; 106 106 107 107 where $ID is the ID of the user whos Social Icons you want to display … … 115 115 116 116 == Changelog == 117 118 = 2.3 = 119 * Fixed bug where users who had disabled Social Author Bio in their profile were still being displayed via shortcode 117 120 118 121 = 2.2 = -
social-autho-bio/trunk/social_author_bio.php
r564326 r574635 5 5 Description: Social Author Bio adds bio box on posts with social icons 6 6 Author: Nick Powers 7 Version: 2. 27 Version: 2.3 8 8 Author URI: http://www.nickpowers.info 9 9 */ … … 70 70 // Initialize variables 71 71 $output = ''; 72 $id = get_the_author_meta('ID'); 73 74 if ( !empty($atts['id']) ) { 75 $id = $atts['id']; 76 } 72 77 73 78 // Get options … … 75 80 76 81 // Display shortcode with current page/post author 77 if ($options["shortcode"] && empty($atts['id']) ) {82 if ($options["shortcode"] && empty($atts['id']) && !get_the_author_meta("social_bio_status")) { 78 83 79 84 $output = $this->display(get_the_author_meta('ID')); … … 81 86 } 82 87 // Display shortcode with specified ID 83 elseif ($options["shortcode"] ){88 elseif ($options["shortcode"] && !get_the_author_meta("social_bio_status", $id)){ 84 89 $output = $this->display($atts['id']); 85 90 } … … 924 929 925 930 function social_icons($ID) { 931 // Init Variables 932 $author_socials = ''; 926 933 927 934
Note: See TracChangeset
for help on using the changeset viewer.