| @@ -54,8 +54,9 @@ | ||
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | $direction = is_rtl() ? '.rtl' : ''; |
| 57 | 57 | |
| 58 | + | |
| 58 | 59 | $module_id = $module['name']; |
| 59 | 60 | $class_name = str_replace('-', ' ', $module_id); |
| 60 | 61 | $class_name = str_replace(' ', '', ucwords($class_name)); |
| 61 | 62 | $class_name = __NAMESPACE__ . '\\Modules\\' . $class_name . '\\Module'; |
| @@ -63,13 +64,13 @@ | ||
| 63 | 64 | |
| 64 | 65 | if (!ultimate_store_kit_is_preview()) { |
| 65 | 66 | // register widgets css |
| 66 | 67 | if (ModuleService::has_module_style($module_id)) { |
| 67 | - wp_register_style('usk-' . $module_id, BDTUSK_URL . 'assets/css/usk-' . $module_id . $direction . '.css', [], BDTUSK_VER); | |
| 68 | + wp_register_style('usk-' . $module_id, BDTUSK_URL . 'assets/css/widgets/' . $module_id . $direction . '.css', [], BDTUSK_VER); | |
| 68 | 69 | } |
| 69 | 70 | // register widget JS |
| 70 | 71 | if (ModuleService::has_module_script($module_id)) { |
| 71 | - wp_register_script('usk-' . $module_id, BDTUSK_URL . 'assets/js/widgets/usk-' . $module_id . '.min.js', ['jquery', 'bdt-uikit', 'elementor-frontend'], BDTUSK_VER, true); | |
| 72 | + wp_register_script('usk-' . $module_id, BDTUSK_URL . 'assets/js/widgets/' . $module_id . '.js', ['jquery'], BDTUSK_VER, true); | |
| 72 | 73 | } |
| 73 | 74 | } |
| 74 | 75 | |
| 75 | 76 | |