← All changes
|
modules/nested-elements/base/widget-nested-base.php
+0
-23
4.0.8
→
3.20.0-dev2
View file →
| @@ -41,9 +41,8 @@ | ||
| 41 | 41 | * ], |
| 42 | 42 | * @return string |
| 43 | 43 | */ |
| 44 | 44 | protected function get_default_children_title() { |
| 45 | - /* translators: %d: Item index. */ | |
| 46 | 45 | return esc_html__( 'Item #%d', 'elementor' ); |
| 47 | 46 | } |
| 48 | 47 | |
| 49 | 48 | /** |
| @@ -54,16 +53,8 @@ | ||
| 54 | 53 | protected function get_default_children_placeholder_selector() { |
| 55 | 54 | return ''; |
| 56 | 55 | } |
| 57 | 56 | |
| 58 | - protected function get_default_children_container_placeholder_selector() { | |
| 59 | - return ''; | |
| 60 | - } | |
| 61 | - | |
| 62 | - protected function is_dynamic_content(): bool { | |
| 63 | - return false; | |
| 64 | - } | |
| 65 | - | |
| 66 | 57 | /** |
| 67 | 58 | * @inheritDoc |
| 68 | 59 | * |
| 69 | 60 | * To support nesting. |
| @@ -82,9 +73,8 @@ | ||
| 82 | 73 | 'defaults' => [ |
| 83 | 74 | 'elements' => $this->get_default_children_elements(), |
| 84 | 75 | 'elements_title' => $this->get_default_children_title(), |
| 85 | 76 | 'elements_placeholder_selector' => $this->get_default_children_placeholder_selector(), |
| 86 | - 'child_container_placeholder_selector' => $this->get_default_children_container_placeholder_selector(), | |
| 87 | 77 | 'repeater_title_setting' => $this->get_default_repeater_title_setting_key(), |
| 88 | 78 | ], |
| 89 | 79 | 'support_nesting' => true, |
| 90 | 80 | ] ); |
| @@ -125,20 +115,7 @@ | ||
| 125 | 115 | $children = $this->get_children(); |
| 126 | 116 | |
| 127 | 117 | if ( ! empty( $children[ $index ] ) ) { |
| 128 | 118 | $children[ $index ]->print_element(); |
| 129 | - } | |
| 130 | - } | |
| 131 | - | |
| 132 | - protected function content_template_single_repeater_item() {} | |
| 133 | - | |
| 134 | - public function print_template() { | |
| 135 | - parent::print_template(); | |
| 136 | - if ( $this->get_initial_config()['support_improved_repeaters'] ?? false ) { | |
| 137 | - ?> | |
| 138 | - <script type="text/html" id="tmpl-elementor-<?php echo esc_attr( $this->get_name() ); ?>-content-single"> | |
| 139 | - <?php $this->content_template_single_repeater_item(); ?> | |
| 140 | - </script> | |
| 141 | - <?php | |
| 142 | 119 | } |
| 143 | 120 | } |
| 144 | 121 | } |