| @@ -121,13 +121,10 @@ | ||
| 121 | 121 | public function get_panel_page_settings() { |
| 122 | 122 | $document = Plugin::$instance->documents->get( $this->post->ID ); |
| 123 | 123 | |
| 124 | 124 | return [ |
| 125 | - 'title' => sprintf( | |
| 126 | - /* translators: %s: Document title. */ | |
| 127 | - esc_html__( '%s Settings', 'elementor' ), | |
| 128 | - $document::get_title() | |
| 129 | - ), | |
| 125 | + /* translators: %s: Document title. */ | |
| 126 | + 'title' => sprintf( esc_html__( '%s Settings', 'elementor' ), $document::get_title() ), | |
| 130 | 127 | ]; |
| 131 | 128 | } |
| 132 | 129 | |
| 133 | 130 | /** |
| @@ -148,9 +145,9 @@ | ||
| 148 | 145 | /** |
| 149 | 146 | * @var \Elementor\Modules\PageTemplates\Module $page_templates_module |
| 150 | 147 | */ |
| 151 | 148 | $page_templates_module = Plugin::$instance->modules_manager->get_modules( 'page-templates' ); |
| 152 | - $is_elementor_template = (bool) $page_templates_module->get_template_path( $element_data['settings']['template'] ); | |
| 149 | + $is_elementor_template = ! ! $page_templates_module->get_template_path( $element_data['settings']['template'] ); | |
| 153 | 150 | |
| 154 | 151 | if ( ! $is_elementor_template ) { |
| 155 | 152 | unset( $element_data['settings']['template'] ); |
| 156 | 153 | } |
| @@ -167,9 +164,9 @@ | ||
| 167 | 164 | * @since 3.1.0 |
| 168 | 165 | * @access protected |
| 169 | 166 | */ |
| 170 | 167 | protected function register_controls() { |
| 171 | - // Check if it's a real model, or abstract (for example - on import ). | |
| 168 | + // Check if it's a real model, or abstract (for example - on import ) | |
| 172 | 169 | if ( $this->post->ID ) { |
| 173 | 170 | $document = Plugin::$instance->documents->get_doc_or_auto_save( $this->post->ID ); |
| 174 | 171 | |
| 175 | 172 | if ( $document ) { |