WordPress.org

Plugin Directory

Changeset 504966


Ignore:
Timestamp:
02/14/12 20:09:11 (2 years ago)
Author:
powerblogservice
Message:

AuthorSure 0.6

Location:
authorsure/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • authorsure/trunk/authorsure-profile.php

    r504555 r504966  
    6464        $help = __('Supply an extended bio to go on your author page.'); 
    6565        $key = authorsure::get_extended_bio_key(); 
    66         $bio =  get_user_option($key); 
     66        $bio =  get_user_option($key, $user->ID); 
    6767        print <<< EXTENDED_BIO 
    6868<table class="form-table"> 
  • authorsure/trunk/authorsure.css

    r504555 r504966  
    33.authorsure-author-box h4 { font-weight: bold; } 
    44.authorsure-author-box h4 a { text-decoration:none; } 
     5.authorsure-author-profile p { padding: 0 0 15px 0; } 
  • authorsure/trunk/authorsure.php

    r504555 r504966  
    44Plugin URI: http://www.authorsure.com 
    55Description: Makes it easier to authenticate Authorship with Google using use rel=me, rel=author and rel=publisher links 
    6 Version: 0.5 
     6Version: 0.6 
    77Author: Russell Jamieson 
    88Author URI: http://www.russelljamieson.com 
     
    2525*/ 
    2626 
    27 define('AUTHORSURE_VERSION', '0.5'); 
     27define('AUTHORSURE_VERSION', '0.6'); 
    2828define('AUTHORSURE', 'authorsure'); 
    2929define('AUTHORSURE_ADMIN', 'authorsure_admin'); 
     
    233233                $s .= '<li style="list-style-type:none; "><a href="'.$user->$name.'" rel="me" title="Follow me on '.ucwords($name). 
    234234                '">'.$desc.'</a></li>'; 
    235 /* 
    236                 $s .= '<li style="list-style-type:none"><a href="'.$user->$name.'" rel="me" title="Follow me on '.ucwords($name). 
    237                 '"><span style="vertical-align:top">'.$desc.'</span></a></li>'; 
    238  
    239 */ 
    240235        }    
    241236        return empty($s) ? '' : ('<p style="margin: 10px 0">'.self::get_option('author_find_more').'</p><ul style="margin-bottom: 30px">'.$s.'</ul>'); 
     
    309304    public static function init() {      
    310305        $author_rel = self::get_option('author_rel'); 
     306        $author_bio = self::get_option('author_bio'); 
    311307        switch($author_rel) { 
    312308            case 'menu': add_filter('the_content', array(AUTHORSURE,'append_primary_author')); break; 
     
    314310            case 'box':  { 
    315311                add_filter('the_content', array(AUTHORSURE,'append_post_author_box'));  
    316                 wp_enqueue_style( 'AUTHORSURE', AUTHORSURE_PLUGIN_URL.'authorsure.css',array(),AUTHORSURE_VERSION); 
    317312                break; 
    318313            } 
    319314            default:     
    320315        } 
     316        if (('box'==$author_rel) || ('extended'==$author_bio)) //include css for author boxes and extended bios 
     317            wp_enqueue_style( 'AUTHORSURE', AUTHORSURE_PLUGIN_URL.'authorsure.css',array(),AUTHORSURE_VERSION); 
     318 
    321319        if ($author_rel != 'menu') add_action('loop_start', array(AUTHORSURE,'insert_author_bio')); //add bio to profile page 
    322320 
  • authorsure/trunk/readme.txt

    r504555 r504966  
    55Requires at least: 3.0 
    66Tested up to: 3.3.1 
    7 Stable tag: 0.5 
     7Stable tag: 0.6 
    88 
    99Show your face and build your brand in Google search results. 
     
    3636== Changelog == 
    3737 
     38= 0.6 = Fix bug in the display of the extended bio on the profile page 
    3839= 0.5 = Initial Release 
    3940 
    4041== Upgrade Notice == 
    4142 
    42 = 0.5 =  
    43 * Mandatory - initial release 
     43= 0.6 =  
     44* Mandatory - Required if using extended bio 
    4445 
    4546== Links == 
Note: See TracChangeset for help on using the changeset viewer.