← All changes
|
elementor-elements/classes/wdk-listing-fields-section.php
+4
-2
1.5.4
→
1.5.9
View file →
| @@ -162,9 +162,10 @@ | ||
| 162 | 162 | $this->data['is_edit_mode']= false; |
| 163 | 163 | if(Plugin::$instance->editor->is_edit_mode()){ |
| 164 | 164 | $this->data['is_edit_mode']= true; |
| 165 | 165 | if(empty($this->data['section_data'])){ |
| 166 | - echo '<p class="wdk_alert wdk_alert-danger">'.wdk_sprintf(esc_html__('Section #%1$s not found', 'wpdirectorykit'), $this->data['settings']['section_id']).'</p>'; | |
| 166 | + /* translators: 1: Section ID. */ | |
| 167 | + echo '<p class="wdk_alert wdk_alert-danger">'.esc_html(wdk_sprintf(esc_html__('Section #%1$s not found', 'wpdirectorykit'), $this->data['settings']['section_id'])).'</p>'; | |
| 167 | 168 | return false; |
| 168 | 169 | } |
| 169 | 170 | } else { |
| 170 | 171 | if(empty($this->data['section_data'])){ |
| @@ -190,9 +191,9 @@ | ||
| 190 | 191 | return false; |
| 191 | 192 | } |
| 192 | 193 | } |
| 193 | 194 | |
| 194 | - echo $this->view('wdk-listing-fields-section', $this->data); | |
| 195 | + $this->view('wdk-listing-fields-section', $this->data, true); | |
| 195 | 196 | parent::render(); |
| 196 | 197 | } |
| 197 | 198 | |
| 198 | 199 | |
| @@ -283,8 +284,9 @@ | ||
| 283 | 284 | 'important_note', |
| 284 | 285 | [ |
| 285 | 286 | 'label' => '', |
| 286 | 287 | 'type' => \Elementor\Controls_Manager::RAW_HTML, |
| 288 | + /* translators: 1: URL. */ | |
| 287 | 289 | 'raw' => wdk_sprintf(__( 'Manager Fields <a href="%1$s" target="_blank"> open </a>', 'wpdirectorykit' ), admin_url('admin.php?page=wdk_fields')), |
| 288 | 290 | 'content_classes' => 'wdk_elementor_hint', |
| 289 | 291 | ] |
| 290 | 292 | ); |