| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/d2m/sofident_cz/wp-content/plugins/elementor/core/settings/editor-preferences/ |
Upload File : |
<?php
namespace Elementor\Core\Settings\EditorPreferences;
use Elementor\Controls_Manager;
use Elementor\Core\Settings\Base\Model as BaseModel;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Model extends BaseModel {
/**
* Get element name.
*
* Retrieve the element name.
*
* @return string The name.
* @since 2.8.0
* @access public
*
*/
public function get_name() {
return 'editor-preferences';
}
/**
* Get panel page settings.
*
* Retrieve the page setting for the current panel.
*
* @since 2.8.0
* @access public
*/
public function get_panel_page_settings() {
return [
'title' => __( 'User Preferences', 'elementor' ),
];
}
/**
* @since 2.8.0
* @access protected
*/
protected function _register_controls() {
$this->start_controls_section( 'preferences', [
'tab' => Controls_Manager::TAB_SETTINGS,
'label' => __( 'Preferences', 'elementor' ),
] );
$this->add_control(
'ui_theme',
[
'label' => __( 'UI Theme', 'elementor' ),
'type' => Controls_Manager::SELECT,
'description' => __( 'Set light or dark mode, or use Auto Detect to sync it with your OS setting.', 'elementor' ),
'default' => 'auto',
'options' => [
'auto' => __( 'Auto Detect', 'elementor' ),
'light' => __( 'Light', 'elementor' ),
'dark' => __( 'Dark', 'elementor' ),
],
]
);
$this->add_control(
'panel_width',
[
'label' => __( 'Panel Width', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 200,
'max' => 680,
],
],
'default' => [
'size' => 300,
],
]
);
$this->add_control(
'edit_buttons',
[
'label' => __( 'Editing Handles', 'elementor' ),
'type' => Controls_Manager::SWITCHER,
'description' => __( 'Show editing handles when hovering over the element edit button.', 'elementor' ),
]
);
$this->add_control(
'lightbox_in_editor',
[
'label' => __( 'Enable Lightbox In Editor', 'elementor' ),
'type' => Controls_Manager::SWITCHER,
'default' => 'yes',
]
);
$this->end_controls_section();
}
}