get_widgets_style_list(); $direction_suffix = is_rtl() ? '-rtl' : ''; $has_custom_breakpoints = Plugin::elementor()->breakpoints->has_custom_breakpoints(); foreach ( $widgets as $widget_style_name => $widget_has_responsive_style ) { $should_load_responsive_css = $widget_has_responsive_style ? $has_custom_breakpoints : false; wp_register_style( $widget_style_name, Plugin::get_frontend_file_url( "{$widget_style_name}{$direction_suffix}.min.css", $should_load_responsive_css ), [ 'elementor-frontend' ], ELEMENTOR_PRO_VERSION ); } } private function get_widgets_style_list(): array { return [ 'widget-media-carousel' => ! self::WIDGET_HAS_CUSTOM_BREAKPOINTS, 'widget-testimonial-carousel' => self::WIDGET_HAS_CUSTOM_BREAKPOINTS, 'widget-reviews' => ! self::WIDGET_HAS_CUSTOM_BREAKPOINTS, 'widget-carousel-module-base' => ! self::WIDGET_HAS_CUSTOM_BREAKPOINTS, ]; } }