[pLog-svn] r826 - in plugins/trunk: articlereferers/class articlereferers/class/action articlereferers/class/view articlereferers/locale articlereferers/templates dropcase/class dropcase/class/action dropcase/class/view dropcase/locale dropcase/templates gravatar/locale gravatar/templates recentcomments/class recentcomments/class/action recentcomments/class/view recentcomments/locale recentcomments/templates recenttrackbacks/class recenttrackbacks/class/action recenttrackbacks/class/view recenttrackbacks/locale recenttrackbacks/templates

mark at devel.plogworld.net mark at devel.plogworld.net
Tue Jan 25 09:10:50 GMT 2005


Author: mark
Date: 2005-01-25 09:10:49 +0000 (Tue, 25 Jan 2005)
New Revision: 826

Added:
   plugins/trunk/articlereferers/class/view/
   plugins/trunk/articlereferers/class/view/pluginarticlereferersconfigview.class.php
   plugins/trunk/dropcase/class/view/
   plugins/trunk/dropcase/class/view/plugindropcaseconfigview.class.php
   plugins/trunk/recentcomments/class/view/
   plugins/trunk/recentcomments/class/view/pluginrecentcommentsconfigview.class.php
   plugins/trunk/recenttrackbacks/class/view/
   plugins/trunk/recenttrackbacks/class/view/pluginrecenttrackbacksconfigview.class.php
Modified:
   plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php
   plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
   plugins/trunk/articlereferers/locale/locale_en_UK.php
   plugins/trunk/articlereferers/locale/locale_zh_TW.php
   plugins/trunk/articlereferers/templates/articlereferers.template
   plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php
   plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
   plugins/trunk/dropcase/locale/locale_en_UK.php
   plugins/trunk/dropcase/locale/locale_zh_TW.php
   plugins/trunk/dropcase/templates/dropcase.template
   plugins/trunk/gravatar/locale/locale_en_UK.php
   plugins/trunk/gravatar/locale/locale_zh_TW.php
   plugins/trunk/gravatar/templates/gravatar.template
   plugins/trunk/recentcomments/class/action/pluginrecentcommentsconfigaction.class.php
   plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php
   plugins/trunk/recentcomments/locale/locale_en_UK.php
   plugins/trunk/recentcomments/locale/locale_zh_TW.php
   plugins/trunk/recentcomments/templates/recentcomments.template
   plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksconfigaction.class.php
   plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php
   plugins/trunk/recenttrackbacks/locale/locale_en_UK.php
   plugins/trunk/recenttrackbacks/locale/locale_zh_TW.php
   plugins/trunk/recenttrackbacks/templates/recenttrackbacks.template
Log:
Change the view and template implemenation follow the UI guide line. But it occurs blank page very often. It not really a blank page, it seems smarty just stop to render in some point.

Modified: plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php
===================================================================
--- plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,7 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/articlereferers/class/view/pluginarticlereferersconfigview.class.php" );	
 
 	/**
 	 * shows a form with the current configuration
@@ -16,20 +17,8 @@
 		
 		function perform()
 		{
-			// load some configuration settings
-			$blogSettings = $this->_blogInfo->getSettings();
-			$pluginEnabled = $blogSettings->getValue( "plugin_articlereferers_enabled" );
-			$sortByField = $blogSettings->getValue( "plugin_articlereferers_sortbyfield" );
-			if ($sortByField == "") $sortByField = 1;
-			$maxReferers = $blogSettings->getValue( "plugin_articlereferers_maxreferers" );
-			if ($maxReferers == "") $maxReferers = 10;
+            $this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
 			
-			// create a view and export the settings to the template
-			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "articlereferers", "articlereferers", true );
-			$this->_view->setValue( "pluginEnabled", $pluginEnabled );
-			$this->_view->setValue( "sortByField", $sortByField );
-			$this->_view->setValue( "maxReferers", $maxReferers );
-			
 			$this->setCommonData();
 			
 			return true;

Modified: plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
===================================================================
--- plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,9 +1,9 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-    include_once( PLOG_CLASS_PATH."class/view/admin/adminerrorview.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminmessageview.class.php" );
-		
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/articlereferers/class/view/pluginarticlereferersconfigview.class.php" );
+			
 	/**
 	 * updates the plugin configuration
 	 */
@@ -25,9 +25,10 @@
             $this->_sortByField = $this->_request->getValue( "sortByField" );
             $this->_maxReferers = $this->_request->getValue( "maxReferers" );
             if( $this->_maxReferers < 0 ) {
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("articlereferers_error_maxReferers"));
-                $this->setCommonData();  
+                $this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("articlereferers_error_maxreferers"));
+                $this->setCommonData();
+
                 return false;
             }        	                
 			return true;
@@ -45,8 +46,8 @@
 			// save the blogs settings
 			$blogs = new Blogs();
             if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("error_updating_settings"));
+                $this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
                 $this->setCommonData();
 
                 return false;
@@ -57,8 +58,8 @@
             $this->_session->setValue( "blogInfo", $this->_blogInfo );
             $this->saveSession();
 			
-			$this->_view = new AdminMessageView( $this->_blogInfo );
-			$this->_view->setMessage( $this->_locale->tr("articlereferers_settings_saved_ok"));
+			$this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
+			$this->_view->setSuccessMessage( $this->_locale->tr("gravatar_settings_saved_ok"));
 			$this->setCommonData();
             
             return true;		

Added: plugins/trunk/articlereferers/class/view/pluginarticlereferersconfigview.class.php
===================================================================
--- plugins/trunk/articlereferers/class/view/pluginarticlereferersconfigview.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/articlereferers/class/view/pluginarticlereferersconfigview.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -0,0 +1,33 @@
+<?php
+	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+	/**
+	 * implements the main view of the feed reader plugin
+	 */
+	class PluginArticleReferersConfigView extends AdminPluginTemplatedView
+	{
+
+		function PluginArticleReferersConfigView( $blogInfo )
+		{
+			$this->AdminPluginTemplatedView( $blogInfo, "articlereferers", "articlereferers" );
+		}
+		
+		function render()
+		{
+			$blogSettings = $this->_blogInfo->getSettings();
+			$pluginEnabled = $blogSettings->getValue( "plugin_articlereferers_enabled" );
+			$sortByField = $blogSettings->getValue( "plugin_articlereferers_sortbyfield" );
+			if ($sortByField == "") $sortByField = 1;
+			$maxReferers = $blogSettings->getValue( "plugin_articlereferers_maxreferers" );
+			if ($maxReferers == "") $maxReferers = 10;
+			
+			// create a view and export the settings to the template
+			$this->setValue( "pluginEnabled", $pluginEnabled );
+			$this->setValue( "sortByField", $sortByField );
+			$this->setValue( "maxReferers", $maxReferers );			
+			
+			parent::render();
+		}
+	}
+?>
\ No newline at end of file

Modified: plugins/trunk/articlereferers/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/articlereferers/locale/locale_en_UK.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/articlereferers/locale/locale_en_UK.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -3,9 +3,14 @@
 $messages["articlereferers_sortbyfield"] = "Show Referers Order By";
 $messages["articlereferers_sortby_hits"] = "Hits";
 $messages["articlereferers_sortby_lastdate"] = "Last Date";
-$messages["articlereferers_plugin_configuration"] = "Configuration this plugin";
 $messages["articlereferers_plugin_enabled"] = "Enable this plugin";
 $messages["articlereferers_plugin"] = "Recent Comments Plugin";
+
 $messages["articlereferers_settings_saved_ok"] = "Recent Comments settings saved successfully!";
 $messages["articlereferers_error_maxreferers"] = "Maximum Showed Comments Should >= 0!";
+
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
+$messages["label_sortbyfield"] = "Sort By";
+$messages["label_maxreferers"] = "Max Referers";
 ?>
\ No newline at end of file

Modified: plugins/trunk/articlereferers/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/articlereferers/locale/locale_zh_TW.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/articlereferers/locale/locale_zh_TW.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -3,9 +3,14 @@
 $messages["articlereferers_sortbyfield"] = "顯示逆向連結排序依照";
 $messages["articlereferers_sortby_hits"] = "連結次數";
 $messages["articlereferers_sortby_lastdate"] = "最後瀏覽時間";
-$messages["articlereferers_plugin_configuration"] = "外掛程式設定";
 $messages["articlereferers_plugin_enabled"] = "啟動外掛程式";
 $messages["articlereferers_plugin"] = "逆向連結外掛程式";
+
 $messages["articlereferers_settings_saved_ok"] = "逆向連結設定儲存成功。";
 $messages["articlereferers_error_maxreferers"] = "逆向連結顯示數量必須要 >= 0!";
+
+$messages["label_configuration"] = "設定";
+$messages["label_enable"] = "å•Ÿå‹•";
+$messages["label_sortbyfield"] = "排序";
+$messages["label_maxreferers"] = "顯示數目";
 ?>
\ No newline at end of file

Modified: plugins/trunk/articlereferers/templates/articlereferers.template
===================================================================
--- plugins/trunk/articlereferers/templates/articlereferers.template	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/articlereferers/templates/articlereferers.template	2005-01-25 09:10:49 UTC (rev 826)
@@ -2,27 +2,39 @@
 {include file="$admintemplatepath/navigation.template" showOpt=ArticleReferers title=$locale->tr("articlereferers_plugin")}
 <form name="articlereferersPluginConfig" method="post">
  <fieldset class="inputField">
- <legend>{$locale->tr("articlereferers_plugin_configuration")}</legend> 
+ <legend>{$locale->tr("label_configuration")}</legend> 
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"} 
   <div class="field">
-   <label for="pluginEnabled">{$locale->tr("articlereferers_plugin_enabled")}</label>
-   <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
+   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
+   <span class="required"></span>
+   <div class="formHelp">
+    <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("articlereferers_plugin_enabled")}
+   </div>
   </div>
+  
   <div class="field">
-   <label for="sortByField">{$locale->tr("articlereferers_sortbyfield")}</label>
+   <label for="sortByField">{$locale->tr("label_sortbyfield")}</label>
+   <span class="required"></span>
+   <div class="formHelp">{$locale->tr("articlereferers_sortbyfield")}</div>
    <select name="sortByField" id="sortByField">
     <option value="1" {if $sortByField==1}selected="selected"{/if}>{$locale->tr("articlereferers_sortby_hits")}</option>
     <option value="2" {if $sortByField==2}selected="selected"{/if}>{$locale->tr("articlereferers_sortby_lastdate")}</option>
-   </select><br/>
+   </select>
   </div>
+  
   <div class="field">
-   <label for="maxReferers">{$locale->tr("articlereferers_maxreferers")}</label>
+   <label for="maxReferers">{$locale->tr("label_maxreferers")}</label>
    <span class="required">*</span>
+   <div class="formHelp">{$locale->tr("articlereferers_maxreferers")}</div>
    <input class="text" type="text" name="maxReferers" id="maxReferers" value="{$maxReferers}" width="10" />
   </div>
+  
  </fieldset>
- <br/>
+
  <div class="buttons"> 
   <input type="hidden" name="op" value="updateArticleReferersConfig" />
+  <input type="reset" name="{$locale->tr("reset")}" />
   <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
  </div>
 </form>

Modified: plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php
===================================================================
--- plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,7 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/dropcase/class/view/plugindropcaseconfigview.class.php" );
 
 	/**
 	 * shows a form with the current configuration
@@ -16,14 +17,8 @@
 		
 		function perform()
 		{
-			// load some configuration settings
-			$blogSettings = $this->_blogInfo->getSettings();
-			$pluginEnabled = $blogSettings->getValue( "plugin_dropcase_enabled" );
+            $this->_view = new PluginDropCaseConfigView( $this->_blogInfo );
 			
-			// create a view and export the settings to the template
-			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "dropcase", "dropcase", true );
-			$this->_view->setValue( "pluginEnabled", $pluginEnabled );
-			
 			$this->setCommonData();
 			
 			return true;

Modified: plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
===================================================================
--- plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-    include_once( PLOG_CLASS_PATH."class/view/admin/adminerrorview.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminmessageview.class.php" );
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/dropcase/class/view/plugindropcaseconfigview.class.php" );
 		
 	/**
 	 * updates the plugin configuration
@@ -34,11 +34,12 @@
 			// save the blogs settings
 			$blogs = new Blogs();
             if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("error_updating_settings"));
+                return false;
+                $this->_view = new PluginDropCaseConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
                 $this->setCommonData();
 
-                return false;
+                return false;                
             }
 			
 			// if everything went ok...
@@ -46,8 +47,8 @@
             $this->_session->setValue( "blogInfo", $this->_blogInfo );
             $this->saveSession();
 			
-			$this->_view = new AdminMessageView( $this->_blogInfo );
-			$this->_view->setMessage( $this->_locale->tr("dropcase_settings_saved_ok"));
+			$this->_view = new PluginDropCaseConfigView( $this->_blogInfo );
+			$this->_view->setSuccessMessage( $this->_locale->tr("dropcase_settings_saved_ok"));			
 			$this->setCommonData();
             
             return true;		

Added: plugins/trunk/dropcase/class/view/plugindropcaseconfigview.class.php
===================================================================
--- plugins/trunk/dropcase/class/view/plugindropcaseconfigview.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/dropcase/class/view/plugindropcaseconfigview.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -0,0 +1,28 @@
+<?php
+	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+	/**
+	 * implements the main view of the feed reader plugin
+	 */
+	class PluginDropCaseConfigView extends AdminPluginTemplatedView
+	{
+
+		function PluginDropCaseConfigView( $blogInfo )
+		{
+			$this->AdminPluginTemplatedView( $blogInfo, "dropcase", "dropcase" );
+		}
+		
+		function render()
+		{
+			// load some configuration settings
+			$blogSettings = $this->_blogInfo->getSettings();
+			$pluginEnabled = $blogSettings->getValue( "plugin_dropcase_enabled" );
+			
+			// create a view and export the settings to the template
+			$this->setValue( "pluginEnabled", $pluginEnabled );		
+			
+			parent::render();
+		}
+	}
+?>
\ No newline at end of file

Modified: plugins/trunk/dropcase/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/dropcase/locale/locale_en_UK.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/dropcase/locale/locale_en_UK.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,6 +1,9 @@
 <?php
-$messages["dropcase_plugin_configuration"] = "Configuration this plugin";
 $messages["dropcase_plugin_enabled"] = "Enable this plugin";
 $messages["dropcase_plugin"] = "Drop Case Plugin";
+
 $messages["dropcase_settings_saved_ok"] = "Drop Case settings saved successfully!";
+
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
 ?>
\ No newline at end of file

Modified: plugins/trunk/dropcase/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/dropcase/locale/locale_zh_TW.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/dropcase/locale/locale_zh_TW.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,6 +1,9 @@
 <?php
-$messages["dropcase_plugin_configuration"] = "外掛程式設定";
 $messages["dropcase_plugin_enabled"] = "啟動外掛程式";
 $messages["dropcase_plugin"] = "首字下沈外掛程式";
+
 $messages["dropcase_settings_saved_ok"] = "首字下沈設定儲存成功。";
+
+$messages["label_configuration"] = "設定";
+$messages["label_enable"] = "å•Ÿå‹•";
 ?>
\ No newline at end of file

Modified: plugins/trunk/dropcase/templates/dropcase.template
===================================================================
--- plugins/trunk/dropcase/templates/dropcase.template	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/dropcase/templates/dropcase.template	2005-01-25 09:10:49 UTC (rev 826)
@@ -2,15 +2,21 @@
 {include file="$admintemplatepath/navigation.template" showOpt=DropCase title=$locale->tr("dropcase_plugin")}
 <form name="dropcasePluginConfig" method="post">
  <fieldset class="inputField">
- <legend>{$locale->tr("dropcase_plugin_configuration")}</legend>  
+ <legend>{$locale->tr("label_configuration")}</legend>  
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"}  
   <div class="field">
-   <label for="pluginEnabled">{$locale->tr("dropcase_plugin_enabled")}</label>
-   <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
+   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
+   <div class="formHelp">   
+    <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("dropcase_plugin_enabled")}
+   </div>
   </div>
+
  </fieldset>  
- <br/>
+
  <div class="buttons">  
   <input type="hidden" name="op" value="updateDropCaseConfig" />
+  <input type="reset" name="{$locale->tr("reset")}" />  
   <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
  </div>
 </form>

Modified: plugins/trunk/gravatar/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/gravatar/locale/locale_en_UK.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/gravatar/locale/locale_en_UK.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,12 +1,17 @@
 <?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_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";
 $messages["gravatar_plugin"] = "Gravatar Plugin";
+
 $messages["gravatar_settings_saved_ok"] = "Gravatar settings saved successfully!";
+
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
+$messages["label_rating"] = "Rating";
+$messages["label_size"] = "Size";
+$messages["label_default"] = "Default Avatar";
 ?>
\ No newline at end of file

Modified: plugins/trunk/gravatar/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/gravatar/locale/locale_zh_TW.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/gravatar/locale/locale_zh_TW.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,12 +1,17 @@
 <?php
 $messages["gravatar_rating"] = "允許肖像分級";
 $messages["gravatar_default"] = "選擇預設肖像(當迴響訪客沒有全球肖像認證帳號時所顯示的肖像)";
-$messages["gravatar_available_avatars"] = "現有肖像";
 $messages["gravatar_avatar_name"] = "檔名";
 $messages["gravatar_avatar_image"] = "圖像";
 $messages["gravatar_size"] = "肖像顯示大小";
-$messages["gravatar_plugin_configuration"] = "外掛程式設定";
 $messages["gravatar_plugin_enabled"] = "啟動外掛程式";
 $messages["gravatar_plugin"] = "全球認證肖像外掛程式";
+
 $messages["gravatar_settings_saved_ok"] = "全球認證肖像設定儲存成功。";
+
+$messages["label_configuration"] = "設定";
+$messages["label_enable"] = "å•Ÿå‹•";
+$messages["label_rating"] = "分級";
+$messages["label_size"] = "大小";
+$messages["label_default"] = "預設肖像";
 ?>
\ No newline at end of file

Modified: plugins/trunk/gravatar/templates/gravatar.template
===================================================================
--- plugins/trunk/gravatar/templates/gravatar.template	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/gravatar/templates/gravatar.template	2005-01-25 09:10:49 UTC (rev 826)
@@ -2,11 +2,11 @@
 {include file="$admintemplatepath/navigation.template" showOpt=Gravatar title=$locale->tr("gravatar_plugin")}
 <form name="gravatarPluginConfig" method="post">
  <fieldset class="inputField">
- <legend>{$locale->tr("configuration")}</legend> 
+ <legend>{$locale->tr("label_configuration")}</legend> 
   {include file="$admintemplatepath/successmessage.template"}
   {include file="$admintemplatepath/errormessage.template"}
   <div class="field">
-   <label for="pluginEnabled">{$locale->tr("enable")}</label>
+   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
    <span class="required"></span>
    <div class="formHelp">
      <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("gravatar_plugin_enabled")}
@@ -14,7 +14,7 @@
   </div> 
 
   <div class="field">
-   <label for="rating">{$locale->tr("rating")}</label>
+   <label for="rating">{$locale->tr("label_rating")}</label>
    <span class="required"></span>
    <div class="formHelp">{$locale->tr("gravatar_rating")}</div>
    <select name="rating" id="rating">
@@ -26,7 +26,7 @@
   </div>
 
   <div class="field">
-   <label for="size">{$locale->tr("size")}</label>
+   <label for="size">{$locale->tr("label_size")}</label>
    <div class="formHelp">{$locale->tr("gravatar_size")}</div>
    <span class="required"></span>
    <select name="size" id="size">
@@ -40,7 +40,7 @@
  </div>
 
   <div class="field">
-  <label for="default">{$locale->tr("default")}</label>
+  <label for="default">{$locale->tr("label_default")}</label>
   <span class="required"></span>
   <div class="formHelp">{$locale->tr("gravatar_default")}</div>
     <table>

Modified: plugins/trunk/recentcomments/class/action/pluginrecentcommentsconfigaction.class.php
===================================================================
--- plugins/trunk/recentcomments/class/action/pluginrecentcommentsconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recentcomments/class/action/pluginrecentcommentsconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,7 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/recentcomments/class/view/pluginrecentcommentsconfigview.class.php" );	
 
 	/**
 	 * shows a form with the current configuration
@@ -16,17 +17,8 @@
 		
 		function perform()
 		{
-			// load some configuration settings
-			$blogSettings = $this->_blogInfo->getSettings();
-			$pluginEnabled = $blogSettings->getValue( "plugin_recentcomments_enabled" );
-			$maxComments = $blogSettings->getValue( "plugin_recentcomments_maxcomments" );
-			if ($maxComments == "") $maxComments = 10;
+            $this->_view = new PluginRecentCommentsConfigView( $this->_blogInfo );
 			
-			// create a view and export the settings to the template
-			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "recentcomments", "recentcomments", true );
-			$this->_view->setValue( "pluginEnabled", $pluginEnabled );
-			$this->_view->setValue( "maxComments", $maxComments );
-			
 			$this->setCommonData();
 			
 			return true;

Modified: plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-    include_once( PLOG_CLASS_PATH."class/view/admin/adminerrorview.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminmessageview.class.php" );
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/recentcomments/class/view/pluginrecentcommentsconfigview.class.php" );	
 		
 	/**
 	 * updates the plugin configuration
@@ -23,13 +23,12 @@
             $this->_pluginEnabled = ($this->_pluginEnabled != "" );			
             $this->_maxComments = $this->_request->getValue( "maxComments" );
             if( $this->_maxComments <= 0 ) {
-                
-                
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("recentcomments_error_maxcomments"));
-                $this->setCommonData();  
+                $this->_view = new PluginRecentCommentsConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("recentcomments_error_maxcomments"));
+                $this->setCommonData();
+
                 return false;
-        }        	                
+            }        	                
 			
 			return true;
 		}
@@ -45,8 +44,8 @@
 			// save the blogs settings
 			$blogs = new Blogs();
             if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("error_updating_settings"));
+                $this->_view = new PluginRecentCommentsConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
                 $this->setCommonData();
 
                 return false;
@@ -56,10 +55,10 @@
             $this->_blogInfo->setSettings( $blogSettings );
             $this->_session->setValue( "blogInfo", $this->_blogInfo );
             $this->saveSession();
-			
-			$this->_view = new AdminMessageView( $this->_blogInfo );
-			$this->_view->setMessage( $this->_locale->tr("recentcomments_settings_saved_ok"));
-			$this->setCommonData();
+
+			$this->_view = new PluginRecentCommentsConfigView( $this->_blogInfo );
+			$this->_view->setSuccessMessage( $this->_locale->tr("recentcomments_settings_saved_ok"));
+			$this->setCommonData();			
             
             return true;		
 		}

Added: plugins/trunk/recentcomments/class/view/pluginrecentcommentsconfigview.class.php
===================================================================
--- plugins/trunk/recentcomments/class/view/pluginrecentcommentsconfigview.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recentcomments/class/view/pluginrecentcommentsconfigview.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -0,0 +1,31 @@
+<?php
+	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+	/**
+	 * implements the main view of the feed reader plugin
+	 */
+	class PluginRecentCommentsConfigView extends AdminPluginTemplatedView
+	{
+
+		function PluginRecentCommentsConfigView( $blogInfo )
+		{
+			$this->AdminPluginTemplatedView( $blogInfo, "recentcomments", "recentcomments" );
+		}
+		
+		function render()
+		{
+			// load some configuration settings
+			$blogSettings = $this->_blogInfo->getSettings();
+			$pluginEnabled = $blogSettings->getValue( "plugin_recentcomments_enabled" );
+			$maxComments = $blogSettings->getValue( "plugin_recentcomments_maxcomments" );
+			if ($maxComments == "") $maxComments = 10;
+			
+			// create a view and export the settings to the template
+			$this->setValue( "pluginEnabled", $pluginEnabled );
+			$this->setValue( "maxComments", $maxComments );		
+			
+			parent::render();
+		}
+	}
+?>
\ No newline at end of file

Modified: plugins/trunk/recentcomments/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/recentcomments/locale/locale_en_UK.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recentcomments/locale/locale_en_UK.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,12 @@
 <?php
 $messages["recentcomments_maxcomments"] = "Maximum Showed Comments";
-$messages["recentcomments_plugin_configuration"] = "Configuration this plugin";
 $messages["recentcomments_plugin_enabled"] = "Enable this plugin";
 $messages["recentcomments_plugin"] = "Recent Comments Plugin";
+
 $messages["recentcomments_settings_saved_ok"] = "Recent Comments settings saved successfully!";
-$messages["recentcomments_error_maxcomments"] = "Maximum Showed Comments Should >= 0!";
+$messages["recentcomments_error_maxcomments"] = "Maximum Showed Comments Should > 0!";
+
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
+$messages["label_maxcomments"] = "Max Comments";
 ?>
\ No newline at end of file

Modified: plugins/trunk/recentcomments/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/recentcomments/locale/locale_zh_TW.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recentcomments/locale/locale_zh_TW.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,12 @@
 <?php
 $messages["recentcomments_maxcomments"] = "最新迴響顯示數量";
-$messages["recentcomments_plugin_configuration"] = "外掛程式設定";
 $messages["recentcomments_plugin_enabled"] = "啟動外掛程式";
 $messages["recentcomments_plugin"] = "最近迴響外掛程式";
+
 $messages["recentcomments_settings_saved_ok"] = "最近迴響設定儲存成功。";
-$messages["recentcomments_error_maxcomments"] = "最新迴響顯示數量必須要 >= 0!";
+$messages["recentcomments_error_maxcomments"] = "最新迴響顯示數量必須要 > 0!";
+
+$messages["label_configuration"] = "設定";
+$messages["label_enable"] = "å•Ÿå‹•";
+$messages["label_maxcomments"] = "顯示數目";
 ?>
\ No newline at end of file

Modified: plugins/trunk/recentcomments/templates/recentcomments.template
===================================================================
--- plugins/trunk/recentcomments/templates/recentcomments.template	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recentcomments/templates/recentcomments.template	2005-01-25 09:10:49 UTC (rev 826)
@@ -2,22 +2,31 @@
 {include file="$admintemplatepath/navigation.template" showOpt=RecentComments title=$locale->tr("recentcomments_plugin")}
 <form name="recentcommentsPluginConfig" method="post">
  <fieldset class="inputField">
- <legend>{$locale->tr("recentcomments_plugin_configuration")}</legend> 
+ <legend>{$locale->tr("label_configuration")}</legend>
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"}  
   <div class="field">
-   <label for="pluginEnabled">{$locale->tr("recentcomments_plugin_enabled")}</label>
-   <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
+   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
+   <span class="required"></span>
+   <div class="formHelp">
+    <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("recentcomments_plugin_enabled")}
+   </div>
   </div>
+  
   <div class="field">
-   <label for="maxComments">{$locale->tr("recentcomments_maxcomments")}</label>
+   <label for="maxComments">{$locale->tr("label_maxcomments")}</label>
    <span class="required">*</span>
+   <div class="formHelp">{$locale->tr("recentcomments_maxcomments")}</div>
    <input class="text" type="text" name="maxComments" id="maxComments" value="{$maxComments}" width="10" />
   </div>
+  
  </fieldset>
- <br/>
+ 
  <div class="buttons">  
   <input type="hidden" name="op" value="updateRecentCommentsConfig" />
+  <input type="reset" name="{$locale->tr("reset")}" />  
   <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
+{include file="$admintemplatepath/footer.template"}

Modified: plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksconfigaction.class.php
===================================================================
--- plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,7 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/recenttrackbacks/class/view/pluginrecenttrackbacksconfigview.class.php" );		
 
 	/**
 	 * shows a form with the current configuration
@@ -16,17 +17,8 @@
 		
 		function perform()
 		{
-			// load some configuration settings
-			$blogSettings = $this->_blogInfo->getSettings();
-			$pluginEnabled = $blogSettings->getValue( "plugin_recenttrackbacks_enabled" );
-			$maxTrackbacks = $blogSettings->getValue( "plugin_recenttrackbacks_maxtrackbacks" );
-			if ($maxTrackbacks == "") $maxTrackbacks = 10;
+            $this->_view = new PluginRecentTrackbacksConfigView( $this->_blogInfo );
 			
-			// create a view and export the settings to the template
-			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "recenttrackbacks", "recenttrackbacks", true );
-			$this->_view->setValue( "pluginEnabled", $pluginEnabled );
-			$this->_view->setValue( "maxTrackbacks", $maxTrackbacks );
-			
 			$this->setCommonData();
 			
 			return true;

Modified: plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php
===================================================================
--- plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-    include_once( PLOG_CLASS_PATH."class/view/admin/adminerrorview.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminmessageview.class.php" );
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	include_once( PLOG_CLASS_PATH."plugins/recenttrackbacks/class/view/pluginrecenttrackbacksconfigview.class.php" );
 		
 	/**
 	 * updates the plugin configuration
@@ -23,13 +23,12 @@
             $this->_pluginEnabled = ($this->_pluginEnabled != "" );			
             $this->_maxTrackbacks = $this->_request->getValue( "maxTrackbacks" );
             if( $this->_maxTrackbacks <= 0 ) {
-                
-                
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("recenttrackbacks_error_maxtrackbacks"));
-                $this->setCommonData();  
-                return false;
-        }        	                
+                $this->_view = new PluginRecentTrackbacksConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("recenttrackbacks_error_maxtrackbacks"));
+                $this->setCommonData();
+
+                return false;                
+            }        	                
 			
 			return true;
 		}
@@ -45,11 +44,11 @@
 			// save the blogs settings
 			$blogs = new Blogs();
             if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("error_updating_settings"));
+                $this->_view = new PluginRecentTrackbacksConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
                 $this->setCommonData();
 
-                return false;
+                return false;                
             }
 			
 			// if everything went ok...
@@ -57,9 +56,9 @@
             $this->_session->setValue( "blogInfo", $this->_blogInfo );
             $this->saveSession();
 			
-			$this->_view = new AdminMessageView( $this->_blogInfo );
-			$this->_view->setMessage( $this->_locale->tr("recenttrackbacks_settings_saved_ok"));
-			$this->setCommonData();
+			$this->_view = new PluginRecentTrackbacksConfigView( $this->_blogInfo );
+			$this->_view->setSuccessMessage( $this->_locale->tr("recenttrackbacks_settings_saved_ok"));
+			$this->setCommonData();					
             
             return true;		
 		}

Added: plugins/trunk/recenttrackbacks/class/view/pluginrecenttrackbacksconfigview.class.php
===================================================================
--- plugins/trunk/recenttrackbacks/class/view/pluginrecenttrackbacksconfigview.class.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recenttrackbacks/class/view/pluginrecenttrackbacksconfigview.class.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -0,0 +1,31 @@
+<?php
+	
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+	/**
+	 * implements the main view of the feed reader plugin
+	 */
+	class PluginRecentTrackbacksConfigView extends AdminPluginTemplatedView
+	{
+
+		function PluginRecentTrackbacksConfigView( $blogInfo )
+		{
+			$this->AdminPluginTemplatedView( $blogInfo, "recenttrackbacks", "recenttrackbacks" );
+		}
+		
+		function render()
+		{
+			// load some configuration settings
+			$blogSettings = $this->_blogInfo->getSettings();
+			$pluginEnabled = $blogSettings->getValue( "plugin_recenttrackbacks_enabled" );
+			$maxTrackbacks = $blogSettings->getValue( "plugin_recenttrackbacks_maxtrackbacks" );
+			if ($maxTrackbacks == "") $maxTrackbacks = 10;
+			
+			// create a view and export the settings to the template
+			$this->setValue( "pluginEnabled", $pluginEnabled );
+			$this->setValue( "maxTrackbacks", $maxTrackbacks );
+			
+			parent::render();
+		}
+	}
+?>
\ No newline at end of file

Modified: plugins/trunk/recenttrackbacks/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/recenttrackbacks/locale/locale_en_UK.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recenttrackbacks/locale/locale_en_UK.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,12 @@
 <?php
 $messages["recenttrackbacks_maxtrackbacks"] = "Maximum Showed Trackbacks";
-$messages["recenttrackbacks_plugin_configuration"] = "Configuration this plugin";
 $messages["recenttrackbacks_plugin_enabled"] = "Enable this plugin";
 $messages["recenttrackbacks_plugin"] = "Recent Trackbacks Plugin";
+
 $messages["recenttrackbacks_settings_saved_ok"] = "Recent Trackbacks settings saved successfully!";
-$messages["recenttrackbacks_error_maxtrackbacks"] = "Maximum Showed Trackbacks Should >= 0!";
+$messages["recenttrackbacks_error_maxtrackbacks"] = "Maximum Showed Trackbacks Should > 0!";
+
+$messages["label_configuration"] = "Configuration";
+$messages["label_enable"] = "Enable";
+$messages["label_maxtrackbacks"] = "Max Trackbacks";
 ?>
\ No newline at end of file

Modified: plugins/trunk/recenttrackbacks/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/recenttrackbacks/locale/locale_zh_TW.php	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recenttrackbacks/locale/locale_zh_TW.php	2005-01-25 09:10:49 UTC (rev 826)
@@ -1,8 +1,12 @@
 <?php
 $messages["recenttrackbacks_maxtrackbacks"] = "最近引用顯示數量";
-$messages["recenttrackbacks_plugin_configuration"] = "外掛程式設定";
 $messages["recenttrackbacks_plugin_enabled"] = "啟動外掛程式";
 $messages["recenttrackbacks_plugin"] = "最近引用外掛程式";
+
 $messages["recenttrackbacks_settings_saved_ok"] = "最近引用設定儲存成功。";
-$messages["recenttrackbacks_error_maxtrackbacks"] = "最近引用顯示數量必須要 >= 0!";
+$messages["recenttrackbacks_error_maxtrackbacks"] = "最近引用顯示數量必須要 > 0!";
+
+$messages["label_configuration"] = "設定";
+$messages["label_enable"] = "å•Ÿå‹•";
+$messages["label_maxtrackbacks"] = "顯示數目";
 ?>
\ No newline at end of file

Modified: plugins/trunk/recenttrackbacks/templates/recenttrackbacks.template
===================================================================
--- plugins/trunk/recenttrackbacks/templates/recenttrackbacks.template	2005-01-24 23:20:12 UTC (rev 825)
+++ plugins/trunk/recenttrackbacks/templates/recenttrackbacks.template	2005-01-25 09:10:49 UTC (rev 826)
@@ -2,20 +2,29 @@
 {include file="$admintemplatepath/navigation.template" showOpt=RecentTrackbacks title=$locale->tr("recenttrackbacks_plugin")}
 <form name="recenttrackbacksPluginConfig" method="post">
  <fieldset class="inputField">
- <legend>{$locale->tr("recenttrackbacks_plugin_configuration")}</legend>  
+ <legend>{$locale->tr("label_configuration")}</legend>
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"}  
   <div class="field">
-   <label for="pluginEnabled">{$locale->tr("recenttrackbacks_plugin_enabled")}</label>
-   <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
-  </div>   
+   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
+   <span class="required"></span>
+   <div class="formHelp">   
+    <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("recenttrackbacks_plugin_enabled")}
+   </div>
+  </div>
+    
   <div class="field">
-   <label for="maxTrackbacks">{$locale->tr("recenttrackbacks_maxtrackbacks")}</label>
+   <label for="maxTrackbacks">{$locale->tr("label_maxtrackbacks")}</label>
    <span class="required">*</span>
+   <div class="formHelp">{$locale->tr("recenttrackbacks_maxtrackbacks")}</div>
    <input class="text" type="text" name="maxTrackbacks" id="maxTrackbacks" value="{$maxTrackbacks}" width="10" />
   </div>
+  
  </fieldset>
- <br/>
+
  <div class="buttons">   
   <input type="hidden" name="op" value="updateRecentTrackbacksConfig" />
+  <input type="reset" name="{$locale->tr("reset")}" />   
   <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
  </div>  
 </form>




More information about the pLog-svn mailing list