[pLog-svn] r4516 - in plugins/trunk/unported/nofollow: . templates
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Jan 5 13:22:39 GMT 2007
Author: oscar
Date: 2007-01-05 13:22:38 +0000 (Fri, 05 Jan 2007)
New Revision: 4516
Modified:
plugins/trunk/unported/nofollow/pluginnofollow.class.php
plugins/trunk/unported/nofollow/templates/nofollow.template
Log:
another ported plugin
Modified: plugins/trunk/unported/nofollow/pluginnofollow.class.php
===================================================================
--- plugins/trunk/unported/nofollow/pluginnofollow.class.php 2007-01-05 13:08:02 UTC (rev 4515)
+++ plugins/trunk/unported/nofollow/pluginnofollow.class.php 2007-01-05 13:22:38 UTC (rev 4516)
@@ -20,12 +20,13 @@
function init()
{
+ lt_include( PLOG_CLASS_PATH."class/template/menu/menu.class.php" );
$this->registerAdminAction( "nofollow", "PluginNoFollowConfigAction" );
$this->registerAdminAction( "updateNoFollowConfig", "PluginNoFollowUpdateConfigAction" );
$menu =& Menu::getMenu();
if( !$menu->entryExists( "/menu/controlCenter/manageAntiSpamPlugins" ))
- $this->addMenuEntry( "/menu/controlCenter", "manageAntiSpamPlugins", "", "", true, false );
+ $this->addMenuEntry( "/menu/controlCenter", "manageAntiSpamPlugins", "", "" );
$this->addMenuEntry( "/menu/controlCenter/manageAntiSpamPlugins", "NoFollow", "?op=nofollow", "" );
$this->registerNotification( EVENT_PRE_COMMENT_ADD );
@@ -95,5 +96,14 @@
return '<a ' . join(' ', $attr) . ' ' . $rel . '>';
}
+
+ function getPluginConfigurationKeys()
+ {
+ lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
+
+ return( Array(
+ Array( "name" => "plugin_nofollow_enabled", "type" => "boolean" )
+ ));
+ }
}
?>
\ No newline at end of file
Modified: plugins/trunk/unported/nofollow/templates/nofollow.template
===================================================================
--- plugins/trunk/unported/nofollow/templates/nofollow.template 2007-01-05 13:08:02 UTC (rev 4515)
+++ plugins/trunk/unported/nofollow/templates/nofollow.template 2007-01-05 13:22:38 UTC (rev 4516)
@@ -8,7 +8,7 @@
<div class="field">
<label for="pluginEnabled">{$locale->tr("label_enable")}</label>
<div class="formHelp">
- <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("nofollow_plugin_enabled")}
+ <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" {user_cannot_override key=plugin_nofollow_enabled}disabled="disabled"{/user_cannot_override}/>{$locale->tr("nofollow_plugin_enabled")}
</div>
</div>
More information about the pLog-svn
mailing list