formatter(); $resource = $ith->resource(); $style = ''; $stylesConfig = $formatter->parse_mod('wpw_element_constructor'); $tags = [ 'preloader', 'scroll', 'lines', 'post-item', 'widgets', 'pagination', 'slider', 'lightbox', 'tabs', 'accordion', 'carousel', 'table', 'scroll_top', 'search_popup', 'divider', 'typography', 'modules_spaces', 'advanced_forms', 'image', 'figcaption', 'notify', 'custom-widgets', 'icons', ]; $permanent_tags = [ 'lines', 'portfolio-item', 'tabs', 'accordion', 'widgets', 'divider', 'typography', 'modules_spaces', 'advanced_forms', 'image', 'figcaption', 'carousel', 'pagination', 'custom-widgets', 'icons', ]; $style .= $resource->load('@theme/assets/css/dynamic-styles', [ '*-style.php', 'widgets-styles/*-style.php', ]); $style .= apply_filters('wpw_main_style_loaded', $style); $elements = []; foreach ($tags as $tag) { $opts = $formatter->parse_mod('wpw_' . $tag . '_element'); if (!(isset($opts['enable_' . $tag]) && $opts['enable_' . $tag]) && !in_array($tag, $permanent_tags)) { continue; } $style .= $resource->render('@theme/assets/css/constructor-styles/' . $tag . '-style.php', [ 'config' => $opts, ]); } print($style);