[pLog-svn] r5190 - in plugins/branches/lifetype-1.2: . bloglook bloglook/class bloglook/class/action bloglook/class/view bloglook/locale bloglook/templates googleadsense googleadsense/class googleadsense/class/action googleadsense/class/view googleadsense/locale googleadsense/templates

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Mar 25 15:55:20 EDT 2007


Author: oscar
Date: 2007-03-25 15:55:20 -0400 (Sun, 25 Mar 2007)
New Revision: 5190

Added:
   plugins/branches/lifetype-1.2/bloglook/
   plugins/branches/lifetype-1.2/bloglook/class/
   plugins/branches/lifetype-1.2/bloglook/class/action/
   plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookconfigaction.class.php
   plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookupdateconfigaction.class.php
   plugins/branches/lifetype-1.2/bloglook/class/view/
   plugins/branches/lifetype-1.2/bloglook/class/view/pluginbloglookconfigview.class.php
   plugins/branches/lifetype-1.2/bloglook/locale/
   plugins/branches/lifetype-1.2/bloglook/locale/locale_en_UK.php
   plugins/branches/lifetype-1.2/bloglook/locale/locale_zh_TW.php
   plugins/branches/lifetype-1.2/bloglook/pluginbloglook.class.php
   plugins/branches/lifetype-1.2/bloglook/readme.txt
   plugins/branches/lifetype-1.2/bloglook/templates/
   plugins/branches/lifetype-1.2/bloglook/templates/bloglook.template
   plugins/branches/lifetype-1.2/googleadsense/
   plugins/branches/lifetype-1.2/googleadsense/class/
   plugins/branches/lifetype-1.2/googleadsense/class/action/
   plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseconfigaction.class.php
   plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseupdateconfigaction.class.php
   plugins/branches/lifetype-1.2/googleadsense/class/view/
   plugins/branches/lifetype-1.2/googleadsense/class/view/plugingoogleadsenseconfigview.class.php
   plugins/branches/lifetype-1.2/googleadsense/locale/
   plugins/branches/lifetype-1.2/googleadsense/locale/locale_en_UK.php
   plugins/branches/lifetype-1.2/googleadsense/locale/locale_zh_TW.php
   plugins/branches/lifetype-1.2/googleadsense/plugingoogleadsense.class.php
   plugins/branches/lifetype-1.2/googleadsense/readme-zh_TW.txt
   plugins/branches/lifetype-1.2/googleadsense/readme.txt
   plugins/branches/lifetype-1.2/googleadsense/templates/
   plugins/branches/lifetype-1.2/googleadsense/templates/googleadsense.template
Log:
Added plugins 'googleadsense' and 'bloglook' as provided by http://bugs.lifetype.net/view.php?id=1236 and http://bugs.lifetype.net/view.php?id=1238


Added: plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookconfigaction.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookconfigaction.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,27 @@
+<?php
+
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	lt_include( PLOG_CLASS_PATH."plugins/bloglook/class/view/pluginbloglookconfigview.class.php" );
+
+	/**
+	 * shows a form with the current configuration
+	 */
+	class PluginBlogLookConfigAction extends AdminAction
+	{
+
+		function PluginBlogLookConfigAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+
+		function perform()
+		{
+            $this->_view = new PluginBlogLookConfigView( $this->_blogInfo );
+
+			$this->setCommonData();
+
+			return true;
+		}
+	}
+?>

Added: plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookupdateconfigaction.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/class/action/pluginbloglookupdateconfigaction.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,78 @@
+<?php
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	lt_include( PLOG_CLASS_PATH."plugins/bloglook/class/view/pluginbloglookconfigview.class.php" );
+
+	/**
+	 * updates the plugin configuration
+	 */
+	class PluginBlogLookUpdateConfigAction extends AdminAction
+	{
+		var $_pluginEnabled;
+		var $_blogid;
+
+		function PluginStickyPostsUpdateConfigAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+
+		function validate()
+		{
+            $errorMessages = array();
+			$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
+            $this->_pluginEnabled = ($this->_pluginEnabled != "" );
+
+			$this->_blogid = $this->_request->getValue( "blogid" );
+			if( $this->_pluginEnabled && empty($this->_blogid) ) {
+                $errorMessages[] = "bloglook_error_blogid";
+				$isError = true;
+			}
+
+			if( count($errorMessages) > 0 ) {
+                $this->_view = new PluginBlogLookConfigView( $this->_blogInfo );
+				$allerror='';
+				foreach( $errorMessages as $error ){
+					$allerror .= $this->_locale->tr($error).'<br />';
+				}
+		$this->_view->setErrorMessage( $this->_locale->tr($allerror));
+                $this->setCommonData();
+                return false;
+            }
+
+			return true;
+		}
+
+		function perform()
+		{
+            // // update the plugin configurations to blog setting
+			$blogSettings = $this->_blogInfo->getSettings();
+            $blogSettings->setValue( "plugin_bloglook_enabled", $this->_pluginEnabled );
+            $blogSettings->setValue( "plugin_bloglook_blogid", $this->_blogid );
+            $this->_blogInfo->setSettings( $blogSettings );
+
+			// save the blogs settings
+			$blogs = new Blogs();
+            if( !$blogs->updateBlog( $this->_blogInfo )) {
+                $this->_view = new PluginStickyPostsConfigView( $this->_blogInfo );
+                $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
+                $this->setCommonData();
+
+                return false;
+            }
+
+			// if everything went ok...
+            $this->_blogInfo->setSettings( $blogSettings );
+            $this->_session->setValue( "blogInfo", $this->_blogInfo );
+            $this->saveSession();
+
+			$this->_view = new PluginBlogLookConfigView( $this->_blogInfo );
+			$this->_view->setSuccessMessage( $this->_locale->tr("bloglook_settings_saved_ok"));
+			$this->setCommonData();
+
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());
+
+            return true;
+		}
+	}
+?>

Added: plugins/branches/lifetype-1.2/bloglook/class/view/pluginbloglookconfigview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/class/view/pluginbloglookconfigview.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/class/view/pluginbloglookconfigview.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,30 @@
+<?php
+
+	lt_include( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+	/**
+	 * implements the main view of the google analytics plugin
+	 */
+	class PluginBlogLookConfigView extends AdminPluginTemplatedView
+	{
+
+		function PluginBlogLookConfigView( $blogInfo )
+		{
+			$this->AdminPluginTemplatedView( $blogInfo, "bloglook", "bloglook" );
+		}
+
+		function render()
+		{
+			// load some configuration settings
+			$blogSettings = $this->_blogInfo->getSettings();
+			$pluginEnabled = $blogSettings->getValue( "plugin_bloglook_enabled" );
+			$blogid = $blogSettings->getValue( "plugin_bloglook_blogid");
+
+			// create a view and export the settings to the template
+			$this->setValue( "pluginEnabled", $pluginEnabled );
+			$this->setValue( "blogid", $blogid );
+
+			parent::render();
+		}
+	}
+?>

Added: plugins/branches/lifetype-1.2/bloglook/locale/locale_en_UK.php
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/locale/locale_en_UK.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/locale/locale_en_UK.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,10 @@
+<?php
+$messages["bloglook"] = "BlogLook";
+$messages["BlogLook"] = "BlogLook";
+$messages["bloglook_plugin"] = "BlogLook Configuration";
+$messages["bloglook_plugin_enabled"] = "Enable BlogLook Plugin.";
+$messages["label_blogid"] = "BlogId code";
+$messages["bloglook_blogid"] = "Please fill in the _blogid code. You can find this code in BlogLook.";
+$messages["bloglook_error_blogid"] = "You must fill in the _blogid code.";
+$messages["bloglook_settings_saved_ok"] = "BlogLook configuration update successed !";
+?>

Added: plugins/branches/lifetype-1.2/bloglook/locale/locale_zh_TW.php
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/locale/locale_zh_TW.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/locale/locale_zh_TW.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,10 @@
+<?php
+$messages["bloglook"] = "部落格觀察";
+$messages["BlogLook"] = "部落格觀察";
+$messages["bloglook_plugin"] = "部落格觀察 設定";
+$messages["bloglook_plugin_enabled"] = "啟用 部落格觀察 外掛程式";
+$messages["label_blogid"] = "BlogID 代碼";
+$messages["bloglook_blogid"] = "請填入 部落格觀察 的 BlogID 代碼";
+$messages["bloglook_error_blogid"] = "你必須填入 部落格觀察 的 BlogID 代碼";
+$messages["bloglook_settings_saved_ok"] = "部落格觀察 設定儲存成功!";
+?>

Added: plugins/branches/lifetype-1.2/bloglook/pluginbloglook.class.php
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/pluginbloglook.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/pluginbloglook.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,61 @@
+<?php
+
+    lt_include( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
+
+    /**
+	* offers features to inset google analytics javascript codes in tempalte header.
+	*/
+    class PluginBlogLook extends PluginBase
+    {
+        var $pluginEnabled;
+		var $blogid;
+
+        function PluginBlogLook($source = "")
+        {
+			$this->PluginBase($source);
+
+            $this->id = "bloglook";
+            $this->author = "twu2";
+            $this->desc = "This plugin offers features to inset BlogLook codes in tempalte header.";
+            $this->version = "20070321";
+
+            $this->locales = Array( "en_UK" , "zh_TW" );
+
+	    if ($source == "admin")
+            	$this->initAdmin();
+        }
+
+		function initAdmin()
+		{
+			$this->registerAdminAction( "bloglook", "PluginBlogLookConfigAction" );
+			$this->registerAdminAction( "updatebloglook", "PluginBlogLookUpdateConfigAction" );
+
+			$menu =& Menu::getMenu();
+            $this->addMenuEntry( "/menu/controlCenter/manageSettings", "BlogLook", "?op=bloglook");
+		}
+
+		function register()
+		{
+		    $blogSettings = $this->blogInfo->getSettings();
+		    $this->pluginEnabled = $blogSettings->getValue( "plugin_bloglook_enabled" );
+	        $this->blogid = $blogSettings->getValue( "plugin_bloglook_blogid" );
+	    }
+
+	    function isEnabled()
+	    {
+	        return $this->pluginEnabled;
+	    }
+
+        /**
+		* Returns google analytics javascript
+		*/
+        function getBlogID()
+        {
+            $jsCode = "";
+            if( $this->isEnabled() ){
+                $jsCode = $this->blogid;
+            }
+			return $jsCode;
+        }
+    }
+?>

Added: plugins/branches/lifetype-1.2/bloglook/readme.txt
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/readme.txt	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/readme.txt	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,8 @@
+BlogLook Plugin v0.1
+
+Tempalte
+Add template code blow:
+
+{if $bloglook && $bloglook->isEnabled()}
+    <script type="text/javascript" language="JavaScript" src="http://look.urs.tw/java/a1.php?BlogID={$bloglook->getBlogID()}"></script> 
+{/if}

Added: plugins/branches/lifetype-1.2/bloglook/templates/bloglook.template
===================================================================
--- plugins/branches/lifetype-1.2/bloglook/templates/bloglook.template	                        (rev 0)
+++ plugins/branches/lifetype-1.2/bloglook/templates/bloglook.template	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,30 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=BlogLook title=$locale->tr("bloglook_plugin")}
+<form name="bloglookPluginConfig" method="post">
+ <fieldset class="inputField">
+ <legend>{$locale->tr("label_configuration")}</legend>
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"}
+  <div class="field">
+   <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("bloglook_plugin_enabled")}
+   </div>
+  </div>
+
+  <div class="field">
+   <label for="blogid">{$locale->tr("label_blogid")}</label>
+   <span class="required">*</span>
+   <div class="formHelp">{$locale->tr("bloglook_blogid")}</div>
+   <input class="text" type="text" name="blogid" id="blogid" value="{$blogid}" width="20" />
+  </div>
+ </div>
+ <div class="buttons">
+  <input type="hidden" name="op" value="updatebloglook" />
+  <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"}

Added: plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseconfigaction.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseconfigaction.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,23 @@
+<?php
+
+lt_include(PLOG_CLASS_PATH.'class/action/admin/adminaction.class.php');
+lt_include(PLOG_CLASS_PATH.'class/view/admin/adminplugintemplatedview.class.php');
+lt_include(PLOG_CLASS_PATH.'plugins/googleadsense/class/view/plugingoogleadsenseconfigview.class.php');
+
+// shows a form with the current configuration
+class PluginGoogleAdsenseConfigAction extends AdminAction
+{
+	function PluginGoogleAdsenseConfigAction($actionInfo, $request)
+	{
+		$this->AdminAction($actionInfo, $request);
+	}
+
+	function perform()
+	{
+        $this->_view = new PluginGoogleAdsenseConfigView($this->_blogInfo);
+		$this->setCommonData();
+		return true;
+	}
+}
+
+?>

Added: plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseupdateconfigaction.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/class/action/plugingoogleadsenseupdateconfigaction.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,122 @@
+<?php
+
+lt_include(PLOG_CLASS_PATH.'class/action/admin/adminaction.class.php');
+lt_include(PLOG_CLASS_PATH.'class/view/admin/adminplugintemplatedview.class.php');
+lt_include(PLOG_CLASS_PATH.'plugins/googleadsense/class/view/plugingoogleadsenseconfigview.class.php');
+
+// updates the plugin configuration
+class PluginGoogleAdsenseUpdateConfigAction extends AdminAction
+{
+    var $_pluginEnabled;
+    var $_client;
+    var $_contentEnabled;
+    var $_contentWidth;
+    var $_contentHeight;
+    var $_contentFormat;
+    var $_contentType;
+    var $_contentChannel;
+    var $_suggestionEnabled;
+    var $_suggestionWidth;
+    var $_suggestionHeight;
+    var $_suggestionFormat;
+    var $_suggestionChoice;
+    var $_suggestionChannel;
+    var $_searchEnabled;
+
+	function PluginStickyPostsUpdateConfigAction($actionInfo, $request)
+	{
+		$this->AdminAction($actionInfo, $request);
+	}
+
+	function validate()
+	{
+        $errorMessages = array();
+		$this->_pluginEnabled = $this->_request->getValue('pluginEnabled');
+        $this->_pluginEnabled = ($this->_pluginEnabled != '');
+
+		$this->_client = $this->_request->getValue('client');
+		if ($this->_pluginEnabled && empty($this->_client)) {
+            $errorMessages[] = 'googleadsense_error_client';
+			$isError = true;
+		}
+
+		$this->_contentEnabled = $this->_request->getValue('contentEnabled');
+        $this->_contentEnabled = ($this->_contentEnabled != '');
+		$this->_contentWidth = $this->_request->getValue('contentWidth');
+		$this->_contentHeight = $this->_request->getValue('contentHeight');
+		$this->_contentFormat = $this->_request->getValue('contentFormat');
+		$this->_contentType = $this->_request->getValue('contentType');
+		$this->_contentChannel = $this->_request->getValue('contentChannel');
+
+		$this->_suggestionEnabled = $this->_request->getValue('suggestionEnabled');
+        $this->_suggestionEnabled = ($this->_suggestionEnabled != '');
+		$this->_suggestionWidth = $this->_request->getValue('suggestionWidth');
+		$this->_suggestionHeight = $this->_request->getValue('suggestionHeight');
+		$this->_suggestionFormat = $this->_request->getValue('suggestionFormat');
+		$this->_suggestionChoice = $this->_request->getValue('suggestionChoice');
+		$this->_suggestionChannel = $this->_request->getValue('suggestionChannel');
+
+		$this->_searchEnabled = $this->_request->getValue('searchEnabled');
+        $this->_searchEnabled = ($this->_searchEnabled != '');
+
+		if (count($errorMessages) > 0) {
+            $this->_view = new PluginGoogleAdsenseConfigView($this->_blogInfo);
+			$allerror='';
+			foreach ($errorMessages as $error) {
+				$allerror .= $this->_locale->tr($error).'<br />';
+			}
+            $this->_view->setErrorMessage($this->_locale->tr($allerror));
+            $this->setCommonData();
+            return false;
+        }
+
+        return true;
+    }
+
+	function perform()
+	{
+        // // update the plugin configurations to blog setting
+		$blogSettings = $this->_blogInfo->getSettings();
+        $blogSettings->setValue('plugin_googleadsense_enabled', $this->_pluginEnabled);
+        $blogSettings->setValue('plugin_googleadsense_client', $this->_client);
+        $blogSettings->setValue('plugin_googleadsense_content_enabled', $this->_contentEnabled);
+        $blogSettings->setValue('plugin_googleadsense_content_width', $this->_contentWidth);
+        $blogSettings->setValue('plugin_googleadsense_content_height', $this->_contentHeight);
+        $blogSettings->setValue('plugin_googleadsense_content_format', $this->_contentFormat);
+        $blogSettings->setValue('plugin_googleadsense_content_type', $this->_contentType);
+        $blogSettings->setValue('plugin_googleadsense_content_channel', $this->_contentChannel);
+        $blogSettings->setValue('plugin_googleadsense_suggestion_enabled', $this->_suggestionEnabled);
+        $blogSettings->setValue('plugin_googleadsense_suggestion_width', $this->_suggestionWidth);
+        $blogSettings->setValue('plugin_googleadsense_suggestion_height', $this->_suggestionHeight);
+        $blogSettings->setValue('plugin_googleadsense_suggestion_format', $this->_suggestionFormat);
+        $blogSettings->setValue('plugin_googleadsense_suggestion_choice', $this->_suggestionChoice);
+        $blogSettings->setValue('plugin_googleadsense_suggestion_channel', $this->_suggestionChannel);
+        $blogSettings->setValue('plugin_googleadsense_search_enabled', $this->_searchEnabled);
+        $this->_blogInfo->setSettings($blogSettings);
+
+        // save the blogs settings
+		$blogs = new Blogs();
+        if (!$blogs->updateBlog($this->_blogInfo)) {
+            $this->_view = new PluginStickyPostsConfigView($this->_blogInfo);
+            $this->_view->setErrorMessage($this->_locale->tr('error_updating_settings'));
+            $this->setCommonData();
+            return false;
+        }
+
+		// if everything went ok...
+        $this->_blogInfo->setSettings($blogSettings);
+        $this->_session->setValue('blogInfo', $this->_blogInfo);
+        $this->saveSession();
+
+		$this->_view = new PluginGoogleAdsenseConfigView($this->_blogInfo);
+		$this->_view->setSuccessMessage($this->_locale->tr('googleadsense_settings_saved_ok'));
+		$this->setCommonData();
+
+		// clear the cache
+		CacheControl::resetBlogCache($this->_blogInfo->getId());
+
+        return true;
+	}
+}
+
+?>

Added: plugins/branches/lifetype-1.2/googleadsense/class/view/plugingoogleadsenseconfigview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/class/view/plugingoogleadsenseconfigview.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/class/view/plugingoogleadsenseconfigview.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,54 @@
+<?php
+
+lt_include(PLOG_CLASS_PATH.'class/view/admin/adminplugintemplatedview.class.php');
+
+// implements the main view of the google adsense plugin
+class PluginGoogleAdsenseConfigView extends AdminPluginTemplatedView
+{
+    function PluginGoogleAdsenseConfigView($blogInfo)
+	{
+		$this->AdminPluginTemplatedView($blogInfo, 'googleadsense', 'googleadsense');
+	}
+
+	function render()
+	{
+		// load some configuration settings
+		$blogSettings = $this->_blogInfo->getSettings();
+		$pluginEnabled = $blogSettings->getValue('plugin_googleadsense_enabled');
+		$client = $blogSettings->getValue('plugin_googleadsense_client');
+		$contentEnabled = $blogSettings->getValue('plugin_googleadsense_content_enabled');
+		$contentWidth = $blogSettings->getValue('plugin_googleadsense_content_width');
+		$contentHeight = $blogSettings->getValue('plugin_googleadsense_content_height');
+		$contentFormat = $blogSettings->getValue('plugin_googleadsense_content_format');
+		$contentType = $blogSettings->getValue('plugin_googleadsense_content_type');
+		$contentChannel = $blogSettings->getValue('plugin_googleadsense_content_channel');
+		$suggestionEnabled = $blogSettings->getValue('plugin_googleadsense_suggestion_enabled');
+		$suggestionWidth = $blogSettings->getValue('plugin_googleadsense_suggestion_width');
+		$suggestionHeight = $blogSettings->getValue('plugin_googleadsense_suggestion_height');
+		$suggestionFormat = $blogSettings->getValue('plugin_googleadsense_suggestion_format');
+		$suggestionChoice = $blogSettings->getValue('plugin_googleadsense_suggestion_choice');
+		$suggestionChannel = $blogSettings->getValue('plugin_googleadsense_suggestion_channel');
+		$searchEnabled = $blogSettings->getValue('plugin_googleadsense_search_enabled');
+
+		// create a view and export the settings to the template
+		$this->setValue('pluginEnabled', $pluginEnabled);
+		$this->setValue('client', $client);
+		$this->setValue('contentEnabled', $contentEnabled);
+		$this->setValue('contentWidth', $contentWidth);
+		$this->setValue('contentHeight', $contentHeight);
+		$this->setValue('contentFormat', $contentFormat);
+		$this->setValue('contentType', $contentType);
+		$this->setValue('contentChannel', $contentChannel);
+		$this->setValue('suggestionEnabled', $suggestionEnabled);
+		$this->setValue('suggestionWidth', $suggestionWidth);
+		$this->setValue('suggestionHeight', $suggestionHeight);
+		$this->setValue('suggestionFormat', $suggestionFormat);
+		$this->setValue('suggestionChoice', $suggestionChoice);
+		$this->setValue('suggestionChannel', $suggestionChannel);
+		$this->setValue('searchEnabled', $searchEnabled);
+
+		parent::render();
+	}
+}
+
+?>

Added: plugins/branches/lifetype-1.2/googleadsense/locale/locale_en_UK.php
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/locale/locale_en_UK.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/locale/locale_en_UK.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,44 @@
+<?php
+
+$messages['googleadsense'] = 'Google AdSense';
+$messages['GoogleAdsense'] = 'Google AdSense';
+$messages['googleadsense_plugin'] = 'Google AdSense Configuration';
+
+$messages['googleadsense_plugin_enabled'] = 'Enable Google AdSense Plugin.';
+
+$messages['label_client'] = 'Client code';
+$messages['googleadsense_client'] = 'Please fill in your Google AdSense client code.';
+$messages['googleadsense_error_client'] = 'You must fill in the client code.';
+
+$messages['label_content_enable'] = 'Enable Content';
+$messages['googleadsense_plugin_content_enabled'] = 'Enable Google AdSense Content.';
+$messages['label_content_width'] = 'Content Width (google_ad_width)';
+$messages['googleadsense_content_width'] = 'Google AdSense Content Width (google_ad_width).';
+$messages['label_content_height'] = 'Content Height (google_ad_height)';
+$messages['googleadsense_content_height'] = 'Google AdSense Content Height (google_ad_height).';
+$messages['label_content_format'] = 'Content Format (google_ad_format)';
+$messages['googleadsense_content_format'] = 'Google AdSense Content Format (google_ad_format).';
+$messages['label_content_type'] = 'Content Type (google_ad_type)';
+$messages['googleadsense_content_type'] = 'Google AdSense Content Type (google_ad_type).';
+$messages['label_content_channel'] = 'Content Channel (google_ad_channel)';
+$messages['googleadsense_content_channel'] = 'Google AdSense Content Channel (google_ad_channel).';
+
+$messages['label_suggestion_enable'] = 'Enable Suggestion';
+$messages['googleadsense_plugin_suggestion_enabled'] = 'Enable Google AdSense Suggestion.';
+$messages['label_suggestion_width'] = 'Suggestion Width (google_ad_width)';
+$messages['googleadsense_suggestion_width'] = 'Google AdSense Suggestion Width (google_ad_width).';
+$messages['label_suggestion_height'] = 'Suggestion Height (google_ad_height)';
+$messages['googleadsense_suggestion_height'] = 'Google AdSense Suggestion Height (google_ad_height).';
+$messages['label_suggestion_format'] = 'Suggestion Format (google_ad_format)';
+$messages['googleadsense_suggestion_format'] = 'Google AdSense Suggestion Format (google_ad_format).';
+$messages['label_suggestion_choice'] = 'Suggestion Choice (google_cpa_choice)';
+$messages['googleadsense_suggestion_choice'] = 'Google AdSense Suggestion Choice (google_cpa_choice).';
+$messages['label_suggestion_channel'] = 'Suggestion Channel (google_ad_channel)';
+$messages['googleadsense_suggestion_channel'] = 'Google AdSense Suggestion Channel (google_ad_channel).';
+
+$messages['label_search_enable'] = 'Enable Search';
+$messages['googleadsense_plugin_search_enabled'] = 'Enable Google AdSense Search.';
+
+$messages['googleadsense_settings_saved_ok'] = 'Google AdSense configuration update successed!';
+
+?>

Added: plugins/branches/lifetype-1.2/googleadsense/locale/locale_zh_TW.php
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/locale/locale_zh_TW.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/locale/locale_zh_TW.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,44 @@
+<?php
+
+$messages['googleadsense'] = 'Google AdSense';
+$messages['GoogleAdsense'] = 'Google AdSense';
+$messages['googleadsense_plugin'] = 'Google AdSense 設定';
+
+$messages['googleadsense_plugin_enabled'] = '啟用 Google AdSense 外掛程式.';
+
+$messages['label_client'] = 'Client 代碼';
+$messages['googleadsense_client'] = '請填入你的 Google AdSense client 代碼.';
+$messages['googleadsense_error_client'] = '你必須填入 client 代碼.';
+
+$messages['label_content_enable'] = '啟用 Content';
+$messages['googleadsense_plugin_content_enabled'] = '啟用 Google AdSense Content.';
+$messages['label_content_width'] = 'Content 寬度 (google_ad_width)';
+$messages['googleadsense_content_width'] = 'Google AdSense Content 寬度 (google_ad_width).';
+$messages['label_content_height'] = 'Content 高度 (google_ad_height)';
+$messages['googleadsense_content_height'] = 'Google AdSense Content 高度 (google_ad_height).';
+$messages['label_content_format'] = 'Content 格式 (google_ad_format)';
+$messages['googleadsense_content_format'] = 'Google AdSense Content 格式 (google_ad_format).';
+$messages['label_content_type'] = 'Content 種類 (google_ad_type)';
+$messages['googleadsense_content_type'] = 'Google AdSense Content 種類 (google_ad_type).';
+$messages['label_content_channel'] = 'Content 頻道 (google_ad_channel)';
+$messages['googleadsense_content_channel'] = 'Google AdSense Content 頻道 (google_ad_channel).';
+
+$messages['label_suggestion_enable'] = '啟用 Suggestion';
+$messages['googleadsense_plugin_suggestion_enabled'] = '啟用 Google AdSense Suggestion.';
+$messages['label_suggestion_width'] = 'Suggestion 寬度 (google_ad_width)';
+$messages['googleadsense_suggestion_width'] = 'Google AdSense Suggestion 寬度 (google_ad_width).';
+$messages['label_suggestion_height'] = 'Suggestion 高度 (google_ad_height)';
+$messages['googleadsense_suggestion_height'] = 'Google AdSense Suggestion 高度 (google_ad_height).';
+$messages['label_suggestion_format'] = 'Suggestion 格式 (google_ad_format)';
+$messages['googleadsense_suggestion_format'] = 'Google AdSense Suggestion 格式 (google_ad_format).';
+$messages['label_suggestion_choice'] = 'Suggestion Choice (google_cpa_choice)';
+$messages['googleadsense_suggestion_choice'] = 'Google AdSense Suggestion Choice (google_cpa_choice).';
+$messages['label_suggestion_channel'] = 'Suggestion 頻道 (google_ad_channel)';
+$messages['googleadsense_suggestion_channel'] = 'Google AdSense Suggestion 頻道 (google_ad_channel).';
+
+$messages['label_search_enable'] = '啟用 Search';
+$messages['googleadsense_plugin_search_enabled'] = '啟用 Google AdSense Search.';
+
+$messages['googleadsense_settings_saved_ok'] = 'Google AdSense 設定儲存成功!';
+
+?>

Added: plugins/branches/lifetype-1.2/googleadsense/plugingoogleadsense.class.php
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/plugingoogleadsense.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/plugingoogleadsense.class.php	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,147 @@
+<?php
+
+lt_include(PLOG_CLASS_PATH.'class/plugin/pluginbase.class.php');
+
+class PluginGoogleAdsense extends PluginBase
+{
+    var $pluginEnabled;
+    var $client;
+    var $contentEnabled;
+    var $contentWidth;
+    var $contentHeight;
+    var $contentFormat;
+    var $contentType;
+    var $contentChannel;
+    var $suggestionEnabled;
+    var $suggestionWidth;
+    var $suggestionHeight;
+    var $suggestionFormat;
+    var $suggestionChoice;
+    var $suggestionChannel;
+    var $searchEnabled;
+
+    function PluginGoogleAdsense($source = "")
+    {
+        $this->PluginBase($source);
+        $this->id = 'googleadsense';
+        $this->author = 'twu2';
+        $this->desc = "This plugin offers features to support google adsense.";
+        $this->version = '20070321';
+        $this->locales = array('en_UK', 'zh_TW');
+	if ($source == "admin")
+            $this->initAdmin();
+    }
+
+    function initAdmin()
+    {
+        $this->registerAdminAction('googleadsense', 'PluginGoogleAdsenseConfigAction');
+        $this->registerAdminAction('updategoogleadsense', 'PluginGoogleAdsenseUpdateConfigAction');
+        $menu =& Menu::getMenu();
+        $this->addMenuEntry('/menu/controlCenter/manageSettings', 'GoogleAdsense', '?op=googleadsense');
+    }
+
+    function register()
+	{
+        $blogSettings = $this->blogInfo->getSettings();
+        $this->pluginEnabled = $blogSettings->getValue('plugin_googleadsense_enabled');
+
+        $this->client = $blogSettings->getValue('plugin_googleadsense_client');
+
+        $this->contentEnabled = $blogSettings->getValue('plugin_googleadsense_content_enabled');
+        $this->contentWidth = $blogSettings->getValue('plugin_googleadsense_content_width');
+        $this->contentHeight = $blogSettings->getValue('plugin_googleadsense_content_height');
+        $this->contentFormat = $blogSettings->getValue('plugin_googleadsense_content_format');
+        $this->contentType = $blogSettings->getValue('plugin_googleadsense_content_type');
+        $this->contentChannel = $blogSettings->getValue('plugin_googleadsense_content_channel');
+
+        $this->suggestionEnabled = $blogSettings->getValue('plugin_googleadsense_suggestion_enabled');
+        $this->suggestionWidth = $blogSettings->getValue('plugin_googleadsense_suggestion_width');
+        $this->suggestionHeight = $blogSettings->getValue('plugin_googleadsense_suggestion_height');
+        $this->suggestionFormat = $blogSettings->getValue('plugin_googleadsense_suggestion_format');
+        $this->suggestionChoice = $blogSettings->getValue('plugin_googleadsense_suggestion_choice');
+        $this->suggestionChannel = $blogSettings->getValue('plugin_googleadsense_suggestion_channel');
+
+        $this->searchEnabled = $blogSettings->getValue('plugin_googleadsense_search_enabled');
+    }
+
+    function isEnabled()
+    {
+        return $this->pluginEnabled;
+    }
+
+    // return Client ID
+    function getClient()
+    {
+        return $this->client;
+    }
+
+    // content
+    function isContentEnabled()
+    {
+        return $this->contentEnabled;
+    }
+
+    function getContentWidth()
+    {
+        return $this->contentWidth;
+    }
+
+    function getContentHeight()
+    {
+        return $this->contentHeight;
+    }
+
+    function getContentFormat()
+    {
+        return $this->contentFormat;
+    }
+
+    function getContentType()
+    {
+        return $this->contentType;
+    }
+
+    function getContentChannel()
+    {
+        return $this->contentChannel;
+    }
+
+    // suggestion
+    function isSuggestionEnabled()
+    {
+        return $this->suggestionEnabled;
+    }
+
+    function getSuggestionWidth()
+    {
+        return $this->suggestionWidth;
+    }
+
+    function getSuggestionHeight()
+    {
+        return $this->suggestionHeight;
+    }
+
+    function getSuggestionFormat()
+    {
+        return $this->suggestionFormat;
+    }
+
+    function getSuggestionChoice()
+    {
+        return $this->suggestionChoice;
+    }
+
+    function getSuggestionChannel()
+    {
+        return $this->suggestionChannel;
+    }
+
+    // search
+    function isSearchEnabled()
+    {
+        return $this->searchEnabled;
+    }
+}
+
+?>

Added: plugins/branches/lifetype-1.2/googleadsense/readme-zh_TW.txt
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/readme-zh_TW.txt	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/readme-zh_TW.txt	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,55 @@
+Google AdSense Plugin v0.2
+
+說明
+這個外掛程式提供管理介面中設定 Google AdSense 的相關參數.
+
+安裝
+將下載的外掛程式 zip 檔解壓縮到 lifetype 的 plugins 目錄下, 然後在管理介面的外掛程式中心重新整理網頁,
+便可看到 googleadsense 外掛已經安裝了.
+
+設定
+1.進入管理介面 -> 個人網誌設定 -> Google AdSense
+2.啟用外掛程式,並且輸入你的 client 代碼, 以及相關的 content, suggestion 與 search 設定.
+
+修改樣版
+
+1. Content
+
+{if $googleadsense && $googleadsense->isContentEnabled()}
+<script type="text/javascript"><!--
+google_ad_client = "{$googleadsense->getClient()}";
+google_ad_width = {$googleadsense->getContentWidth()};
+google_ad_height = {$googleadsense->getContentHeight()};
+google_ad_format = "{$googleadsense->getContentFormat()}";
+google_ad_type = "{$googleadsense->getContentType()}";
+google_ad_channel = "{$googleadsense->getContentChannel()}";
+//--></script>
+<script type="text/javascript"
+  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+{/if}
+
+2. Suggestion
+
+{if $googleadsense && $googleadsense->isSuggestionEnabled()}
+<script type="text/javascript"><!--
+google_ad_client = "{$googleadsense->getClient()}";
+google_ad_width = {$googleadsense->getSuggestionWidth()};
+google_ad_height = {$googleadsense->getSuggestionHeight()};
+google_ad_format = "{$googleadsense->getSuggestionFormat()}";
+google_cpa_choice = "{$googleadsense->getSuggestionChoice()}";
+google_ad_channel = "{$googleadsense->getSuggestionChannel()}";
+//--></script>
+<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+{/if}
+
+3. Search
+{if $googleadsense && $googleadsense->isSearchEnabled()}
+<!--
+複製你由 Google 取得的 search 代碼, 只要要 client 的值修改如下列的部份:
+<input type="hidden" name="client" value="{$googleadsense->getClient()}"></input>
+-->
+{/if}
+
+當然,你必須先申請一個 Google AdSense 帳號才行。

Added: plugins/branches/lifetype-1.2/googleadsense/readme.txt
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/readme.txt	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/readme.txt	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,54 @@
+Google AdSense Plugin v0.2
+
+Description
+Offer setting for Google AdSense in LifeType.
+
+Installation
+Just unpack the pluing zip file to your lifetype plugins folder, then refresh browser in plugins center.
+You can find googleadsense plugin installed.
+
+Configuration
+1.Enter admin page, goto control center -> Google Adsense.
+2.Enable this plugin and fill in you client code, and detial setting for content, suggestion and search of Google AdSense.
+
+Tempalte
+1. Content
+
+{if $googleadsense && $googleadsense->isContentEnabled()}
+<script type="text/javascript"><!--
+google_ad_client = "{$googleadsense->getClient()}";
+google_ad_width = {$googleadsense->getContentWidth()};
+google_ad_height = {$googleadsense->getContentHeight()};
+google_ad_format = "{$googleadsense->getContentFormat()}";
+google_ad_type = "{$googleadsense->getContentType()}";
+google_ad_channel = "{$googleadsense->getContentChannel()}";
+//--></script>
+<script type="text/javascript"
+  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+{/if}
+
+2. Suggestion
+
+{if $googleadsense && $googleadsense->isSuggestionEnabled()}
+<script type="text/javascript"><!--
+google_ad_client = "{$googleadsense->getClient()}";
+google_ad_width = {$googleadsense->getSuggestionWidth()};
+google_ad_height = {$googleadsense->getSuggestionHeight()};
+google_ad_format = "{$googleadsense->getSuggestionFormat()}";
+google_cpa_choice = "{$googleadsense->getSuggestionChoice()}";
+google_ad_channel = "{$googleadsense->getSuggestionChannel()}";
+//--></script>
+<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+{/if}
+
+3. Search
+{if $googleadsense && $googleadsense->isSearchEnabled()}
+<!--
+copy and paste search code here, just change the client value like
+<input type="hidden" name="client" value="{$googleadsense->getClient()}"></input>
+-->
+{/if}
+
+Of course, you must get a google adsense account first. :P

Added: plugins/branches/lifetype-1.2/googleadsense/templates/googleadsense.template
===================================================================
--- plugins/branches/lifetype-1.2/googleadsense/templates/googleadsense.template	                        (rev 0)
+++ plugins/branches/lifetype-1.2/googleadsense/templates/googleadsense.template	2007-03-25 19:55:20 UTC (rev 5190)
@@ -0,0 +1,119 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=GoogleAdsense title=$locale->tr("googleadsense_plugin")}
+<form name="googleadsensePluginConfig" method="post">
+ <fieldset class="inputField">
+ <legend>{$locale->tr("label_configuration")}</legend>
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"}
+
+  <div class="field">
+   <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("googleadsense_plugin_enabled")}
+   </div>
+  </div>
+
+  <div class="field">
+   <label for="client">{$locale->tr("label_client")}</label>
+   <span class="required">*</span>
+   <div class="formHelp">{$locale->tr("googleadsense_client")}</div>
+   <input class="text" type="text" name="client" id="client" value="{$client}" width="30" />
+  </div>
+
+  <!-- content -->
+  <div class="field">
+   <label for="contentEnabled">{$locale->tr("label_content_enable")}</label>
+   <span class="required"></span>
+   <div class="formHelp">
+    <input class="checkbox" type="checkbox" name="contentEnabled" id="contentEnabled" {if $contentEnabled} checked="checked" {/if} value="1" />{$locale->tr("googleadsense_plugin_content_enabled")}
+   </div>
+  </div>
+
+  <div class="field">
+   <label for="contentWidth">{$locale->tr("label_content_width")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_content_width")}</div>
+   <input class="text" type="text" name="contentWidth" id="contentWidth" value="{$contentWidth}" width="5" />
+  </div>
+
+  <div class="field">
+   <label for="contentHeight">{$locale->tr("label_content_height")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_content_height")}</div>
+   <input class="text" type="text" name="contentHeight" id="contentHeight" value="{$contentHeight}" width="5" />
+  </div>
+
+  <div class="field">
+   <label for="contentFormat">{$locale->tr("label_content_format")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_content_format")}</div>
+   <input class="text" type="text" name="contentFormat" id="contentFormat" value="{$contentFormat}" width="30" />
+  </div>
+
+  <div class="field">
+   <label for="contentType">{$locale->tr("label_content_type")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_content_type")}</div>
+   <input class="text" type="text" name="contentType" id="contentType" value="{$contentType}" width="30" />
+  </div>
+
+  <div class="field">
+   <label for="contentChannel">{$locale->tr("label_content_channel")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_content_channel")}</div>
+   <input class="text" type="text" name="contentChannel" id="contentChannel" value="{$contentChannel}" width="30" />
+  </div>
+
+  <!-- suggestion -->
+  <div class="field">
+   <label for="suggestionEnabled">{$locale->tr("label_suggestion_enable")}</label>
+   <span class="required"></span>
+   <div class="formHelp">
+    <input class="checkbox" type="checkbox" name="suggestionEnabled" id="suggestionEnabled" {if $suggestionEnabled} checked="checked" {/if} value="1" />{$locale->tr("googleadsense_plugin_suggestion_enabled")}
+   </div>
+  </div>
+
+  <div class="field">
+   <label for="suggestionWidth">{$locale->tr("label_suggestion_width")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_suggestion_width")}</div>
+   <input class="text" type="text" name="suggestionWidth" id="suggestionWidth" value="{$suggestionWidth}" width="5" />
+  </div>
+
+  <div class="field">
+   <label for="suggestionHeight">{$locale->tr("label_suggestion_height")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_suggestion_height")}</div>
+   <input class="text" type="text" name="suggestionHeight" id="suggestionHeight" value="{$suggestionHeight}" width="5" />
+  </div>
+
+  <div class="field">
+   <label for="suggestionFormat">{$locale->tr("label_suggestion_format")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_suggestion_format")}</div>
+   <input class="text" type="text" name="suggestionFormat" id="suggestionFormat" value="{$suggestionFormat}" width="30" />
+  </div>
+
+  <div class="field">
+   <label for="suggestionChoice">{$locale->tr("label_suggestion_choice")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_suggestion_choice")}</div>
+   <input class="text" type="text" name="suggestionChoice" id="suggestionChoice" value="{$suggestionChoice}" width="30" />
+  </div>
+
+  <div class="field">
+   <label for="suggestionChannel">{$locale->tr("label_suggestion_channel")}</label>
+   <div class="formHelp">{$locale->tr("googleadsense_suggestion_channel")}</div>
+   <input class="text" type="text" name="suggestionChannel" id="suggestionChannel" value="{$suggestionChannel}" width="30" />
+  </div>
+
+  <!-- search -->
+  <div class="field">
+   <label for="searchEnabled">{$locale->tr("label_search_enable")}</label>
+   <span class="required"></span>
+   <div class="formHelp">
+    <input class="checkbox" type="checkbox" name="searchEnabled" id="searchEnabled" {if $searchEnabled} checked="checked" {/if} value="1" />{$locale->tr("googleadsense_plugin_search_enabled")}
+   </div>
+  </div>
+ </div>
+
+ <div class="buttons">
+  <input type="hidden" name="op" value="updategoogleadsense" />
+  <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"}



More information about the pLog-svn mailing list