| @@ -114,9 +114,15 @@ | ||
| 114 | 114 | ?> |
| 115 | 115 | <script type="text/html" id="tmpl-elementor-control-<?php echo esc_attr( $this->get_type() ); ?>-content"> |
| 116 | 116 | <div class="elementor-control-content"> |
| 117 | 117 | <?php |
| 118 | - $this->content_template(); | |
| 118 | + // TODO: This is for backwards compatibility starting from 2.9.0 | |
| 119 | + // This `if` statement should be removed when the method is removed | |
| 120 | + if ( method_exists( $this, '_content_template' ) ) { | |
| 121 | + $this->_content_template(); | |
| 122 | + } else { | |
| 123 | + $this->content_template(); | |
| 124 | + } | |
| 119 | 125 | ?> |
| 120 | 126 | </div> |
| 121 | 127 | </script> |
| 122 | 128 | <?php |
| @@ -134,23 +140,6 @@ | ||
| 134 | 140 | * @return array Control default settings. |
| 135 | 141 | */ |
| 136 | 142 | protected function get_default_settings() { |
| 137 | 143 | return []; |
| 138 | - } | |
| 139 | - | |
| 140 | - public static function get_assets( $setting ) { | |
| 141 | - return []; | |
| 142 | - } | |
| 143 | - | |
| 144 | - /** | |
| 145 | - * Update value of control that needs to be updated after import. | |
| 146 | - * | |
| 147 | - * @param mixed $value | |
| 148 | - * @param array $control_args | |
| 149 | - * @param array $config | |
| 150 | - * | |
| 151 | - * @return mixed | |
| 152 | - */ | |
| 153 | - public function on_import_update_settings( $value, array $control_args, array $config ) { | |
| 154 | - return $value; | |
| 155 | 144 | } |
| 156 | 145 | } |