Plugin Directory

Changeset 346403


Ignore:
Timestamp:
02/16/2011 01:14:32 PM (15 years ago)
Author:
Razesdark
Message:

Uploading Version 0.3

Location:
just-another-author-widget/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • just-another-author-widget/trunk/jaaw-style.css

    r278895 r346403  
    11div.jaaw-image_holder
    22{
    3     float: left;
    4    
     3
    54    width: 96px;
    65    margin: 6px;
     
    87}
    98
    10 div.jaaw-summary-holder
     9div.jaaw-summary_holder
    1110{
    1211    height: 118px;
    1312    background-color: transparent;
     13   
    1414}
     15.jaaw-avatar-i
  • just-another-author-widget/trunk/readme.txt

    r345964 r346403  
    4646
    4747Most of these tags can be turned on and off from the widget control panel. Turn off the ones you don't use to make it render faster.
     48= How do i use this piece of software =
     491. Install the software
     502. Open the Widget Control panel from the Administration Panel. (Appearances > Widgets)
     513. Drag the Just Another Author Widget from the sidepanel.
    4852
    4953== Screenshots ==
    5054
    51 None at this time
     551. Control Panel
     562. Widget in the Wild
    5257
    5358== Changelog ==
    54 
     59= 0.3.0 =
     60* More universal design
     61* Code Cleanup
     62* Added a link to the widget-look editor.
     63* The Widget control panel looks very nice.
     64* More FAQ
    5565= 0.2.5 =
    5666* Added the posibility to disable widget for specified users.
     
    7282
    7383= 0.1.2 =
    74 * Fixed bug that made the plugin look for the template in the wrong directory!
    75 
    76 = 0.1.1 =
    77 * Widget Control improvements, removed some useless controls and some inline help.
    78 
    79 = 0.1 =
    80 * First Release of this plugin
    81 
    82 == Upgrade Notice ==
    83 = 0.2 =
    84 When you upgrade from 0.1.x to 0.2, your widget template will be replaced.
    85 This is because the format for all tags have changed from using two underscores before and after a tag to using squared brackets like BBCodes.
    86 
    87 = 0.1 =
    88 None yet
    89 
     84* Fixed
  • just-another-author-widget/trunk/show_author.php

    r345964 r346403  
    1515    if(is_single())
    1616    {
     17        // Storing current time for use with the microtimer feature.
    1718        $starttime = microtime(true);
     19       
     20        // Loading the authordata and widget options.
    1821        global $authordata;
    1922        $options = get_option('showauthor_widget');
    2023       
     24       
     25        /*
     26           
     27        */
    2128        $disablees = explode(",", $options['disabled_users']);
    22        
    2329        foreach($disablees as $user)
    2430        {
     
    3036       
    3137       
     38       
    3239        // Finding plugin install dir,
    3340        $dir = ABSPATH . 'wp-content/plugins/just-another-author-widget/';
     
    5158        if($options['display_img'])
    5259            $parg['image'] = get_avatar($authordata->ID, $options['avatar_size']);
     60            $parg['image'] = str_replace("<img ", "<img class=\"jaaw-avatar-image\" align=\"left\" ", $parg['image']);
    5361           
    5462        // IF DISPLAY PROFILE
     
    101109        foreach($key_ar as $key)
    102110            $content = str_replace("[" . strtoupper($key) . "]", $parg[$key], $content);
    103        
    104            
    105         /*
    106        
    107        
    108        
    109        
    110        
    111        
    112         */
     111
     112
    113113        echo $content;
    114114       
     
    138138    // set new options
    139139    if( $_POST['jaaw-submit'] ) {
     140   
     141        // Setting values to be stored
    140142        $newoptions['title'] = strip_tags( stripslashes($_POST['jaaw-title']) );       
    141143        $newoptions['profile_length'] = strip_tags(stripslashes($_POST['jaaw-profile_length']));
     
    367369    $class['classname'] = 'showauthor_widget';
    368370    wp_register_sidebar_widget('tommy_show_author', __('Just Another Author Widget'), 'showauthor_widget', $class);
    369     wp_register_widget_control('tommy_show_author', __('Just Another Author Widget'), 'showauthor_widget_control', 'width=200&height=200');
    370  
    371    
    372     return;
    373 }
    374 function showauthor_addstyle()
    375 {
    376     $style = WP_PLUGIN_URL . '/just-another-author-widget/jaaw-style.css';
    377     $location = WP_PLUGIN_DIR . '/just-another-author-widget/jaaw-style.css';
    378 
    379     if( file_exists($location) )
    380     {
    381         wp_register_style('template', $style);
    382         wp_enqueue_style( 'template');
    383 
    384     }   
    385 }
    386 // ACTIONS
    387 add_action('activate_'.plugin_basename(__FILE__), 'showauthor_activate');
    388 add_action('deactivate_'.plugin_basename(__FILE__), 'showauthor_deactivate');
    389 add_action('init', 'showauthor_init');
    390 add_action('wp_print_styles', 'showauthor_addstyle');
    391 
    392 ?>
     371    wp_register_widget_control('tommy_show_author', __('Just Another Author Widget'), 'showauthor_widget_cont
  • just-another-author-widget/trunk/template_controlpanel.html

    r345964 r346403  
    77        if (Click_Menuz.style.display == "none")       
    88        {
    9             Click_Menuz.style.display = "";
     9            Click_Menuz.style.display = "block";
    1010        }
    1111        else
     
    1515    }
    1616</script>
    17 <p>
     17<h3>Box Settings </h3>
     18<p style="margin-left: 12px;">
    1819    <b>Title:</b><br />
    1920    <input type="text" value="[TITLE]" id="jaaw-title" name="jaaw-title" class="jaaw-input" />
    2021</p>
    21 <p>
    22 <b>Display Options</b><br />
    23 <input type="checkbox" name="jaaw-display_img" id="jaaw-display_img" class="jaaw-input" [DISPLAYIMG]/> Display Image<br />
    24 <input type="checkbox" class="jaaw-input" id="jaaw-display_author_webpage_link" name="jaaw-display_author_webpage_link" [DISPLAYWEBPAGE] /> Display Author's Webpage<br />
    25 <input type="checkbox" class="jaaw-input" id="jaaw-display_author_profile_link" name="jaaw-display_author_profile_link" [DISPLAYAUTHORPROFILELINK] />
    26 Display Author's Profile<br />
    27 <!--<input type="checkbox" class="jaaw-input" id="jaaw-display_im_icons" name="jaaw-display_im_icons" [DISPLAYIMICONS] /> Display IM Icon Strip--> <br />
    28 <input type="checkbox" class="jaaw-input" id="jaaw-display_profile" name="jaaw-display_profile" [DISPLAYPROFILE] /> Display Bio<br />
    29 Trim Bio Length to:<br />
    30 <input type="text" class="jaaw-input" id="jaaw-profile_length" name="jaaw-profile_length" value="[PROFILELENGTH]" />
     22<p style="margin-left: 12px;">
     23    <b>Display Options</b><br />
     24    <input type="checkbox" name="jaaw-display_img" id="jaaw-display_img" class="jaaw-input" [DISPLAYIMG]/> Display Image<br />
     25    <input type="checkbox" class="jaaw-input" id="jaaw-display_author_webpage_link" name="jaaw-display_author_webpage_link" [DISPLAYWEBPAGE] /> Display Author's Webpage<br />
     26    <input type="checkbox" class="jaaw-input" id="jaaw-display_author_profile_link" name="jaaw-display_author_profile_link" [DISPLAYAUTHORPROFILELINK] />
     27   
     28    Display Author's Profile<br />
     29    <input type="checkbox" class="jaaw-input" id="jaaw-display_profile" name="jaaw-display_profile" [DISPLAYPROFILE] /> Display Bio<br />
     30
     31    <br />
     32    Trim Bio Length to:<br />
     33    <input type="text" class="jaaw-input" id="jaaw-profile_length" name="jaaw-profile_length" value="[PROFILELENGTH]" /><br />
     34    Author Website Link Text:<br />
     35    <input type="text" class="jaaw-input" id="jaaw-text_link" name="jaaw-text_link" value="[TEXTLINK]" /><br />
     36   
     37    Author Profile Link Text:<br />
     38    <input type="text" class="jaaw-input" id="jaaw-text_author" name="jaaw-text_author" value="[TEXTAUTHOR]" /><br />
     39   
     40    Avatar Size:<br />
     41    <input type="text" class="jaaw-input" id="jaaw-avatar_size" name="jaaw-avatar_size" value="[AVATARSIZE]" /><br />
    3142</p>
    32 <p>
    33     <b>Settings</b><br />
    34     Author Website Link Text:<br />
    35 <input type="text" class="jaaw-input" id="jaaw-text_link" name="jaaw-text_link" value="[TEXTLINK]" /><br />
    36     Author Profile Link Text:<br />
    37 <input type="text" class="jaaw-input" id="jaaw-text_author" name="jaaw-text_author" value="[TEXTAUTHOR]" /><br />
    38     Avatar Size:<br />
    39 <input type="text" class="jaaw-input" id="jaaw-avatar_size" name="jaaw-avatar_size" value="[AVATARSIZE]" /><br />
    40 </p>
    41 <p><b>Additional Tags</b> - <!--<a onclick="toggleBlock('jaawtagbox');">[Show]</a>--></p>
    42 <div id="jaawtagbox" style="cursor: pointer;"><font size="1"></font><br />
    43 <input type="checkbox" name="jaaw-enable_tag_postcount" id="jaaw-enable_tag_postcount" class="jaaw-input" [ENABLETAGPOSTCOUNT]/> [POSTCOUNT]<br />
    44 <input type="checkbox" name="jaaw-enable_tag_authorfullname" id="jaaw-enable_tag_authorfullname" clasS="jaaw-input" [ENABLETAGAUTHORFULLNAME] /> [AUTHORFULLNAME]<br />
    45 <input type="checkbox" name="jaaw-enable_tag_profile" id="jaaw-enable_tag_profile" class="jaaw-input" [ENABLETAGPROFILE]/> [FULLPROFILE]<br />
    46 <input type="checkbox" name="jaaw-enable_tag_site-url" id="jaaw-enable_tag_site-url" class="jaaw-input" [ENABLETAGSITEURL]/> [SITEURL]<br />
    47 <input type="checkbox" name="jaaw-enable_tag_site-text" id="jaaw-enable_tag_site-text" class="jaaw-input" [ENABLETAGSITETEXT]/> [SITETEXT]<br />
    48 <input type="checkbox" name="jaaw-enable_tag_profile-url" id="jaaw-enable_tag_profile-url" class="jaaw-input" [ENABLETAGPROFILEURL]/> [PROFILEURL]<br />
    49 <input type="checkbox" name="jaaw-enable_tag_profile-text" id="jaaw-enable_tag_profile-text" class="jaaw-input" [ENABLETAGPROFILETEXT]/> [PROFILETEXT]<br />
    50 
    51 
    52 </div>
    53 <p><input type="checkbox" name="jaaw-microtime" [MICROTIMECHECKED] />Enable Microtime widget timer<br />
    54 [MICROTIMER]
    55 </p>
    56 <p>
    57     <b>Disable widget for certain users</b><br />
     43<h3>Additional Settings</h3>
     44<p style="margin-left: 12px;">
     45    Disable widget for certain users<br />
    5846    <input type="text" name="jaaw-disabled_users" id="jaaw-disabled_users" class="jaaw-input" value="[DISABLEDUSERS]" /><br />
    5947    <font size="1">Accepts both userid and nicknames, separated by commas. No need to put spaces after the commas!</font>
    60 <input type='hidden' name='jaaw-submit' value="yes" />
     48</p>
     49<h3>Extra Tags</h3>
     50<p style="margin-left: 12px;">
     51        <input type="checkbox" name="jaaw-enable_tag_postcount" id="jaaw-enable_tag_postcount" class="jaaw-input" [ENABLETAGPOSTCOUNT]/> [POSTCOUNT]<br />
     52        <input type="checkbox" name="jaaw-enable_tag_authorfullname" id="jaaw-enable_tag_authorfullname" clasS="jaaw-input" [ENABLETAGAUTHORFULLNAME] /> [AUTHORFULLNAME]<br />
     53        <input type="checkbox" name="jaaw-enable_tag_profile" id="jaaw-enable_tag_profile" class="jaaw-input" [ENABLETAGPROFILE]/> [FULLPROFILE]<br />
     54        <input type="checkbox" name="jaaw-enable_tag_site-url" id="jaaw-enable_tag_site-url" class="jaaw-input" [ENABLETAGSITEURL]/> [SITEURL]<br />
     55        <input type="checkbox" name="jaaw-enable_tag_site-text" id="jaaw-enable_tag_site-text" class="jaaw-input" [ENABLETAGSITETEXT]/> [SITETEXT]<br />
     56        <input type="checkbox" name="jaaw-enable_tag_profile-url" id="jaaw-enable_tag_profile-url" class="jaaw-input" [ENABLETAGPROFILEURL]/> [PROFILEURL]<br />
     57        <input type="checkbox" name="jaaw-enable_tag_profile-text" id="jaaw-enable_tag_profile-text" class="jaaw-input" [ENABLETAGPROFILETEXT]/> [PROFILETEXT]<br />
     58    <font siz
Note: See TracChangeset for help on using the changeset viewer.