From bf123d146185ffa686396713a3d3067629047ee5 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 17 Dec 2009 15:28:50 -0500 Subject: [PATCH] Plugin that outputs 'powered by StatusNet' after site name --- .../PoweredByStatusNetPlugin.php | 45 +++++++++++++++++++ theme/base/css/display.css | 9 ++++ 2 files changed, 54 insertions(+) create mode 100644 plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php diff --git a/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php b/plugins/PoweredByStatusNet/PoweredByStatusNetPlugin.php new file mode 100644 index 0000000000..460550518c --- /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; + } +} diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 2f46363915..ced51b0b88 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -259,6 +259,15 @@ font-weight:bold; address img + .fn { display:none; } +address a { +text-decoration:none; +} +address .poweredby { +display:block; +position:relative; +top:7px; +margin-right:-47px; +} #header { width:100%; -- 2.39.5