PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.13
Elementor Website Builder – more than just a page builder v3.0.13
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
elementor / core / kits / documents / tabs / settings-background.php

settings-background.php in Elementor Website Builder – more than just a page builder 3.0.13, at core/kits/documents/tabs/settings-background.php

63 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Core\Kits\Documents\Tabs;
3
4 use Elementor\Controls_Manager;
5 use Elementor\Group_Control_Background;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly
9 }
10
11 class Settings_Background extends Tab_Base {
12
13 public function get_id() {
14 return 'settings-background';
15 }
16
17 public function get_title() {
18 return __( 'Background', 'elementor' );
19 }
20
21 protected function register_tab_controls() {
22 $this->start_controls_section(
23 'section_background',
24 [
25 'label' => $this->get_title(),
26 'tab' => $this->get_id(),
27 ]
28 );
29
30 $this->add_group_control(
31 Group_Control_Background::get_type(),
32 [
33 'name' => 'body_background',
34 'types' => [ 'classic', 'gradient' ],
35 'selector' => '{{WRAPPER}}',
36 'fields_options' => [
37 'background' => [
38 'frontend_available' => true,
39 ],
40 'color' => [
41 'dynamic' => [],
42 ],
43 'color_b' => [
44 'dynamic' => [],
45 ],
46 ],
47 ]
48 );
49
50 $this->add_control(
51 'mobile_browser_background',
52 [
53 'label' => __( 'Mobile Browser Background', 'elementor' ),
54 'type' => Controls_Manager::COLOR,
55 'description' => __( 'The `theme-color` meta tag will only be available in supported browsers and devices.', 'elementor' ),
56 'separator' => 'before',
57 ]
58 );
59
60 $this->end_controls_section();
61 }
62 }
63