[pLog-svn] r4818 - in plugins/branches/lifetype-1.2: . blogtimes unported

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Thu Feb 22 05:45:29 EST 2007


Author: pwestbro
Date: 2007-02-22 05:45:29 -0500 (Thu, 22 Feb 2007)
New Revision: 4818

Added:
   plugins/branches/lifetype-1.2/blogtimes/
Removed:
   plugins/branches/lifetype-1.2/unported/blogtimes/
Modified:
   plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php
Log:
Ported the blogtimes plugin


Copied: plugins/branches/lifetype-1.2/blogtimes (from rev 4812, plugins/branches/lifetype-1.2/unported/blogtimes)

Modified: plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/blogtimes/pluginblogtimes.class.php	2007-02-21 23:12:54 UTC (rev 4812)
+++ plugins/branches/lifetype-1.2/blogtimes/pluginblogtimes.class.php	2007-02-22 10:45:29 UTC (rev 4818)
@@ -27,9 +27,9 @@
         var $lastDays;
         var $cacheFolder;
     
-        function PluginBlogTimes()
+        function PluginBlogTimes( $source = "" )
         {
-            $this->PluginBase();
+            $this->PluginBase($source);
   
             $this->id = "blogtimes";
             $this->author = "Mark Wu";
@@ -43,14 +43,23 @@
             
             $this->locales = Array( "en_UK" , "zh_TW" , "zh_CN" );
             
-            $this->init();            
+			if( $source == "admin" )
+				$this->initAdmin();
+			else
+				$this->init();
         }
 
         function init()
         {
             // register the events we want
             $this->registerNotification( EVENT_POST_POST_ADD );
+        }
         
+        
+        function initAdmin()
+        {
+            include_once( PLOG_CLASS_PATH."class/template/menu/menu.class.php" );
+
             $this->registerAdminAction( "blogtimes", "PluginBlogTimesConfigAction" );
             $this->registerAdminAction( "updateBlogTimesConfig", "PluginBlogTimesUpdateConfigAction" );
             



More information about the pLog-svn mailing list