← All changes
|
modules/nested-accordion/widgets/nested-accordion.php
+2
-11
4.2.3
→
3.29.0-beta4
View file →
| @@ -30,12 +30,8 @@ | ||
| 30 | 30 | |
| 31 | 31 | private $optimized_markup = null; |
| 32 | 32 | private $widget_container_selector = ''; |
| 33 | 33 | |
| 34 | - protected function is_dynamic_content(): bool { | |
| 35 | - return true; | |
| 36 | - } | |
| 37 | - | |
| 38 | 34 | public function get_name() { |
| 39 | 35 | return 'nested-accordion'; |
| 40 | 36 | } |
| 41 | 37 | |
| @@ -66,13 +62,9 @@ | ||
| 66 | 62 | protected function item_content_container( int $index ) { |
| 67 | 63 | return [ |
| 68 | 64 | 'elType' => 'container', |
| 69 | 65 | 'settings' => [ |
| 70 | - '_title' => sprintf( | |
| 71 | - /* translators: %d: Item index. */ | |
| 72 | - __( 'item #%d', 'elementor' ), | |
| 73 | - $index | |
| 74 | - ), | |
| 66 | + '_title' => sprintf( __( 'item #%s', 'elementor' ), $index ), | |
| 75 | 67 | 'content_width' => 'full', |
| 76 | 68 | ], |
| 77 | 69 | ]; |
| 78 | 70 | } |
| @@ -89,9 +81,8 @@ | ||
| 89 | 81 | return 'item_title'; |
| 90 | 82 | } |
| 91 | 83 | |
| 92 | 84 | protected function get_default_children_title() { |
| 93 | - /* translators: %d: Item index. */ | |
| 94 | 85 | return esc_html__( 'Item #%d', 'elementor' ); |
| 95 | 86 | } |
| 96 | 87 | |
| 97 | 88 | protected function get_default_children_placeholder_selector() { |
| @@ -325,9 +316,9 @@ | ||
| 325 | 316 | 'faq_schema_message', |
| 326 | 317 | [ |
| 327 | 318 | 'type' => Controls_Manager::ALERT, |
| 328 | 319 | 'alert_type' => 'info', |
| 329 | - 'content' => esc_html__( 'Google no longer supports the FAQ schema; however, it may still hold secondary value for AI and LLMs.', 'elementor' ), | |
| 320 | + 'content' => esc_html__( 'Let Google know that this section contains an FAQ. Make sure to only use it only once per page', 'elementor' ), | |
| 330 | 321 | 'condition' => [ |
| 331 | 322 | 'faq_schema[value]' => 'yes', |
| 332 | 323 | ], |
| 333 | 324 | ] |