[pLog-svn] r5517 - in plugins/branches/lifetype-1.2: . recommended unported
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sun Jun 10 16:40:02 EDT 2007
Author: jondaley
Date: 2007-06-10 16:40:01 -0400 (Sun, 10 Jun 2007)
New Revision: 5517
Added:
plugins/branches/lifetype-1.2/recommended/
Removed:
plugins/branches/lifetype-1.2/unported/recommended/
Modified:
plugins/branches/lifetype-1.2/recommended/pluginrecommended.class.php
Log:
ported recommended to 1.2
Copied: plugins/branches/lifetype-1.2/recommended (from rev 5516, plugins/branches/lifetype-1.2/unported/recommended)
Modified: plugins/branches/lifetype-1.2/recommended/pluginrecommended.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/recommended/pluginrecommended.class.php 2007-06-08 20:07:06 UTC (rev 5516)
+++ plugins/branches/lifetype-1.2/recommended/pluginrecommended.class.php 2007-06-10 20:40:01 UTC (rev 5517)
@@ -13,21 +13,22 @@
var $pluginEnabled;
var $recommendedPosts;
- function PluginRecommended(){
- $this->PluginBase();
+ function PluginRecommended($source=""){
+ $this->PluginBase($source);
$this->id = "recommended";
$this->author = "Jon Daley";
- $this->desc = "This plugin offers a list of recommended articles, selected by the blog owner";
+ $this->desc = "This plugin offers a list of recommended articles, ".
+ "selected by the blog owner";
$this->prefix = Db::getPrefix();
-
+ $this->version = "20070710";
$this->locales = Array( "en_UK" );
$this->recommendedPosts = Array();
-
- $this->init();
+ if($source == "admin")
+ $this->initAdmin();
}
- function init(){
+ function initAdmin(){
$this->registerAdminAction( "recommended", "PluginRecommendedConfigAction" );
$this->registerAdminAction( "updateRecommendedConfig",
"PluginRecommendedUpdateConfigAction" );
@@ -85,5 +86,10 @@
return $recommended;
}
+
+ function getPluginConfigurationKeys(){
+ return(Array(
+ Array("name" => "plugin_recommended_enabled", "type" => "boolean")));
+ }
}
?>
\ No newline at end of file
More information about the pLog-svn
mailing list