summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/GNUsocialTemplatePlugin.php31
-rw-r--r--plugins/TemplatePlugin.php27
2 files changed, 30 insertions, 28 deletions
diff --git a/plugins/GNUsocialTemplatePlugin.php b/plugins/GNUsocialTemplatePlugin.php
index 7db2f73a8..1287727aa 100644
--- a/plugins/GNUsocialTemplatePlugin.php
+++ b/plugins/GNUsocialTemplatePlugin.php
@@ -21,9 +21,9 @@ if (!defined('STATUSNET')) {
exit(1);
}
-define('TEMPLATEPLUGIN_VERSION', '0.1');
+define('GNUSOCIAL_TEMPLATEPLUGIN_VERSION', '0.1.1');
-class TemplatePlugin extends Plugin {
+class GNUsocialTemplatePlugin extends Plugin {
var $blocks = array();
@@ -253,6 +253,17 @@ class TemplatePlugin extends Plugin {
$act->xw->setIndent(true);
}
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Template',
+ 'version' => GNUSOCIAL_TEMPLATEPLUGIN_VERSION,
+ 'author' => 'Brian Hendrickson',
+ 'homepage' => 'http://status.net/wiki/Plugin:Template',
+ 'rawdescription' =>
+ _m('Use an HTML template for Web output.'));
+ return true;
+ }
+
}
/**
@@ -269,7 +280,7 @@ class TemplatePlugin extends Plugin {
*
*/
-class TemplateAction extends Action
+class GNUsocialTemplateAction extends Action
{
function prepare($args) {
@@ -324,16 +335,6 @@ class TemplateAction extends Action
}
}
- function onPluginVersion(&$versions)
- {
- $versions[] = array('name' => 'Template',
- 'version' => TEMPLATEPLUGIN_VERSION,
- 'author' => 'Brian Hendrickson',
- 'homepage' => 'http://status.net/wiki/Plugin:Template',
- 'rawdescription' =>
- _m('Use an HTML template for Web output.'));
- return true;
- }
}
@@ -350,10 +351,10 @@ class TemplateAction extends Action
* @link http://megapump.com/
*
*/
-
+if (!function_exists('section')) {
function section($tagname) {
global $tags;
if (isset($tags[$tagname]))
return $tags[$tagname];
}
-
+}
diff --git a/plugins/TemplatePlugin.php b/plugins/TemplatePlugin.php
index 80625c5b7..5595b3c01 100644
--- a/plugins/TemplatePlugin.php
+++ b/plugins/TemplatePlugin.php
@@ -19,7 +19,7 @@ if (!defined('STATUSNET')) {
exit(1);
}
-define('TEMPLATEPLUGIN_VERSION', '0.1');
+define('TEMPLATEPLUGIN_VERSION', '0.1.1');
class TemplatePlugin extends Plugin {
@@ -251,6 +251,17 @@ class TemplatePlugin extends Plugin {
$act->xw->setIndent(true);
}
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Template',
+ 'version' => TEMPLATEPLUGIN_VERSION,
+ 'author' => 'Brian Hendrickson',
+ 'homepage' => 'http://status.net/wiki/Plugin:Template',
+ 'rawdescription' =>
+ _m('Use an HTML template for Web output.'));
+ return true;
+ }
+
}
/**
@@ -322,16 +333,6 @@ class TemplateAction extends Action
}
}
- function onPluginVersion(&$versions)
- {
- $versions[] = array('name' => 'Template',
- 'version' => TEMPLATEPLUGIN_VERSION,
- 'author' => 'Brian Hendrickson',
- 'homepage' => 'http://status.net/wiki/Plugin:Template',
- 'rawdescription' =>
- _m('Use an HTML template for Web output.'));
- return true;
- }
}
@@ -348,10 +349,10 @@ class TemplateAction extends Action
* @link http://megapump.com/
*
*/
-
+if (!function_exists('section')) {
function section($tagname) {
global $tags;
if (isset($tags[$tagname]))
return $tags[$tagname];
}
-
+}