[pLog-svn] r791 - in plugins/trunk: . articlereferers articlereferers/class articlereferers/class/action articlereferers/locale articlereferers/templates dropcase dropcase/class dropcase/class/action dropcase/locale dropcase/templates

mark at devel.plogworld.net mark at devel.plogworld.net
Sat Jan 22 13:04:45 GMT 2005


Author: mark
Date: 2005-01-22 13:04:44 +0000 (Sat, 22 Jan 2005)
New Revision: 791

Added:
   plugins/trunk/articlereferers/
   plugins/trunk/articlereferers/class/
   plugins/trunk/articlereferers/class/action/
   plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php
   plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
   plugins/trunk/articlereferers/locale/
   plugins/trunk/articlereferers/locale/locale_en_UK.php
   plugins/trunk/articlereferers/locale/locale_zh_TW.php
   plugins/trunk/articlereferers/pluginarticlereferers.class.php
   plugins/trunk/articlereferers/templates/
   plugins/trunk/articlereferers/templates/articlereferers.template
   plugins/trunk/dropcase/
   plugins/trunk/dropcase/class/
   plugins/trunk/dropcase/class/action/
   plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php
   plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
   plugins/trunk/dropcase/locale/
   plugins/trunk/dropcase/locale/locale_en_UK.php
   plugins/trunk/dropcase/locale/locale_zh_TW.php
   plugins/trunk/dropcase/plugindropcase.class.php
   plugins/trunk/dropcase/templates/
   plugins/trunk/dropcase/templates/dropcase.template
Log:
Plugins for pLog 1.0

Added: plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php
===================================================================
--- plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/articlereferers/class/action/pluginarticlereferersconfigaction.class.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,38 @@
+<?php
+
+	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );	
+
+	/**
+	 * shows a form with the current configuration
+	 */
+	class PluginArticleReferersConfigAction extends AdminAction
+	{
+		
+		function PluginArticleReferersConfigAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+		
+		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;
+			
+			// 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;
+		}
+	}
+?>
\ No newline at end of file

Added: plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
===================================================================
--- plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,66 @@
+<?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" );
+		
+	/**
+	 * updates the plugin configuration
+	 */
+	class PluginArticleReferersUpdateConfigAction extends AdminAction
+	{
+		var $_pluginEnabled;
+		var $_sortByField;
+		var $_maxComments;
+		
+		function PluginArticleReferersUpdateConfigAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+		
+		function validate()
+		{
+            $this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
+            $this->_pluginEnabled = ($this->_pluginEnabled != "" );	
+            $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();  
+                return false;
+            }        	                
+			return true;
+		}
+		        
+		function perform()
+		{
+            // and check which smiley set we should be using, or if none, then the default one
+			$blogSettings = $this->_blogInfo->getSettings();
+            $blogSettings->setValue( "plugin_articlereferers_enabled", $this->_pluginEnabled );
+            $blogSettings->setValue( "plugin_articlereferers_sortbyfield", $this->_sortByField );
+            $blogSettings->setValue( "plugin_articlereferers_maxreferers", $this->_maxReferers );
+            $this->_blogInfo->setSettings( $blogSettings ); 
+		
+			// 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->setCommonData();
+
+                return false;
+            }
+			
+			// if everything went ok...
+            $this->_blogInfo->setSettings( $blogSettings );
+            $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->setCommonData();
+            
+            return true;		
+		}
+	}
+?>
\ No newline at end of file

Added: plugins/trunk/articlereferers/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/articlereferers/locale/locale_en_UK.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/articlereferers/locale/locale_en_UK.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,11 @@
+<?php
+$messages["articlereferers_maxreferers"] = "Maximum Showed Referers (0 Means Show All)";
+$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!";
+?>
\ No newline at end of file

Added: plugins/trunk/articlereferers/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/articlereferers/locale/locale_zh_TW.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/articlereferers/locale/locale_zh_TW.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,11 @@
+<?php
+$messages["articlereferers_maxreferers"] = "逆向連結顯示數量(0 為顯示全部)";
+$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!";
+?>
\ No newline at end of file

Added: plugins/trunk/articlereferers/pluginarticlereferers.class.php
===================================================================
--- plugins/trunk/articlereferers/pluginarticlereferers.class.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/articlereferers/pluginarticlereferers.class.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,98 @@
+<?php
+
+    include_once( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
+    include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
+    include_once( PLOG_CLASS_PATH."class/dao/referers.class.php" );
+    
+    /**
+     * Plugin that offers features to return a recent article referers from the current blog
+     */
+    class PluginArticleReferers extends PluginBase
+    {
+        var $prefix;
+        var $pluginEnabled;
+        var $sortByField;
+        var $maxReferers;
+           
+        function PluginArticleReferers()
+        {
+            $this->PluginBase();
+  
+            $this->id = "articlereferers";
+            $this->author = "Mark Wu";
+            $this->desc = "This plugin offers you to get the referers of the specific article. Usage as follow:<br /><br />Add the following code to postandcomments.template<br /><br /><strong>&lt;p&gt;<br />&lt;h3&gt;{\$locale-&gt;tr(&quot;referers&quot;)}&lt;/h3&gt;<br />{assign var=postid value=\$post-&gt;getId()}<br />{assign var=referers value=\$articlereferers-&gt;getArticleReferers(\$postid)}<br />{foreach from=\$referers item=referer}<br />&lt;li&gt;&lt;a href=&quot;{\$referer-&gt;getUrl()}&quot;&gt;{\$referer-&gt;getUrl()}&lt;/a&gt; ({\$referer-&gt;getCount()})&lt;/li&gt;<br />{/foreach}<br />&lt;/p&gt;</strong><br /><br />";
+  
+            $config =& Config::getConfig();
+            $this->prefix = $config->getValue('db_prefix');
+            
+            $this->locales = Array( "en_UK" , "zh_TW" );
+            
+            $this->init();            
+        }
+
+		function init()
+		{
+            $this->registerAdminAction( "articlereferers", "PluginArticleReferersConfigAction" );
+			$this->registerAdminAction( "updateArticleReferersConfig", "PluginArticleReferersUpdateConfigAction" );
+			
+			$menu =& Menu::getMenu();
+			if( !$menu->entryExists( "/menu/controlCenter/manageRecentActivities" ))						
+				$this->addMenuEntry( "/menu/controlCenter", "manageRecentActivities", "", "", true, false );			
+            $this->addMenuEntry( "/menu/controlCenter/manageRecentActivities", "ArticleReferers", "?op=articlereferers", "" );            
+		}
+
+		function register()
+		{
+		    $blogSettings = $this->blogInfo->getSettings();
+		    $this->pluginEnabled = $blogSettings->getValue( "plugin_articlereferers_enabled" );
+		    $this->sortByField = $blogSettings->getValue( "plugin_articlereferers_sortbyfield" );
+	        $this->maxReferers = $blogSettings->getValue( "plugin_articlereferers_maxreferers" );
+	    }
+	    
+	    function isEnabled()
+	    {
+	        return $this->pluginEnabled;
+	    }
+ 
+        /**
+         * Returns the referers object of specific article
+         */
+        function getArticleReferers( $articleId, $maxReferers = 0, $sortByField = 1)
+        {
+            $referers = new Referers();
+            $blogId = $this->blogInfo->getId();
+
+         	$query = "SELECT * FROM ".$this->prefix."referers WHERE article_id = ".$articleId;
+         	
+         	if( $this->sortByField != "" && $this->sortByField != $sortByField )
+         	    $sortByField =  $this->sortByField;
+         	    
+            if ( $sortByField == 1 )
+            {
+                $query .= " ORDER BY hits DESC";
+            } elseif ( $sortByField == 2 ) {
+                $query .= " ORDER BY last_date DESC";
+            } else {
+                return false;
+            }
+
+            if( $maxReferers > 0 && $this->maxReferers > 0) 
+            {
+                $query .= " LIMIT ".$maxReferers.";"; 
+            } else {
+                $query .= " LIMIT ".$this->maxReferers.";";
+            }
+            
+            $result = $referers->_db->Execute( $query );
+            if( !$result )
+            	return false;
+           
+            $articlereferers = Array();
+            while( $row = $result->FetchRow()) {
+            	array_push( $articlereferers, $referers->_fillRefererInformation( $row ));
+            }
+
+            return $articlereferers;
+        }
+    }
+?>
\ No newline at end of file

Added: plugins/trunk/articlereferers/templates/articlereferers.template
===================================================================
--- plugins/trunk/articlereferers/templates/articlereferers.template	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/articlereferers/templates/articlereferers.template	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,21 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=ArticleReferers title=$locale->tr("articlereferers_plugin")}
+<form name="articlereferersPluginConfig" method="post">
+ {$locale->tr("articlereferers_plugin_enabled")}
+ <input type="checkbox" name="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
+ <fieldset>
+ <legend>{$locale->tr("articlereferers_plugin_configuration")}</legend> 
+ {$locale->tr("articlereferers_sortbyfield")}
+ <select name="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/>
+ {$locale->tr("articlereferers_maxreferers")}
+ <input type="text" name="maxReferers" value="{$maxReferers}" width="10" />
+ </fieldset>
+ <br/>
+ <input type="hidden" name="op" value="updateArticleReferersConfig" />
+ <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+</form>
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Added: plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php
===================================================================
--- plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/dropcase/class/action/plugindropcaseconfigaction.class.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,32 @@
+<?php
+
+	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );	
+
+	/**
+	 * shows a form with the current configuration
+	 */
+	class PluginDropCaseConfigAction extends AdminAction
+	{
+		
+		function PluginDropCaseConfigAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+		
+		function perform()
+		{
+			// 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->_view = new AdminPluginTemplatedView( $this->_blogInfo, "dropcase", "dropcase", true );
+			$this->_view->setValue( "pluginEnabled", $pluginEnabled );
+			
+			$this->setCommonData();
+			
+			return true;
+		}
+	}
+?>
\ No newline at end of file

Added: plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
===================================================================
--- plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,56 @@
+<?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" );
+		
+	/**
+	 * updates the plugin configuration
+	 */
+	class PluginDropCaseUpdateConfigAction extends AdminAction
+	{
+		var $_pluginEnabled;
+		
+		function PluginDropCaseUpdateConfigAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+		}
+		
+		function validate()
+		{
+            $this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
+            $this->_pluginEnabled = ($this->_pluginEnabled != "" );			
+			
+			return true;
+		}
+		        
+		function perform()
+		{
+            // and check which smiley set we should be using, or if none, then the default one
+			$blogSettings = $this->_blogInfo->getSettings();
+            $blogSettings->setValue( "plugin_dropcase_enabled", $this->_pluginEnabled );
+            $this->_blogInfo->setSettings( $blogSettings ); 
+		
+			// 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->setCommonData();
+
+                return false;
+            }
+			
+			// if everything went ok...
+            $this->_blogInfo->setSettings( $blogSettings );
+            $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->setCommonData();
+            
+            return true;		
+		}
+	}
+?>
\ No newline at end of file

Added: plugins/trunk/dropcase/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/dropcase/locale/locale_en_UK.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/dropcase/locale/locale_en_UK.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,6 @@
+<?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!";
+?>
\ No newline at end of file

Added: plugins/trunk/dropcase/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/dropcase/locale/locale_zh_TW.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/dropcase/locale/locale_zh_TW.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,6 @@
+<?php
+$messages["dropcase_plugin_configuration"] = "外掛程式設定";
+$messages["dropcase_plugin_enabled"] = "啟動外掛程式";
+$messages["dropcase_plugin"] = "首字下沈外掛程式";
+$messages["dropcase_settings_saved_ok"] = "首字下沈設定儲存成功。";
+?>
\ No newline at end of file

Added: plugins/trunk/dropcase/plugindropcase.class.php
===================================================================
--- plugins/trunk/dropcase/plugindropcase.class.php	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/dropcase/plugindropcase.class.php	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,101 @@
+<?php
+
+    include_once( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
+    include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
+	include_once( PLOG_CLASS_PATH."class/plugin/eventpluginbase.class.php" );    
+    
+    /**
+     * Plugin that offers features to make the first character of article as lower case
+     */
+    class PluginDropCase extends PluginBase
+    {
+    
+        function PluginDropCase()
+        {
+			$this->PluginBase();
+
+			$this->id      = "dropcase";
+            $this->author = "Mark Wu";
+            $this->desc = "If you want to use the drop-case plugin, edit the file <b>post.template</b> from your current template set and modify the call to <b>{\$post-&gt;getText()}</b> to:<br /><br /><b>  {assign name=postText value=\$post-&gt;getText()}<br />  {\$dropcase-&gt;dropcase(\$postText)}</b></b>";
+
+			$this->locales = Array( "en_UK" , "zh_TW" );
+
+			$this->init();            
+        }
+
+		function init()
+		{
+            $this->registerAdminAction( "dropcase", "PluginDropCaseConfigAction" );
+			$this->registerAdminAction( "updateDropCaseConfig", "PluginDropCaseUpdateConfigAction" );
+			
+			$menu =& Menu::getMenu();
+			if( !$menu->entryExists( "/menu/controlCenter/manageAppearanceActivities" ))						
+				$this->addMenuEntry( "/menu/controlCenter", "manageAppearanceActivities", "", "", true, false );			
+            $this->addMenuEntry( "/menu/controlCenter/manageAppearanceActivities", "DropCase", "?op=dropcase", "" );            
+
+			$this->registerNotification( EVENT_POST_LOADED );
+			$this->registerNotification( EVENT_POSTS_LOADED );
+		}
+
+		function process($eventType, $params)
+		{
+            if ( $eventType != EVENT_POST_LOADED && $eventType != EVENT_POSTS_LOADED)
+                return true;
+                
+		    $blogSettings = $this->blogInfo->getSettings();
+		    $pluginEnabled = $blogSettings->getValue( "plugin_dropcase_enabled" );
+            if ( $pluginEnabled != 1 )
+                return true;
+
+			if( $eventType == EVENT_POST_LOADED ) {
+				$post = $params[ "article" ];
+				$post = $this->dropcase_process($post);
+				$params["article"] = $post;
+			}
+			elseif( $eventType == EVENT_POSTS_LOADED ) {
+				$posts = $params[ "articles" ];
+				$result = Array();
+				foreach( $posts as $post ) {
+					$post = $this->dropcase_process($post);
+					array_push( $result, $post );
+				}
+				$params[ "articles" ] = $result;
+			}
+
+			return true;
+		}
+ 
+        /**
+         * Make the first character of article as lower case
+         */
+
+        function dropcase( $text )
+        {
+            $newText = explode("</p>", $text); 
+
+            // Piece the output back together. 
+            // $bufText = "<div class=\"drop-case\">".$newText[0]."</div>"; 
+
+            $bufText = str_replace( "<p>", "<p id=\"drop-case\">", $newText[0] );
+            $bufText .= "</p>";
+            
+            for($i = 1; $i < count($newText); $i ++){ 
+                $bufText .= $newText[$i];
+                $bufText .= "</p>";
+            }
+
+            // Return the updated markup 
+            return $bufText;
+        }
+
+		function dropcase_process( $post )
+		{
+			// modify the text...
+			$postIntroText = $post->getIntroText();
+			$postIntroText = $this->dropcase( $postIntroText );
+			$postExtendedText = $post->getExtendedText();
+			$post->setText( $postIntroText.POST_EXTENDED_TEXT_MODIFIER.$postExtendedText );
+			return $post;
+		}
+    }
+?>
\ No newline at end of file

Added: plugins/trunk/dropcase/templates/dropcase.template
===================================================================
--- plugins/trunk/dropcase/templates/dropcase.template	2005-01-21 22:42:39 UTC (rev 790)
+++ plugins/trunk/dropcase/templates/dropcase.template	2005-01-22 13:04:44 UTC (rev 791)
@@ -0,0 +1,11 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=NoFollow title=$locale->tr("dropcase_plugin")}
+<form name="dropcasePluginConfig" method="post">
+ {$locale->tr("dropcase_plugin_enabled")}
+ <input type="checkbox" name="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" /><br/>
+ <br/>
+ <input type="hidden" name="op" value="updateDropCaseConfig" />
+ <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+</form>
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file




More information about the pLog-svn mailing list