EndShowStyles: End showing Style links; good place to add custom styles
- $action: the current action
-StartShowStatusNetStyles: Showing StatusNet Style links
+StartShowStylesheets: Showing stylesheet links
- $action: the current action
-EndShowStatusNetStyles: End showing StatusNet Style links; good place to add handheld or JavaScript dependant styles
-- $action: the current action
-
-StartShowLaconicaStyles: backwards compatibility; deprecated
-- $action: the current action
-
-EndShowLaconicaStyles: backwards compatibility; deprecated
+EndShowStylesheets: End showing stylesheet links; good place to add handheld or JavaScript dependant styles
- $action: the current action
StartShowUAStyles: Showing custom User-Agent style links
* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
require_once INSTALLDIR.'/lib/noticeform.php';
require_once INSTALLDIR.'/lib/htmloutputter.php';
// Use old name for StatusNet for compatibility on events
- if (Event::handle('StartShowStatusNetStyles', array($this)) &&
- Event::handle('StartShowLaconicaStyles', array($this))) {
+ if (Event::handle('StartShowStylesheets', array($this))) {
$this->primaryCssLink(null, 'screen, projection, tv, print');
- Event::handle('EndShowStatusNetStyles', array($this));
- Event::handle('EndShowLaconicaStyles', array($this));
+ Event::handle('EndShowStylesheets', array($this));
}
$this->cssLink(common_path('js/extlib/jquery-ui/css/smoothness/jquery-ui.css', StatusNet::isHTTPS()));
* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
+if (!defined('STATUSNET')) {
exit(1);
}
*
* @return boolean hook flag
*/
- function onEndShowStatusNetStyles($action)
+ public function onEndShowStylesheets(Action $action)
{
// XXX: allow override by theme
$action->cssLink('css/uap.css', 'base', 'screen, projection, tv');
*
* @return boolean hook flag
*/
- function onEndShowStatusNetStyles($action)
+ public function onEndShowStylesheets(Action $action)
{
if (in_array(
$action->trimmed('action'),
* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
+if (!defined('STATUSNET')) {
exit(1);
}
}
}
- function onStartShowStatusNetStyles($action)
+ public function onStartShowStylesheets(Action $action)
{
if (!$this->serveMobile) {
return true;
}
// Allow other plugins to load their styles.
- Event::handle('EndShowStatusNetStyles', array($action));
- Event::handle('EndShowLaconicaStyles', array($action));
+ Event::handle('EndShowStylesheets', array($action));
return false;
}
return true;
}
- function onEndShowStatusNetStyles($action) {
+ public function onEndShowStylesheets(Action $action) {
$action->cssLink($this->path('modplus.css'));
return true;
}
return true;
}
- function onEndShowStatusNetStyles($action) {
+ public function onEndShowStylesheets(Action $action) {
$action->cssLink($this->path('theme/base/css/ostatus.css'));
return true;
}
* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
+if (!defined('STATUSNET')) {
exit(1);
}
return true;
}
- function onEndShowStatusNetStyles($action)
+ public function onEndShowStylesheets(Action $action)
{
$action->cssLink(Plugin::staticPath('Realtime', 'realtimeupdate.css'),
null,
array('StatusNet', array('baseurl' => 'http://identi.ca'))
);
- function onEndShowStatusNetStyles($action) {
+ public function onEndShowStylesheets(Action $action) {
$action->cssLink($this->path('css/sharenotice.css'));
return true;
}