PluginHooks:StartShowStatusNetStyles
From StatusNet
Contents |
[edit] Description
[edit] Arguments
1: PublicAction
[edit] Related Code
File: lib/action.php (line 197)
...
{
if (Event::handle('StartShowStyles', array($this))) {
// Use old name for StatusNet for compatibility on events
if (Event::handle('StartShowStatusNetStyles', array($this)) &&
Event::handle('StartShowLaconicaStyles', array($this))) {
$this->cssLink('css/display.css',null,'screen, projection, tv');
if (common_config('site', 'mobile')) {
// TODO: "handheld" CSS for other mobile devices
$this->cssLink('css/mobile.css','base','only screen and (max-device-width: 480px)'); // Mobile WebKit
...
[edit] Examples
class ExamplePlugin extends Plugin {
public function onStartShowStatusNetStyles ($publicaction) {
//do something
}
}