[pLog-svn] r6159 - in plugins/branches/lifetype-1.2/extrafields: class/action class/view locale templates

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Jan 11 08:07:19 EST 2008


Author: jondaley
Date: 2008-01-11 08:07:19 -0500 (Fri, 11 Jan 2008)
New Revision: 6159

Modified:
   plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsconfigaction.class.php
   plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsupdateconfigaction.class.php
   plugins/branches/lifetype-1.2/extrafields/class/view/pluginextrafieldsconfigview.class.php
   plugins/branches/lifetype-1.2/extrafields/locale/locale_en_UK.php
   plugins/branches/lifetype-1.2/extrafields/templates/config.template
Log:
final fixes

Modified: plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsconfigaction.class.php	2008-01-11 12:59:30 UTC (rev 6158)
+++ plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsconfigaction.class.php	2008-01-11 13:07:19 UTC (rev 6159)
@@ -1,7 +1,7 @@
 <?php
 
 	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-	lt_include( PLOG_CLASS_PATH."plugins/extrafields/class/view/pluginauthimageconfigview.class.php" );
+	lt_include( PLOG_CLASS_PATH."plugins/extrafields/class/view/pluginextrafieldsconfigview.class.php" );
 
 	/**
 	 * shows a form with the current configuration

Modified: plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsupdateconfigaction.class.php	2008-01-11 12:59:30 UTC (rev 6158)
+++ plugins/branches/lifetype-1.2/extrafields/class/action/pluginextrafieldsupdateconfigaction.class.php	2008-01-11 13:07:19 UTC (rev 6159)
@@ -20,7 +20,7 @@
 		
 		function validate()
 		{
-            $this->_value = $this->_request->getValue( "extrafields_value" );
+            $this->_value = $this->_request->getValue( "value" );
 			return true;
 		}
 		        
@@ -47,7 +47,7 @@
             $this->saveSession();
 			
 			$this->_view = new PluginExtraFieldsConfigView( $this->_blogInfo );
-			$this->_view->setSuccessMessage( $this->_locale->tr("blog_settings_saved_ok"));
+			$this->_view->setSuccessMessage( $this->_locale->tr("blog_settings_updated_ok"));
 			$this->setCommonData();
 			
 			// clear the cache

Modified: plugins/branches/lifetype-1.2/extrafields/class/view/pluginextrafieldsconfigview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/extrafields/class/view/pluginextrafieldsconfigview.class.php	2008-01-11 12:59:30 UTC (rev 6158)
+++ plugins/branches/lifetype-1.2/extrafields/class/view/pluginextrafieldsconfigview.class.php	2008-01-11 13:07:19 UTC (rev 6159)
@@ -7,7 +7,7 @@
 
 		function PluginExtraFieldsConfigView( $blogInfo )
 		{
-			$this->AdminPluginTemplatedView( $blogInfo, "extrafields", "extrafields" );
+			$this->AdminPluginTemplatedView( $blogInfo, "extrafields", "config" );
 		}
 		
 		function render()
@@ -15,7 +15,7 @@
 			$blogSettings = $this->_blogInfo->getSettings();
 			$value = $blogSettings->getValue( "plugin_extrafields_value" );
 
-			$this->setValue( "extrafieldvalue", $value );
+			$this->setValue( "value", $value );
 			
 			parent::render();
 		}

Modified: plugins/branches/lifetype-1.2/extrafields/locale/locale_en_UK.php
===================================================================
--- plugins/branches/lifetype-1.2/extrafields/locale/locale_en_UK.php	2008-01-11 12:59:30 UTC (rev 6158)
+++ plugins/branches/lifetype-1.2/extrafields/locale/locale_en_UK.php	2008-01-11 13:07:19 UTC (rev 6159)
@@ -1,6 +1,11 @@
 <?php
 
+$messages["ExtraFields"] = "Extra Blog Fields";
+$messages["ExtraFields"] = "Extra Blog Fields";
+
+$messages["extrafields_value"] = "Enter the custom value for this blog";
+
 $messages["label_configuration"] = "Configuration";
-$messages["label_key"] = "Key";
+$messages["label_value"] = "New value";
 
 ?>

Modified: plugins/branches/lifetype-1.2/extrafields/templates/config.template
===================================================================
--- plugins/branches/lifetype-1.2/extrafields/templates/config.template	2008-01-11 12:59:30 UTC (rev 6158)
+++ plugins/branches/lifetype-1.2/extrafields/templates/config.template	2008-01-11 13:07:19 UTC (rev 6159)
@@ -1,5 +1,5 @@
 {include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=Settings title=$locale->tr("extrafields_plugin")}
+{include file="$admintemplatepath/navigation.template" showOpt=Settings title=$locale->tr("ExtraFields")}
 
 <form action="admin.php" method="post">
  <fieldset class="inputField">
@@ -8,9 +8,9 @@
   {include file="$admintemplatepath/errormessage.template"}
   
   <div class="field">
-   <label for="name">{$locale->tr("label_name")}</label>
-   <div class="formHelp">{$locale->tr("extrafields_name")}</div>
-   <input class="text" type="text" name="name" id="name" value="{$name}" {user_cannot_override key=plugin_extrafields_name}readonly="readonly"{/user_cannot_override} />
+   <label for="value">{$locale->tr("label_value")}</label>
+   <div class="formHelp">{$locale->tr("extrafields_value")}</div>
+   <input class="text" type="text" name="value" id="value" value="{$value}" {user_cannot_override key=plugin_extrafields_value}readonly="readonly"{/user_cannot_override} />
   </div>
 
  </fieldset>



More information about the pLog-svn mailing list