PluginProbe
Elementor Website Builder – more than just a page builder / 3.22.2
Elementor Website Builder – more than just a page builder v3.22.2
4.3.2 4.3.1 4.3.0 4.3.0-beta3 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 All 455 releases
← All changes | core/settings/editor-preferences/model.php +20 -27 4.3.2 → 3.22.2 View file →
@@ -1,14 +1,13 @@
1 1 <?php
2 +
2 3 namespace Elementor\Core\Settings\EditorPreferences;
3 4
4 5 use Elementor\Controls_Manager;
5 6 use Elementor\Core\Settings\Base\Model as BaseModel;
6 -use Elementor\Modules\Checklist\Module as ChecklistModule;
7 -use Elementor\Plugin;
8 7
9 8 if ( ! defined( 'ABSPATH' ) ) {
10 - exit; // Exit if accessed directly.
9 + exit; // Exit if accessed directly
11 10 }
12 11
13 12 class Model extends BaseModel {
14 13
@@ -19,8 +18,9 @@
19 18 *
20 19 * @return string The name.
21 20 * @since 2.8.0
22 21 * @access public
22 + *
23 23 */
24 24 public function get_name() {
25 25 return 'editor-preferences';
26 26 }
@@ -90,9 +90,9 @@
90 90 'label' => esc_html__( 'Width', 'elementor' ) . ' (px)',
91 91 'type' => Controls_Manager::SLIDER,
92 92 'range' => [
93 93 'px' => [
94 - 'min' => 250,
94 + 'min' => 200,
95 95 'max' => 680,
96 96 ],
97 97 ],
98 98 'default' => [
@@ -110,8 +110,24 @@
110 110 ]
111 111 );
112 112
113 113 $this->add_control(
114 + 'default_device_view',
115 + [
116 + 'label' => esc_html__( 'Default device view', 'elementor' ),
117 + 'type' => Controls_Manager::SELECT,
118 + 'default' => 'default',
119 + 'options' => [
120 + 'default' => esc_html__( 'Default', 'elementor' ),
121 + 'mobile' => esc_html__( 'Mobile', 'elementor' ),
122 + 'tablet' => esc_html__( 'Tablet', 'elementor' ),
123 + 'desktop' => esc_html__( 'Desktop', 'elementor' ),
124 + ],
125 + 'description' => esc_html__( 'Choose which device to display when clicking the Responsive Mode icon.', 'elementor' ),
126 + ]
127 + );
128 +
129 + $this->add_control(
114 130 'edit_buttons',
115 131 [
116 132 'label' => esc_html__( 'Show quick edit options', 'elementor' ),
117 133 'type' => Controls_Manager::SWITCHER,
@@ -143,31 +159,8 @@
143 159 'default' => 'yes',
144 160 'description' => esc_html__( 'This refers to elements you’ve hidden in the Responsive Visibility settings.', 'elementor' ),
145 161 ]
146 162 );
147 -
148 - if ( ChecklistModule::should_display_checklist_toggle_control() ) {
149 - $this->add_control(
150 - 'get_started_heading',
151 - [
152 - 'label' => esc_html__( 'Get Started', 'elementor' ),
153 - 'type' => Controls_Manager::HEADING,
154 - 'separator' => 'before',
155 - ]
156 - );
157 -
158 - $this->add_control(
159 - ChecklistModule::VISIBILITY_SWITCH_ID,
160 - [
161 - 'label' => esc_html__( 'Show launchpad checklist', 'elementor' ),
162 - 'type' => Controls_Manager::SWITCHER,
163 - 'label_on' => esc_html__( 'Yes', 'elementor' ),
164 - 'label_off' => esc_html__( 'No', 'elementor' ),
165 - 'default' => Plugin::$instance->modules_manager->get_modules( 'checklist' )->is_preference_switch_on() ? 'yes' : '',
166 - 'description' => esc_html__( 'These will guide you through the first steps of creating your site.', 'elementor' ),
167 - ]
168 - );
169 - }
170 163
171 164 $this->add_control(
172 165 'design_system_heading',
173 166 [