. * * @category Pugin * @package StatusNet * @author Zach Copley * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ if (!defined('STATUSNET')) { exit(1); } class FacebookloginAction extends Action { function handle($args) { parent::handle($args); if (common_is_real_login()) { $this->clientError(_m('Already logged in.')); } $this->showPage(); } function getInstructions() { // TRANS: Instructions. return _m('Login with your Facebook Account'); } function showPageNotice() { $instr = $this->getInstructions(); $output = common_markup_to_html($instr); $this->elementStart('div', 'instructions'); $this->raw($output); $this->elementEnd('div'); } function title() { // TRANS: Page title. return _m('Login with Facebook'); } function showContent() { $this->elementStart('fieldset'); $this->element('fb:login-button'); $this->elementEnd('fieldset'); } function showLocalNav() { $nav = new LoginGroupNav($this); $nav->show(); } }