PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.3
Elementor Website Builder – more than just a page builder v4.0.3
4.3.0-beta3 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 All 452 releases
← All changes | modules/atomic-widgets/elements/base/has-element-template.php +2 -18 4.1.54.0.3 View file →
@@ -17,16 +17,8 @@
17 17 * @mixin Atomic_Element_Base
18 18 */
19 19 trait Has_Element_Template {
20 20
21 - private static function get_macros_template_key(): string {
22 - return 'elementor/macros';
23 - }
24 -
25 - protected function transform_link_for_render( array $parsed ): array {
26 - return $parsed;
27 - }
28 -
29 21 public function get_initial_config() {
30 22 $config = parent::get_initial_config();
31 23
32 24 $config['support_nesting'] = true;
@@ -36,18 +28,12 @@
36 28
37 29 return $config;
38 30 }
39 31
40 - protected function get_shared_templates(): array {
41 - return [
42 - self::get_macros_template_key() => __DIR__ . '/_macros.html.twig',
43 - ];
44 - }
45 -
46 32 protected function get_templates_contents() {
47 33 return array_map(
48 34 fn ( $path ) => Utils::file_get_contents( $path ),
49 - array_merge( $this->get_shared_templates(), $this->get_templates() )
35 + $this->get_templates()
50 36 );
51 37 }
52 38
53 39 protected function render() {
@@ -53,11 +39,9 @@
53 39 protected function render() {
54 40 try {
55 41 $renderer = Template_Renderer::instance();
56 42
57 - $all_templates = array_merge( $this->get_shared_templates(), $this->get_templates() );
58 -
59 - foreach ( $all_templates as $name => $path ) {
43 + foreach ( $this->get_templates() as $name => $path ) {
60 44 if ( $renderer->is_registered( $name ) ) {
61 45 continue;
62 46 }
63 47