A bunch of changes to the Post Avatar plugin. Download it now.
- Localization
Dominik has also added a German translation. If you want to create your own translation of Post Avatar the .pot file has been included in the package and is inside the languages folder. - Live preview of selected images
If you’ve set the option to show images in the Write Post screen, this live preview lets you check if you’ve chosen the right image. This feature was added by a href=”http://wordpress.gaw2006.de/”>Dominik who will be helping me out with further development. Please note the live preview has only been tested in Mozilla - More Template Tag Options
A. Define your own CSS class by using this query string inside The Loop:<php if (function_exists('gkl_postavatar')) gkl_postavatar('example', '', ''); ?>
Here, “example” is the name of the class. The following is shown on your page:
<div class="example"><img src="http://www.garinungkadol.com/wp-content/images/icons/messer01.jpg" alt="title of post" style="width:100px; height:100px; border:none;" /></div>
B. Define your own HTML with the string parameters “before” and “after”.
e.g. before = <p class=”mypic”>
after = </p> in this example…<php if (function_exists('gkl_postavatar')) gkl_postavatar('', '<p class="mypic">', '</p>'); ?>
will result in:
<p class="mypic"><img src="http://www.garinungkadol.com/wp-content/images/icons/messer01.jpg" alt="title of post" style="width:100px; height:100px; border:none;" /></p>
C. Show the image without any divs:
<php if (function_exists('gkl_postavatar')) gkl_postavatar('', '', ''); ?>
to get:
<img src="http://www.garinungkadol.com/wp-content/images/icons/messer01.jpg" alt="title of post" style="width:100px; height:100px; border:none;" />