Version Description
- More options added to CTA and Info Box elements
- Flip box animation improved
- Options panel improved and community support links added
Download this release
Release Info
Developer | codetic |
Plugin | Elementor Essential Addons |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1
- admin/assets/css/admin.css +37 -1
- admin/settings.php +12 -1
- assets/css/essential-addons-elementor.css +2 -5
- elements/call-to-action/call-to-action.php +297 -28
- elements/dual-color-header/dual-color-header.php +125 -58
- elements/flipbox/flipbox.php +157 -41
- elements/infobox/infobox.php +124 -0
- essential_adons_elementor.php +33 -1
- readme.txt +14 -11
admin/assets/css/admin.css
CHANGED
@@ -254,4 +254,40 @@ textarea.eael-form-control {
|
|
254 |
|
255 |
.go-premium .eael-btn.eael-license-btn {
|
256 |
margin-top: 30px;
|
257 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
|
255 |
.go-premium .eael-btn.eael-license-btn {
|
256 |
margin-top: 30px;
|
257 |
+
}
|
258 |
+
|
259 |
+
.eael-notice {
|
260 |
+
background-color: #F7F6D4;
|
261 |
+
padding: 10px 15px;
|
262 |
+
border-radius: 5px;
|
263 |
+
box-shadow: 0 0 15px 0 rgba(0,0,0, .15);
|
264 |
+
max-width: 90%;
|
265 |
+
color: #9A7223;
|
266 |
+
}
|
267 |
+
|
268 |
+
.eael-notice h5 {
|
269 |
+
font-size: 1.2em;
|
270 |
+
font-weight: bold;
|
271 |
+
}
|
272 |
+
|
273 |
+
.essential-addons-community-link {
|
274 |
+
background-color: #475A96;
|
275 |
+
margin: 15px 0;
|
276 |
+
display: inline-block;
|
277 |
+
border-radius: 3px;
|
278 |
+
}
|
279 |
+
|
280 |
+
.essential-addons-community-link:hover {
|
281 |
+
background-color: #3351b2;
|
282 |
+
}
|
283 |
+
|
284 |
+
.essential-addons-community-link a {
|
285 |
+
color: #fff;
|
286 |
+
text-decoration: none;
|
287 |
+
padding: 15px 20px;
|
288 |
+
font-size: 1.4em;
|
289 |
+
display: flex;
|
290 |
+
align-items: center;
|
291 |
+
align-content: center;
|
292 |
+
}
|
293 |
+
|
admin/settings.php
CHANGED
@@ -131,7 +131,11 @@ class Eael_Admin_Settings {
|
|
131 |
<div class="col-half">
|
132 |
<a href="https://essential-addons.com/elementor/" target="_blank" class="button eael-btn eael-demo-btn">Explore Demos</a>
|
133 |
<a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn eael-license-btn">Get Pro License</a>
|
134 |
-
|
|
|
|
|
|
|
|
|
135 |
</div>
|
136 |
</div>
|
137 |
</div>
|
@@ -379,6 +383,13 @@ class Eael_Admin_Settings {
|
|
379 |
<a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn">Get a license</a>
|
380 |
</div>
|
381 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
</div>
|
383 |
</div>
|
384 |
</form>
|
131 |
<div class="col-half">
|
132 |
<a href="https://essential-addons.com/elementor/" target="_blank" class="button eael-btn eael-demo-btn">Explore Demos</a>
|
133 |
<a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn eael-license-btn">Get Pro License</a>
|
134 |
+
|
135 |
+
<div class="eael-notice">
|
136 |
+
<h5>Troubleshooting Info</h5>
|
137 |
+
<p>After update, if you see any element is not working properly, go to <strong>Elements</strong> Tab, toggle the element and save changes.</p>
|
138 |
+
</div>
|
139 |
</div>
|
140 |
</div>
|
141 |
</div>
|
383 |
<a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn">Get a license</a>
|
384 |
</div>
|
385 |
</div>
|
386 |
+
<div class="row">
|
387 |
+
<div class="col-half">
|
388 |
+
<div class="essential-addons-community-link">
|
389 |
+
<a href="https://www.facebook.com/groups/essentialaddons/" target="_blank"><i class="fa fa-facebook-official fa-2x fa-fw" aria-hidden="true"></i> <span>Join the Facebook Community</span></a>
|
390 |
+
</div>
|
391 |
+
</div>
|
392 |
+
</div>
|
393 |
</div>
|
394 |
</div>
|
395 |
</form>
|
assets/css/essential-addons-elementor.css
CHANGED
@@ -1803,6 +1803,7 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1803 |
position: relative;
|
1804 |
z-index: 0;
|
1805 |
text-align: center;
|
|
|
1806 |
perspective: 1000px;
|
1807 |
}
|
1808 |
.eael-flipbox .eael-vertical-flip .front {
|
@@ -1913,6 +1914,7 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1913 |
position: relative;
|
1914 |
z-index: 0;
|
1915 |
text-align: center;
|
|
|
1916 |
perspective: 1000px;
|
1917 |
}
|
1918 |
.eael-flipbox .eael-horizontal-flip .front {
|
@@ -2076,10 +2078,6 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
2076 |
.eael-call-to-action.bg-lite {
|
2077 |
background: #f4f4f4;
|
2078 |
}
|
2079 |
-
.eael-call-to-action.bg-dark {
|
2080 |
-
background: #3F51B5;
|
2081 |
-
color: #fff;
|
2082 |
-
}
|
2083 |
.eael-call-to-action.bg-img {
|
2084 |
background-image: url( '../img/bg.jpg' );
|
2085 |
background-repeat: no-repeat;
|
@@ -2089,7 +2087,6 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
2089 |
z-index: 0;
|
2090 |
color: rgba( 255,255,255, 0.7 );
|
2091 |
}
|
2092 |
-
.eael-call-to-action.bg-dark .icon,
|
2093 |
.eael-call-to-action.bg-img .icon {
|
2094 |
color: #fff;
|
2095 |
}
|
1803 |
position: relative;
|
1804 |
z-index: 0;
|
1805 |
text-align: center;
|
1806 |
+
-webkit-perspective: 1000px;
|
1807 |
perspective: 1000px;
|
1808 |
}
|
1809 |
.eael-flipbox .eael-vertical-flip .front {
|
1914 |
position: relative;
|
1915 |
z-index: 0;
|
1916 |
text-align: center;
|
1917 |
+
-webkit-perspective: 1000px;
|
1918 |
perspective: 1000px;
|
1919 |
}
|
1920 |
.eael-flipbox .eael-horizontal-flip .front {
|
2078 |
.eael-call-to-action.bg-lite {
|
2079 |
background: #f4f4f4;
|
2080 |
}
|
|
|
|
|
|
|
|
|
2081 |
.eael-call-to-action.bg-img {
|
2082 |
background-image: url( '../img/bg.jpg' );
|
2083 |
background-repeat: no-repeat;
|
2087 |
z-index: 0;
|
2088 |
color: rgba( 255,255,255, 0.7 );
|
2089 |
}
|
|
|
2090 |
.eael-call-to-action.bg-img .icon {
|
2091 |
color: #fff;
|
2092 |
}
|
elements/call-to-action/call-to-action.php
CHANGED
@@ -73,13 +73,12 @@ class Widget_Eael_Cta_Box extends Widget_Base {
|
|
73 |
[
|
74 |
'label' => esc_html__( 'Color Style', 'essential-addons-elementor' ),
|
75 |
'type' => Controls_Manager::SELECT,
|
76 |
-
'default' => 'cta-
|
77 |
'label_block' => false,
|
78 |
'options' => [
|
79 |
-
'cta-
|
80 |
-
'cta-
|
81 |
-
'cta-bg-img'
|
82 |
-
'cta-bg-img-fixed' => esc_html__( 'Background Fixed Image', 'essential-addons-elementor' ),
|
83 |
],
|
84 |
]
|
85 |
);
|
@@ -165,6 +164,131 @@ class Widget_Eael_Cta_Box extends Widget_Base {
|
|
165 |
]
|
166 |
);
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
$this->end_controls_section();
|
169 |
|
170 |
/**
|
@@ -263,36 +387,183 @@ class Widget_Eael_Cta_Box extends Widget_Base {
|
|
263 |
],
|
264 |
]
|
265 |
);
|
266 |
-
|
267 |
-
$this->
|
268 |
-
|
269 |
[
|
270 |
-
|
271 |
-
'
|
|
|
|
|
|
|
|
|
272 |
]
|
273 |
);
|
274 |
|
275 |
-
$this->
|
276 |
-
'
|
277 |
[
|
278 |
-
'label' => esc_html__( '
|
279 |
-
'type' => Controls_Manager::
|
280 |
-
'
|
281 |
'selectors' => [
|
282 |
-
|
283 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
]
|
285 |
);
|
286 |
|
287 |
-
$this->
|
288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
[
|
290 |
-
'
|
291 |
-
'
|
292 |
-
'
|
293 |
-
'selectors' => [
|
294 |
-
'{{WRAPPER}} .eael-call-to-action .cta-button:after' => 'background: {{VALUE}};',
|
295 |
-
],
|
296 |
]
|
297 |
);
|
298 |
|
@@ -305,10 +576,8 @@ class Widget_Eael_Cta_Box extends Widget_Base {
|
|
305 |
|
306 |
$settings = $this->get_settings();
|
307 |
$target = $settings['eael_cta_btn_link']['url'] ? 'target="_blank"' : '';
|
308 |
-
if( 'cta-
|
309 |
$cta_class = 'bg-lite';
|
310 |
-
}else if( 'cta-dark' == $settings['eael_cta_color_type'] ) {
|
311 |
-
$cta_class = 'bg-dark';
|
312 |
}else if( 'cta-bg-img' == $settings['eael_cta_color_type'] ) {
|
313 |
$cta_class = 'bg-img';
|
314 |
}else if( 'cta-bg-img-fixed' == $settings['eael_cta_color_type'] ) {
|
73 |
[
|
74 |
'label' => esc_html__( 'Color Style', 'essential-addons-elementor' ),
|
75 |
'type' => Controls_Manager::SELECT,
|
76 |
+
'default' => 'cta-bg-color',
|
77 |
'label_block' => false,
|
78 |
'options' => [
|
79 |
+
'cta-bg-color' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
80 |
+
'cta-bg-img' => esc_html__( 'Background Image', 'essential-addons-elementor' ),
|
81 |
+
'cta-bg-img-fixed' => esc_html__( 'Background Fixed Image', 'essential-addons-elementor' ),
|
|
|
82 |
],
|
83 |
]
|
84 |
);
|
164 |
]
|
165 |
);
|
166 |
|
167 |
+
$this->end_controls_section();
|
168 |
+
|
169 |
+
/**
|
170 |
+
* -------------------------------------------
|
171 |
+
* Tab Style (Cta Title Style)
|
172 |
+
* -------------------------------------------
|
173 |
+
*/
|
174 |
+
$this->start_controls_section(
|
175 |
+
'eael_section_cta_style_settings',
|
176 |
+
[
|
177 |
+
'label' => esc_html__( 'Call to Action Styles', 'essential-addons-elementor' ),
|
178 |
+
'tab' => Controls_Manager::TAB_STYLE
|
179 |
+
]
|
180 |
+
);
|
181 |
+
|
182 |
+
$this->add_control(
|
183 |
+
'eael_cta_bg_color',
|
184 |
+
[
|
185 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
186 |
+
'type' => Controls_Manager::COLOR,
|
187 |
+
'default' => '#f4f4f4',
|
188 |
+
'selectors' => [
|
189 |
+
'{{WRAPPER}} .eael-call-to-action' => 'background-color: {{VALUE}};',
|
190 |
+
],
|
191 |
+
]
|
192 |
+
);
|
193 |
+
|
194 |
+
$this->add_responsive_control(
|
195 |
+
'eael_cta_container_padding',
|
196 |
+
[
|
197 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
198 |
+
'type' => Controls_Manager::DIMENSIONS,
|
199 |
+
'size_units' => [ 'px', 'em', '%' ],
|
200 |
+
'selectors' => [
|
201 |
+
'{{WRAPPER}} .eael-call-to-action' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
202 |
+
],
|
203 |
+
]
|
204 |
+
);
|
205 |
+
|
206 |
+
$this->add_responsive_control(
|
207 |
+
'eael_cta_container_margin',
|
208 |
+
[
|
209 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
210 |
+
'type' => Controls_Manager::DIMENSIONS,
|
211 |
+
'size_units' => [ 'px', 'em', '%' ],
|
212 |
+
'selectors' => [
|
213 |
+
'{{WRAPPER}} .eael-call-to-action' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
214 |
+
],
|
215 |
+
]
|
216 |
+
);
|
217 |
+
|
218 |
+
$this->add_control(
|
219 |
+
'eael_cta_border_type',
|
220 |
+
[
|
221 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
222 |
+
'type' => Controls_Manager::SELECT,
|
223 |
+
'default' => 'none',
|
224 |
+
'options' => [
|
225 |
+
'none' => esc_html__( 'None', 'essential-addons-elementor' ),
|
226 |
+
'solid' => esc_html__( 'Solid', 'essential-addons-elementor' ),
|
227 |
+
'dashed' => esc_html__( 'Dashed', 'essential-addons-elementor' ),
|
228 |
+
'dotted' => esc_html__( 'Dotted', 'essential-addons-elementor' ),
|
229 |
+
'double' => esc_html__( 'Double', 'essential-addons-elementor' ),
|
230 |
+
],
|
231 |
+
'selectors' => [
|
232 |
+
'{{WRAPPER}} .eael-call-to-action' => 'border-style: {{VALUE}};',
|
233 |
+
],
|
234 |
+
]
|
235 |
+
);
|
236 |
+
|
237 |
+
$this->add_control(
|
238 |
+
'eael_cta_border_thickness',
|
239 |
+
[
|
240 |
+
'label' => esc_html__( 'Border Size', 'essential-addons-elementor' ),
|
241 |
+
'type' => Controls_Manager::SLIDER,
|
242 |
+
'range' => [
|
243 |
+
'px' => [
|
244 |
+
'max' => 50,
|
245 |
+
],
|
246 |
+
],
|
247 |
+
'selectors' => [
|
248 |
+
'{{WRAPPER}} .eael-call-to-action' => 'border-width: {{SIZE}}px;',
|
249 |
+
],
|
250 |
+
]
|
251 |
+
);
|
252 |
+
|
253 |
+
$this->add_control(
|
254 |
+
'eael_cta_border_radius',
|
255 |
+
[
|
256 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
257 |
+
'type' => Controls_Manager::SLIDER,
|
258 |
+
'range' => [
|
259 |
+
'px' => [
|
260 |
+
'max' => 500,
|
261 |
+
],
|
262 |
+
],
|
263 |
+
'selectors' => [
|
264 |
+
'{{WRAPPER}} .eael-call-to-action' => 'border-radius: {{SIZE}}px;',
|
265 |
+
],
|
266 |
+
]
|
267 |
+
);
|
268 |
+
|
269 |
+
$this->add_control(
|
270 |
+
'eael_cta_border_color',
|
271 |
+
[
|
272 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
273 |
+
'type' => Controls_Manager::COLOR,
|
274 |
+
'default' => '',
|
275 |
+
'separator' => 'after',
|
276 |
+
'selectors' => [
|
277 |
+
'{{WRAPPER}} .eael-call-to-action' => 'border-color: {{VALUE}};',
|
278 |
+
],
|
279 |
+
]
|
280 |
+
|
281 |
+
);
|
282 |
+
|
283 |
+
$this->add_group_control(
|
284 |
+
Group_Control_Box_Shadow::get_type(),
|
285 |
+
[
|
286 |
+
'name' => 'eael_cta_shadow',
|
287 |
+
'selector' => '{{WRAPPER}} .eael-call-to-action',
|
288 |
+
]
|
289 |
+
);
|
290 |
+
|
291 |
+
|
292 |
$this->end_controls_section();
|
293 |
|
294 |
/**
|
387 |
],
|
388 |
]
|
389 |
);
|
390 |
+
|
391 |
+
$this->add_responsive_control(
|
392 |
+
'eael_cta_btn_padding',
|
393 |
[
|
394 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
395 |
+
'type' => Controls_Manager::DIMENSIONS,
|
396 |
+
'size_units' => [ 'px', 'em', '%' ],
|
397 |
+
'selectors' => [
|
398 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
399 |
+
],
|
400 |
]
|
401 |
);
|
402 |
|
403 |
+
$this->add_responsive_control(
|
404 |
+
'eael_cta_btn_margin',
|
405 |
[
|
406 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
407 |
+
'type' => Controls_Manager::DIMENSIONS,
|
408 |
+
'size_units' => [ 'px', 'em', '%' ],
|
409 |
'selectors' => [
|
410 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
411 |
+
],
|
412 |
+
]
|
413 |
+
);
|
414 |
+
$this->add_group_control(
|
415 |
+
Group_Control_Typography::get_type(),
|
416 |
+
[
|
417 |
+
'name' => 'eael_cta_btn_typography',
|
418 |
+
'selector' => '{{WRAPPER}} .eael-call-to-action .cta-button',
|
419 |
]
|
420 |
);
|
421 |
|
422 |
+
$this->start_controls_tabs( 'eael_cta_button_tabs' );
|
423 |
+
|
424 |
+
// Normal State Tab
|
425 |
+
$this->start_controls_tab( 'eael_cta_btn_normal', [ 'label' => esc_html__( 'Normal', 'essential-addons-elementor' ) ] );
|
426 |
+
|
427 |
+
$this->add_control(
|
428 |
+
'eael_cta_btn_normal_text_color',
|
429 |
+
[
|
430 |
+
'label' => esc_html__( 'Text Color', 'essential-addons-elementor' ),
|
431 |
+
'type' => Controls_Manager::COLOR,
|
432 |
+
'default' => '#4d4d4d',
|
433 |
+
'selectors' => [
|
434 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'color: {{VALUE}};',
|
435 |
+
],
|
436 |
+
]
|
437 |
+
);
|
438 |
+
|
439 |
+
$this->add_control(
|
440 |
+
'eael_cta_btn_normal_bg_color',
|
441 |
+
[
|
442 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
443 |
+
'type' => Controls_Manager::COLOR,
|
444 |
+
'default' => '#f9f9f9',
|
445 |
+
'selectors' => [
|
446 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'background: {{VALUE}};',
|
447 |
+
],
|
448 |
+
]
|
449 |
+
);
|
450 |
+
|
451 |
+
$this->add_control(
|
452 |
+
'eael_cta_btn_border_type',
|
453 |
+
[
|
454 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
455 |
+
'type' => Controls_Manager::SELECT,
|
456 |
+
'default' => 'none',
|
457 |
+
'options' => [
|
458 |
+
'none' => esc_html__( 'None', 'essential-addons-elementor' ),
|
459 |
+
'solid' => esc_html__( 'Solid', 'essential-addons-elementor' ),
|
460 |
+
'dashed' => esc_html__( 'Dashed', 'essential-addons-elementor' ),
|
461 |
+
'dotted' => esc_html__( 'Dotted', 'essential-addons-elementor' ),
|
462 |
+
'double' => esc_html__( 'Double', 'essential-addons-elementor' ),
|
463 |
+
],
|
464 |
+
'selectors' => [
|
465 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'border-style: {{VALUE}};',
|
466 |
+
],
|
467 |
+
]
|
468 |
+
);
|
469 |
+
|
470 |
+
$this->add_control(
|
471 |
+
'eael_cta_btn_border_thickness',
|
472 |
+
[
|
473 |
+
'label' => esc_html__( 'Border Size', 'essential-addons-elementor' ),
|
474 |
+
'type' => Controls_Manager::SLIDER,
|
475 |
+
'range' => [
|
476 |
+
'px' => [
|
477 |
+
'max' => 50,
|
478 |
+
],
|
479 |
+
],
|
480 |
+
'selectors' => [
|
481 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'border-width: {{SIZE}}px;',
|
482 |
+
],
|
483 |
+
]
|
484 |
+
);
|
485 |
+
|
486 |
+
$this->add_control(
|
487 |
+
'eael_cta_btn_border_radius',
|
488 |
+
[
|
489 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
490 |
+
'type' => Controls_Manager::SLIDER,
|
491 |
+
'range' => [
|
492 |
+
'px' => [
|
493 |
+
'max' => 100,
|
494 |
+
],
|
495 |
+
],
|
496 |
+
'selectors' => [
|
497 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'border-radius: {{SIZE}}px;',
|
498 |
+
],
|
499 |
+
]
|
500 |
+
);
|
501 |
+
|
502 |
+
$this->add_control(
|
503 |
+
'eael_cta_btn_normal_border_color',
|
504 |
+
[
|
505 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
506 |
+
'type' => Controls_Manager::COLOR,
|
507 |
+
'default' => '',
|
508 |
+
'selectors' => [
|
509 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button' => 'border-color: {{VALUE}};',
|
510 |
+
],
|
511 |
+
]
|
512 |
+
|
513 |
+
);
|
514 |
+
|
515 |
+
$this->end_controls_tab();
|
516 |
+
|
517 |
+
// Hover State Tab
|
518 |
+
$this->start_controls_tab( 'eael_cta_btn_hover', [ 'label' => esc_html__( 'Hover', 'essential-addons-elementor' ) ] );
|
519 |
+
|
520 |
+
$this->add_control(
|
521 |
+
'eael_cta_btn_hover_text_color',
|
522 |
+
[
|
523 |
+
'label' => esc_html__( 'Text Color', 'essential-addons-elementor' ),
|
524 |
+
'type' => Controls_Manager::COLOR,
|
525 |
+
'default' => '#f9f9f9',
|
526 |
+
'selectors' => [
|
527 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button:hover' => 'color: {{VALUE}};',
|
528 |
+
],
|
529 |
+
]
|
530 |
+
);
|
531 |
+
|
532 |
+
$this->add_control(
|
533 |
+
'eael_cta_btn_hover_bg_color',
|
534 |
+
[
|
535 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
536 |
+
'type' => Controls_Manager::COLOR,
|
537 |
+
'default' => '#3F51B5',
|
538 |
+
'selectors' => [
|
539 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button:after' => 'background: {{VALUE}};',
|
540 |
+
],
|
541 |
+
]
|
542 |
+
);
|
543 |
+
|
544 |
+
$this->add_control(
|
545 |
+
'eael_cta_btn_hover_border_color',
|
546 |
+
[
|
547 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
548 |
+
'type' => Controls_Manager::COLOR,
|
549 |
+
'default' => '',
|
550 |
+
'selectors' => [
|
551 |
+
'{{WRAPPER}} .eael-call-to-action .cta-button:hover' => 'border-color: {{VALUE}};',
|
552 |
+
],
|
553 |
+
]
|
554 |
+
|
555 |
+
);
|
556 |
+
|
557 |
+
$this->end_controls_tab();
|
558 |
+
|
559 |
+
$this->end_controls_tabs();
|
560 |
+
|
561 |
+
$this->add_group_control(
|
562 |
+
Group_Control_Box_Shadow::get_type(),
|
563 |
[
|
564 |
+
'name' => 'eael_cta_button_shadow',
|
565 |
+
'selector' => '{{WRAPPER}} .eael-call-to-action .cta-button',
|
566 |
+
'separator' => 'before'
|
|
|
|
|
|
|
567 |
]
|
568 |
);
|
569 |
|
576 |
|
577 |
$settings = $this->get_settings();
|
578 |
$target = $settings['eael_cta_btn_link']['url'] ? 'target="_blank"' : '';
|
579 |
+
if( 'cta-bg-color' == $settings['eael_cta_color_type'] ) {
|
580 |
$cta_class = 'bg-lite';
|
|
|
|
|
581 |
}else if( 'cta-bg-img' == $settings['eael_cta_color_type'] ) {
|
582 |
$cta_class = 'bg-img';
|
583 |
}else if( 'cta-bg-img-fixed' == $settings['eael_cta_color_type'] ) {
|
elements/dual-color-header/dual-color-header.php
CHANGED
@@ -97,7 +97,7 @@ class Widget_Eael_Dual_Color_Header extends Widget_Base {
|
|
97 |
'label' => esc_html__( 'Title ( First Part )', 'essential-addons-elementor' ),
|
98 |
'type' => Controls_Manager::TEXT,
|
99 |
'label_block' => true,
|
100 |
-
'default' => esc_html__( 'Dual
|
101 |
]
|
102 |
);
|
103 |
|
@@ -121,63 +121,6 @@ class Widget_Eael_Dual_Color_Header extends Widget_Base {
|
|
121 |
]
|
122 |
);
|
123 |
|
124 |
-
$this->end_controls_section();
|
125 |
-
|
126 |
-
/**
|
127 |
-
* -------------------------------------------
|
128 |
-
* Dual Header Style
|
129 |
-
* -------------------------------------------
|
130 |
-
*/
|
131 |
-
$this->start_controls_section(
|
132 |
-
'eael_section_dch_general_style_settings',
|
133 |
-
[
|
134 |
-
'label' => esc_html__( 'Dual Header Style', 'essential-addons-elementor' ),
|
135 |
-
'tab' => Controls_Manager::TAB_STYLE,
|
136 |
-
]
|
137 |
-
);
|
138 |
-
|
139 |
-
$this->add_control(
|
140 |
-
'eael_dch_margin_top',
|
141 |
-
[
|
142 |
-
'label' => __( 'Margin Top', 'essential-addons-elementor' ),
|
143 |
-
'type' => Controls_Manager::SLIDER,
|
144 |
-
'default' => [
|
145 |
-
'size' => 0,
|
146 |
-
],
|
147 |
-
'range' => [
|
148 |
-
'px' => [
|
149 |
-
'min' => 0,
|
150 |
-
'max' => 200,
|
151 |
-
'step' => 1,
|
152 |
-
]
|
153 |
-
],
|
154 |
-
'selectors' => [
|
155 |
-
'{{WRAPPER}} .eael-dual-header' => 'margin-top: {{SIZE}}px;',
|
156 |
-
],
|
157 |
-
]
|
158 |
-
);
|
159 |
-
|
160 |
-
$this->add_control(
|
161 |
-
'eael_dch_margin_bottom',
|
162 |
-
[
|
163 |
-
'label' => __( 'Margin Bottom', 'essential-addons-elementor' ),
|
164 |
-
'type' => Controls_Manager::SLIDER,
|
165 |
-
'default' => [
|
166 |
-
'size' => 50,
|
167 |
-
],
|
168 |
-
'range' => [
|
169 |
-
'px' => [
|
170 |
-
'min' => 10,
|
171 |
-
'max' => 200,
|
172 |
-
'step' => 1,
|
173 |
-
]
|
174 |
-
],
|
175 |
-
'selectors' => [
|
176 |
-
'{{WRAPPER}} .eael-dual-header' => 'margin-bottom: {{SIZE}}px;',
|
177 |
-
],
|
178 |
-
]
|
179 |
-
);
|
180 |
-
|
181 |
$this->add_responsive_control(
|
182 |
'eael_dch_content_alignment',
|
183 |
[
|
@@ -205,6 +148,130 @@ class Widget_Eael_Dual_Color_Header extends Widget_Base {
|
|
205 |
|
206 |
$this->end_controls_section();
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
/**
|
209 |
* -------------------------------------------
|
210 |
* Tab Style (Icon Style)
|
97 |
'label' => esc_html__( 'Title ( First Part )', 'essential-addons-elementor' ),
|
98 |
'type' => Controls_Manager::TEXT,
|
99 |
'label_block' => true,
|
100 |
+
'default' => esc_html__( 'Dual Heading', 'essential-addons-elementor' )
|
101 |
]
|
102 |
);
|
103 |
|
121 |
]
|
122 |
);
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
$this->add_responsive_control(
|
125 |
'eael_dch_content_alignment',
|
126 |
[
|
148 |
|
149 |
$this->end_controls_section();
|
150 |
|
151 |
+
/**
|
152 |
+
* -------------------------------------------
|
153 |
+
* Tab Style ( Dual Heading Style )
|
154 |
+
* -------------------------------------------
|
155 |
+
*/
|
156 |
+
$this->start_controls_section(
|
157 |
+
'eael_section_dch_style_settings',
|
158 |
+
[
|
159 |
+
'label' => esc_html__( 'Dual Heading Styles', 'essential-addons-elementor' ),
|
160 |
+
'tab' => Controls_Manager::TAB_STYLE
|
161 |
+
]
|
162 |
+
);
|
163 |
+
|
164 |
+
$this->add_control(
|
165 |
+
'eael_dch_bg_color',
|
166 |
+
[
|
167 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
168 |
+
'type' => Controls_Manager::COLOR,
|
169 |
+
'default' => '',
|
170 |
+
'selectors' => [
|
171 |
+
'{{WRAPPER}} .eael-dual-header' => 'background-color: {{VALUE}};',
|
172 |
+
],
|
173 |
+
]
|
174 |
+
);
|
175 |
+
|
176 |
+
$this->add_responsive_control(
|
177 |
+
'eael_dch_container_padding',
|
178 |
+
[
|
179 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
180 |
+
'type' => Controls_Manager::DIMENSIONS,
|
181 |
+
'size_units' => [ 'px', 'em', '%' ],
|
182 |
+
'selectors' => [
|
183 |
+
'{{WRAPPER}} .eael-dual-header' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
184 |
+
],
|
185 |
+
]
|
186 |
+
);
|
187 |
+
|
188 |
+
$this->add_responsive_control(
|
189 |
+
'eael_dch_container_margin',
|
190 |
+
[
|
191 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
192 |
+
'type' => Controls_Manager::DIMENSIONS,
|
193 |
+
'size_units' => [ 'px', 'em', '%' ],
|
194 |
+
'selectors' => [
|
195 |
+
'{{WRAPPER}} .eael-dual-header' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
196 |
+
],
|
197 |
+
]
|
198 |
+
);
|
199 |
+
|
200 |
+
$this->add_control(
|
201 |
+
'eael_dch_border_type',
|
202 |
+
[
|
203 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
204 |
+
'type' => Controls_Manager::SELECT,
|
205 |
+
'default' => 'none',
|
206 |
+
'options' => [
|
207 |
+
'none' => esc_html__( 'None', 'essential-addons-elementor' ),
|
208 |
+
'solid' => esc_html__( 'Solid', 'essential-addons-elementor' ),
|
209 |
+
'dashed' => esc_html__( 'Dashed', 'essential-addons-elementor' ),
|
210 |
+
'dotted' => esc_html__( 'Dotted', 'essential-addons-elementor' ),
|
211 |
+
'double' => esc_html__( 'Double', 'essential-addons-elementor' ),
|
212 |
+
],
|
213 |
+
'selectors' => [
|
214 |
+
'{{WRAPPER}} .eael-dual-header' => 'border-style: {{VALUE}};',
|
215 |
+
],
|
216 |
+
]
|
217 |
+
);
|
218 |
+
|
219 |
+
$this->add_control(
|
220 |
+
'eael_dch_border_thickness',
|
221 |
+
[
|
222 |
+
'label' => esc_html__( 'Border Size', 'essential-addons-elementor' ),
|
223 |
+
'type' => Controls_Manager::SLIDER,
|
224 |
+
'range' => [
|
225 |
+
'px' => [
|
226 |
+
'max' => 50,
|
227 |
+
],
|
228 |
+
],
|
229 |
+
'selectors' => [
|
230 |
+
'{{WRAPPER}} .eael-dual-header' => 'border-width: {{SIZE}}px;',
|
231 |
+
],
|
232 |
+
]
|
233 |
+
);
|
234 |
+
|
235 |
+
$this->add_control(
|
236 |
+
'eael_dch_border_radius',
|
237 |
+
[
|
238 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
239 |
+
'type' => Controls_Manager::SLIDER,
|
240 |
+
'range' => [
|
241 |
+
'px' => [
|
242 |
+
'max' => 500,
|
243 |
+
],
|
244 |
+
],
|
245 |
+
'selectors' => [
|
246 |
+
'{{WRAPPER}} .eael-dual-header' => 'border-radius: {{SIZE}}px;',
|
247 |
+
],
|
248 |
+
]
|
249 |
+
);
|
250 |
+
|
251 |
+
$this->add_control(
|
252 |
+
'eael_dch_border_color',
|
253 |
+
[
|
254 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
255 |
+
'type' => Controls_Manager::COLOR,
|
256 |
+
'default' => '',
|
257 |
+
'separator' => 'after',
|
258 |
+
'selectors' => [
|
259 |
+
'{{WRAPPER}} .eael-dual-header' => 'border-color: {{VALUE}};',
|
260 |
+
],
|
261 |
+
]
|
262 |
+
|
263 |
+
);
|
264 |
+
|
265 |
+
$this->add_group_control(
|
266 |
+
Group_Control_Box_Shadow::get_type(),
|
267 |
+
[
|
268 |
+
'name' => 'eael_dch_shadow',
|
269 |
+
'selector' => '{{WRAPPER}} .eael-dual-header',
|
270 |
+
]
|
271 |
+
);
|
272 |
+
|
273 |
+
$this->end_controls_section();
|
274 |
+
|
275 |
/**
|
276 |
* -------------------------------------------
|
277 |
* Tab Style (Icon Style)
|
elements/flipbox/flipbox.php
CHANGED
@@ -222,6 +222,163 @@ class Widget_Eael_Flip_Box extends Widget_Base {
|
|
222 |
]
|
223 |
);
|
224 |
$this->end_controls_section();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
/**
|
226 |
* -------------------------------------------
|
227 |
* Tab Style (Flip Box Image)
|
@@ -312,47 +469,6 @@ class Widget_Eael_Flip_Box extends Widget_Base {
|
|
312 |
|
313 |
$this->end_controls_section();
|
314 |
|
315 |
-
/**
|
316 |
-
* -------------------------------------------
|
317 |
-
* Tab Style (Flip Box Background Style)
|
318 |
-
* -------------------------------------------
|
319 |
-
*/
|
320 |
-
$this->start_controls_section(
|
321 |
-
'eael_section_flipbox_bg_style_settings',
|
322 |
-
[
|
323 |
-
'label' => esc_html__( 'Background Style', 'essential-addons-elementor' ),
|
324 |
-
'tab' => Controls_Manager::TAB_STYLE,
|
325 |
-
]
|
326 |
-
);
|
327 |
-
|
328 |
-
$this->add_control(
|
329 |
-
'eael_flipbox_front_bg_color',
|
330 |
-
[
|
331 |
-
'label' => esc_html__( 'Front Background Color', 'essential-addons-elementor' ),
|
332 |
-
'type' => Controls_Manager::COLOR,
|
333 |
-
'default' => '#14bcc8',
|
334 |
-
'selectors' => [
|
335 |
-
'{{WRAPPER}} .eael-flipbox .eael-vertical-flip .front' => 'background: {{VALUE}};',
|
336 |
-
'{{WRAPPER}} .eael-flipbox .eael-horizontal-flip .front' => 'background: {{VALUE}};',
|
337 |
-
],
|
338 |
-
]
|
339 |
-
);
|
340 |
-
|
341 |
-
$this->add_control(
|
342 |
-
'eael_flipbox_back_bg_color',
|
343 |
-
[
|
344 |
-
'label' => esc_html__( 'Back Background Color', 'essential-addons-elementor' ),
|
345 |
-
'type' => Controls_Manager::COLOR,
|
346 |
-
'default' => '#ff7e70',
|
347 |
-
'selectors' => [
|
348 |
-
'{{WRAPPER}} .eael-flipbox .eael-vertical-flip .back' => 'background: {{VALUE}};',
|
349 |
-
'{{WRAPPER}} .eael-flipbox .eael-horizontal-flip .back' => 'background: {{VALUE}};',
|
350 |
-
],
|
351 |
-
]
|
352 |
-
);
|
353 |
-
|
354 |
-
$this->end_controls_section();
|
355 |
-
|
356 |
/**
|
357 |
* -------------------------------------------
|
358 |
* Tab Style (Flip Box Title Style)
|
222 |
]
|
223 |
);
|
224 |
$this->end_controls_section();
|
225 |
+
|
226 |
+
/**
|
227 |
+
* -------------------------------------------
|
228 |
+
* Tab Style (Info Box Style)
|
229 |
+
* -------------------------------------------
|
230 |
+
*/
|
231 |
+
$this->start_controls_section(
|
232 |
+
'eael_section_flipbox_style_settings',
|
233 |
+
[
|
234 |
+
'label' => esc_html__( 'Filp Box Styles', 'essential-addons-elementor' ),
|
235 |
+
'tab' => Controls_Manager::TAB_STYLE
|
236 |
+
]
|
237 |
+
);
|
238 |
+
|
239 |
+
$this->add_control(
|
240 |
+
'eael_flipbox_front_bg_color',
|
241 |
+
[
|
242 |
+
'label' => esc_html__( 'Front Background Color', 'essential-addons-elementor' ),
|
243 |
+
'type' => Controls_Manager::COLOR,
|
244 |
+
'default' => '#14bcc8',
|
245 |
+
'selectors' => [
|
246 |
+
'{{WRAPPER}} .eael-flipbox .eael-vertical-flip .front' => 'background: {{VALUE}};',
|
247 |
+
'{{WRAPPER}} .eael-flipbox .eael-horizontal-flip .front' => 'background: {{VALUE}};',
|
248 |
+
],
|
249 |
+
]
|
250 |
+
);
|
251 |
+
|
252 |
+
$this->add_control(
|
253 |
+
'eael_flipbox_back_bg_color',
|
254 |
+
[
|
255 |
+
'label' => esc_html__( 'Back Background Color', 'essential-addons-elementor' ),
|
256 |
+
'type' => Controls_Manager::COLOR,
|
257 |
+
'default' => '#ff7e70',
|
258 |
+
'selectors' => [
|
259 |
+
'{{WRAPPER}} .eael-flipbox .eael-vertical-flip .back' => 'background: {{VALUE}};',
|
260 |
+
'{{WRAPPER}} .eael-flipbox .eael-horizontal-flip .back' => 'background: {{VALUE}};',
|
261 |
+
],
|
262 |
+
]
|
263 |
+
);
|
264 |
+
|
265 |
+
$this->add_responsive_control(
|
266 |
+
'eael_flipbox_container_padding',
|
267 |
+
[
|
268 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
269 |
+
'type' => Controls_Manager::DIMENSIONS,
|
270 |
+
'size_units' => [ 'px', 'em', '%' ],
|
271 |
+
'selectors' => [
|
272 |
+
'{{WRAPPER}} .eael-flipbox' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
273 |
+
],
|
274 |
+
]
|
275 |
+
);
|
276 |
+
|
277 |
+
$this->add_responsive_control(
|
278 |
+
'eael_flipbox_front_back_padding',
|
279 |
+
[
|
280 |
+
'label' => esc_html__( 'Fornt / Back Padding', 'essential-addons-elementor' ),
|
281 |
+
'type' => Controls_Manager::DIMENSIONS,
|
282 |
+
'size_units' => [ 'px', 'em', '%' ],
|
283 |
+
'selectors' => [
|
284 |
+
'{{WRAPPER}} .eael-flipbox .front' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
285 |
+
'{{WRAPPER}} .eael-flipbox .back' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
286 |
+
],
|
287 |
+
]
|
288 |
+
);
|
289 |
+
|
290 |
+
$this->add_responsive_control(
|
291 |
+
'eael_flipbox_container_margin',
|
292 |
+
[
|
293 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
294 |
+
'type' => Controls_Manager::DIMENSIONS,
|
295 |
+
'size_units' => [ 'px', 'em', '%' ],
|
296 |
+
'selectors' => [
|
297 |
+
'{{WRAPPER}} .eael-flipbox .front' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
298 |
+
'{{WRAPPER}} .eael-flipbox .back' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
299 |
+
],
|
300 |
+
]
|
301 |
+
);
|
302 |
+
|
303 |
+
$this->add_control(
|
304 |
+
'eael_flipbox_border_type',
|
305 |
+
[
|
306 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
307 |
+
'type' => Controls_Manager::SELECT,
|
308 |
+
'default' => 'none',
|
309 |
+
'options' => [
|
310 |
+
'none' => esc_html__( 'None', 'essential-addons-elementor' ),
|
311 |
+
'solid' => esc_html__( 'Solid', 'essential-addons-elementor' ),
|
312 |
+
'dashed' => esc_html__( 'Dashed', 'essential-addons-elementor' ),
|
313 |
+
'dotted' => esc_html__( 'Dotted', 'essential-addons-elementor' ),
|
314 |
+
'double' => esc_html__( 'Double', 'essential-addons-elementor' ),
|
315 |
+
],
|
316 |
+
'selectors' => [
|
317 |
+
'{{WRAPPER}} .eael-flipbox .front' => 'border-style: {{VALUE}};',
|
318 |
+
'{{WRAPPER}} .eael-flipbox .back' => 'border-style: {{VALUE}};',
|
319 |
+
],
|
320 |
+
]
|
321 |
+
);
|
322 |
+
|
323 |
+
$this->add_control(
|
324 |
+
'eael_flipbox_border_thickness',
|
325 |
+
[
|
326 |
+
'label' => esc_html__( 'Border Size', 'essential-addons-elementor' ),
|
327 |
+
'type' => Controls_Manager::SLIDER,
|
328 |
+
'range' => [
|
329 |
+
'px' => [
|
330 |
+
'max' => 50,
|
331 |
+
],
|
332 |
+
],
|
333 |
+
'selectors' => [
|
334 |
+
'{{WRAPPER}} .eael-flipbox .front' => 'border-width: {{SIZE}}px;',
|
335 |
+
'{{WRAPPER}} .eael-flipbox .back' => 'border-width: {{SIZE}}px;',
|
336 |
+
],
|
337 |
+
]
|
338 |
+
);
|
339 |
+
|
340 |
+
$this->add_control(
|
341 |
+
'eael_flipbox_border_radius',
|
342 |
+
[
|
343 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
344 |
+
'type' => Controls_Manager::SLIDER,
|
345 |
+
'range' => [
|
346 |
+
'px' => [
|
347 |
+
'max' => 500,
|
348 |
+
],
|
349 |
+
],
|
350 |
+
'selectors' => [
|
351 |
+
'{{WRAPPER}} .eael-flipbox .front' => 'border-radius: {{SIZE}}px;',
|
352 |
+
'{{WRAPPER}} .eael-flipbox .back' => 'border-radius: {{SIZE}}px;',
|
353 |
+
],
|
354 |
+
]
|
355 |
+
);
|
356 |
+
|
357 |
+
$this->add_control(
|
358 |
+
'eael_flipbox_border_color',
|
359 |
+
[
|
360 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
361 |
+
'type' => Controls_Manager::COLOR,
|
362 |
+
'default' => '',
|
363 |
+
'separator' => 'after',
|
364 |
+
'selectors' => [
|
365 |
+
'{{WRAPPER}} .eael-flipbox .front' => 'border-color: {{VALUE}};',
|
366 |
+
'{{WRAPPER}} .eael-flipbox .back' => 'border-color: {{VALUE}};',
|
367 |
+
],
|
368 |
+
]
|
369 |
+
|
370 |
+
);
|
371 |
+
|
372 |
+
$this->add_group_control(
|
373 |
+
Group_Control_Box_Shadow::get_type(),
|
374 |
+
[
|
375 |
+
'name' => 'eael_flipbox_shadow',
|
376 |
+
'selector' => '{{WRAPPER}} .eael-flipbox',
|
377 |
+
]
|
378 |
+
);
|
379 |
+
|
380 |
+
$this->end_controls_section();
|
381 |
+
|
382 |
/**
|
383 |
* -------------------------------------------
|
384 |
* Tab Style (Flip Box Image)
|
469 |
|
470 |
$this->end_controls_section();
|
471 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
/**
|
473 |
* -------------------------------------------
|
474 |
* Tab Style (Flip Box Title Style)
|
elements/infobox/infobox.php
CHANGED
@@ -233,6 +233,130 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
233 |
'prefix_class' => 'eael-infobox-content-align-',
|
234 |
]
|
235 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
$this->end_controls_section();
|
237 |
/**
|
238 |
* -------------------------------------------
|
233 |
'prefix_class' => 'eael-infobox-content-align-',
|
234 |
]
|
235 |
);
|
236 |
+
$this->end_controls_section();
|
237 |
+
|
238 |
+
/**
|
239 |
+
* -------------------------------------------
|
240 |
+
* Tab Style (Info Box Style)
|
241 |
+
* -------------------------------------------
|
242 |
+
*/
|
243 |
+
$this->start_controls_section(
|
244 |
+
'eael_section_infobox_style_settings',
|
245 |
+
[
|
246 |
+
'label' => esc_html__( 'Info Box Styles', 'essential-addons-elementor' ),
|
247 |
+
'tab' => Controls_Manager::TAB_STYLE
|
248 |
+
]
|
249 |
+
);
|
250 |
+
|
251 |
+
$this->add_control(
|
252 |
+
'eael_infobox_bg_color',
|
253 |
+
[
|
254 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
255 |
+
'type' => Controls_Manager::COLOR,
|
256 |
+
'default' => '',
|
257 |
+
'selectors' => [
|
258 |
+
'{{WRAPPER}} .eael-infobox' => 'background-color: {{VALUE}};',
|
259 |
+
],
|
260 |
+
]
|
261 |
+
);
|
262 |
+
|
263 |
+
$this->add_responsive_control(
|
264 |
+
'eael_infobox_container_padding',
|
265 |
+
[
|
266 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
267 |
+
'type' => Controls_Manager::DIMENSIONS,
|
268 |
+
'size_units' => [ 'px', 'em', '%' ],
|
269 |
+
'selectors' => [
|
270 |
+
'{{WRAPPER}} .eael-infobox' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
271 |
+
],
|
272 |
+
]
|
273 |
+
);
|
274 |
+
|
275 |
+
$this->add_responsive_control(
|
276 |
+
'eael_infobox_container_margin',
|
277 |
+
[
|
278 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
279 |
+
'type' => Controls_Manager::DIMENSIONS,
|
280 |
+
'size_units' => [ 'px', 'em', '%' ],
|
281 |
+
'selectors' => [
|
282 |
+
'{{WRAPPER}} .eael-infobox' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
283 |
+
],
|
284 |
+
]
|
285 |
+
);
|
286 |
+
|
287 |
+
$this->add_control(
|
288 |
+
'eael_infobox_border_type',
|
289 |
+
[
|
290 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
291 |
+
'type' => Controls_Manager::SELECT,
|
292 |
+
'default' => 'none',
|
293 |
+
'options' => [
|
294 |
+
'none' => esc_html__( 'None', 'essential-addons-elementor' ),
|
295 |
+
'solid' => esc_html__( 'Solid', 'essential-addons-elementor' ),
|
296 |
+
'dashed' => esc_html__( 'Dashed', 'essential-addons-elementor' ),
|
297 |
+
'dotted' => esc_html__( 'Dotted', 'essential-addons-elementor' ),
|
298 |
+
'double' => esc_html__( 'Double', 'essential-addons-elementor' ),
|
299 |
+
],
|
300 |
+
'selectors' => [
|
301 |
+
'{{WRAPPER}} .eael-infobox' => 'border-style: {{VALUE}};',
|
302 |
+
],
|
303 |
+
]
|
304 |
+
);
|
305 |
+
|
306 |
+
$this->add_control(
|
307 |
+
'eael_infobox_border_thickness',
|
308 |
+
[
|
309 |
+
'label' => esc_html__( 'Border Size', 'essential-addons-elementor' ),
|
310 |
+
'type' => Controls_Manager::SLIDER,
|
311 |
+
'range' => [
|
312 |
+
'px' => [
|
313 |
+
'max' => 50,
|
314 |
+
],
|
315 |
+
],
|
316 |
+
'selectors' => [
|
317 |
+
'{{WRAPPER}} .eael-infobox' => 'border-width: {{SIZE}}px;',
|
318 |
+
],
|
319 |
+
]
|
320 |
+
);
|
321 |
+
|
322 |
+
$this->add_control(
|
323 |
+
'eael_infobox_border_radius',
|
324 |
+
[
|
325 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
326 |
+
'type' => Controls_Manager::SLIDER,
|
327 |
+
'range' => [
|
328 |
+
'px' => [
|
329 |
+
'max' => 500,
|
330 |
+
],
|
331 |
+
],
|
332 |
+
'selectors' => [
|
333 |
+
'{{WRAPPER}} .eael-infobox' => 'border-radius: {{SIZE}}px;',
|
334 |
+
],
|
335 |
+
]
|
336 |
+
);
|
337 |
+
|
338 |
+
$this->add_control(
|
339 |
+
'eael_infobox_border_color',
|
340 |
+
[
|
341 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
342 |
+
'type' => Controls_Manager::COLOR,
|
343 |
+
'default' => '',
|
344 |
+
'separator' => 'after',
|
345 |
+
'selectors' => [
|
346 |
+
'{{WRAPPER}} .eael-infobox' => 'border-color: {{VALUE}};',
|
347 |
+
],
|
348 |
+
]
|
349 |
+
|
350 |
+
);
|
351 |
+
|
352 |
+
$this->add_group_control(
|
353 |
+
Group_Control_Box_Shadow::get_type(),
|
354 |
+
[
|
355 |
+
'name' => 'eael_infobox_shadow',
|
356 |
+
'selector' => '{{WRAPPER}} .eael-infobox',
|
357 |
+
]
|
358 |
+
);
|
359 |
+
|
360 |
$this->end_controls_section();
|
361 |
/**
|
362 |
* -------------------------------------------
|
essential_adons_elementor.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: Elements bundle for Elementor page builder plugin for WordPress. <a href="https://essential-addons.com/elementor/buy.php">Get Premium version</a>
|
5 |
* Plugin URI: https://essential-addons.com/elementor/
|
6 |
* Author: Codetic
|
7 |
-
* Version: 2.
|
8 |
* Author URI: http://www.codetic.net
|
9 |
*
|
10 |
* Text Domain: essential-addons-elementor
|
@@ -118,3 +118,35 @@ add_action( 'elementor/editor/before_enqueue_scripts', function() {
|
|
118 |
wp_enqueue_style( 'essential_addons_elementor_editor-css' );
|
119 |
|
120 |
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
* Description: Elements bundle for Elementor page builder plugin for WordPress. <a href="https://essential-addons.com/elementor/buy.php">Get Premium version</a>
|
5 |
* Plugin URI: https://essential-addons.com/elementor/
|
6 |
* Author: Codetic
|
7 |
+
* Version: 2.1
|
8 |
* Author URI: http://www.codetic.net
|
9 |
*
|
10 |
* Text Domain: essential-addons-elementor
|
118 |
wp_enqueue_style( 'essential_addons_elementor_editor-css' );
|
119 |
|
120 |
} );
|
121 |
+
|
122 |
+
// Action menus
|
123 |
+
|
124 |
+
function eael_add_settings_link( $links ) {
|
125 |
+
$settings_link = sprintf( '<a href="admin.php?page=eael-settings">' . __( 'Settings' ) . '</a>' );
|
126 |
+
$go_pro_link = sprintf( '<a href="https://essential-addons.com/elementor/buy.php" target="_blank" style="color: #39b54a; font-weight: bold;">' . __( 'Go Pro' ) . '</a>' );
|
127 |
+
array_push( $links, $settings_link, $go_pro_link );
|
128 |
+
return $links;
|
129 |
+
}
|
130 |
+
$plugin = plugin_basename( __FILE__ );
|
131 |
+
add_filter( "plugin_action_links_$plugin", 'eael_add_settings_link' );
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
// Redirect to options page
|
136 |
+
|
137 |
+
register_activation_hook(__FILE__, 'eael_activate');
|
138 |
+
add_action('admin_init', 'eael_redirect');
|
139 |
+
|
140 |
+
function eael_activate() {
|
141 |
+
add_option('eael_do_activation_redirect', true);
|
142 |
+
}
|
143 |
+
|
144 |
+
function eael_redirect() {
|
145 |
+
if (get_option('eael_do_activation_redirect', false)) {
|
146 |
+
delete_option('eael_do_activation_redirect');
|
147 |
+
if(!isset($_GET['activate-multi']))
|
148 |
+
{
|
149 |
+
wp_redirect("admin.php?page=eael-settings");
|
150 |
+
}
|
151 |
+
}
|
152 |
+
}
|
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
=== Essential Addons
|
2 |
Contributors: Codetic, re_enter_rupok
|
3 |
-
Tags: elementor, elements, addons, elementor addon,
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8.2
|
6 |
-
Stable tag: 2.
|
7 |
License: GPLv3
|
8 |
License URI: https://opensource.org/licenses/GPL-3.0
|
9 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
@@ -87,6 +87,12 @@ Your existing elements/content will work with premium version. So you won't lose
|
|
87 |
|
88 |
== Changelog ==
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
= 2.0 =
|
91 |
|
92 |
- Options Panel added
|
@@ -113,11 +119,8 @@ Initial stable realese
|
|
113 |
|
114 |
== Upgrade Notice ==
|
115 |
|
116 |
-
= 2.
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
- Flip Box element added.
|
122 |
-
- Dual color headline element added.
|
123 |
-
- Few minor bug fixes and improvements.
|
1 |
+
=== Elementor Essential Addons ===
|
2 |
Contributors: Codetic, re_enter_rupok
|
3 |
+
Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8.2
|
6 |
+
Stable tag: 2.1
|
7 |
License: GPLv3
|
8 |
License URI: https://opensource.org/licenses/GPL-3.0
|
9 |
|
10 |
+
Ultimate elements library for Elementor WordPress Page Builder. Premium elements with endless customization options.
|
11 |
|
12 |
== Description ==
|
13 |
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= 2.1 =
|
91 |
+
|
92 |
+
* More options added to CTA and Info Box elements
|
93 |
+
* Flip box animation improved
|
94 |
+
* Options panel improved and community support links added
|
95 |
+
|
96 |
= 2.0 =
|
97 |
|
98 |
- Options Panel added
|
119 |
|
120 |
== Upgrade Notice ==
|
121 |
|
122 |
+
= 2.1 =
|
123 |
|
124 |
+
* More options added to CTA and Info Box elements
|
125 |
+
* Flip box animation improved
|
126 |
+
* Options panel improved and community support links added
|
|
|
|
|
|