resource(); $config = !empty($config) ? $config : []; $widgets = !empty($config['wpw_widgets']) ? json_decode(urldecode($config['wpw_widgets']), true) : []; if (!is_array($widgets)) { $widgets = []; } $widget_style = ''; foreach ($widgets as $style) { $widget_style .= $resource->render('@theme/assets/css/constructor-styles/styleparts/widgets-primary.php', [ 'config' => $style, ]); } //echo '
'; //print($widget_style); //echo ''; //exit; print($widget_style);