. * * @category Bookmarklet * @package StatusNet * @author Sarven Capadisli * @copyright 2008-2009 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); } require_once INSTALLDIR . '/actions/newnotice.php'; /** * Action for posting a notice * * @category Bookmarklet * @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 BookmarkletAction extends NewnoticeAction { function showTitle() { // TRANS: Title for mini-posting window loaded from bookmarklet. $this->element('title', null, sprintf(_('Post to %s'), common_config('site', 'name'))); } function showHeader() { $this->elementStart('div', array('id' => 'header')); $this->elementStart('address'); $this->element('a', array('class' => 'url', 'href' => common_local_url('public')), ''); $this->elementEnd('address'); if (common_logged_in()) { $this->showNoticeForm(); } $this->elementEnd('div'); } function showCore() { } function showFooter() { } }