resource(); $tags = [ 'section', 'block', 'col', ]; $style = ''; foreach ($tags as $tag) { $style .= $resource->render('@theme/assets/css/constructor-styles/styleparts/modules/generic.php', [ 'tag' => $tag, 'config' => $config, ]); } $sizes = [ 'giant', 'large', 'default', 'small', 'tiny', ]; foreach ($sizes as $tag) { $style .= $resource->render('@theme/assets/css/constructor-styles/styleparts/modules/generic-size.php', [ 'tag' => $tag, 'config' => $config, ]); } $m_s_generic = !empty($config['m_s_generic_blocks']) ? json_decode(urldecode($config['m_s_generic_blocks']), true) : []; if (!is_array($m_s_generic)) { $m_s_generic = []; } foreach ($m_s_generic as $value) { $style .= $resource->render('@theme/assets/css/constructor-styles/styleparts/modules/generic-spacing.php', [ 'config' => $value, ]); } print($style);