From 873b1fb186025a91052e6c1da2e79846fea7efd9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 14 Apr 2011 18:19:09 -0400 Subject: [PATCH] invite button section --- lib/invitebuttonsection.php | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 lib/invitebuttonsection.php diff --git a/lib/invitebuttonsection.php b/lib/invitebuttonsection.php new file mode 100644 index 0000000000..8bf450b991 --- /dev/null +++ b/lib/invitebuttonsection.php @@ -0,0 +1,62 @@ +. + * + * @category Section + * @package StatusNet + * @author Evan Prodromou + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +if (!defined('STATUSNET')) { + // This check helps protect against security problems; + // your code file can't be executed directly from the web. + exit(1); +} + +/** + * Invite button + * + * @category Section + * @package StatusNet + * @author Evan Prodromou + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +class InviteButtonSection extends Section +{ + function showTitle() + { + return false; + } + + function showContent() + { + $this->out->element('a', + array('href' => common_local_url('invite')), + _('Invite more colleagues')); + return false; + } +} \ No newline at end of file