| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | * |
| 39 | 39 | * @return string Widget title. |
| 40 | 40 | */ |
| 41 | 41 | public function get_title() { |
| 42 | - return esc_html__( 'Sidebar', 'elementor' ); | |
| 42 | + return __( 'Sidebar', 'elementor' ); | |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Get widget icon. |
| @@ -69,12 +69,8 @@ | ||
| 69 | 69 | public function get_keywords() { |
| 70 | 70 | return [ 'sidebar', 'widget' ]; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - public function has_widget_inner_wrapper(): bool { | |
| 74 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 75 | - } | |
| 76 | - | |
| 77 | 73 | /** |
| 78 | 74 | * Register sidebar widget controls. |
| 79 | 75 | * |
| 80 | 76 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -87,11 +83,11 @@ | ||
| 87 | 83 | |
| 88 | 84 | $options = []; |
| 89 | 85 | |
| 90 | 86 | if ( ! $wp_registered_sidebars ) { |
| 91 | - $options[''] = esc_html__( 'No sidebars were found', 'elementor' ); | |
| 87 | + $options[''] = __( 'No sidebars were found', 'elementor' ); | |
| 92 | 88 | } else { |
| 93 | - $options[''] = esc_html__( 'Choose Sidebar', 'elementor' ); | |
| 89 | + $options[''] = __( 'Choose Sidebar', 'elementor' ); | |
| 94 | 90 | |
| 95 | 91 | foreach ( $wp_registered_sidebars as $sidebar_id => $sidebar ) { |
| 96 | 92 | $options[ $sidebar_id ] = $sidebar['name']; |
| 97 | 93 | } |
| @@ -102,21 +98,18 @@ | ||
| 102 | 98 | |
| 103 | 99 | $this->start_controls_section( |
| 104 | 100 | 'section_sidebar', |
| 105 | 101 | [ |
| 106 | - 'label' => esc_html__( 'Sidebar', 'elementor' ), | |
| 102 | + 'label' => __( 'Sidebar', 'elementor' ), | |
| 107 | 103 | ] |
| 108 | 104 | ); |
| 109 | 105 | |
| 110 | - $this->add_control( | |
| 111 | - 'sidebar', | |
| 112 | - [ | |
| 113 | - 'label' => esc_html__( 'Choose Sidebar', 'elementor' ), | |
| 114 | - 'type' => Controls_Manager::SELECT, | |
| 115 | - 'default' => $default_key, | |
| 116 | - 'options' => $options, | |
| 117 | - ] | |
| 118 | - ); | |
| 106 | + $this->add_control( 'sidebar', [ | |
| 107 | + 'label' => __( 'Choose Sidebar', 'elementor' ), | |
| 108 | + 'type' => Controls_Manager::SELECT, | |
| 109 | + 'default' => $default_key, | |
| 110 | + 'options' => $options, | |
| 111 | + ] ); | |
| 119 | 112 | |
| 120 | 113 | $this->end_controls_section(); |
| 121 | 114 | } |
| 122 | 115 | |