| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | use Elementor\Plugin; |
| 6 | 6 | use Elementor\Modules\Styleguide\Controls\Switcher; |
| 7 | 7 | |
| 8 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | - exit; // Exit if accessed directly. | |
| 9 | + exit; // Exit if accessed directly | |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | class Module extends Base_Module { |
| 13 | 13 | |
| @@ -65,10 +65,8 @@ | ||
| 65 | 65 | |
| 66 | 66 | wp_localize_script( static::ASSETS_HANDLE, 'elementorStyleguideConfig', [ |
| 67 | 67 | 'activeKitId' => $kit_id, |
| 68 | 68 | ] ); |
| 69 | - | |
| 70 | - wp_set_script_translations( static::ASSETS_HANDLE, 'elementor' ); | |
| 71 | 69 | } |
| 72 | 70 | |
| 73 | 71 | public function enqueue_app_initiator( $is_preview = false ) { |
| 74 | 72 | $dependencies = [ |
| @@ -87,16 +85,14 @@ | ||
| 87 | 85 | $dependencies, |
| 88 | 86 | ELEMENTOR_VERSION, |
| 89 | 87 | true |
| 90 | 88 | ); |
| 91 | - | |
| 92 | - wp_set_script_translations( static::ASSETS_HANDLE . '-app-initiator', 'elementor' ); | |
| 93 | 89 | } |
| 94 | 90 | |
| 95 | 91 | public function enqueue_styles() { |
| 96 | 92 | wp_enqueue_style( |
| 97 | 93 | static::ASSETS_HANDLE, |
| 98 | - $this->get_css_assets_url( 'modules/styleguide/editor' ), | |
| 94 | + $this->get_css_assets_url( 'modules/' . static::ASSETS_SRC . '/' . static::ASSETS_SRC ), | |
| 99 | 95 | [], |
| 100 | 96 | ELEMENTOR_VERSION |
| 101 | 97 | ); |
| 102 | 98 | } |
| @@ -111,9 +107,9 @@ | ||
| 111 | 107 | * Add the Enable Styleguide Preview controls to Global Colors and Global Fonts. |
| 112 | 108 | * |
| 113 | 109 | * @param $element |
| 114 | 110 | * @param string $section_id |
| 115 | - * @param array $args | |
| 111 | + * @param array $args | |
| 116 | 112 | */ |
| 117 | 113 | public function add_styleguide_enable_controls( $element, $section_id, $args ) { |
| 118 | 114 | if ( 'kit' !== $element->get_name() || ! in_array( $section_id, [ 'section_global_colors', 'section_text_style' ] ) ) { |
| 119 | 115 | return; |