{* LOAD RESOURCES *} {strip} {$_capture_array = []}
{foreach $widgets as $block => $block_widgets}
{foreach $block_widgets as $w} {include file="../dashboard/DashboardWidget.html" inline} {* INIT WIDGET *} {capture append="_capture_array"} ( function($) { DashboardWidgets["{$w.id}"] = new DashboardWidget({ widget_id: "{$w.id}", widget_href: {$w.href|json_encode}, widget_sort: "{$w.sort}", widget_group_index: "{$block_widgets@index}", widget_size: { width: "{$w.size.0}", height: "{$w.size.1}" } }); })(jQuery); {/capture} {/foreach}
{/foreach} {* EMPTY GROUP*}
[`Your dashboard is empty. Add widgets by clicking “Edit widgets” button at the top.`]
{* HIDDEN LOADING SCREEN *}
{* SCRIPTS *}
{/strip}