projects
/
diogenes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start move to dbconfig-common based idb configuration
[diogenes.git]
/
plugins
/
LinksMagic.php
diff --git
a/plugins/LinksMagic.php
b/plugins/LinksMagic.php
index
6c1f83c
..
7301c0f
100644
(file)
--- a/
plugins/LinksMagic.php
+++ b/
plugins/LinksMagic.php
@@
-31,17
+31,10
@@
class LinksMagic extends Diogenes_Plugin_Filter
/** Plugin description */
var $description = "This plugin allows you to mark external and secure (HTTPS) links in your pages.";
/** Plugin description */
var $description = "This plugin allows you to mark external and secure (HTTPS) links in your pages.";
-
-
- /** Constructor.
- */
- function LinksMagic()
- {
- $this->declareParam('main', 1);
- $this->declareParam('sidebar', 1);
- }
-
+ /** Plugin parameters */
+ var $params = array('main' => 1, 'sidebar' => 1);
+
/** Apply filtering to the input and return an output.
*
* @param $input
/** Apply filtering to the input and return an output.
*
* @param $input
@@
-50,12
+43,12
@@
class LinksMagic extends Diogenes_Plugin_Filter
{
global $page;
{
global $page;
- if ($this->
getParamValue('sidebar')
)
+ if ($this->
params['sidebar']
)
{
array_unshift($page->head, '<link rel="stylesheet" href="'.$page->url('links-sidebar.css').'" type="text/css" />');
}
{
array_unshift($page->head, '<link rel="stylesheet" href="'.$page->url('links-sidebar.css').'" type="text/css" />');
}
- if ($this->
getParamValue('main')
)
+ if ($this->
params['main']
)
{
array_unshift($page->head, '<link rel="stylesheet" href="'.$page->url('links-main.css').'" type="text/css" />');
}
{
array_unshift($page->head, '<link rel="stylesheet" href="'.$page->url('links-main.css').'" type="text/css" />');
}