Version Description
- Tweak: Added transition effect for Premium Modal Box widget.
- Fix: Premium Maps bug on IE.
- Fix: Text Domain misspelling for some controls.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.1.7 |
Comparing to | |
See all releases |
Code changes from version 2.1.6 to 2.1.7
- admin/settings-page.php +1 -1
- assets/css/premium-addons.css +24 -11
- assets/js/lib/modal.js +4 -4
- assets/js/premium-addons.js +1 -87
- assets/js/premium-maps.js +86 -0
- includes/rollback.php +2 -1
- premium-addons-for-elementor.php +6 -6
- readme.txt +7 -1
- widgets/premium-blog.php +5 -5
- widgets/premium-button.php +5 -5
- widgets/premium-dual-header.php +5 -4
- widgets/premium-fancytext.php +5 -5
- widgets/premium-grid.php +5 -5
- widgets/premium-image-button.php +5 -5
- widgets/premium-maps.php +13 -12
- widgets/premium-modalbox.php +1 -1
- widgets/premium-person.php +5 -5
- widgets/premium-pricing-table.php +9 -9
- widgets/premium-title.php +5 -5
admin/settings-page.php
CHANGED
@@ -356,7 +356,7 @@ class PA_admin_settings {
|
|
356 |
|
357 |
<tr class="pa-roll-row">
|
358 |
<th>Rollback Version</th>
|
359 |
-
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.1.
|
360 |
</tr>
|
361 |
<tr>
|
362 |
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
|
356 |
|
357 |
<tr class="pa-roll-row">
|
358 |
<th>Rollback Version</th>
|
359 |
+
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.1.6</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
|
360 |
</tr>
|
361 |
<tr>
|
362 |
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
|
assets/css/premium-addons.css
CHANGED
@@ -854,18 +854,16 @@ button.premium-modal-box-modal-close {
|
|
854 |
outline: 0;
|
855 |
padding: 0 !important;
|
856 |
}
|
857 |
-
.premium-modal-box-modal .premium-modal-box-modal-dialog {
|
858 |
-
-webkit-transition: -webkit-transform .3s ease-out !important;
|
859 |
-
-o-transition: -o-transform .3s ease-out !important;
|
860 |
-
transition: transform .3s ease-out !important;
|
861 |
-
}
|
862 |
.premium-modal-box-modal .premium-modal-box-modal-dialog {
|
863 |
position: absolute;
|
864 |
-
top:
|
865 |
left: 50%;
|
866 |
-webkit-transform: translate(-50%,-50%) !important;
|
867 |
transform: translate(-50%,-50%) !important;
|
868 |
margin: 0;
|
|
|
|
|
|
|
869 |
}
|
870 |
.premium-modal-box-modal-content {
|
871 |
background-color: #fff;
|
@@ -877,6 +875,13 @@ button.premium-modal-box-modal-close {
|
|
877 |
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
878 |
box-shadow: 0 3px 9px rgba(0, 0, 0, .5)
|
879 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
.premium-modal-backdrop {
|
881 |
position: fixed;
|
882 |
top: 0;
|
@@ -886,13 +891,21 @@ button.premium-modal-box-modal-close {
|
|
886 |
z-index: 1040;
|
887 |
background-color: #000
|
888 |
}
|
889 |
-
.premium-modal-backdrop.fade {
|
890 |
filter: alpha(opacity=0);
|
891 |
-
opacity: 0
|
892 |
}
|
893 |
-
.premium-modal-
|
894 |
-
|
895 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
896 |
}
|
897 |
.premium-modal-box-modal-header {
|
898 |
padding: 15px;
|
854 |
outline: 0;
|
855 |
padding: 0 !important;
|
856 |
}
|
|
|
|
|
|
|
|
|
|
|
857 |
.premium-modal-box-modal .premium-modal-box-modal-dialog {
|
858 |
position: absolute;
|
859 |
+
top: 0;
|
860 |
left: 50%;
|
861 |
-webkit-transform: translate(-50%,-50%) !important;
|
862 |
transform: translate(-50%,-50%) !important;
|
863 |
margin: 0;
|
864 |
+
-webkit-transition: all .3s ease-in-out;
|
865 |
+
-o-transition: all .3s ease-in-out;
|
866 |
+
transition: all .3s ease-in-out;
|
867 |
}
|
868 |
.premium-modal-box-modal-content {
|
869 |
background-color: #fff;
|
875 |
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
|
876 |
box-shadow: 0 3px 9px rgba(0, 0, 0, .5)
|
877 |
}
|
878 |
+
.premium-modal-backdrop.premium-in {
|
879 |
+
filter: alpha(opacity=50);
|
880 |
+
opacity: .5 !important;
|
881 |
+
}
|
882 |
+
.premium-modal-fade.premium-in {
|
883 |
+
opacity: 1;
|
884 |
+
}
|
885 |
.premium-modal-backdrop {
|
886 |
position: fixed;
|
887 |
top: 0;
|
891 |
z-index: 1040;
|
892 |
background-color: #000
|
893 |
}
|
894 |
+
.premium-modal-backdrop.premium-modal-fade {
|
895 |
filter: alpha(opacity=0);
|
896 |
+
opacity: 0;
|
897 |
}
|
898 |
+
.premium-modal-fade {
|
899 |
+
opacity: 0;
|
900 |
+
-webkit-transition: opacity .3s ease-in-out;
|
901 |
+
-o-transition: opacity .3s ease-in-out;
|
902 |
+
transition: opacity .3s ease-in-out;
|
903 |
+
}
|
904 |
+
.premium-modal-box-modal.premium-in .premium-modal-box-modal-dialog {
|
905 |
+
-webkit-transition: all .3s ease-in-out;
|
906 |
+
-o-transition: all .3s ease-in-out;
|
907 |
+
transition: all .3s ease-in-out;
|
908 |
+
top: 50%;
|
909 |
}
|
910 |
.premium-modal-box-modal-header {
|
911 |
padding: 15px;
|
assets/js/lib/modal.js
CHANGED
@@ -95,7 +95,7 @@ if (typeof jQuery === 'undefined') {
|
|
95 |
})
|
96 |
|
97 |
this.backdrop(function () {
|
98 |
-
var transition = $.support.transition && that.$element.hasClass('fade')
|
99 |
|
100 |
if (!that.$element.parent().length) {
|
101 |
that.$element.appendTo(that.$body) // don't move modals dom position
|
@@ -150,7 +150,7 @@ if (typeof jQuery === 'undefined') {
|
|
150 |
|
151 |
this.$dialog.off('mousedown.dismiss.bs.modal')
|
152 |
|
153 |
-
$.support.transition && this.$element.hasClass('fade') ?
|
154 |
this.$element
|
155 |
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
|
156 |
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
|
@@ -205,7 +205,7 @@ if (typeof jQuery === 'undefined') {
|
|
205 |
|
206 |
Modal.prototype.backdrop = function (callback) {
|
207 |
var that = this
|
208 |
-
var animate = this.$element.hasClass('fade') ? 'fade' : ''
|
209 |
|
210 |
if (this.isShown && this.options.backdrop) {
|
211 |
var doAnimate = $.support.transition && animate
|
@@ -244,7 +244,7 @@ if (typeof jQuery === 'undefined') {
|
|
244 |
that.removeBackdrop()
|
245 |
callback && callback()
|
246 |
}
|
247 |
-
$.support.transition && this.$element.hasClass('fade') ?
|
248 |
this.$backdrop
|
249 |
.one('bsTransitionEnd', callbackRemove)
|
250 |
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
|
95 |
})
|
96 |
|
97 |
this.backdrop(function () {
|
98 |
+
var transition = $.support.transition && that.$element.hasClass('premium-modal-fade')
|
99 |
|
100 |
if (!that.$element.parent().length) {
|
101 |
that.$element.appendTo(that.$body) // don't move modals dom position
|
150 |
|
151 |
this.$dialog.off('mousedown.dismiss.bs.modal')
|
152 |
|
153 |
+
$.support.transition && this.$element.hasClass('premium-modal-fade') ?
|
154 |
this.$element
|
155 |
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
|
156 |
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
|
205 |
|
206 |
Modal.prototype.backdrop = function (callback) {
|
207 |
var that = this
|
208 |
+
var animate = this.$element.hasClass('premium-modal-fade') ? 'premium-modal-fade' : ''
|
209 |
|
210 |
if (this.isShown && this.options.backdrop) {
|
211 |
var doAnimate = $.support.transition && animate
|
244 |
that.removeBackdrop()
|
245 |
callback && callback()
|
246 |
}
|
247 |
+
$.support.transition && this.$element.hasClass('premium-modal-fade') ?
|
248 |
this.$backdrop
|
249 |
.one('bsTransitionEnd', callbackRemove)
|
250 |
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
|
assets/js/premium-addons.js
CHANGED
@@ -356,91 +356,6 @@
|
|
356 |
});
|
357 |
}
|
358 |
};
|
359 |
-
//Premium Maps Handler
|
360 |
-
var PremiumMapsHandler = function($scope,$){
|
361 |
-
var mapElement = $scope.find('.premium_maps_map_height');
|
362 |
-
var mapSettings = mapElement.data('settings');
|
363 |
-
var mapStyle = mapElement.data('style');
|
364 |
-
premiumMap = newMap(mapElement,mapSettings,mapStyle);
|
365 |
-
function newMap(map,settings,mapStyle){
|
366 |
-
var scrollwheel = JSON.parse(settings['scrollwheel']);
|
367 |
-
var streetViewControl = JSON.parse(settings['streetViewControl']);
|
368 |
-
var fullscreenControl = JSON.parse(settings['fullScreen']);
|
369 |
-
var zoomControl = JSON.parse(settings['zoomControl']);
|
370 |
-
var mapTypeControl = JSON.parse(settings['typeControl']);
|
371 |
-
var centerLat = JSON.parse(settings['centerlat']);
|
372 |
-
var centerLong = JSON.parse(settings['centerlong']);
|
373 |
-
var autoOpen = JSON.parse(settings['automaticOpen']);
|
374 |
-
var hoverOpen = JSON.parse(settings['hoverOpen']);
|
375 |
-
var hoverClose = JSON.parse(settings['hoverClose']);
|
376 |
-
var args = {
|
377 |
-
zoom: settings['zoom'],
|
378 |
-
mapTypeId: settings['maptype'],
|
379 |
-
center: {lat: centerLat, lng: centerLong},
|
380 |
-
scrollwheel: scrollwheel,
|
381 |
-
streetViewControl: streetViewControl,
|
382 |
-
fullscreenControl: fullscreenControl,
|
383 |
-
zoomControl: zoomControl,
|
384 |
-
mapTypeControl: mapTypeControl,
|
385 |
-
styles: mapStyle
|
386 |
-
};
|
387 |
-
var markers = map.find(".premium-pin");
|
388 |
-
var map = new google.maps.Map( map[0], args);
|
389 |
-
map.markers = [];
|
390 |
-
// add markers
|
391 |
-
markers.each(function(){
|
392 |
-
add_marker( jQuery(this), map, autoOpen, hoverOpen, hoverClose );
|
393 |
-
});
|
394 |
-
return map;
|
395 |
-
}
|
396 |
-
function add_marker( pin, map ,autoOpen, hoverOpen, hoverClose ) {
|
397 |
-
var latlng = new google.maps.LatLng( pin.attr('data-lat'), pin.attr('data-lng') );
|
398 |
-
|
399 |
-
icon_img = pin.attr('data-icon');
|
400 |
-
if(icon_img != ''){
|
401 |
-
var icon = {
|
402 |
-
url : pin.attr('data-icon')
|
403 |
-
};
|
404 |
-
}
|
405 |
-
|
406 |
-
// create marker
|
407 |
-
var marker = new google.maps.Marker({
|
408 |
-
position : latlng,
|
409 |
-
map : map,
|
410 |
-
icon : icon
|
411 |
-
});
|
412 |
-
|
413 |
-
// add to array
|
414 |
-
map.markers.push( marker );
|
415 |
-
|
416 |
-
// if marker contains HTML, add it to an infoWindow
|
417 |
-
|
418 |
-
if( pin.find('.premium-maps-info-title').html() || pin.find('.premium-maps-info-desc').html() )
|
419 |
-
{
|
420 |
-
// create info window
|
421 |
-
var infowindow = new google.maps.InfoWindow({
|
422 |
-
content : pin.html()
|
423 |
-
});
|
424 |
-
if(autoOpen){
|
425 |
-
infowindow.open( map, marker );
|
426 |
-
}
|
427 |
-
if(hoverOpen){
|
428 |
-
google.maps.event.addListener(marker, 'mouseover', function() {
|
429 |
-
infowindow.open( map, marker );
|
430 |
-
});
|
431 |
-
if(hoverClose){
|
432 |
-
google.maps.event.addListener(marker, 'mouseout', function() {
|
433 |
-
infowindow.close( map, marker );
|
434 |
-
});
|
435 |
-
}
|
436 |
-
}
|
437 |
-
// show info window when marker is clicked
|
438 |
-
google.maps.event.addListener(marker, 'click', function() {
|
439 |
-
infowindow.open( map, marker );
|
440 |
-
});
|
441 |
-
}
|
442 |
-
}
|
443 |
-
};
|
444 |
|
445 |
//Elementor JS Hooks
|
446 |
$(window).on('elementor/frontend/init', function () {
|
@@ -452,11 +367,10 @@
|
|
452 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-carousel-widget.default',PremiumCarouselHandler);
|
453 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-banner.default',PremiumBannerHandler);
|
454 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-modal-box.default',PremiumModalBoxHandler);
|
455 |
-
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-maps.default',PremiumMapsHandler);
|
456 |
if(elementorFrontend.isEditMode()){
|
457 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-progressbar.default', PremiumProgressBarWidgetHandler);
|
458 |
} else {
|
459 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-progressbar.default', PremiumProgressBarScrollWidgetHandler);
|
460 |
}
|
461 |
});
|
462 |
-
})(jQuery);
|
356 |
});
|
357 |
}
|
358 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
//Elementor JS Hooks
|
361 |
$(window).on('elementor/frontend/init', function () {
|
367 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-carousel-widget.default',PremiumCarouselHandler);
|
368 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-banner.default',PremiumBannerHandler);
|
369 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-modal-box.default',PremiumModalBoxHandler);
|
|
|
370 |
if(elementorFrontend.isEditMode()){
|
371 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-progressbar.default', PremiumProgressBarWidgetHandler);
|
372 |
} else {
|
373 |
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-progressbar.default', PremiumProgressBarScrollWidgetHandler);
|
374 |
}
|
375 |
});
|
376 |
+
})(jQuery);
|
assets/js/premium-maps.js
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(window).on('elementor/frontend/init',function(){
|
2 |
+
elementorFrontend.hooks.addAction('frontend/element_ready/premium-addon-maps.default',function($scope,$){
|
3 |
+
var mapElement = $scope.find('.premium_maps_map_height');
|
4 |
+
var mapSettings = mapElement.data('settings');
|
5 |
+
var mapStyle = mapElement.data('style');
|
6 |
+
premiumMap = newMap(mapElement,mapSettings,mapStyle);
|
7 |
+
function newMap(map,settings,mapStyle){
|
8 |
+
var scrollwheel = JSON.parse(settings['scrollwheel']);
|
9 |
+
var streetViewControl = JSON.parse(settings['streetViewControl']);
|
10 |
+
var fullscreenControl = JSON.parse(settings['fullScreen']);
|
11 |
+
var zoomControl = JSON.parse(settings['zoomControl']);
|
12 |
+
var mapTypeControl = JSON.parse(settings['typeControl']);
|
13 |
+
var centerLat = JSON.parse(settings['centerlat']);
|
14 |
+
var centerLong = JSON.parse(settings['centerlong']);
|
15 |
+
var autoOpen = JSON.parse(settings['automaticOpen']);
|
16 |
+
var hoverOpen = JSON.parse(settings['hoverOpen']);
|
17 |
+
var hoverClose = JSON.parse(settings['hoverClose']);
|
18 |
+
var args = {
|
19 |
+
zoom: settings['zoom'],
|
20 |
+
mapTypeId: settings['maptype'],
|
21 |
+
center: {lat: centerLat, lng: centerLong},
|
22 |
+
scrollwheel: scrollwheel,
|
23 |
+
streetViewControl: streetViewControl,
|
24 |
+
fullscreenControl: fullscreenControl,
|
25 |
+
zoomControl: zoomControl,
|
26 |
+
mapTypeControl: mapTypeControl,
|
27 |
+
styles: mapStyle
|
28 |
+
};
|
29 |
+
var markers = map.find(".premium-pin");
|
30 |
+
var map = new google.maps.Map( map[0], args);
|
31 |
+
map.markers = [];
|
32 |
+
// add markers
|
33 |
+
markers.each(function(){
|
34 |
+
add_marker( jQuery(this), map, autoOpen, hoverOpen, hoverClose );
|
35 |
+
});
|
36 |
+
return map;
|
37 |
+
}
|
38 |
+
function add_marker( pin, map ,autoOpen, hoverOpen, hoverClose ) {
|
39 |
+
var latlng = new google.maps.LatLng( pin.attr('data-lat'), pin.attr('data-lng') );
|
40 |
+
|
41 |
+
icon_img = pin.attr('data-icon');
|
42 |
+
if(icon_img != ''){
|
43 |
+
var icon = {
|
44 |
+
url : pin.attr('data-icon')
|
45 |
+
};
|
46 |
+
}
|
47 |
+
|
48 |
+
// create marker
|
49 |
+
var marker = new google.maps.Marker({
|
50 |
+
position : latlng,
|
51 |
+
map : map,
|
52 |
+
icon : icon
|
53 |
+
});
|
54 |
+
|
55 |
+
// add to array
|
56 |
+
map.markers.push( marker );
|
57 |
+
|
58 |
+
// if marker contains HTML, add it to an infoWindow
|
59 |
+
|
60 |
+
if( pin.find('.premium-maps-info-title').html() || pin.find('.premium-maps-info-desc').html() )
|
61 |
+
{
|
62 |
+
// create info window
|
63 |
+
var infowindow = new google.maps.InfoWindow({
|
64 |
+
content : pin.html()
|
65 |
+
});
|
66 |
+
if(autoOpen){
|
67 |
+
infowindow.open( map, marker );
|
68 |
+
}
|
69 |
+
if(hoverOpen){
|
70 |
+
google.maps.event.addListener(marker, 'mouseover', function() {
|
71 |
+
infowindow.open( map, marker );
|
72 |
+
});
|
73 |
+
if(hoverClose){
|
74 |
+
google.maps.event.addListener(marker, 'mouseout', function() {
|
75 |
+
infowindow.close( map, marker );
|
76 |
+
});
|
77 |
+
}
|
78 |
+
}
|
79 |
+
// show info window when marker is clicked
|
80 |
+
google.maps.event.addListener(marker, 'click', function() {
|
81 |
+
infowindow.open( map, marker );
|
82 |
+
});
|
83 |
+
}
|
84 |
+
}
|
85 |
+
});
|
86 |
+
});
|
includes/rollback.php
CHANGED
@@ -64,7 +64,7 @@ class PA_Rollback {
|
|
64 |
'url' => 'update.php?action=upgrade-plugin&plugin=' . rawurlencode( $this->plugin_name ),
|
65 |
'plugin' => $this->plugin_name,
|
66 |
'nonce' => 'upgrade-plugin_' . $this->plugin_name,
|
67 |
-
'title' => '<img src="' . $logo_url . '" alt="Premium Addons">' . __( 'Rolling Back to Version ' . PREMIUM_ADDONS_STABLE_VERSION, 'elementor' ),
|
68 |
];
|
69 |
|
70 |
$this->print_inline_style();
|
@@ -78,3 +78,4 @@ class PA_Rollback {
|
|
78 |
$this->upgrade();
|
79 |
}
|
80 |
}
|
|
64 |
'url' => 'update.php?action=upgrade-plugin&plugin=' . rawurlencode( $this->plugin_name ),
|
65 |
'plugin' => $this->plugin_name,
|
66 |
'nonce' => 'upgrade-plugin_' . $this->plugin_name,
|
67 |
+
'title' => '<img src="' . $logo_url . '" alt="Premium Addons">' . __( 'Rolling Back to Version ' . PREMIUM_ADDONS_STABLE_VERSION, 'premium-addons-for-elementor' ),
|
68 |
];
|
69 |
|
70 |
$this->print_inline_style();
|
78 |
$this->upgrade();
|
79 |
}
|
80 |
}
|
81 |
+
|
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 2.1.
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -22,12 +22,12 @@ if( !function_exists('add_action') ) {
|
|
22 |
|
23 |
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
|
24 |
|
25 |
-
define( 'PREMIUM_ADDONS_VERSION', '2.1.
|
26 |
define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
|
27 |
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
28 |
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
|
29 |
define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
30 |
-
define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.1.
|
31 |
|
32 |
|
33 |
/**
|
@@ -167,9 +167,9 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.1.5');
|
|
167 |
wp_register_script( 'premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array( 'jquery' ), PREMIUM_ADDONS_VERSION, true );
|
168 |
}
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
}
|
174 |
|
175 |
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 2.1.7
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
22 |
|
23 |
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
|
24 |
|
25 |
+
define( 'PREMIUM_ADDONS_VERSION', '2.1.7' );
|
26 |
define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
|
27 |
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
28 |
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
|
29 |
define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
30 |
+
define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.1.6');
|
31 |
|
32 |
|
33 |
/**
|
167 |
wp_register_script( 'premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array( 'jquery' ), PREMIUM_ADDONS_VERSION, true );
|
168 |
}
|
169 |
|
170 |
+
if ($check_component_active['premium-maps']) {
|
171 |
+
wp_register_script('premium-maps-js', PREMIUM_ADDONS_URL . 'assets/js/premium-maps.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
|
172 |
+
}
|
173 |
}
|
174 |
|
175 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.5
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -99,6 +99,12 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
= 2.1.6 =
|
103 |
|
104 |
- Tweak: Added Input Field & Text Area & Button width and height for Premium Contact Form 7 widget.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.5
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.1.7
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 2.1.7 =
|
103 |
+
|
104 |
+
- Tweak: Added transition effect for Premium Modal Box widget.
|
105 |
+
- Fix: Premium Maps bug on IE.
|
106 |
+
- Fix: Text Domain misspelling for some controls.
|
107 |
+
|
108 |
= 2.1.6 =
|
109 |
|
110 |
- Tweak: Added Input Field & Text Area & Button width and height for Premium Contact Form 7 widget.
|
widgets/premium-blog.php
CHANGED
@@ -219,19 +219,19 @@ class Premium_Blog_Widget extends Widget_Base
|
|
219 |
/*Front Text Align*/
|
220 |
$this->add_responsive_control('premium_flip_text_align',
|
221 |
[
|
222 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
223 |
'type' => Controls_Manager::CHOOSE,
|
224 |
'options' => [
|
225 |
'left' => [
|
226 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
227 |
'icon' => 'fa fa-align-left',
|
228 |
],
|
229 |
'center' => [
|
230 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
231 |
'icon' => 'fa fa-align-center',
|
232 |
],
|
233 |
'right' => [
|
234 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
235 |
'icon' => 'fa fa-align-right',
|
236 |
],
|
237 |
],
|
@@ -807,4 +807,4 @@ if(count($posts)){
|
|
807 |
<?php
|
808 |
}
|
809 |
}
|
810 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Blog_Widget());
|
219 |
/*Front Text Align*/
|
220 |
$this->add_responsive_control('premium_flip_text_align',
|
221 |
[
|
222 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
223 |
'type' => Controls_Manager::CHOOSE,
|
224 |
'options' => [
|
225 |
'left' => [
|
226 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
227 |
'icon' => 'fa fa-align-left',
|
228 |
],
|
229 |
'center' => [
|
230 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
231 |
'icon' => 'fa fa-align-center',
|
232 |
],
|
233 |
'right' => [
|
234 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
235 |
'icon' => 'fa fa-align-right',
|
236 |
],
|
237 |
],
|
807 |
<?php
|
808 |
}
|
809 |
}
|
810 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Blog_Widget());
|
widgets/premium-button.php
CHANGED
@@ -417,19 +417,19 @@ class Premium_Button_Widget extends Widget_Base
|
|
417 |
/*Button Align*/
|
418 |
$this->add_responsive_control('premium_button_align',
|
419 |
[
|
420 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
421 |
'type' => Controls_Manager::CHOOSE,
|
422 |
'options' => [
|
423 |
'left' => [
|
424 |
-
'title' => __( 'Left', 'elementor' ),
|
425 |
'icon' => 'fa fa-align-left',
|
426 |
],
|
427 |
'center' => [
|
428 |
-
'title' => __( 'Center', 'elementor' ),
|
429 |
'icon' => 'fa fa-align-center',
|
430 |
],
|
431 |
'right' => [
|
432 |
-
'title' => __( 'Right', 'elementor' ),
|
433 |
'icon' => 'fa fa-align-right',
|
434 |
],
|
435 |
],
|
@@ -825,4 +825,4 @@ class Premium_Button_Widget extends Widget_Base
|
|
825 |
<?php
|
826 |
}
|
827 |
}
|
828 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Button_Widget());
|
417 |
/*Button Align*/
|
418 |
$this->add_responsive_control('premium_button_align',
|
419 |
[
|
420 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
421 |
'type' => Controls_Manager::CHOOSE,
|
422 |
'options' => [
|
423 |
'left' => [
|
424 |
+
'title' => __( 'Left', 'premium-addons-for-elementor' ),
|
425 |
'icon' => 'fa fa-align-left',
|
426 |
],
|
427 |
'center' => [
|
428 |
+
'title' => __( 'Center', 'premium-addons-for-elementor' ),
|
429 |
'icon' => 'fa fa-align-center',
|
430 |
],
|
431 |
'right' => [
|
432 |
+
'title' => __( 'Right', 'premium-addons-for-elementor' ),
|
433 |
'icon' => 'fa fa-align-right',
|
434 |
],
|
435 |
],
|
825 |
<?php
|
826 |
}
|
827 |
}
|
828 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Button_Widget());
|
widgets/premium-dual-header.php
CHANGED
@@ -170,19 +170,19 @@ class Premium_Dual_Header_Widget extends Widget_Base
|
|
170 |
/*Text Align*/
|
171 |
$this->add_responsive_control('premium_dual_header_text_align',
|
172 |
[
|
173 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
174 |
'type' => Controls_Manager::CHOOSE,
|
175 |
'options' => [
|
176 |
'left' => [
|
177 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
178 |
'icon' => 'fa fa-align-left',
|
179 |
],
|
180 |
'center' => [
|
181 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
182 |
'icon' => 'fa fa-align-center',
|
183 |
],
|
184 |
'right' => [
|
185 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
186 |
'icon' => 'fa fa-align-right',
|
187 |
],
|
188 |
],
|
@@ -509,3 +509,4 @@ class Premium_Dual_Header_Widget extends Widget_Base
|
|
509 |
}
|
510 |
}
|
511 |
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Dual_Header_Widget());
|
|
170 |
/*Text Align*/
|
171 |
$this->add_responsive_control('premium_dual_header_text_align',
|
172 |
[
|
173 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
174 |
'type' => Controls_Manager::CHOOSE,
|
175 |
'options' => [
|
176 |
'left' => [
|
177 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
178 |
'icon' => 'fa fa-align-left',
|
179 |
],
|
180 |
'center' => [
|
181 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
182 |
'icon' => 'fa fa-align-center',
|
183 |
],
|
184 |
'right' => [
|
185 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
186 |
'icon' => 'fa fa-align-right',
|
187 |
],
|
188 |
],
|
509 |
}
|
510 |
}
|
511 |
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Dual_Header_Widget());
|
512 |
+
|
widgets/premium-fancytext.php
CHANGED
@@ -90,19 +90,19 @@ class Premium_Fancy_Text_Widget extends Widget_Base
|
|
90 |
/*Front Text Align*/
|
91 |
$this->add_responsive_control('premium_fancy_text_align',
|
92 |
[
|
93 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
94 |
'type' => Controls_Manager::CHOOSE,
|
95 |
'options' => [
|
96 |
'left' => [
|
97 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
98 |
'icon' => 'fa fa-align-left',
|
99 |
],
|
100 |
'center' => [
|
101 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
102 |
'icon' => 'fa fa-align-center',
|
103 |
],
|
104 |
'right' => [
|
105 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
106 |
'icon' => 'fa fa-align-right',
|
107 |
],
|
108 |
],
|
@@ -441,4 +441,4 @@ class Premium_Fancy_Text_Widget extends Widget_Base
|
|
441 |
<?php
|
442 |
}
|
443 |
}
|
444 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Fancy_Text_Widget());
|
90 |
/*Front Text Align*/
|
91 |
$this->add_responsive_control('premium_fancy_text_align',
|
92 |
[
|
93 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
94 |
'type' => Controls_Manager::CHOOSE,
|
95 |
'options' => [
|
96 |
'left' => [
|
97 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
98 |
'icon' => 'fa fa-align-left',
|
99 |
],
|
100 |
'center' => [
|
101 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
102 |
'icon' => 'fa fa-align-center',
|
103 |
],
|
104 |
'right' => [
|
105 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
106 |
'icon' => 'fa fa-align-right',
|
107 |
],
|
108 |
],
|
441 |
<?php
|
442 |
}
|
443 |
}
|
444 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Fancy_Text_Widget());
|
widgets/premium-grid.php
CHANGED
@@ -289,19 +289,19 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
|
|
289 |
|
290 |
$this->add_responsive_control('premium_gallery_content_align',
|
291 |
[
|
292 |
-
'label' => esc_html__( 'Content Alignment', 'elementor' ),
|
293 |
'type' => Controls_Manager::CHOOSE,
|
294 |
'options' => [
|
295 |
'left' => [
|
296 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
297 |
'icon' => 'fa fa-align-left',
|
298 |
],
|
299 |
'center' => [
|
300 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
301 |
'icon' => 'fa fa-align-center',
|
302 |
],
|
303 |
'right' => [
|
304 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
305 |
'icon' => 'fa fa-align-right',
|
306 |
],
|
307 |
],
|
@@ -1224,4 +1224,4 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
|
|
1224 |
<?php endif; ?>
|
1225 |
<?php }
|
1226 |
}
|
1227 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Gallery_Widget());
|
289 |
|
290 |
$this->add_responsive_control('premium_gallery_content_align',
|
291 |
[
|
292 |
+
'label' => esc_html__( 'Content Alignment', 'premium-addons-for-elementor' ),
|
293 |
'type' => Controls_Manager::CHOOSE,
|
294 |
'options' => [
|
295 |
'left' => [
|
296 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
297 |
'icon' => 'fa fa-align-left',
|
298 |
],
|
299 |
'center' => [
|
300 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
301 |
'icon' => 'fa fa-align-center',
|
302 |
],
|
303 |
'right' => [
|
304 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
305 |
'icon' => 'fa fa-align-right',
|
306 |
],
|
307 |
],
|
1224 |
<?php endif; ?>
|
1225 |
<?php }
|
1226 |
}
|
1227 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Gallery_Widget());
|
widgets/premium-image-button.php
CHANGED
@@ -315,19 +315,19 @@ class Premium_Image_Button_Widget extends Widget_Base
|
|
315 |
/*Button Align*/
|
316 |
$this->add_responsive_control('premium_image_button_align',
|
317 |
[
|
318 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
319 |
'type' => Controls_Manager::CHOOSE,
|
320 |
'options' => [
|
321 |
'left' => [
|
322 |
-
'title' => __( 'Left', 'elementor' ),
|
323 |
'icon' => 'fa fa-align-left',
|
324 |
],
|
325 |
'center' => [
|
326 |
-
'title' => __( 'Center', 'elementor' ),
|
327 |
'icon' => 'fa fa-align-center',
|
328 |
],
|
329 |
'right' => [
|
330 |
-
'title' => __( 'Right', 'elementor' ),
|
331 |
'icon' => 'fa fa-align-right',
|
332 |
],
|
333 |
],
|
@@ -764,4 +764,4 @@ class Premium_Image_Button_Widget extends Widget_Base
|
|
764 |
<?php
|
765 |
}
|
766 |
}
|
767 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Button_Widget());
|
315 |
/*Button Align*/
|
316 |
$this->add_responsive_control('premium_image_button_align',
|
317 |
[
|
318 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
319 |
'type' => Controls_Manager::CHOOSE,
|
320 |
'options' => [
|
321 |
'left' => [
|
322 |
+
'title' => __( 'Left', 'premium-addons-for-elementor' ),
|
323 |
'icon' => 'fa fa-align-left',
|
324 |
],
|
325 |
'center' => [
|
326 |
+
'title' => __( 'Center', 'premium-addons-for-elementor' ),
|
327 |
'icon' => 'fa fa-align-center',
|
328 |
],
|
329 |
'right' => [
|
330 |
+
'title' => __( 'Right', 'premium-addons-for-elementor' ),
|
331 |
'icon' => 'fa fa-align-right',
|
332 |
],
|
333 |
],
|
764 |
<?php
|
765 |
}
|
766 |
}
|
767 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Button_Widget());
|
widgets/premium-maps.php
CHANGED
@@ -27,7 +27,7 @@ class Premium_Maps_Widget extends Widget_Base
|
|
27 |
}
|
28 |
|
29 |
public function get_script_depends() {
|
30 |
-
return ['premium-
|
31 |
}
|
32 |
|
33 |
// Adding the controls fields for the premium maps
|
@@ -41,8 +41,9 @@ class Premium_Maps_Widget extends Widget_Base
|
|
41 |
]
|
42 |
);
|
43 |
|
44 |
-
$map_api = get_option( '
|
45 |
-
|
|
|
46 |
$this->add_control('premium_maps_api_url',
|
47 |
[
|
48 |
'label' => '<span style="line-height: 1.4em;">Premium Maps requires an API key. Get your API key from <a target="_blank" href="https://developers.google.com/maps/documentation/javascript/get-api-key">here</a> and add it to Premium Addons admin page. Go to Dashboard -> Premium Addons for Elementor -> Google Maps API</span>',
|
@@ -320,19 +321,19 @@ class Premium_Maps_Widget extends Widget_Base
|
|
320 |
/*Pin Title ALign*/
|
321 |
$this->add_responsive_control('premium_maps_pin_title_align',
|
322 |
[
|
323 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
324 |
'type' => Controls_Manager::CHOOSE,
|
325 |
'options' => [
|
326 |
'left' => [
|
327 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
328 |
'icon' => 'fa fa-align-left',
|
329 |
],
|
330 |
'center' => [
|
331 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
332 |
'icon' => 'fa fa-align-center',
|
333 |
],
|
334 |
'right' => [
|
335 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
336 |
'icon' => 'fa fa-align-right',
|
337 |
],
|
338 |
],
|
@@ -402,19 +403,19 @@ class Premium_Maps_Widget extends Widget_Base
|
|
402 |
/*Pin Title ALign*/
|
403 |
$this->add_responsive_control('premium_maps_pin_description_align',
|
404 |
[
|
405 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
406 |
'type' => Controls_Manager::CHOOSE,
|
407 |
'options' => [
|
408 |
'left' => [
|
409 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
410 |
'icon' => 'fa fa-align-left',
|
411 |
],
|
412 |
'center' => [
|
413 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
414 |
'icon' => 'fa fa-align-center',
|
415 |
],
|
416 |
'right' => [
|
417 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
418 |
'icon' => 'fa fa-align-right',
|
419 |
],
|
420 |
],
|
@@ -603,4 +604,4 @@ class Premium_Maps_Widget extends Widget_Base
|
|
603 |
<?php
|
604 |
}
|
605 |
}
|
606 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Maps_Widget());
|
27 |
}
|
28 |
|
29 |
public function get_script_depends() {
|
30 |
+
return ['premium-maps-api-js' , 'premium-maps-js'];
|
31 |
}
|
32 |
|
33 |
// Adding the controls fields for the premium maps
|
41 |
]
|
42 |
);
|
43 |
|
44 |
+
$map_api = get_option( 'pa_maps_save_settings' )['premium-map-api'];
|
45 |
+
$map_api_disable = get_option( 'pa_maps_save_settings' )['premium-map-disable-api'];
|
46 |
+
if(!isset($map_api) || empty($map_api) || $map_api_disable){
|
47 |
$this->add_control('premium_maps_api_url',
|
48 |
[
|
49 |
'label' => '<span style="line-height: 1.4em;">Premium Maps requires an API key. Get your API key from <a target="_blank" href="https://developers.google.com/maps/documentation/javascript/get-api-key">here</a> and add it to Premium Addons admin page. Go to Dashboard -> Premium Addons for Elementor -> Google Maps API</span>',
|
321 |
/*Pin Title ALign*/
|
322 |
$this->add_responsive_control('premium_maps_pin_title_align',
|
323 |
[
|
324 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
325 |
'type' => Controls_Manager::CHOOSE,
|
326 |
'options' => [
|
327 |
'left' => [
|
328 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
329 |
'icon' => 'fa fa-align-left',
|
330 |
],
|
331 |
'center' => [
|
332 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
333 |
'icon' => 'fa fa-align-center',
|
334 |
],
|
335 |
'right' => [
|
336 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
337 |
'icon' => 'fa fa-align-right',
|
338 |
],
|
339 |
],
|
403 |
/*Pin Title ALign*/
|
404 |
$this->add_responsive_control('premium_maps_pin_description_align',
|
405 |
[
|
406 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
407 |
'type' => Controls_Manager::CHOOSE,
|
408 |
'options' => [
|
409 |
'left' => [
|
410 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
411 |
'icon' => 'fa fa-align-left',
|
412 |
],
|
413 |
'center' => [
|
414 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
415 |
'icon' => 'fa fa-align-center',
|
416 |
],
|
417 |
'right' => [
|
418 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
419 |
'icon' => 'fa fa-align-right',
|
420 |
],
|
421 |
],
|
604 |
<?php
|
605 |
}
|
606 |
}
|
607 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Maps_Widget());
|
widgets/premium-modalbox.php
CHANGED
@@ -1211,7 +1211,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
|
|
1211 |
</div>
|
1212 |
|
1213 |
<!-- Modal -->
|
1214 |
-
<div id="premium-modal-<?php echo $this->get_id(); ?>" class="premium-modal-box-modal" role="dialog">
|
1215 |
<div class="premium-modal-box-modal-dialog">
|
1216 |
|
1217 |
<!-- Modal content-->
|
1211 |
</div>
|
1212 |
|
1213 |
<!-- Modal -->
|
1214 |
+
<div id="premium-modal-<?php echo $this->get_id(); ?>" class="premium-modal-box-modal premium-modal-fade" role="dialog">
|
1215 |
<div class="premium-modal-box-modal-dialog">
|
1216 |
|
1217 |
<!-- Modal content-->
|
widgets/premium-person.php
CHANGED
@@ -188,19 +188,19 @@ class Premium_Person_Widget extends Widget_Base
|
|
188 |
/*Text Align*/
|
189 |
$this->add_responsive_control('premium_person_text_align',
|
190 |
[
|
191 |
-
'label' => esc_html__( 'Alignment', 'elementor' ),
|
192 |
'type' => Controls_Manager::CHOOSE,
|
193 |
'options' => [
|
194 |
'left' => [
|
195 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
196 |
'icon' => 'fa fa-align-left',
|
197 |
],
|
198 |
'center' => [
|
199 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
200 |
'icon' => 'fa fa-align-center',
|
201 |
],
|
202 |
'right' => [
|
203 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
204 |
'icon' => 'fa fa-align-right',
|
205 |
],
|
206 |
],
|
@@ -547,4 +547,4 @@ class Premium_Person_Widget extends Widget_Base
|
|
547 |
<?php
|
548 |
}
|
549 |
}
|
550 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Person_Widget());
|
188 |
/*Text Align*/
|
189 |
$this->add_responsive_control('premium_person_text_align',
|
190 |
[
|
191 |
+
'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
|
192 |
'type' => Controls_Manager::CHOOSE,
|
193 |
'options' => [
|
194 |
'left' => [
|
195 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
196 |
'icon' => 'fa fa-align-left',
|
197 |
],
|
198 |
'center' => [
|
199 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
200 |
'icon' => 'fa fa-align-center',
|
201 |
],
|
202 |
'right' => [
|
203 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
204 |
'icon' => 'fa fa-align-right',
|
205 |
],
|
206 |
],
|
547 |
<?php
|
548 |
}
|
549 |
}
|
550 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Person_Widget());
|
widgets/premium-pricing-table.php
CHANGED
@@ -191,19 +191,19 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
191 |
|
192 |
$this->add_responsive_control('premium_pricing_table_list_align',
|
193 |
[
|
194 |
-
'label' => __( 'Alignment', 'elementor' ),
|
195 |
'type' => Controls_Manager::CHOOSE,
|
196 |
'options' => [
|
197 |
'left' => [
|
198 |
-
'title' => __( 'Left', 'elementor' ),
|
199 |
'icon' => 'fa fa-align-left',
|
200 |
],
|
201 |
'center' => [
|
202 |
-
'title' => __( 'Center', 'elementor' ),
|
203 |
'icon' => 'fa fa-align-center',
|
204 |
],
|
205 |
'right' => [
|
206 |
-
'title' => __( 'Right', 'elementor' ),
|
207 |
'icon' => 'fa fa-align-right',
|
208 |
],
|
209 |
],
|
@@ -759,19 +759,19 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
759 |
|
760 |
$this->add_responsive_control('premium_pricing_currency_align',
|
761 |
[
|
762 |
-
'label' => esc_html__( 'Vertical Align', 'elementor' ),
|
763 |
'type' => Controls_Manager::CHOOSE,
|
764 |
'options' => [
|
765 |
'top' => [
|
766 |
-
'title'=> esc_html__( 'Top', 'elementor' ),
|
767 |
'icon' => 'fa fa-long-arrow-up',
|
768 |
],
|
769 |
'unset' => [
|
770 |
-
'title'=> esc_html__( 'Unset', 'elementor' ),
|
771 |
'icon' => 'fa fa-align-justify',
|
772 |
],
|
773 |
'bottom' => [
|
774 |
-
'title'=> esc_html__( 'Bottom', 'elementor' ),
|
775 |
'icon' => 'fa fa-long-arrow-down',
|
776 |
],
|
777 |
],
|
@@ -1825,4 +1825,4 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
1825 |
<?php
|
1826 |
}
|
1827 |
}
|
1828 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Pricing_Table_Widget());
|
191 |
|
192 |
$this->add_responsive_control('premium_pricing_table_list_align',
|
193 |
[
|
194 |
+
'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
|
195 |
'type' => Controls_Manager::CHOOSE,
|
196 |
'options' => [
|
197 |
'left' => [
|
198 |
+
'title' => __( 'Left', 'premium-addons-for-elementor' ),
|
199 |
'icon' => 'fa fa-align-left',
|
200 |
],
|
201 |
'center' => [
|
202 |
+
'title' => __( 'Center', 'premium-addons-for-elementor' ),
|
203 |
'icon' => 'fa fa-align-center',
|
204 |
],
|
205 |
'right' => [
|
206 |
+
'title' => __( 'Right', 'premium-addons-for-elementor' ),
|
207 |
'icon' => 'fa fa-align-right',
|
208 |
],
|
209 |
],
|
759 |
|
760 |
$this->add_responsive_control('premium_pricing_currency_align',
|
761 |
[
|
762 |
+
'label' => esc_html__( 'Vertical Align', 'premium-addons-for-elementor' ),
|
763 |
'type' => Controls_Manager::CHOOSE,
|
764 |
'options' => [
|
765 |
'top' => [
|
766 |
+
'title'=> esc_html__( 'Top', 'premium-addons-for-elementor' ),
|
767 |
'icon' => 'fa fa-long-arrow-up',
|
768 |
],
|
769 |
'unset' => [
|
770 |
+
'title'=> esc_html__( 'Unset', 'premium-addons-for-elementor' ),
|
771 |
'icon' => 'fa fa-align-justify',
|
772 |
],
|
773 |
'bottom' => [
|
774 |
+
'title'=> esc_html__( 'Bottom', 'premium-addons-for-elementor' ),
|
775 |
'icon' => 'fa fa-long-arrow-down',
|
776 |
],
|
777 |
],
|
1825 |
<?php
|
1826 |
}
|
1827 |
}
|
1828 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Pricing_Table_Widget());
|
widgets/premium-title.php
CHANGED
@@ -202,19 +202,19 @@ class Premium_Title_Widget extends Widget_Base
|
|
202 |
/*Title Align*/
|
203 |
$this->add_responsive_control('premium_title_style7_strip_align',
|
204 |
[
|
205 |
-
'label' => esc_html__( 'Align', 'elementor' ),
|
206 |
'type' => Controls_Manager::CHOOSE,
|
207 |
'options' => [
|
208 |
'left' => [
|
209 |
-
'title'=> esc_html__( 'Left', 'elementor' ),
|
210 |
'icon' => 'fa fa-align-left',
|
211 |
],
|
212 |
'none' => [
|
213 |
-
'title'=> esc_html__( 'Center', 'elementor' ),
|
214 |
'icon' => 'fa fa-align-center',
|
215 |
],
|
216 |
'right' => [
|
217 |
-
'title'=> esc_html__( 'Right', 'elementor' ),
|
218 |
'icon' => 'fa fa-align-right',
|
219 |
],
|
220 |
],
|
@@ -568,4 +568,4 @@ class Premium_Title_Widget extends Widget_Base
|
|
568 |
<?php
|
569 |
}
|
570 |
}
|
571 |
-
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Title_Widget());
|
202 |
/*Title Align*/
|
203 |
$this->add_responsive_control('premium_title_style7_strip_align',
|
204 |
[
|
205 |
+
'label' => esc_html__( 'Align', 'premium-addons-for-elementor' ),
|
206 |
'type' => Controls_Manager::CHOOSE,
|
207 |
'options' => [
|
208 |
'left' => [
|
209 |
+
'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
|
210 |
'icon' => 'fa fa-align-left',
|
211 |
],
|
212 |
'none' => [
|
213 |
+
'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
|
214 |
'icon' => 'fa fa-align-center',
|
215 |
],
|
216 |
'right' => [
|
217 |
+
'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
|
218 |
'icon' => 'fa fa-align-right',
|
219 |
],
|
220 |
],
|
568 |
<?php
|
569 |
}
|
570 |
}
|
571 |
+
Plugin::instance()->widgets_manager->register_widget_type(new Premium_Title_Widget());
|