Version 5.0.0 beta 4
This commit is contained in:
1 parent
e86153356a
commit
2f24f9de48
276 files changed
+8614
-6044
No files matched your search
@@ -138,6 +138,11 @@ abstract class Widget
|
||||
*/
|
||||
public bool $soloWidget = false;
|
||||
|
||||
/**
|
||||
* @brief If a widget should not be dropped into a particular area (e.g. a database widget in the header), list those areas here
|
||||
*/
|
||||
public static array $disallowedAreas = [];
|
||||
|
||||
/**
|
||||
* These layouts are the default allowed "feed" layouts
|
||||
*
|
||||
@@ -411,6 +416,11 @@ abstract class Widget
|
||||
$return['widget-paddingallowed'] = true;
|
||||
}
|
||||
|
||||
if( count( static::$disallowedAreas ) )
|
||||
{
|
||||
$return['widget-disallowed-areas'] = implode( ",", static::$disallowedAreas );
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user