← All changes
|
core/kits/documents/tabs/settings-background.php
+4
-35
4.2.0-beta2
→
3.0.7
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | use Elementor\Controls_Manager; |
| 5 | 5 | use Elementor\Group_Control_Background; |
| 6 | 6 | |
| 7 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | - exit; // Exit if accessed directly. | |
| 8 | + exit; // Exit if accessed directly | |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | class Settings_Background extends Tab_Base { |
| 12 | 12 | |
| @@ -14,23 +14,11 @@ | ||
| 14 | 14 | return 'settings-background'; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function get_title() { |
| 18 | - return esc_html__( 'Background', 'elementor' ); | |
| 18 | + return __( 'Background', 'elementor' ); | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - public function get_group() { | |
| 22 | - return 'settings'; | |
| 23 | - } | |
| 24 | - | |
| 25 | - public function get_icon() { | |
| 26 | - return 'eicon-background'; | |
| 27 | - } | |
| 28 | - | |
| 29 | - public function get_help_url() { | |
| 30 | - return 'https://go.elementor.com/global-background/'; | |
| 31 | - } | |
| 32 | - | |
| 33 | 21 | protected function register_tab_controls() { |
| 34 | 22 | $this->start_controls_section( |
| 35 | 23 | 'section_background', |
| 36 | 24 | [ |
| @@ -61,30 +49,11 @@ | ||
| 61 | 49 | |
| 62 | 50 | $this->add_control( |
| 63 | 51 | 'mobile_browser_background', |
| 64 | 52 | [ |
| 65 | - 'label' => esc_html__( 'Mobile Browser Background', 'elementor' ), | |
| 53 | + 'label' => __( 'Mobile Browser Background', 'elementor' ), | |
| 66 | 54 | 'type' => Controls_Manager::COLOR, |
| 67 | - 'description' => esc_html__( 'The `theme-color` meta tag will only be available in supported browsers and devices.', 'elementor' ), | |
| 68 | - 'separator' => 'before', | |
| 69 | - ] | |
| 70 | - ); | |
| 71 | - | |
| 72 | - $this->add_control( | |
| 73 | - 'body_overscroll_behavior', | |
| 74 | - [ | |
| 75 | - 'label' => esc_html__( 'Overscroll Behavior', 'elementor' ), | |
| 76 | - 'type' => Controls_Manager::SELECT, | |
| 77 | - 'options' => [ | |
| 78 | - '' => esc_html__( 'Default', 'elementor' ), | |
| 79 | - 'none' => esc_html__( 'None', 'elementor' ), | |
| 80 | - 'auto' => esc_html__( 'Auto', 'elementor' ), | |
| 81 | - 'contain' => esc_html__( 'Contain', 'elementor' ), | |
| 82 | - ], | |
| 83 | - 'separator' => 'before', | |
| 84 | - 'selectors' => [ | |
| 85 | - '{{WRAPPER}}' => 'overscroll-behavior: {{VALUE}};', | |
| 86 | - ], | |
| 55 | + 'description' => __( 'The `theme-color` meta tag will only be available in supported browsers and devices.', 'elementor' ), | |
| 87 | 56 | ] |
| 88 | 57 | ); |
| 89 | 58 | |
| 90 | 59 | $this->end_controls_section(); |