Version Description
Update : Elementor Pro Popup Compatibility Update : Advanced Shadow : CSS & JS loading Improvement Frontend Update : Admin Welcome Page Update Update : wp_footer to wp_print_footer_scripts Improvement Update : Live Copy : add_action elementor/editor/after_enqueue_scripts to elementor/editor/before_enqueue_scripts Fix : Minor fix and Improvement
Download this release
Release Info
Code changes from version 5.1.3 to 5.1.4
- assets/css/admin/theplus-ele-admin-dark.css +3 -0
- assets/css/admin/theplus-ele-admin.css +6 -0
- includes/plus_addon.php +1 -0
- includes/welcome-page.php +4 -4
- modules/enqueue/plus-generator.php +51 -4
- modules/theplus-core-cp.php +1 -1
- readme.txt +9 -1
- theplus_elementor_addon.php +2 -2
- widgets_loader.php +7 -7
assets/css/admin/theplus-ele-admin-dark.css
CHANGED
@@ -57,6 +57,9 @@
|
|
57 |
.fa-area-chart.theplus_backend_icon {
|
58 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='chart-area' class='svg-inline--fa fa-chart-area fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23e0e1e3' d='M500 416c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v340h468zM372 162l-84 54-86.5-84.5c-5.1-5.1-13.4-4.6-17.9 1L64 288v96h416l-90.3-216.7c-3-6.9-11.5-9.4-17.7-5.3zM96 299.2l98.7-131.3 89.3 89.3 85.8-57.2 61.7 152H96v-52.8z'%3E%3C/path%3E%3C/svg%3E");
|
59 |
}
|
|
|
|
|
|
|
60 |
.fa-circle-o-notch.theplus_backend_icon {
|
61 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='circle-notch' class='svg-inline--fa fa-circle-notch fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23e0e1e3' d='M288 24.103v8.169a11.995 11.995 0 0 0 9.698 11.768C396.638 63.425 472 150.461 472 256c0 118.663-96.055 216-216 216-118.663 0-216-96.055-216-216 0-104.534 74.546-192.509 174.297-211.978A11.993 11.993 0 0 0 224 32.253v-8.147c0-7.523-6.845-13.193-14.237-11.798C94.472 34.048 7.364 135.575 8.004 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.789 504 256c0-121.187-86.924-222.067-201.824-243.704C294.807 10.908 288 16.604 288 24.103z'%3E%3C/path%3E%3C/svg%3E");
|
62 |
}
|
57 |
.fa-area-chart.theplus_backend_icon {
|
58 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='chart-area' class='svg-inline--fa fa-chart-area fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23e0e1e3' d='M500 416c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v340h468zM372 162l-84 54-86.5-84.5c-5.1-5.1-13.4-4.6-17.9 1L64 288v96h416l-90.3-216.7c-3-6.9-11.5-9.4-17.7-5.3zM96 299.2l98.7-131.3 89.3 89.3 85.8-57.2 61.7 152H96v-52.8z'%3E%3C/path%3E%3C/svg%3E");
|
59 |
}
|
60 |
+
.fa-scroll-sequence.theplus_backend_icon {
|
61 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23e0e1e3' d='M568 336h-288c-4.422 0-8 3.594-8 8v56c0 35.28-28.7 64-64 64s-64-28.72-64-64V104c0-22.73-10.8-42.79-27.31-56H400c35.3 0 64 28.72 64 64v184c0 4.406 3.578 8 8 8S480 300.4 480 296V112C480 67.88 444.1 32 400 32H72C32.3 32 0 64.31 0 104v64C0 172.4 3.578 176 8 176h80C92.42 176 96 172.4 96 168S92.42 160 88 160H16V104c0-30.88 25.12-56 56-56S128 73.13 128 104v296C128 444.1 163.9 480 208 480h288c44.11 0 80-35.88 80-80v-56C576 339.6 572.4 336 568 336zM560 400c0 35.28-28.7 64-64 64H255.1C275.4 449.4 288 426.1 288 400V352h272V400z'/%3E%3C/svg%3E");
|
62 |
+
}
|
63 |
.fa-circle-o-notch.theplus_backend_icon {
|
64 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='circle-notch' class='svg-inline--fa fa-circle-notch fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23e0e1e3' d='M288 24.103v8.169a11.995 11.995 0 0 0 9.698 11.768C396.638 63.425 472 150.461 472 256c0 118.663-96.055 216-216 216-118.663 0-216-96.055-216-216 0-104.534 74.546-192.509 174.297-211.978A11.993 11.993 0 0 0 224 32.253v-8.147c0-7.523-6.845-13.193-14.237-11.798C94.472 34.048 7.364 135.575 8.004 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.789 504 256c0-121.187-86.924-222.067-201.824-243.704C294.807 10.908 288 16.604 288 24.103z'%3E%3C/path%3E%3C/svg%3E");
|
65 |
}
|
assets/css/admin/theplus-ele-admin.css
CHANGED
@@ -93,6 +93,9 @@ i.theplus_backend_icon:before {
|
|
93 |
.fa-area-chart.theplus_backend_icon {
|
94 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='chart-area' class='svg-inline--fa fa-chart-area fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230000009e' d='M500 416c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v340h468zM372 162l-84 54-86.5-84.5c-5.1-5.1-13.4-4.6-17.9 1L64 288v96h416l-90.3-216.7c-3-6.9-11.5-9.4-17.7-5.3zM96 299.2l98.7-131.3 89.3 89.3 85.8-57.2 61.7 152H96v-52.8z'%3E%3C/path%3E%3C/svg%3E");
|
95 |
}
|
|
|
|
|
|
|
96 |
.fa-circle-o-notch.theplus_backend_icon {
|
97 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='circle-notch' class='svg-inline--fa fa-circle-notch fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230000009e' d='M288 24.103v8.169a11.995 11.995 0 0 0 9.698 11.768C396.638 63.425 472 150.461 472 256c0 118.663-96.055 216-216 216-118.663 0-216-96.055-216-216 0-104.534 74.546-192.509 174.297-211.978A11.993 11.993 0 0 0 224 32.253v-8.147c0-7.523-6.845-13.193-14.237-11.798C94.472 34.048 7.364 135.575 8.004 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.789 504 256c0-121.187-86.924-222.067-201.824-243.704C294.807 10.908 288 16.604 288 24.103z'%3E%3C/path%3E%3C/svg%3E");
|
98 |
}
|
@@ -368,6 +371,9 @@ i.theplus_backend_icon:before {
|
|
368 |
.elementor-panel-category .elementor-element:hover .fa-area-chart.theplus_backend_icon {
|
369 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='chart-area' class='svg-inline--fa fa-chart-area fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%238072fc' d='M500 416c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v340h468zM372 162l-84 54-86.5-84.5c-5.1-5.1-13.4-4.6-17.9 1L64 288v96h416l-90.3-216.7c-3-6.9-11.5-9.4-17.7-5.3zM96 299.2l98.7-131.3 89.3 89.3 85.8-57.2 61.7 152H96v-52.8z'%3E%3C/path%3E%3C/svg%3E");
|
370 |
}
|
|
|
|
|
|
|
371 |
.elementor-panel-category .elementor-element:hover .fa-circle-o-notch.theplus_backend_icon {
|
372 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='circle-notch' class='svg-inline--fa fa-circle-notch fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%238072fc' d='M288 24.103v8.169a11.995 11.995 0 0 0 9.698 11.768C396.638 63.425 472 150.461 472 256c0 118.663-96.055 216-216 216-118.663 0-216-96.055-216-216 0-104.534 74.546-192.509 174.297-211.978A11.993 11.993 0 0 0 224 32.253v-8.147c0-7.523-6.845-13.193-14.237-11.798C94.472 34.048 7.364 135.575 8.004 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.789 504 256c0-121.187-86.924-222.067-201.824-243.704C294.807 10.908 288 16.604 288 24.103z'%3E%3C/path%3E%3C/svg%3E");
|
373 |
}
|
93 |
.fa-area-chart.theplus_backend_icon {
|
94 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='chart-area' class='svg-inline--fa fa-chart-area fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230000009e' d='M500 416c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v340h468zM372 162l-84 54-86.5-84.5c-5.1-5.1-13.4-4.6-17.9 1L64 288v96h416l-90.3-216.7c-3-6.9-11.5-9.4-17.7-5.3zM96 299.2l98.7-131.3 89.3 89.3 85.8-57.2 61.7 152H96v-52.8z'%3E%3C/path%3E%3C/svg%3E");
|
95 |
}
|
96 |
+
.fa-scroll-sequence.theplus_backend_icon {
|
97 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%230000009e' d='M568 336h-288c-4.422 0-8 3.594-8 8v56c0 35.28-28.7 64-64 64s-64-28.72-64-64V104c0-22.73-10.8-42.79-27.31-56H400c35.3 0 64 28.72 64 64v184c0 4.406 3.578 8 8 8S480 300.4 480 296V112C480 67.88 444.1 32 400 32H72C32.3 32 0 64.31 0 104v64C0 172.4 3.578 176 8 176h80C92.42 176 96 172.4 96 168S92.42 160 88 160H16V104c0-30.88 25.12-56 56-56S128 73.13 128 104v296C128 444.1 163.9 480 208 480h288c44.11 0 80-35.88 80-80v-56C576 339.6 572.4 336 568 336zM560 400c0 35.28-28.7 64-64 64H255.1C275.4 449.4 288 426.1 288 400V352h272V400z'/%3E%3C/svg%3E");
|
98 |
+
}
|
99 |
.fa-circle-o-notch.theplus_backend_icon {
|
100 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='circle-notch' class='svg-inline--fa fa-circle-notch fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230000009e' d='M288 24.103v8.169a11.995 11.995 0 0 0 9.698 11.768C396.638 63.425 472 150.461 472 256c0 118.663-96.055 216-216 216-118.663 0-216-96.055-216-216 0-104.534 74.546-192.509 174.297-211.978A11.993 11.993 0 0 0 224 32.253v-8.147c0-7.523-6.845-13.193-14.237-11.798C94.472 34.048 7.364 135.575 8.004 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.789 504 256c0-121.187-86.924-222.067-201.824-243.704C294.807 10.908 288 16.604 288 24.103z'%3E%3C/path%3E%3C/svg%3E");
|
101 |
}
|
371 |
.elementor-panel-category .elementor-element:hover .fa-area-chart.theplus_backend_icon {
|
372 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='chart-area' class='svg-inline--fa fa-chart-area fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%238072fc' d='M500 416c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v340h468zM372 162l-84 54-86.5-84.5c-5.1-5.1-13.4-4.6-17.9 1L64 288v96h416l-90.3-216.7c-3-6.9-11.5-9.4-17.7-5.3zM96 299.2l98.7-131.3 89.3 89.3 85.8-57.2 61.7 152H96v-52.8z'%3E%3C/path%3E%3C/svg%3E");
|
373 |
}
|
374 |
+
.elementor-panel-category .elementor-element:hover .fa-scroll-sequence.theplus_backend_icon {
|
375 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%238072fc' d='M568 336h-288c-4.422 0-8 3.594-8 8v56c0 35.28-28.7 64-64 64s-64-28.72-64-64V104c0-22.73-10.8-42.79-27.31-56H400c35.3 0 64 28.72 64 64v184c0 4.406 3.578 8 8 8S480 300.4 480 296V112C480 67.88 444.1 32 400 32H72C32.3 32 0 64.31 0 104v64C0 172.4 3.578 176 8 176h80C92.42 176 96 172.4 96 168S92.42 160 88 160H16V104c0-30.88 25.12-56 56-56S128 73.13 128 104v296C128 444.1 163.9 480 208 480h288c44.11 0 80-35.88 80-80v-56C576 339.6 572.4 336 568 336zM560 400c0 35.28-28.7 64-64 64H255.1C275.4 449.4 288 426.1 288 400V352h272V400z'/%3E%3C/svg%3E");
|
376 |
+
}
|
377 |
.elementor-panel-category .elementor-element:hover .fa-circle-o-notch.theplus_backend_icon {
|
378 |
background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fal' data-icon='circle-notch' class='svg-inline--fa fa-circle-notch fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%238072fc' d='M288 24.103v8.169a11.995 11.995 0 0 0 9.698 11.768C396.638 63.425 472 150.461 472 256c0 118.663-96.055 216-216 216-118.663 0-216-96.055-216-216 0-104.534 74.546-192.509 174.297-211.978A11.993 11.993 0 0 0 224 32.253v-8.147c0-7.523-6.845-13.193-14.237-11.798C94.472 34.048 7.364 135.575 8.004 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.789 504 256c0-121.187-86.924-222.067-201.824-243.704C294.807 10.908 288 16.604 288 24.103z'%3E%3C/path%3E%3C/svg%3E");
|
379 |
}
|
includes/plus_addon.php
CHANGED
@@ -870,6 +870,7 @@ function l_registered_widgets(){
|
|
870 |
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/main/plus-extra-adv/plus-backend-editor.min.js',
|
871 |
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/main/general/plus-animation-load.min.js',
|
872 |
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/main/general/plus-content-hover-effect.min.js',
|
|
|
873 |
],
|
874 |
],
|
875 |
],
|
870 |
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/main/plus-extra-adv/plus-backend-editor.min.js',
|
871 |
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/main/general/plus-animation-load.min.js',
|
872 |
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/main/general/plus-content-hover-effect.min.js',
|
873 |
+
L_THEPLUS_PATH . DIRECTORY_SEPARATOR . 'assets/js/admin/tp-advanced-shadow-layout.js',
|
874 |
],
|
875 |
],
|
876 |
],
|
includes/welcome-page.php
CHANGED
@@ -94,11 +94,11 @@ echo '<div class="theplus-panel-welcome-page">';
|
|
94 |
echo '<div class="theplus-sec-subtitle">'.esc_html__('Notable additions made to The Plus Addons for Elementor.','tpebl').'</div>';
|
95 |
echo '<div class="theplus-sec-border"></div>';
|
96 |
echo '<div class="theplus-changelog-list">';
|
97 |
-
echo '<div class="changelog-date">
|
98 |
echo '<ul class="changelog-list">';
|
99 |
-
echo '<li>'.esc_html__('
|
100 |
-
echo '<li>'.esc_html__('
|
101 |
-
echo '<li>'.esc_html__('Update :
|
102 |
echo '</ul>';
|
103 |
echo '</div>';
|
104 |
echo '<a href="https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/#developers" class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Lite Full Change log','tpebl').'</a>';
|
94 |
echo '<div class="theplus-sec-subtitle">'.esc_html__('Notable additions made to The Plus Addons for Elementor.','tpebl').'</div>';
|
95 |
echo '<div class="theplus-sec-border"></div>';
|
96 |
echo '<div class="theplus-changelog-list">';
|
97 |
+
echo '<div class="changelog-date">Aug 05,2022 <span class="changelog-version">Lite Version 5.1.4</span></div>';
|
98 |
echo '<ul class="changelog-list">';
|
99 |
+
echo '<li>'.esc_html__('Update : Elementor Pro Popup Compatibility','tpebl').'</li>';
|
100 |
+
echo '<li>'.esc_html__('Update : Advanced Shadow : CSS & JS loading Improvement Frontend','tpebl').'</li>';
|
101 |
+
echo '<li>'.esc_html__('Update : Live Copy : add_action elementor/editor/after_enqueue_scripts to elementor/editor/before_enqueue_scripts','tpebl').'</li>';
|
102 |
echo '</ul>';
|
103 |
echo '</div>';
|
104 |
echo '<a href="https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/#developers" class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Lite Full Change log','tpebl').'</a>';
|
modules/enqueue/plus-generator.php
CHANGED
@@ -359,7 +359,7 @@ Class L_Plus_Generator
|
|
359 |
if(has_filter('tp_pro_transient_widgets')) {
|
360 |
$this->transient_widgets = apply_filters('tp_pro_transient_widgets', $this->transient_widgets);
|
361 |
}
|
362 |
-
|
363 |
$elements = array_map(function ($val) use ($replace) {
|
364 |
$val = str_replace(['theplus-'], [''], $val);
|
365 |
return (array_key_exists($val, $replace) ? $replace[$val] : $val);
|
@@ -545,8 +545,7 @@ Class L_Plus_Generator
|
|
545 |
$this->plus_generate_scripts($elements, 'theplus-' . $post_type . '-' . $queried_obj);
|
546 |
}
|
547 |
}
|
548 |
-
}
|
549 |
-
|
550 |
// if no widget in page, return
|
551 |
if (empty($elements)) {
|
552 |
return;
|
@@ -803,6 +802,50 @@ Class L_Plus_Generator
|
|
803 |
update_option('tp_save_update_at', strtotime('now'), false);
|
804 |
}
|
805 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
806 |
/**
|
807 |
* Check Post Data
|
808 |
*
|
@@ -879,11 +922,15 @@ Class L_Plus_Generator
|
|
879 |
add_action('elementor/frontend/before_render', array($this, 'collect_transient_widgets'));
|
880 |
}
|
881 |
|
882 |
-
add_action('
|
883 |
|
884 |
add_action( 'save_post', array($this,'tp_post_save_transient'), 10,3 );
|
885 |
|
886 |
add_action('wp', [$this, 'init_post_request_data']);
|
|
|
|
|
|
|
|
|
887 |
if(!$this->get_caching_option()){
|
888 |
add_action( 'admin_bar_menu', [ $this, 'add_plus_clear_cache_admin_bar' ], 300 );
|
889 |
if(current_user_can("manage_options")){
|
359 |
if(has_filter('tp_pro_transient_widgets')) {
|
360 |
$this->transient_widgets = apply_filters('tp_pro_transient_widgets', $this->transient_widgets);
|
361 |
}
|
362 |
+
|
363 |
$elements = array_map(function ($val) use ($replace) {
|
364 |
$val = str_replace(['theplus-'], [''], $val);
|
365 |
return (array_key_exists($val, $replace) ? $replace[$val] : $val);
|
545 |
$this->plus_generate_scripts($elements, 'theplus-' . $post_type . '-' . $queried_obj);
|
546 |
}
|
547 |
}
|
548 |
+
}
|
|
|
549 |
// if no widget in page, return
|
550 |
if (empty($elements)) {
|
551 |
return;
|
802 |
update_option('tp_save_update_at', strtotime('now'), false);
|
803 |
}
|
804 |
|
805 |
+
/**
|
806 |
+
* Get Loaded Template
|
807 |
+
*
|
808 |
+
* @since 5.0.4
|
809 |
+
*/
|
810 |
+
public function tp_get_lodded_template( $content, $post_id ) {
|
811 |
+
if ( $this->is_background_running() ) {
|
812 |
+
return;
|
813 |
+
}
|
814 |
+
|
815 |
+
$this->transient_widgets = array_merge( $this->transient_widgets, $this->find_widgets_from_templates( $content ) );
|
816 |
+
|
817 |
+
return $content;
|
818 |
+
}
|
819 |
+
|
820 |
+
/**
|
821 |
+
* Get Lists from Template
|
822 |
+
*
|
823 |
+
* @since 5.0.4
|
824 |
+
*/
|
825 |
+
public function find_widgets_from_templates( $elements ) {
|
826 |
+
$getlists = [];
|
827 |
+
|
828 |
+
foreach($elements as $element){
|
829 |
+
if(isset($element['elType']) && $element['elType'] == 'section'){}
|
830 |
+
if(isset($element['elType'] ) && $element['elType'] == 'widget') {
|
831 |
+
if($element['widgetType'] === 'global') {
|
832 |
+
$document = Plugin::$instance->documents->get($element['templateID']);
|
833 |
+
if(is_object($document)){
|
834 |
+
$getlists = array_merge($getlists, $this->find_widgets_from_templates($document->get_elements_data()));
|
835 |
+
}
|
836 |
+
} else {
|
837 |
+
$getlists[] = $element['widgetType'];
|
838 |
+
}
|
839 |
+
}
|
840 |
+
|
841 |
+
if(!empty($element['elements'])){
|
842 |
+
$getlists = array_merge( $getlists, $this->find_widgets_from_templates( $element[ 'elements' ] ) );
|
843 |
+
}
|
844 |
+
}
|
845 |
+
|
846 |
+
return $getlists;
|
847 |
+
}
|
848 |
+
|
849 |
/**
|
850 |
* Check Post Data
|
851 |
*
|
922 |
add_action('elementor/frontend/before_render', array($this, 'collect_transient_widgets'));
|
923 |
}
|
924 |
|
925 |
+
add_action('wp_print_footer_scripts', array($this, 'generate_scripts_frontend'));
|
926 |
|
927 |
add_action( 'save_post', array($this,'tp_post_save_transient'), 10,3 );
|
928 |
|
929 |
add_action('wp', [$this, 'init_post_request_data']);
|
930 |
+
|
931 |
+
//@since 5.0.4
|
932 |
+
add_filter('elementor/frontend/builder_content_data', [$this, 'tp_get_lodded_template'], 10, 2);
|
933 |
+
|
934 |
if(!$this->get_caching_option()){
|
935 |
add_action( 'admin_bar_menu', [ $this, 'add_plus_clear_cache_admin_bar' ], 300 );
|
936 |
if(current_user_can("manage_options")){
|
modules/theplus-core-cp.php
CHANGED
@@ -28,7 +28,7 @@ if ( ! class_exists( 'Theplus_Core_Cp_Lite' ) ) {
|
|
28 |
public function init() {
|
29 |
$plus_extras=l_theplus_get_option('general','extras_elements');
|
30 |
if(!empty($plus_extras) && in_array('plus_cross_cp',$plus_extras)){
|
31 |
-
add_action( 'elementor/editor/
|
32 |
require_once L_THEPLUS_PATH . 'modules/theplus-cross-copy-paste.php';
|
33 |
}
|
34 |
}
|
28 |
public function init() {
|
29 |
$plus_extras=l_theplus_get_option('general','extras_elements');
|
30 |
if(!empty($plus_extras) && in_array('plus_cross_cp',$plus_extras)){
|
31 |
+
add_action( 'elementor/editor/before_enqueue_scripts', array( $this, 'enqueue_editor_cp_scripts' ) );
|
32 |
require_once L_THEPLUS_PATH . 'modules/theplus-cross-copy-paste.php';
|
33 |
}
|
34 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: Elementor, elementor widgets, elements, elementor addon, elementor templat
|
|
4 |
Requires at least: 5.7.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 5.1.
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
@@ -279,6 +279,14 @@ We have the most advanced caching architecture, Which will never bloat your site
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
= 5.1.3 =
|
283 |
Added : Blockquote : Tweet button with Page URL
|
284 |
Added : Blockquote : Dropcap(First Character) option
|
4 |
Requires at least: 5.7.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 5.1.4
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 5.1.4 =
|
283 |
+
Update : Elementor Pro Popup Compatibility
|
284 |
+
Update : Advanced Shadow : CSS & JS loading Improvement Frontend
|
285 |
+
Update : Admin Welcome Page Update
|
286 |
+
Update : wp_footer to wp_print_footer_scripts Improvement
|
287 |
+
Update : Live Copy : add_action elementor/editor/after_enqueue_scripts to elementor/editor/before_enqueue_scripts
|
288 |
+
Fix : Minor fix and Improvement
|
289 |
+
|
290 |
= 5.1.3 =
|
291 |
Added : Blockquote : Tweet button with Page URL
|
292 |
Added : Blockquote : Dropcap(First Character) option
|
theplus_elementor_addon.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: The Plus Addons for Elementor
|
4 |
* Plugin URI: https://theplusaddons.com/
|
5 |
* Description: Biggest collection of Widgets & Features to supercharge your Elementor Page builder in WordPress.
|
6 |
-
* Version: 5.1.
|
7 |
* Author: POSIMYTH
|
8 |
* Author URI: https://posimyth.com/
|
9 |
* Text Domain: tpebl
|
@@ -14,7 +14,7 @@
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit;
|
16 |
}
|
17 |
-
defined( 'L_THEPLUS_VERSION' ) or define( 'L_THEPLUS_VERSION', '5.1.
|
18 |
define( 'L_THEPLUS_FILE__', __FILE__ );
|
19 |
|
20 |
define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
|
3 |
* Plugin Name: The Plus Addons for Elementor
|
4 |
* Plugin URI: https://theplusaddons.com/
|
5 |
* Description: Biggest collection of Widgets & Features to supercharge your Elementor Page builder in WordPress.
|
6 |
+
* Version: 5.1.4
|
7 |
* Author: POSIMYTH
|
8 |
* Author URI: https://posimyth.com/
|
9 |
* Text Domain: tpebl
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit;
|
16 |
}
|
17 |
+
defined( 'L_THEPLUS_VERSION' ) or define( 'L_THEPLUS_VERSION', '5.1.4' );
|
18 |
define( 'L_THEPLUS_FILE__', __FILE__ );
|
19 |
|
20 |
define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
|
widgets_loader.php
CHANGED
@@ -421,9 +421,9 @@ final class L_Theplus_Element_Load {
|
|
421 |
}
|
422 |
|
423 |
|
424 |
-
public function tp_advanced_shadow_style() {
|
425 |
-
|
426 |
-
}
|
427 |
|
428 |
/**
|
429 |
* ThePlus_Load constructor.
|
@@ -438,11 +438,11 @@ final class L_Theplus_Element_Load {
|
|
438 |
L_Theplus_Elements_Integration()->init();
|
439 |
}
|
440 |
|
441 |
-
$plus_extras=l_theplus_get_option('general','extras_elements');
|
442 |
|
443 |
-
if((isset($plus_extras) && empty($plus_extras) && empty($theplus_options)) || (!empty($plus_extras) && in_array('plus_adv_shadow',$plus_extras))){
|
444 |
-
|
445 |
-
}
|
446 |
|
447 |
//@since 5.0.6
|
448 |
theplus_core_cp_lite()->init();
|
421 |
}
|
422 |
|
423 |
|
424 |
+
// public function tp_advanced_shadow_style() {
|
425 |
+
// wp_enqueue_script( 'tp-advanced-shadows', L_THEPLUS_ASSETS_URL .'js/admin/tp-advanced-shadow-layout.js', array('jquery'),L_THEPLUS_VERSION, true );
|
426 |
+
// }
|
427 |
|
428 |
/**
|
429 |
* ThePlus_Load constructor.
|
438 |
L_Theplus_Elements_Integration()->init();
|
439 |
}
|
440 |
|
441 |
+
// $plus_extras=l_theplus_get_option('general','extras_elements');
|
442 |
|
443 |
+
// if((isset($plus_extras) && empty($plus_extras) && empty($theplus_options)) || (!empty($plus_extras) && in_array('plus_adv_shadow',$plus_extras))){
|
444 |
+
// //add_action( 'wp_enqueue_scripts', [ $this, 'tp_advanced_shadow_style' ] );
|
445 |
+
// }
|
446 |
|
447 |
//@since 5.0.6
|
448 |
theplus_core_cp_lite()->init();
|