. * * @category GNUSocial * @package StatusNet * @author Shashi Gowda * @copyright 2009, 2010, StatusNet, Inc. * @copyright 2010, Free Software Foundation, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://daisycha.in */ if (!defined('STATUSNET')) { exit(1); } class SocialLayoutPlugin extends Plugin { function onRouterInitialized($m) { return true; } function onEndShowStatusNetStyles($action) { $action->cssLink('plugins/SocialLayout/layout.css', null, 'screen, projection, tv'); return true; } # show options to change the type of the notice being posted function onEndShowNoticeFormData($form) { $form->out->elementStart('ul', 'social-switcher'); Event::handle('ShowSocialSwitcher', array($form)); $form->out->elementEnd('ul'); } function onEndShowScripts($action) { $action->script('/plugins/SocialLayout/layout.js'); } }