| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | namespace Elementor\Core\Settings\EditorPreferences; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Controls_Manager; |
| 5 | 5 | use Elementor\Core\Settings\Base\Model as BaseModel; |
| 6 | +use Elementor\Modules\EditorAppBar\Module as AppBarModule; | |
| 6 | 7 | use Elementor\Modules\Checklist\Module as ChecklistModule; |
| 7 | 8 | use Elementor\Plugin; |
| 8 | 9 | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -90,9 +91,9 @@ | ||
| 90 | 91 | 'label' => esc_html__( 'Width', 'elementor' ) . ' (px)', |
| 91 | 92 | 'type' => Controls_Manager::SLIDER, |
| 92 | 93 | 'range' => [ |
| 93 | 94 | 'px' => [ |
| 94 | - 'min' => 250, | |
| 95 | + 'min' => 200, | |
| 95 | 96 | 'max' => 680, |
| 96 | 97 | ], |
| 97 | 98 | ], |
| 98 | 99 | 'default' => [ |
| @@ -109,8 +110,28 @@ | ||
| 109 | 110 | 'separator' => 'before', |
| 110 | 111 | ] |
| 111 | 112 | ); |
| 112 | 113 | |
| 114 | + if ( ! Plugin::$instance->experiments->is_feature_active( AppBarModule::EXPERIMENT_NAME ) ) { | |
| 115 | + | |
| 116 | + $this->add_control( | |
| 117 | + 'default_device_view', | |
| 118 | + [ | |
| 119 | + 'label' => esc_html__( 'Default device view', 'elementor' ), | |
| 120 | + 'type' => Controls_Manager::SELECT, | |
| 121 | + 'default' => 'default', | |
| 122 | + 'options' => [ | |
| 123 | + 'default' => esc_html__( 'Default', 'elementor' ), | |
| 124 | + 'mobile' => esc_html__( 'Mobile', 'elementor' ), | |
| 125 | + 'tablet' => esc_html__( 'Tablet', 'elementor' ), | |
| 126 | + 'desktop' => esc_html__( 'Desktop', 'elementor' ), | |
| 127 | + ], | |
| 128 | + 'description' => esc_html__( 'Choose which device to display when clicking the Responsive Mode icon.', 'elementor' ), | |
| 129 | + ] | |
| 130 | + ); | |
| 131 | + | |
| 132 | + } | |
| 133 | + | |
| 113 | 134 | $this->add_control( |
| 114 | 135 | 'edit_buttons', |
| 115 | 136 | [ |
| 116 | 137 | 'label' => esc_html__( 'Show quick edit options', 'elementor' ), |
| @@ -157,14 +178,14 @@ | ||
| 157 | 178 | |
| 158 | 179 | $this->add_control( |
| 159 | 180 | ChecklistModule::VISIBILITY_SWITCH_ID, |
| 160 | 181 | [ |
| 161 | - 'label' => esc_html__( 'Show launchpad checklist', 'elementor' ), | |
| 182 | + 'label' => esc_html__( 'Launchpad Checklist', 'elementor' ), | |
| 162 | 183 | 'type' => Controls_Manager::SWITCHER, |
| 163 | - 'label_on' => esc_html__( 'Yes', 'elementor' ), | |
| 164 | - 'label_off' => esc_html__( 'No', 'elementor' ), | |
| 184 | + 'label_on' => esc_html__( 'Show', 'elementor' ), | |
| 185 | + 'label_off' => esc_html__( 'Hide', 'elementor' ), | |
| 165 | 186 | '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' ), | |
| 187 | + 'description' => esc_html__( 'Show a checklist to guide you through your first steps of website creation.', 'elementor' ), | |
| 167 | 188 | ] |
| 168 | 189 | ); |
| 169 | 190 | } |
| 170 | 191 | |