PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.0-dev3
Elementor Website Builder – more than just a page builder v3.25.0-dev3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/styleguide/module.php +3 -7 4.2.0-dev23.25.0-dev3 View file →
@@ -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;