PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.0-dev2
Elementor Website Builder – more than just a page builder v3.1.0-dev2
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.1.0-dev2, at core/kits/documents/tabs/settings-lightbox.php

186 lines 4.2 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 protected function register_tab_controls() {
22 $this->start_controls_section(
23 'section_' . $this->get_id(),
24 [
25 'label' => $this->get_title(),
26 'tab' => $this->get_id(),
27 ]
28 );
29
30 $this->add_control(
31 'global_image_lightbox',
32 [
33 'label' => __( 'Image Lightbox', 'elementor' ),
34 'type' => Controls_Manager::SWITCHER,
35 'default' => 'yes',
36 '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' ),
37 'frontend_available' => true,
38 ]
39 );
40
41 $this->add_control(
42 'lightbox_enable_counter',
43 [
44 'label' => __( 'Counter', 'elementor' ),
45 'type' => Controls_Manager::SWITCHER,
46 'default' => 'yes',
47 'frontend_available' => true,
48 ]
49 );
50
51 $this->add_control(
52 'lightbox_enable_fullscreen',
53 [
54 'label' => __( 'Fullscreen', 'elementor' ),
55 'type' => Controls_Manager::SWITCHER,
56 'default' => 'yes',
57 'frontend_available' => true,
58 ]
59 );
60
61 $this->add_control(
62 'lightbox_enable_zoom',
63 [
64 'label' => __( 'Zoom', 'elementor' ),
65 'type' => Controls_Manager::SWITCHER,
66 'default' => 'yes',
67 'frontend_available' => true,
68 ]
69 );
70
71 $this->add_control(
72 'lightbox_enable_share',
73 [
74 'label' => __( 'Share', 'elementor' ),
75 'type' => Controls_Manager::SWITCHER,
76 'default' => 'yes',
77 'frontend_available' => true,
78 ]
79 );
80
81 $this->add_control(
82 'lightbox_title_src',
83 [
84 'label' => __( 'Title', 'elementor' ),
85 'type' => Controls_Manager::SELECT,
86 'options' => [
87 '' => __( 'None', 'elementor' ),
88 'title' => __( 'Title', 'elementor' ),
89 'caption' => __( 'Caption', 'elementor' ),
90 'alt' => __( 'Alt', 'elementor' ),
91 'description' => __( 'Description', 'elementor' ),
92 ],
93 'default' => 'title',
94 'frontend_available' => true,
95 ]
96 );
97
98 $this->add_control(
99 'lightbox_description_src',
100 [
101 'label' => __( 'Description', 'elementor' ),
102 'type' => Controls_Manager::SELECT,
103 'options' => [
104 '' => __( 'None', 'elementor' ),
105 'title' => __( 'Title', 'elementor' ),
106 'caption' => __( 'Caption', 'elementor' ),
107 'alt' => __( 'Alt', 'elementor' ),
108 'description' => __( 'Description', 'elementor' ),
109 ],
110 'default' => 'description',
111 'frontend_available' => true,
112 ]
113 );
114
115 $this->add_control(
116 'lightbox_color',
117 [
118 'label' => __( 'Background Color', 'elementor' ),
119 'type' => Controls_Manager::COLOR,
120 'selectors' => [
121 '.elementor-lightbox' => 'background-color: {{VALUE}}',
122 ],
123 ]
124 );
125
126 $this->add_control(
127 'lightbox_ui_color',
128 [
129 'label' => __( 'UI Color', 'elementor' ),
130 'type' => Controls_Manager::COLOR,
131 'selectors' => [
132 '.elementor-lightbox' => '--lightbox-ui-color: {{VALUE}}',
133 ],
134 ]
135 );
136
137 $this->add_control(
138 'lightbox_ui_color_hover',
139 [
140 'label' => __( 'UI Hover Color', 'elementor' ),
141 'type' => Controls_Manager::COLOR,
142 'selectors' => [
143 '.elementor-lightbox' => '--lightbox-ui-color-hover: {{VALUE}}',
144 ],
145 ]
146 );
147
148 $this->add_control(
149 'lightbox_text_color',
150 [
151 'label' => __( 'Text Color', 'elementor' ),
152 'type' => Controls_Manager::COLOR,
153 'selectors' => [
154 '.elementor-lightbox' => '--lightbox-text-color: {{VALUE}}',
155 ],
156 ]
157 );
158
159 $this->add_control(
160 'lightbox_icons_size',
161 [
162 'label' => __( 'Toolbar Icons Size', 'elementor' ),
163 'type' => Controls_Manager::SLIDER,
164 'selectors' => [
165 '.elementor-lightbox' => '--lightbox-header-icons-size: {{SIZE}}{{UNIT}}',
166 ],
167 'separator' => 'before',
168 ]
169 );
170
171 $this->add_control(
172 'lightbox_slider_icons_size',
173 [
174 'label' => __( 'Navigation Icons Size', 'elementor' ),
175 'type' => Controls_Manager::SLIDER,
176 'selectors' => [
177 '.elementor-lightbox' => '--lightbox-navigation-icons-size: {{SIZE}}{{UNIT}}',
178 ],
179 'separator' => 'before',
180 ]
181 );
182
183 $this->end_controls_section();
184 }
185 }
186