Changeset 39491
- Timestamp:
- 04/09/08 23:18:54 (3 months ago)
- Files:
-
- add-local-avatar/trunk/avatars.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
add-local-avatar/trunk/avatars.php
r39351 r39491 5 5 Description: A plugin to manage public and private avatars. 6 6 Author: Peter Sterling 7 Version: 2. 07 Version: 2.1 8 8 Changes: 0.1 - Initial version. 9 9 1.0 - Added pagination of users list. 10 10 2.0 - Added pagination of the commentors list too. 11 2.1 - Added example formatting information. 11 12 Author URI: http://www.sterling-adventures.co.uk/ 12 13 */ … … 319 320 <li>Default image if no public (global) or private (local) avatar found; defaulted to value set above.</li> 320 321 </ol></code></p> 322 <p>Apply format to the avatars with something like the following in in you <code>style.css</code> theme file:<br /> 323 <ul><code>.avatar { float:left; padding: 2px; margin: 0; border: 1px solid #ddd; background: white; }</code></ul></p> 321 324 <p>Examples for your theme's template files:<br /> 322 325 <ul> 323 <li>In <code>single.php</code> use <code><?php get_avatar($post->post_author); ?></code> to show the post author’s avatar.</li>326 <li>In <code>single.php</code> declare <code><?php global $post; ?></code> if not already declared and then use <code><?php get_avatar($post->post_author); ?></code> to show the post author’s avatar.</li> 324 327 <li>Inside the comment loop of <code>comments.php</code> use <code><?php get_avatar($comment); ?></code> to show the comment author’s avatar.</li> 325 328 </ul></p>
