[pLog-svn] r801 - in plugins/trunk/dropcase: . class/action templates

mark at devel.plogworld.net mark at devel.plogworld.net
Sun Jan 23 16:44:26 GMT 2005


Author: mark
Date: 2005-01-23 16:44:26 +0000 (Sun, 23 Jan 2005)
New Revision: 801

Added:
   plugins/trunk/dropcase/readme.txt
Modified:
   plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
   plugins/trunk/dropcase/plugindropcase.class.php
   plugins/trunk/dropcase/templates/dropcase.template
Log:
Move the description to readme.txt to reduce the pluign loading time.

Modified: plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
===================================================================
--- plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-01-23 16:43:52 UTC (rev 800)
+++ plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-01-23 16:44:26 UTC (rev 801)
@@ -26,7 +26,7 @@
 		        
 		function perform()
 		{
-            // and check which smiley set we should be using, or if none, then the default one
+            // // update the plugin configurations to blog setting
 			$blogSettings = $this->_blogInfo->getSettings();
             $blogSettings->setValue( "plugin_dropcase_enabled", $this->_pluginEnabled );
             $this->_blogInfo->setSettings( $blogSettings ); 

Modified: plugins/trunk/dropcase/plugindropcase.class.php
===================================================================
--- plugins/trunk/dropcase/plugindropcase.class.php	2005-01-23 16:43:52 UTC (rev 800)
+++ plugins/trunk/dropcase/plugindropcase.class.php	2005-01-23 16:44:26 UTC (rev 801)
@@ -14,9 +14,9 @@
         {
 			$this->PluginBase();
 
-			$this->id      = "dropcase";
+			$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->desc = "Drop case letter (a huge letter) for the first letter of every post.";
 
 			$this->locales = Array( "en_UK" , "zh_TW" );
 
@@ -29,9 +29,9 @@
 			$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", "" );            
+			if( !$menu->entryExists( "/menu/controlCenter/manageAppearancePlugins" ))						
+				$this->addMenuEntry( "/menu/controlCenter", "manageAppearancePlugins", "", "", true, false );			
+            $this->addMenuEntry( "/menu/controlCenter/manageAppearancePlugins", "DropCase", "?op=dropcase", "" );            
 
 			$this->registerNotification( EVENT_POST_LOADED );
 			$this->registerNotification( EVENT_POSTS_LOADED );

Added: plugins/trunk/dropcase/readme.txt
===================================================================
--- plugins/trunk/dropcase/readme.txt	2005-01-23 16:43:52 UTC (rev 800)
+++ plugins/trunk/dropcase/readme.txt	2005-01-23 16:44:26 UTC (rev 801)
@@ -0,0 +1,6 @@
+Plugin: Drop Case
+Author: Mark Wu
+Release Date: 2005/01/23
+Version: 1.0
+
+Drop case letter (a huge letter) for the first letter of every post. 
\ No newline at end of file

Modified: plugins/trunk/dropcase/templates/dropcase.template
===================================================================
--- plugins/trunk/dropcase/templates/dropcase.template	2005-01-23 16:43:52 UTC (rev 800)
+++ plugins/trunk/dropcase/templates/dropcase.template	2005-01-23 16:44:26 UTC (rev 801)
@@ -1,5 +1,5 @@
 {include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=NoFollow title=$locale->tr("dropcase_plugin")}
+{include file="$admintemplatepath/navigation.template" showOpt=DropCase 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/>




More information about the pLog-svn mailing list