12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class InviteButtonSection extends Section
- {
- protected $buttonText;
- function __construct($out = null, $buttonText = null)
- {
- $this->out = $out;
- if (empty($buttonText)) {
-
- $this->buttonText = _m('BUTTON', 'Invite more people');
- } else {
- $this->buttonText = $buttonText;
- }
- }
- function showTitle()
- {
- return false;
- }
- function divId()
- {
- return 'invite_button';
- }
- function showContent()
- {
- $this->out->element(
- 'a',
- array(
- 'href' => common_local_url('invite'),
- 'class' => 'invite_button'
- ),
- $this->buttonText
- );
- return false;
- }
- }
|