forked from GNUsocial/gnu-social
Show some menu fixup for settings for some themes
This commit is contained in:
@@ -51,6 +51,8 @@ if (!defined('STATUSNET')) {
|
||||
*/
|
||||
class NewMenuPlugin extends Plugin
|
||||
{
|
||||
public $loadCSS = false;
|
||||
|
||||
/**
|
||||
* Load related modules when needed
|
||||
*
|
||||
@@ -354,6 +356,18 @@ class NewMenuPlugin extends Plugin
|
||||
Event::handle('EndConnectSettingsNav', array(&$action));
|
||||
}
|
||||
|
||||
function onEndShowStyles($action)
|
||||
{
|
||||
if (($this->showCSS ||
|
||||
in_array(common_config('site', 'theme'),
|
||||
array('default', 'identica', 'h4ck3r'))) &&
|
||||
($action instanceof AccountSettingsAction ||
|
||||
$action instanceof ConnectSettingsAction)) {
|
||||
$action->cssLink(common_path('plugins/NewMenu/newmenu.css'));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return version information for this plugin
|
||||
*
|
||||
|
Reference in New Issue
Block a user