PluginProbe
Elementor Website Builder – more than just a page builder / 3.2.0
Elementor Website Builder – more than just a page builder v3.2.0
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-lightbox.php

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

198 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Core\Kits\Documents\Tabs;
4
5 use Elementor\Controls_Manager;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly
9 }
10
11 class Settings_Lightbox extends Tab_Base {
12
13 public function get_id() {
14 return 'settings-lightbox';
15 }
16
17 public function get_title() {
18 return __( 'Lightbox', 'elementor' );
19 }
20
21 public function get_group() {
22 return 'settings';
23 }
24
25 public function get_icon() {
26 return 'eicon-lightbox-expand';
27 }
28
29 public function get_help_url() {
30 return 'https://go.elementor.com/global-lightbox';
31 }
32
33 protected function register_tab_controls() {
34 $this->start_controls_section(
35 'section_' . $this->get_id(),
36 [
37 'label' => $this->get_title(),
38 'tab' => $this->get_id(),
39 ]
40 );
41
42 $this->add_control(
43 'global_image_lightbox',
44 [
45 'label' => __( 'Image Lightbox', 'elementor' ),
46 'type' => Controls_Manager::SWITCHER,
47 'default' => 'yes',
48 'description' => __( 'Open all image links in a lightbox popup window. The lightbox will automatically work on any link that leads to an image file.', 'elementor' ),
49 'frontend_available' => true,
50 ]
51 );
52
53 $this->add_control(
54 'lightbox_enable_counter',
55 [
56 'label' => __( 'Counter', 'elementor' ),
57 'type' => Controls_Manager::SWITCHER,
58 'default' => 'yes',
59 'frontend_available' => true,
60 ]
61 );
62
63 $this->add_control(
64 'lightbox_enable_fullscreen',
65 [
66 'label' => __( 'Fullscreen', 'elementor' ),
67 'type' => Controls_Manager::SWITCHER,
68 'default' => 'yes',
69 'frontend_available' => true,
70 ]
71 );
72
73 $this->add_control(
74 'lightbox_enable_zoom',
75 [
76 'label' => __( 'Zoom', 'elementor' ),
77 'type' => Controls_Manager::SWITCHER,
78 'default' => 'yes',
79 'frontend_available' => true,
80 ]
81 );
82
83 $this->add_control(
84 'lightbox_enable_share',
85 [
86 'label' => __( 'Share', 'elementor' ),
87 'type' => Controls_Manager::SWITCHER,
88 'default' => 'yes',
89 'frontend_available' => true,
90 ]
91 );
92
93 $this->add_control(
94 'lightbox_title_src',
95 [
96 'label' => __( 'Title', 'elementor' ),
97 'type' => Controls_Manager::SELECT,
98 'options' => [
99 '' => __( 'None', 'elementor' ),
100 'title' => __( 'Title', 'elementor' ),
101 'caption' => __( 'Caption', 'elementor' ),
102 'alt' => __( 'Alt', 'elementor' ),
103 'description' => __( 'Description', 'elementor' ),
104 ],
105 'default' => 'title',
106 'frontend_available' => true,
107 ]
108 );
109
110 $this->add_control(
111 'lightbox_description_src',
112 [
113 'label' => __( 'Description', 'elementor' ),
114 'type' => Controls_Manager::SELECT,
115 'options' => [
116 '' => __( 'None', 'elementor' ),
117 'title' => __( 'Title', 'elementor' ),
118 'caption' => __( 'Caption', 'elementor' ),
119 'alt' => __( 'Alt', 'elementor' ),
120 'description' => __( 'Description', 'elementor' ),
121 ],
122 'default' => 'description',
123 'frontend_available' => true,
124 ]
125 );
126
127 $this->add_control(
128 'lightbox_color',
129 [
130 'label' => __( 'Background Color', 'elementor' ),
131 'type' => Controls_Manager::COLOR,
132 'selectors' => [
133 '.elementor-lightbox' => 'background-color: {{VALUE}}',
134 ],
135 ]
136 );
137
138 $this->add_control(
139 'lightbox_ui_color',
140 [
141 'label' => __( 'UI Color', 'elementor' ),
142 'type' => Controls_Manager::COLOR,
143 'selectors' => [
144 '.elementor-lightbox' => '--lightbox-ui-color: {{VALUE}}',
145 ],
146 ]
147 );
148
149 $this->add_control(
150 'lightbox_ui_color_hover',
151 [
152 'label' => __( 'UI Hover Color', 'elementor' ),
153 'type' => Controls_Manager::COLOR,
154 'selectors' => [
155 '.elementor-lightbox' => '--lightbox-ui-color-hover: {{VALUE}}',
156 ],
157 ]
158 );
159
160 $this->add_control(
161 'lightbox_text_color',
162 [
163 'label' => __( 'Text Color', 'elementor' ),
164 'type' => Controls_Manager::COLOR,
165 'selectors' => [
166 '.elementor-lightbox' => '--lightbox-text-color: {{VALUE}}',
167 ],
168 ]
169 );
170
171 $this->add_control(
172 'lightbox_icons_size',
173 [
174 'label' => __( 'Toolbar Icons Size', 'elementor' ),
175 'type' => Controls_Manager::SLIDER,
176 'selectors' => [
177 '.elementor-lightbox' => '--lightbox-header-icons-size: {{SIZE}}{{UNIT}}',
178 ],
179 'separator' => 'before',
180 ]
181 );
182
183 $this->add_control(
184 'lightbox_slider_icons_size',
185 [
186 'label' => __( 'Navigation Icons Size', 'elementor' ),
187 'type' => Controls_Manager::SLIDER,
188 'selectors' => [
189 '.elementor-lightbox' => '--lightbox-navigation-icons-size: {{SIZE}}{{UNIT}}',
190 ],
191 'separator' => 'before',
192 ]
193 );
194
195 $this->end_controls_section();
196 }
197 }
198