. * * @category Personal * @package StatusNet * @author Evan Prodromou * @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/attachment.php'; /** * Show notice attachments * * @category Personal * @package StatusNet * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ class Attachment_ajaxAction extends AttachmentAction { /** * Show page, a template method. * * @return nothing */ function showPage() { if (Event::handle('StartShowBody', array($this))) { $this->showCore(); Event::handle('EndShowBody', array($this)); } } function handle($args) { $this->showPage(); } /** * Show core. * * Shows local navigation, content block and aside. * * @return nothing */ function showCore() { $this->elementStart('div', array('id' => 'core')); if (Event::handle('StartShowContentBlock', array($this))) { $this->showContentBlock(); Event::handle('EndShowContentBlock', array($this)); } $this->elementEnd('div'); } }