From bf123d146185ffa686396713a3d3067629047ee5 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 17 Dec 2009 15:28:50 -0500 Subject: Plugin that outputs 'powered by StatusNet' after site name --- .../PoweredByStatusNetPlugin.php | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php (limited to 'plugins/PoweredByStatusNet') diff --git a/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php b/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php new file mode 100644 index 000000000..460550518 --- /dev/null +++ b/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php @@ -0,0 +1,45 @@ +. + * + * @category Action + * @package StatusNet + * @author Sarven Capadisli + * @copyright 2008 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://status.net/ + */ + +if (!defined('STATUSNET') && !defined('LACONICA')) { + exit(1); +} + +class PoweredByStatusNetPlugin extends Plugin +{ + function onEndAddressData($action) + { + $action->elementStart('span', 'poweredby'); + $action->text(_('powered by')); + $action->element('a', array('href' => 'http://status.net/'), 'StatusNet'); + $action->elementEnd('span'); + + return true; + } +} -- cgit v1.2.3-54-g00ecf From ce761c714284ddf8db4556757fc62e1051f701f7 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 8 Jan 2010 11:42:03 +0000 Subject: Updated plugin info for PoweredByStatusNet --- .../PoweredByStatusNet/PoweredByStatusNetPlugin.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'plugins/PoweredByStatusNet') diff --git a/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php b/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php index 460550518..bae6c529d 100644 --- a/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php +++ b/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php @@ -31,6 +31,16 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } +/** + * Outputs 'powered by StatusNet' after site name + * + * @category Plugin + * @package StatusNet + * @author Sarven Capadisli + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://status.net/ + */ + class PoweredByStatusNetPlugin extends Plugin { function onEndAddressData($action) @@ -42,4 +52,15 @@ class PoweredByStatusNetPlugin extends Plugin return true; } + + function onPluginVersion(&$versions) + { + $versions[] = array('name' => 'PoweredByStatusNet', + 'version' => STATUSNET_VERSION, + 'author' => 'Sarven Capdaisli', + 'homepage' => 'http://status.net/wiki/Plugin:PoweredByStatusNet', + 'rawdescription' => + _m('Outputs powered by StatusNet after site name.')); + return true; + } } -- cgit v1.2.3-54-g00ecf