Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -78,6 +78,7 @@ class widgets extends Controller
|
||||
$this->pageApp = 'global';
|
||||
$this->pageModule = 'global';
|
||||
$this->pageController = 'global';
|
||||
$this->widgetClass = Widget::class;
|
||||
}
|
||||
|
||||
parent::execute();
|
||||
@@ -90,10 +91,16 @@ class widgets extends Controller
|
||||
*/
|
||||
protected function getBlockList() : void
|
||||
{
|
||||
/* Initialize with Pages as the first in the list */
|
||||
$availableBlocks = array(
|
||||
'cms' => []
|
||||
);
|
||||
if( Application::appIsEnabled( 'cms' ) )
|
||||
{
|
||||
/* Initialize with Pages as the first in the list */
|
||||
$availableBlocks = [
|
||||
'cms' => []
|
||||
];
|
||||
}else
|
||||
{
|
||||
$availableBlocks = [];
|
||||
}
|
||||
|
||||
$favoriteIds = json_decode( Settings::i()->favorite_blocks, true );
|
||||
$favorites = [];
|
||||
@@ -228,6 +235,10 @@ class widgets extends Controller
|
||||
|
||||
$output = (string) $widget;
|
||||
Output::i()->output = ( $output ) ?: Theme::i()->getTemplate( 'widgets', 'core', 'front' )->blankWidget( $widget );
|
||||
if( Request::i()->isAjax() )
|
||||
{
|
||||
Output::i()->sendOutput( Output::i()->output );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user