[pLog-svn] r811 - in plugins/trunk/gravatar: locale templates
mark at devel.plogworld.net
mark at devel.plogworld.net
Mon Jan 24 04:04:19 GMT 2005
Author: mark
Date: 2005-01-24 04:04:19 +0000 (Mon, 24 Jan 2005)
New Revision: 811
Modified:
plugins/trunk/gravatar/locale/locale_en_UK.php
plugins/trunk/gravatar/locale/locale_zh_TW.php
plugins/trunk/gravatar/templates/gravatar.template
Log:
Update UI of gravatar configuration panel which followed the plugins UI guideline.
Modified: plugins/trunk/gravatar/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/gravatar/locale/locale_en_UK.php 2005-01-24 02:49:11 UTC (rev 810)
+++ plugins/trunk/gravatar/locale/locale_en_UK.php 2005-01-24 04:04:19 UTC (rev 811)
@@ -1,7 +1,9 @@
<?php
$messages["gravatar_rating"] = "Allowed Avatar Rating";
$messages["gravatar_default"] = "Choose Default Avatar (This Avatar will showed if the commenter does not have Gravatar Account)";
-$messages["gravatar_avatars"] = "Available Avatars";
+$messages["gravatar_available_avatars"] = "Available Avatars";
+$messages["gravatar_avatar_name"] = "Name";
+$messages["gravatar_avatar_image"] = "Image";
$messages["gravatar_size"] = "Avatar Size";
$messages["gravatar_plugin_configuration"] = "Configuration this plugin";
$messages["gravatar_plugin_enabled"] = "Enable this plugin";
Modified: plugins/trunk/gravatar/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/gravatar/locale/locale_zh_TW.php 2005-01-24 02:49:11 UTC (rev 810)
+++ plugins/trunk/gravatar/locale/locale_zh_TW.php 2005-01-24 04:04:19 UTC (rev 811)
@@ -1,7 +1,9 @@
<?php
$messages["gravatar_rating"] = "å
許èååç´";
$messages["gravatar_default"] = "鏿é è¨èåï¼ç¶è¿´é¿è¨ªå®¢æ²æå
¨çèåèªèå¸³èææé¡¯ç¤ºçèåï¼";
-$messages["gravatar_avatars"] = "ç¾æèå";
+$messages["gravatar_available_avatars"] = "ç¾æèå";
+$messages["gravatar_avatar_name"] = "æªå";
+$messages["gravatar_avatar_image"] = "åå";
$messages["gravatar_size"] = "èå顯示大å°";
$messages["gravatar_plugin_configuration"] = "夿ç¨å¼è¨å®";
$messages["gravatar_plugin_enabled"] = "åå夿ç¨å¼";
Modified: plugins/trunk/gravatar/templates/gravatar.template
===================================================================
--- plugins/trunk/gravatar/templates/gravatar.template 2005-01-24 02:49:11 UTC (rev 810)
+++ plugins/trunk/gravatar/templates/gravatar.template 2005-01-24 04:04:19 UTC (rev 811)
@@ -1,47 +1,71 @@
{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=Gravatar title=$locale->tr("gravatar_plugin")}
<form name="gravatarPluginConfig" method="post">
- {$locale->tr("gravatar_plugin_enabled")}
- <input type="checkbox" name="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
- <fieldset>
+ <fieldset class="inputField">
<legend>{$locale->tr("gravatar_plugin_configuration")}</legend>
- {$locale->tr("gravatar_rating")}
- <select name="rating">
- <option value="G" {if $rating=="G"}selected="selected"{/if}>G</option>
- <option value="PG" {if $rating=="PG"}selected="selected"{/if}>PG</option>
- <option value="R" {if $rating=="R"}selected="selected"{/if}>R</option>
- <option value="X" {if $rating=="X"}selected="selected"{/if}>X</option>
- </select><br/>
- {$locale->tr("gravatar_size")}
- <select name="size">
- <option value="30" {if $size==30}selected="selected"{/if}>30x30</option>
- <option value="40" {if $size==40}selected="selected"{/if}>40x40</option>
- <option value="50" {if $size==50}selected="selected"{/if}>50x50</option>
- <option value="60" {if $size==60}selected="selected"{/if}>60x60</option>
- <option value="70" {if $size==70}selected="selected"{/if}>70x70</option>
- <option value="80" {if $size==80}selected="selected"{/if}>80x80</option>
- </select><br/>
- {$locale->tr("gravatar_default")}
- <fieldset>
- <legend>{$locale->tr("gravatar_avatars")}</legend>
+ <div class="field">
+ <label for="pluginEnabled">{$locale->tr("gravatar_plugin_enabled")}</label>
+ <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
+ </div>
+ <div class="field">
+ <label for="rating">{$locale->tr("gravatar_rating")}</label>
+ <select name="rating" id="rating">
+ <option value="G" {if $rating=="G"}selected="selected"{/if}>G</option>
+ <option value="PG" {if $rating=="PG"}selected="selected"{/if}>PG</option>
+ <option value="R" {if $rating=="R"}selected="selected"{/if}>R</option>
+ <option value="X" {if $rating=="X"}selected="selected"{/if}>X</option>
+ </select><br/>
+ </div>
+ <div class="field">
+ <label for="size">{$locale->tr("gravatar_size")}</label>
+ <select name="size" id="size">
+ <option value="30" {if $size==30}selected="selected"{/if}>30x30</option>
+ <option value="40" {if $size==40}selected="selected"{/if}>40x40</option>
+ <option value="50" {if $size==50}selected="selected"{/if}>50x50</option>
+ <option value="60" {if $size==60}selected="selected"{/if}>60x60</option>
+ <option value="70" {if $size==70}selected="selected"{/if}>70x70</option>
+ <option value="80" {if $size==80}selected="selected"{/if}>80x80</option>
+ </select><br/>
+ </div>
+ <div class="field">
+ <label for="default">{$locale->tr("gravatar_default")}</label>
+
+ <fieldset style="border: 1px solid #DEDEDE;">
+ <legend>{$locale->tr("gravatar_available_avatars")}</legend>
<table>
+ <thead>
+ <tr>
+ <th style="width:20px;"></th>
+ <th style="width:130px;">{$locale->tr("gravatar_avatar_name")}</th>
+ <th style="width:450px;">{$locale->tr("gravatar_avatar_image")}</th>
+ </tr>
+ </thead>
+ <tbody>
{foreach from=$avatars item=avatar}
<tr>
<td>
- <input type="radio" name="default" value="{$avatar}" {if $default==$avatar} checked="checked" {/if} /> {$avatar}
+ <input class="radio" type="radio" name="default" id="default" value="{$avatar}" {if $default==$avatar} checked="checked" {/if} />
</td>
<td>
+ {$avatar}
+ </td>
+ <td>
<img src="{$url->getUrl("/plugins/gravatar/avatars/$avatar")}" alt="{$avatar}" />
</td>
</tr>
{/foreach}
+ </tbody>
</table>
- </fieldset>
<br/>
</fieldset>
+
+ </div>
+ </fieldset>
<br/>
- <input type="hidden" name="op" value="updateGravatarConfig" />
- <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+ <div class="buttons">
+ <input type="hidden" name="op" value="updateGravatarConfig" />
+ <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+ </div>
</form>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}
\ No newline at end of file
More information about the pLog-svn
mailing list