PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.2
Elementor Website Builder – more than just a page builder v3.0.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/widgets/sidebar.php +12 -19 4.2.0-dev23.0.2 View file →
@@ -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,29 +69,25 @@
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.
81 77 *
82 - * @since 3.1.0
78 + * @since 1.0.0
83 79 * @access protected
84 80 */
85 - protected function register_controls() {
81 + protected function _register_controls() {
86 82 global $wp_registered_sidebars;
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