Changeset 346403
- Timestamp:
- 02/16/2011 01:14:32 PM (15 years ago)
- Location:
- just-another-author-widget/trunk
- Files:
-
- 2 added
- 5 edited
-
jaaw-style.css (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
screenshot-1.png (added)
-
screenshot-2.png (added)
-
show_author.php (modified) (6 diffs)
-
template_controlpanel.html (modified) (2 diffs)
-
template_widget.html (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
just-another-author-widget/trunk/jaaw-style.css
r278895 r346403 1 1 div.jaaw-image_holder 2 2 { 3 float: left; 4 3 5 4 width: 96px; 6 5 margin: 6px; … … 8 7 } 9 8 10 div.jaaw-summary -holder9 div.jaaw-summary_holder 11 10 { 12 11 height: 118px; 13 12 background-color: transparent; 13 14 14 } 15 .jaaw-avatar-i -
just-another-author-widget/trunk/readme.txt
r345964 r346403 46 46 47 47 Most 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 = 49 1. Install the software 50 2. Open the Widget Control panel from the Administration Panel. (Appearances > Widgets) 51 3. Drag the Just Another Author Widget from the sidepanel. 48 52 49 53 == Screenshots == 50 54 51 None at this time 55 1. Control Panel 56 2. Widget in the Wild 52 57 53 58 == 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 55 65 = 0.2.5 = 56 66 * Added the posibility to disable widget for specified users. … … 72 82 73 83 = 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 15 15 if(is_single()) 16 16 { 17 // Storing current time for use with the microtimer feature. 17 18 $starttime = microtime(true); 19 20 // Loading the authordata and widget options. 18 21 global $authordata; 19 22 $options = get_option('showauthor_widget'); 20 23 24 25 /* 26 27 */ 21 28 $disablees = explode(",", $options['disabled_users']); 22 23 29 foreach($disablees as $user) 24 30 { … … 30 36 31 37 38 32 39 // Finding plugin install dir, 33 40 $dir = ABSPATH . 'wp-content/plugins/just-another-author-widget/'; … … 51 58 if($options['display_img']) 52 59 $parg['image'] = get_avatar($authordata->ID, $options['avatar_size']); 60 $parg['image'] = str_replace("<img ", "<img class=\"jaaw-avatar-image\" align=\"left\" ", $parg['image']); 53 61 54 62 // IF DISPLAY PROFILE … … 101 109 foreach($key_ar as $key) 102 110 $content = str_replace("[" . strtoupper($key) . "]", $parg[$key], $content); 103 104 105 /* 106 107 108 109 110 111 112 */ 111 112 113 113 echo $content; 114 114 … … 138 138 // set new options 139 139 if( $_POST['jaaw-submit'] ) { 140 141 // Setting values to be stored 140 142 $newoptions['title'] = strip_tags( stripslashes($_POST['jaaw-title']) ); 141 143 $newoptions['profile_length'] = strip_tags(stripslashes($_POST['jaaw-profile_length'])); … … 367 369 $class['classname'] = 'showauthor_widget'; 368 370 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 7 7 if (Click_Menuz.style.display == "none") 8 8 { 9 Click_Menuz.style.display = " ";9 Click_Menuz.style.display = "block"; 10 10 } 11 11 else … … 15 15 } 16 16 </script> 17 <p> 17 <h3>Box Settings </h3> 18 <p style="margin-left: 12px;"> 18 19 <b>Title:</b><br /> 19 20 <input type="text" value="[TITLE]" id="jaaw-title" name="jaaw-title" class="jaaw-input" /> 20 21 </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 /> 31 42 </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 /> 58 46 <input type="text" name="jaaw-disabled_users" id="jaaw-disabled_users" class="jaaw-input" value="[DISABLEDUSERS]" /><br /> 59 47 <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.