Version Description
(June 26, 2020) = * [Feature] Now you can open the media library by clicking the images and choosing or uploading the same. * [Tasks] Added Mute and Looping options in background video in rows and columns. * [Bug-fix] On turning on the error report in PHP, some PHP error notice was shown. This is fixed.
Download this release
Release Info
Developer | pagelayer |
Plugin | Page Builder: PageLayer – Drag and Drop website builder |
Version | 1.1.7 |
Comparing to | |
See all releases |
Code changes from version 1.1.6 to 1.1.7
- css/pagelayer-icons.css +8 -0
- fonts/pagelayer.eot +0 -0
- fonts/pagelayer.svg +1 -0
- fonts/pagelayer.ttf +0 -0
- fonts/pagelayer.woff +0 -0
- init.php +1 -1
- js/pagelayer-editor.js +7 -3
- js/slimscroll.js +1 -2
- js/widgets.js +45 -9
- languages/en.json +5 -2
- main/class.php +9 -0
- main/functions.php +31 -35
- main/shortcode_functions.php +40 -11
- main/shortcodes.php +30 -6
- main/template.php +1 -0
- pagelayer.php +1 -1
- readme.txt +6 -1
css/pagelayer-icons.css
CHANGED
@@ -565,4 +565,12 @@ content: "\eab4";
|
|
565 |
}
|
566 |
.pli-caret-right:before{
|
567 |
content: "\f0da";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
}
|
565 |
}
|
566 |
.pli-caret-right:before{
|
567 |
content: "\f0da";
|
568 |
+
}
|
569 |
+
|
570 |
+
.pli-woo:before,
|
571 |
+
.pagelayer-pl_add_to_cart:before,
|
572 |
+
.pagelayer-pl_products:before,
|
573 |
+
i[class*="pagelayer-pl_woo_"]:before,
|
574 |
+
i[class*="pagelayer-pl_product_"]:before{
|
575 |
+
content: "\e03d";
|
576 |
}
|
fonts/pagelayer.eot
CHANGED
Binary file
|
fonts/pagelayer.svg
CHANGED
@@ -7,6 +7,7 @@
|
|
7 |
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " horiz-adv-x="512" d="" />
|
|
|
10 |
<glyph unicode="" glyph-name="format_color_text" d="M410 426.667h204l-102 270zM470 810.667h84l234-598h-96l-46 128h-268l-48-128h-96zM0 84.667h1024v-170h-1024v170z" />
|
11 |
<glyph unicode="" glyph-name="font_download" d="M680 148.667h90l-218 556h-80l-218-556h90l48 128h240zM854 852.667q34 0 59-25t25-59v-684q0-34-25-59t-59-25h-684q-34 0-59 25t-25 59v684q0 34 25 59t59 25h684zM424 362.667l88 236 88-236h-176z" />
|
12 |
<glyph unicode="" glyph-name="header" d="M961.143 0c-50.286 0-101.143 4-152 4-50.286 0-100.571-4-150.857-4-19.429 0-28.571 21.143-28.571 37.714 0 50.857 57.143 29.143 86.857 48.571 18.857 12 18.857 60 18.857 80l-0.571 223.429c0 6.286 0 12-0.571 17.714-9.143 2.857-19.429 2.286-28.571 2.286h-385.714c-9.714 0-20 0.571-29.143-2.286-0.571-5.714-0.571-11.429-0.571-17.714l-0.571-212c0-21.714 0-81.143 21.143-93.714 29.714-18.286 97.143 7.429 97.143-44 0-17.143-8-40-28-40-53.143 0-106.286 4-158.857 4-48.571 0-97.143-4-145.714-4-18.857 0-27.429 21.714-27.429 37.714 0 49.714 52.571 29.143 80.571 48.571 18.286 12.571 18.857 61.714 18.857 81.714l-0.571 32.571v464.571c0 27.429 4 115.429-21.714 130.857-28.571 17.714-89.714-9.714-89.714 41.714 0 16.571 7.429 40 27.429 40 52.571 0 105.714-4 158.286-4 48 0 96.571 4 144.571 4 20.571 0 28.571-22.857 28.571-40 0-49.143-56.571-25.143-84.571-42.857-20-12-20-70.857-20-91.429l0.571-182.857c0-6.286 0-12 0.571-18.286 7.429-1.714 14.857-1.714 22.286-1.714h399.429c6.857 0 14.286 0 21.714 1.714 0.571 6.286 0.571 12 0.571 18.286l0.571 182.857c0 21.143 0 79.429-20 91.429-28.571 17.143-85.714-5.714-85.714 42.857 0 17.143 8 40 28.571 40 50.286 0 100.571-4 150.857-4 49.143 0 98.286 4 147.429 4 20.571 0 28.571-22.857 28.571-40 0-49.714-58.857-24.571-87.429-42.286-19.429-12.571-20-71.429-20-92l0.571-538.857c0-18.857 1.143-68.571 19.429-80 29.143-18.286 90.857 5.143 90.857-44.571 0-16.571-7.429-40-27.429-40z" />
|
7 |
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="woo" d="M612.192 533.664c0 6.896-3.136 51.6-28 51.6-37.36 0-46.704-72.256-46.704-82.624 0-3.408 3.152-58.496 28.032-58.496 34.192 0.032 46.672 72.288 46.672 89.52zM814.384 533.664c0 6.896-3.152 51.6-28.032 51.6-37.28 0-46.608-72.256-46.608-82.624 0-3.408 3.072-58.496 27.952-58.496 34.192 0.032 46.688 72.288 46.688 89.52zM141.296 959.232c-68.224 0-123.504-55.488-123.504-123.92v-650.72c0-68.432 55.296-123.92 123.504-123.92h339.808l123.504-123.936v123.936h278.048c68.224 0 123.52 55.472 123.52 123.92v650.72c0 68.432-55.296 123.92-123.52 123.92h-741.36zM668.16 537.072c0-55.088-31.088-154.88-102.64-154.88-6.208 0-18.496 3.616-25.424 6.016-32.512 11.168-50.192 49.696-52.352 66.256 0 0-3.072 17.792-3.072 40.752 0 22.992 3.072 45.328 3.072 45.328 15.552 75.728 43.552 106.736 96.448 106.736 59.072 0.032 83.968-58.528 83.968-110.208zM486.496 657.6c0-3.392-43.552-141.168-43.552-213.424v-75.712c-2.592-12.080-4.16-24.144-21.824-24.144-46.608 0-88.88 151.472-92.016 161.84-6.208-6.896-62.24-161.84-96.448-161.84-24.864 0-43.552 113.648-46.608 123.936-9.344 55.072-26.048 157.52-26.048 164.416 0 20.672 1.152 38.736 26.048 38.736 6.208 0 21.6-6.064 23.712-17.168 11.648-62.032 16.688-120.512 29.168-185.968 1.856-2.928 1.504-7.008 4.56-10.432 3.152 10.288 66.928 168.784 94.96 168.784 22.544 0 30.4-44.592 33.536-61.824 6.208-20.656 13.088-55.216 22.416-82.752 0 13.776 12.48 203.12 65.392 203.12 18.592-0.032 26.704-6.928 26.704-27.568zM870.32 537.072c0-55.088-31.088-154.88-102.64-154.88-6.192 0-18.448 3.616-25.424 6.016-32.432 11.168-50.176 49.696-52.288 66.256 0 0-3.888 17.92-3.888 40.896s3.888 45.184 3.888 45.184c15.552 75.728 43.488 106.736 96.384 106.736 59.104 0.032 83.968-58.528 83.968-110.208z" />
|
11 |
<glyph unicode="" glyph-name="format_color_text" d="M410 426.667h204l-102 270zM470 810.667h84l234-598h-96l-46 128h-268l-48-128h-96zM0 84.667h1024v-170h-1024v170z" />
|
12 |
<glyph unicode="" glyph-name="font_download" d="M680 148.667h90l-218 556h-80l-218-556h90l48 128h240zM854 852.667q34 0 59-25t25-59v-684q0-34-25-59t-59-25h-684q-34 0-59 25t-25 59v684q0 34 25 59t59 25h684zM424 362.667l88 236 88-236h-176z" />
|
13 |
<glyph unicode="" glyph-name="header" d="M961.143 0c-50.286 0-101.143 4-152 4-50.286 0-100.571-4-150.857-4-19.429 0-28.571 21.143-28.571 37.714 0 50.857 57.143 29.143 86.857 48.571 18.857 12 18.857 60 18.857 80l-0.571 223.429c0 6.286 0 12-0.571 17.714-9.143 2.857-19.429 2.286-28.571 2.286h-385.714c-9.714 0-20 0.571-29.143-2.286-0.571-5.714-0.571-11.429-0.571-17.714l-0.571-212c0-21.714 0-81.143 21.143-93.714 29.714-18.286 97.143 7.429 97.143-44 0-17.143-8-40-28-40-53.143 0-106.286 4-158.857 4-48.571 0-97.143-4-145.714-4-18.857 0-27.429 21.714-27.429 37.714 0 49.714 52.571 29.143 80.571 48.571 18.286 12.571 18.857 61.714 18.857 81.714l-0.571 32.571v464.571c0 27.429 4 115.429-21.714 130.857-28.571 17.714-89.714-9.714-89.714 41.714 0 16.571 7.429 40 27.429 40 52.571 0 105.714-4 158.286-4 48 0 96.571 4 144.571 4 20.571 0 28.571-22.857 28.571-40 0-49.143-56.571-25.143-84.571-42.857-20-12-20-70.857-20-91.429l0.571-182.857c0-6.286 0-12 0.571-18.286 7.429-1.714 14.857-1.714 22.286-1.714h399.429c6.857 0 14.286 0 21.714 1.714 0.571 6.286 0.571 12 0.571 18.286l0.571 182.857c0 21.143 0 79.429-20 91.429-28.571 17.143-85.714-5.714-85.714 42.857 0 17.143 8 40 28.571 40 50.286 0 100.571-4 150.857-4 49.143 0 98.286 4 147.429 4 20.571 0 28.571-22.857 28.571-40 0-49.714-58.857-24.571-87.429-42.286-19.429-12.571-20-71.429-20-92l0.571-538.857c0-18.857 1.143-68.571 19.429-80 29.143-18.286 90.857 5.143 90.857-44.571 0-16.571-7.429-40-27.429-40z" />
|
fonts/pagelayer.ttf
CHANGED
Binary file
|
fonts/pagelayer.woff
CHANGED
Binary file
|
init.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
|
|
5 |
|
6 |
define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
|
7 |
define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
|
8 |
-
define('PAGELAYER_VERSION', '1.1.
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
5 |
|
6 |
define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
|
7 |
define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
|
8 |
+
define('PAGELAYER_VERSION', '1.1.7');
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
js/pagelayer-editor.js
CHANGED
@@ -3045,9 +3045,13 @@ function pagelayer_sc_render(jEle){
|
|
3045 |
|
3046 |
// If global id exist then update the global array and restup the all global element
|
3047 |
if(!pagelayer_empty(gId) && !pagelayer_empty(pagelayer.global_render)){
|
3048 |
-
pagelayer_global_widgets[gId]
|
3049 |
-
|
3050 |
-
|
|
|
|
|
|
|
|
|
3051 |
};
|
3052 |
|
3053 |
};
|
3045 |
|
3046 |
// If global id exist then update the global array and restup the all global element
|
3047 |
if(!pagelayer_empty(gId) && !pagelayer_empty(pagelayer.global_render)){
|
3048 |
+
if(!pagelayer_empty(pagelayer_global_widgets[gId])){
|
3049 |
+
pagelayer_global_widgets[gId].$ = gEle;
|
3050 |
+
pagelayer_global_widgets[gId]['is_dirty'] = true;
|
3051 |
+
pagelayer_setup_global_widgets(gId, pagelayer_ele_by_id(eleId), true);
|
3052 |
+
}else{
|
3053 |
+
gEle.removeAttr('pagelayer-a-global_id');
|
3054 |
+
}
|
3055 |
};
|
3056 |
|
3057 |
};
|
js/slimscroll.js
CHANGED
@@ -11,7 +11,6 @@ l*(b[0].scrollHeight-b.outerHeight());e&&(g=d,d=g/b[0].scrollHeight*b.outerHeigh
|
|
11 |
!0).fadeIn("fast"),a.railVisible&&m.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),m.fadeOut("slow"))},1E3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var q=b.scrollTop(),c=b.siblings("."+a.barClass),m=b.siblings("."+a.railClass);x();if(e.isPlainObject(f)){if("height"in f&&"auto"==f.height){b.parent().css("height","auto");b.css("height","auto");var h=b.parent().parent().height();b.parent().css("height",
|
12 |
h);b.css("height",h)}else"height"in f&&(h=f.height,b.parent().css("height",h),b.css("height",h));if("scrollTo"in f)q=parseInt(a.scrollTo);else if("scrollBy"in f)q+=parseInt(a.scrollBy);else if("destroy"in f){c.remove();m.remove();b.unwrap();return}n(q,!1,!0)}}else if(!(e.isPlainObject(f)&&"destroy"in f)){a.height="auto"==a.height?b.parent().height():a.height;q=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden",
|
13 |
width:a.width,height:a.height});var m=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,
|
14 |
-
WebkitBorderRadius:a.borderRadius,zIndex:99}),h="right"==a.position?{right:a.distance}:{left:a.distance};m.css(h);c.css(h);b.wrap(q);b.parent().append(c);b.parent().append(m);a.railDraggable&&c.bind("mousedown",function(a){var b=
|
15 |
function(a){a.stopPropagation();a.preventDefault();return!1});m.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(n((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)});
|
16 |
x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"top"!==a.start&&(n(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery);
|
17 |
-
|
11 |
!0).fadeIn("fast"),a.railVisible&&m.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),m.fadeOut("slow"))},1E3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var q=b.scrollTop(),c=b.siblings("."+a.barClass),m=b.siblings("."+a.railClass);x();if(e.isPlainObject(f)){if("height"in f&&"auto"==f.height){b.parent().css("height","auto");b.css("height","auto");var h=b.parent().parent().height();b.parent().css("height",
|
12 |
h);b.css("height",h)}else"height"in f&&(h=f.height,b.parent().css("height",h),b.css("height",h));if("scrollTo"in f)q=parseInt(a.scrollTo);else if("scrollBy"in f)q+=parseInt(a.scrollBy);else if("destroy"in f){c.remove();m.remove();b.unwrap();return}n(q,!1,!0)}}else if(!(e.isPlainObject(f)&&"destroy"in f)){a.height="auto"==a.height?b.parent().height():a.height;q=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden",
|
13 |
width:a.width,height:a.height});var m=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,
|
14 |
+
WebkitBorderRadius:a.borderRadius,zIndex:99}),h="right"==a.position?{right:a.distance}:{left:a.distance};m.css(h);c.css(h);b.wrap(q);b.parent().append(c);b.parent().append(m);a.railDraggable&&c.bind("mousedown",function(a){var b=c.parent();z=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);n(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){z=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll",
|
15 |
function(a){a.stopPropagation();a.preventDefault();return!1});m.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(n((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)});
|
16 |
x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"top"!==a.start&&(n(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery);
|
|
js/widgets.js
CHANGED
@@ -89,7 +89,23 @@ function pagelayer_bg_video(el){
|
|
89 |
var src = el.tmp['bg_video_src-url'];
|
90 |
|
91 |
var iframe_src = pagelayer_video_url(el.tmp['bg_video_src-url']);
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
if (youtubeRegExp.exec(src)) {
|
94 |
|
95 |
var youtubeRegExp1 = /youtube\.com/;
|
@@ -111,15 +127,15 @@ function pagelayer_bg_video(el){
|
|
111 |
videoId = src.split('.be/');
|
112 |
}
|
113 |
//console.log(frame_height);
|
114 |
-
el.atts['vid_src'] = '<iframe src="'+iframe_src+'
|
115 |
|
116 |
} else if (vimeoRegExp.exec(src)) {
|
117 |
|
118 |
-
el.atts['vid_src'] = '<iframe src="'+iframe_src+'
|
119 |
|
120 |
}else{
|
121 |
|
122 |
-
el.atts['vid_src'] = '<video autoplay
|
123 |
'<source src="'+iframe_src+'" type="video/mp4">'+
|
124 |
'</video>';
|
125 |
|
@@ -261,9 +277,29 @@ function pagelayer_render_end_pl_image(el){
|
|
261 |
|
262 |
// Pre DragAndDrop function
|
263 |
function pagelayer_preDAndD_image(jEle){
|
264 |
-
|
265 |
-
|
|
|
|
|
|
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
var dropDiv = '<div class="pagelayer-image-drop-zone">'+
|
268 |
'<div>'+
|
269 |
'<i class="fa fa-upload"></i>'+
|
@@ -536,15 +572,15 @@ function pagelayer_render_pl_grid_gallery(el){
|
|
536 |
}
|
537 |
ul += '</ul>';
|
538 |
|
539 |
-
el.atts['pagin'] = (j > 1) ? '<ul class="pagelayer-grid-page-ul">'+'<li class="pagelayer-grid-page-item">«</li>'+
|
540 |
pagin+
|
541 |
-
'<li class="pagelayer-grid-page-item">»</li>'+
|
542 |
|
543 |
el.tmp['gallery-random-id'] = gallery_rand;
|
544 |
|
545 |
el.atts['ul'] = ul;
|
546 |
|
547 |
-
}
|
548 |
|
549 |
function pagelayer_render_end_pl_grid_gallery(el){
|
550 |
pagelayer_pl_grid_lightbox(el.$);
|
89 |
var src = el.tmp['bg_video_src-url'];
|
90 |
|
91 |
var iframe_src = pagelayer_video_url(el.tmp['bg_video_src-url']);
|
92 |
+
// Adding mute and loop option in row or col
|
93 |
+
if(el.atts['mute'] == "true"){
|
94 |
+
iframe_src +="?&mute=1";
|
95 |
+
el.atts['mute'] = " muted ";
|
96 |
+
}else{
|
97 |
+
iframe_src +="?&mute=0";
|
98 |
+
el.atts['mute'] = "";
|
99 |
+
}
|
100 |
+
|
101 |
+
if(el.atts['stop_loop'] != "true"){
|
102 |
+
iframe_src +="&loop=1";
|
103 |
+
el.atts['stop_loop'] = " loop ";
|
104 |
+
}else{
|
105 |
+
iframe_src +="&loop=0";
|
106 |
+
el.atts['stop_loop'] ="";
|
107 |
+
}
|
108 |
+
|
109 |
if (youtubeRegExp.exec(src)) {
|
110 |
|
111 |
var youtubeRegExp1 = /youtube\.com/;
|
127 |
videoId = src.split('.be/');
|
128 |
}
|
129 |
//console.log(frame_height);
|
130 |
+
el.atts['vid_src'] = '<iframe src="'+iframe_src+'autoplay=1&controls=0&showinfo=0&rel=0&autohide=1&playlist='+videoId[1]+'" allowfullscreen="1" webkitallowfullscreen="1" mozallowfullscreen="1" frameborder="0"></iframe>';
|
131 |
|
132 |
} else if (vimeoRegExp.exec(src)) {
|
133 |
|
134 |
+
el.atts['vid_src'] = '<iframe src="'+iframe_src+'background=1&autoplay=1&byline=0&title=0" allowfullscreen="1" webkitallowfullscreen="1" mozallowfullscreen="1" frameborder="0"></iframe>';
|
135 |
|
136 |
}else{
|
137 |
|
138 |
+
el.atts['vid_src'] = '<video autoplay '+el.atts['mute']+el.atts['stop_loop']+'>'+
|
139 |
'<source src="'+iframe_src+'" type="video/mp4">'+
|
140 |
'</video>';
|
141 |
|
277 |
|
278 |
// Pre DragAndDrop function
|
279 |
function pagelayer_preDAndD_image(jEle){
|
280 |
+
|
281 |
+
// Making page image clickable to open media library
|
282 |
+
jEle.css('cursor', 'pointer');
|
283 |
+
jEle.find('.pagelayer-img').on('click', function(){
|
284 |
+
jEle.click();
|
285 |
|
286 |
+
// Getting Id of jEle
|
287 |
+
var widgetid = pagelayer_id(jEle);
|
288 |
+
|
289 |
+
// Finding widget image setting using id of jEle. Finding image editor setting from all of the other settings.
|
290 |
+
var rowImage = pagelayer.$$('[pagelayer-element-id='+widgetid+']').find('.pagelayer-elp-image').first();
|
291 |
+
|
292 |
+
rowImage.click();
|
293 |
+
|
294 |
+
});
|
295 |
+
|
296 |
+
dropzoneParent = jEle.find('.pagelayer-img').parent();
|
297 |
+
|
298 |
+
// Check if drop zone is already there then return
|
299 |
+
if(dropzoneParent.find('.pagelayer-image-drop-zone').length > 0){
|
300 |
+
return;
|
301 |
+
}
|
302 |
+
|
303 |
var dropDiv = '<div class="pagelayer-image-drop-zone">'+
|
304 |
'<div>'+
|
305 |
'<i class="fa fa-upload"></i>'+
|
572 |
}
|
573 |
ul += '</ul>';
|
574 |
|
575 |
+
el.atts['pagin'] = (j > 1) ? '<div class="pagelayer-grid-gallery-pagination"><ul class="pagelayer-grid-page-ul">'+'<li class="pagelayer-grid-page-item">«</li>'+
|
576 |
pagin+
|
577 |
+
'<li class="pagelayer-grid-page-item">»</li>'+'</ul></div>' : '';
|
578 |
|
579 |
el.tmp['gallery-random-id'] = gallery_rand;
|
580 |
|
581 |
el.atts['ul'] = ul;
|
582 |
|
583 |
+
}
|
584 |
|
585 |
function pagelayer_render_end_pl_grid_gallery(el){
|
586 |
pagelayer_pl_grid_lightbox(el.$);
|
languages/en.json
CHANGED
@@ -816,7 +816,7 @@
|
|
816 |
"social_style": "Social Style",
|
817 |
"Lightbox": "Lightbox",
|
818 |
"Autoplay": "Autoplay",
|
819 |
-
"
|
820 |
"loop": "Loop",
|
821 |
"video_style": "Video",
|
822 |
"overlay_style": "Overlay",
|
@@ -1746,5 +1746,8 @@
|
|
1746 |
"no_permission" : "Permission denied",
|
1747 |
"no_publish_permission" : "You do not have permission to publish this post !",
|
1748 |
"template_update_err" : "Unable to update the Template for some reason",
|
1749 |
-
"template_update_success" : "Template was updated successfully!"
|
|
|
|
|
|
|
1750 |
}
|
816 |
"social_style": "Social Style",
|
817 |
"Lightbox": "Lightbox",
|
818 |
"Autoplay": "Autoplay",
|
819 |
+
"mute": "Mute",
|
820 |
"loop": "Loop",
|
821 |
"video_style": "Video",
|
822 |
"overlay_style": "Overlay",
|
1746 |
"no_permission" : "Permission denied",
|
1747 |
"no_publish_permission" : "You do not have permission to publish this post !",
|
1748 |
"template_update_err" : "Unable to update the Template for some reason",
|
1749 |
+
"template_update_success" : "Template was updated successfully!",
|
1750 |
+
"trig_beforeLoad" : "Before Page Load",
|
1751 |
+
"popup_load_desc" : "Show popup till the page has loaded",
|
1752 |
+
"stop_loop" : "Stop Looping"
|
1753 |
}
|
main/class.php
CHANGED
@@ -62,6 +62,15 @@ class PageLayer{
|
|
62 |
|
63 |
// For exporting templates
|
64 |
var $media_to_export = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
function __construct() {
|
67 |
|
62 |
|
63 |
// For exporting templates
|
64 |
var $media_to_export = array();
|
65 |
+
|
66 |
+
// For global widget
|
67 |
+
var $global_widgets = array();
|
68 |
+
|
69 |
+
// For global section
|
70 |
+
var $global_sections = array();
|
71 |
+
|
72 |
+
// For saved sections
|
73 |
+
var $saved_sections = array();
|
74 |
|
75 |
function __construct() {
|
76 |
|
main/functions.php
CHANGED
@@ -550,33 +550,30 @@ function pagelayer_load_shortcodes(){
|
|
550 |
|
551 |
// Apply filter to load custom widgets
|
552 |
do_action('pagelayer_load_custom_widgets');
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
$query = new WP_Query($args);
|
565 |
-
|
566 |
-
$tmp_list = [];
|
567 |
-
$global_widgets = array();
|
568 |
-
$global_widgets['global_widget'] = array();
|
569 |
-
$global_widgets['section'] = array();
|
570 |
-
$global_widgets['global_section'] = array();
|
571 |
-
$allowed_type = array('global_widget', 'section', 'global_section');
|
572 |
-
|
573 |
-
foreach($query->posts as $template){
|
574 |
|
575 |
-
|
576 |
-
$pagelayer_template_type = get_post_meta($template->ID, 'pagelayer_template_type', true);
|
577 |
|
578 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
|
|
|
|
|
|
|
580 |
$global_data = [];
|
581 |
$global_data['post_id'] = $template->ID;
|
582 |
$global_data['title'] = $template->post_title;
|
@@ -591,14 +588,13 @@ function pagelayer_load_shortcodes(){
|
|
591 |
$global_data['tag'] = $tag;
|
592 |
$global_data['$'] = do_shortcode($template->post_content);
|
593 |
$global_widgets[$pagelayer_template_type][$template->ID] = $global_data;
|
594 |
-
}
|
595 |
|
|
|
|
|
|
|
|
|
|
|
596 |
}
|
597 |
-
|
598 |
-
$pagelayer->global_widgets = $global_widgets['global_widget'];
|
599 |
-
$pagelayer->saved_sections = $global_widgets['section'];
|
600 |
-
$pagelayer->global_sections = $global_widgets['global_section'];
|
601 |
-
|
602 |
}
|
603 |
|
604 |
// Add the shortcodes to the pagelayer list
|
@@ -731,11 +727,6 @@ function pagelayer_image($id){
|
|
731 |
$caption = wp_get_attachment_caption($id);
|
732 |
$caption = !empty($caption) ? $caption : '';
|
733 |
|
734 |
-
$ret['alt'] = $alt;
|
735 |
-
$ret['title'] = $title;
|
736 |
-
$ret['link'] = $link;
|
737 |
-
$ret['caption'] = $caption;
|
738 |
-
|
739 |
}
|
740 |
|
741 |
}
|
@@ -749,6 +740,11 @@ function pagelayer_image($id){
|
|
749 |
if(empty($ret['url'])){
|
750 |
$ret['url'] = PAGELAYER_URL.'/images/default-image.png';
|
751 |
}
|
|
|
|
|
|
|
|
|
|
|
752 |
|
753 |
$ret = apply_filters('pagelayer_image', $ret);
|
754 |
|
550 |
|
551 |
// Apply filter to load custom widgets
|
552 |
do_action('pagelayer_load_custom_widgets');
|
553 |
+
if(defined('PAGELAYER_PREMIUM')){
|
554 |
+
// Add global widget data
|
555 |
+
// Get global widget templates id by type
|
556 |
+
$args = [
|
557 |
+
'post_type' => $pagelayer->builder['name'],
|
558 |
+
'status' => 'publish',
|
559 |
+
'meta_key' => 'pagelayer_template_type',
|
560 |
+
'meta_value' => array('global_widget', 'section', 'global_section'),
|
561 |
+
'posts_per_page' => -1
|
562 |
+
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
|
564 |
+
$query = new WP_Query($args);
|
|
|
565 |
|
566 |
+
$tmp_list = [];
|
567 |
+
$global_widgets = array();
|
568 |
+
$global_widgets['global_widget'] = array();
|
569 |
+
$global_widgets['section'] = array();
|
570 |
+
$global_widgets['global_section'] = array();
|
571 |
+
|
572 |
+
foreach($query->posts as $template){
|
573 |
|
574 |
+
// The type
|
575 |
+
$pagelayer_template_type = get_post_meta($template->ID, 'pagelayer_template_type', true);
|
576 |
+
|
577 |
$global_data = [];
|
578 |
$global_data['post_id'] = $template->ID;
|
579 |
$global_data['title'] = $template->post_title;
|
588 |
$global_data['tag'] = $tag;
|
589 |
$global_data['$'] = do_shortcode($template->post_content);
|
590 |
$global_widgets[$pagelayer_template_type][$template->ID] = $global_data;
|
|
|
591 |
|
592 |
+
}
|
593 |
+
|
594 |
+
$pagelayer->global_widgets = $global_widgets['global_widget'];
|
595 |
+
$pagelayer->saved_sections = $global_widgets['section'];
|
596 |
+
$pagelayer->global_sections = $global_widgets['global_section'];
|
597 |
}
|
|
|
|
|
|
|
|
|
|
|
598 |
}
|
599 |
|
600 |
// Add the shortcodes to the pagelayer list
|
727 |
$caption = wp_get_attachment_caption($id);
|
728 |
$caption = !empty($caption) ? $caption : '';
|
729 |
|
|
|
|
|
|
|
|
|
|
|
730 |
}
|
731 |
|
732 |
}
|
740 |
if(empty($ret['url'])){
|
741 |
$ret['url'] = PAGELAYER_URL.'/images/default-image.png';
|
742 |
}
|
743 |
+
|
744 |
+
$ret['alt'] = @$alt;
|
745 |
+
$ret['title'] = @$title;
|
746 |
+
$ret['link'] = @$link;
|
747 |
+
$ret['caption'] = @$caption;
|
748 |
|
749 |
$ret = apply_filters('pagelayer_image', $ret);
|
750 |
|
main/shortcode_functions.php
CHANGED
@@ -768,6 +768,22 @@ function pagelayer_bg_video(&$el){
|
|
768 |
$youtubeRegExp = '/youtube\.com|youtu\.be/is';
|
769 |
$vimeoRegExp = '/vimeo\.com/is';
|
770 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
771 |
if (!empty($source)) {
|
772 |
|
773 |
if (preg_match($youtubeRegExp, $source)) {
|
@@ -796,17 +812,17 @@ function pagelayer_bg_video(&$el){
|
|
796 |
|
797 |
}
|
798 |
|
799 |
-
$el['atts']['vid_src'] = '<iframe src="'.$iframe_src.'
|
800 |
|
801 |
} else if (preg_match($vimeoRegExp, $source)) {
|
802 |
|
803 |
-
$el['atts']['vid_src'] = '<iframe src="'.$iframe_src.'
|
804 |
|
805 |
}else{
|
806 |
|
807 |
-
$el['atts']['vid_src'] = '<video autoplay
|
808 |
-
|
809 |
-
|
810 |
|
811 |
}
|
812 |
}
|
@@ -814,6 +830,7 @@ function pagelayer_bg_video(&$el){
|
|
814 |
|
815 |
// Image Handler
|
816 |
function pagelayer_sc_social(&$el){
|
|
|
817 |
$icon = explode(' fa-', $el['atts']['icon']);
|
818 |
$el['classes'][] = ['.pagelayer-icon-holder' => 'pagelayer-'.$icon[1]];
|
819 |
}
|
@@ -852,6 +869,10 @@ function pagelayer_sc_image(&$el){
|
|
852 |
// Image Slider Handler
|
853 |
function pagelayer_sc_image_slider(&$el){
|
854 |
|
|
|
|
|
|
|
|
|
855 |
$ids = explode(',', $el['atts']['ids']);
|
856 |
$urls = [];
|
857 |
$all_urls = [];
|
@@ -921,6 +942,10 @@ function pagelayer_sc_image_slider(&$el){
|
|
921 |
//Grid Gallery Handler
|
922 |
function pagelayer_sc_grid_gallery(&$el){
|
923 |
|
|
|
|
|
|
|
|
|
924 |
$ids = explode(',', $el['atts']['ids']);
|
925 |
$urls = [];
|
926 |
$all_urls = [];
|
@@ -1003,7 +1028,7 @@ function pagelayer_sc_grid_gallery(&$el){
|
|
1003 |
|
1004 |
$ul[] = '</ul>';
|
1005 |
|
1006 |
-
$pagiComplete[] = '<ul class="pagelayer-grid-page-ul">'.'<li class="pagelayer-grid-page-item">«</li>'.$pagin.'<li class="pagelayer-grid-page-item">»</li>'.'</ul>';
|
1007 |
//pagelayer_print($urls);
|
1008 |
//pagelayer_print($final_urls);
|
1009 |
//pagelayer_print($all_urls);
|
@@ -1025,8 +1050,8 @@ function pagelayer_sc_grid_gallery(&$el){
|
|
1025 |
// Testimonial Handler
|
1026 |
function pagelayer_sc_testimonial(&$el){
|
1027 |
|
1028 |
-
$el['atts']['
|
1029 |
-
$el['atts']['func_image'] = empty($
|
1030 |
|
1031 |
if(!empty($image)){
|
1032 |
foreach($image as $k => $v){
|
@@ -1039,25 +1064,29 @@ function pagelayer_sc_testimonial(&$el){
|
|
1039 |
// Video Handler
|
1040 |
function pagelayer_sc_video(&$el){
|
1041 |
|
|
|
|
|
|
|
|
|
1042 |
$el['atts']['video_overlay_image-url'] = empty($el['tmp']['video_overlay_image-'.$el['atts']['custom_size'].'-url']) ? $el['tmp']['video_overlay_image-url'] : $el['tmp']['video_overlay_image-'.$el['atts']['custom_size'].'-url'];
|
1043 |
$el['atts']['video_overlay_image-url'] = empty($el['atts']['video_overlay_image-url']) ? $el['atts']['video_overlay_image'] : $el['atts']['video_overlay_image-url'];
|
1044 |
|
1045 |
// Get the video URL for the iframe
|
1046 |
$el['atts']['vid_src'] = pagelayer_video_url($el['tmp']['src-url']);
|
1047 |
|
1048 |
-
if($el['atts']['autoplay']
|
1049 |
$el['atts']['vid_src'] .="?&autoplay=1";
|
1050 |
}else{
|
1051 |
$el['atts']['vid_src'] .="?&autoplay=0";
|
1052 |
}
|
1053 |
|
1054 |
-
if($el['atts']['mute']
|
1055 |
$el['atts']['vid_src'] .="&mute=1";
|
1056 |
}else{
|
1057 |
$el['atts']['vid_src'] .="&mute=0";
|
1058 |
}
|
1059 |
|
1060 |
-
if($el['atts']['loop']
|
1061 |
$el['atts']['vid_src'] .="&loop=1";
|
1062 |
}else{
|
1063 |
$el['atts']['vid_src'] .="&loop=0";
|
768 |
$youtubeRegExp = '/youtube\.com|youtu\.be/is';
|
769 |
$vimeoRegExp = '/vimeo\.com/is';
|
770 |
|
771 |
+
if(!empty($el['atts']['mute'])){
|
772 |
+
$iframe_src .= "?&mute=1";
|
773 |
+
$el['atts']['mute'] = " muted ";
|
774 |
+
}else{
|
775 |
+
$iframe_src .= "?&mute=0";
|
776 |
+
$el['atts']['mute'] = "";
|
777 |
+
}
|
778 |
+
|
779 |
+
if(empty($el['atts']['stop_loop'])){
|
780 |
+
$iframe_src .= "&loop=1";
|
781 |
+
$el['atts']['stop_loop'] = " loop ";
|
782 |
+
}else{
|
783 |
+
$iframe_src .= "&loop=0";
|
784 |
+
$el['atts']['stop_loop'] = "";
|
785 |
+
}
|
786 |
+
|
787 |
if (!empty($source)) {
|
788 |
|
789 |
if (preg_match($youtubeRegExp, $source)) {
|
812 |
|
813 |
}
|
814 |
|
815 |
+
$el['atts']['vid_src'] = '<iframe src="'.$iframe_src.'autoplay=1&controls=0&showinfo=0&rel=0&autohide=1&playlist='.$videoId.'" allowfullscreen="1" webkitallowfullscreen="1" mozallowfullscreen="1" frameborder="0"></iframe>';
|
816 |
|
817 |
} else if (preg_match($vimeoRegExp, $source)) {
|
818 |
|
819 |
+
$el['atts']['vid_src'] = '<iframe src="'.$iframe_src.'background=1&autoplay=1&byline=0&title=0" allowfullscreen="1" webkitallowfullscreen="1" mozallowfullscreen="1" frameborder="0"></iframe>';
|
820 |
|
821 |
}else{
|
822 |
|
823 |
+
$el['atts']['vid_src'] = '<video autoplay '.$el['atts']['mute'].$el['atts']['stop_loop'].'>'.
|
824 |
+
'<source src="'.$iframe_src.'" type="video/mp4">'.
|
825 |
+
'</video>';
|
826 |
|
827 |
}
|
828 |
}
|
830 |
|
831 |
// Image Handler
|
832 |
function pagelayer_sc_social(&$el){
|
833 |
+
if(empty($el['atts']['icon'])) return;
|
834 |
$icon = explode(' fa-', $el['atts']['icon']);
|
835 |
$el['classes'][] = ['.pagelayer-icon-holder' => 'pagelayer-'.$icon[1]];
|
836 |
}
|
869 |
// Image Slider Handler
|
870 |
function pagelayer_sc_image_slider(&$el){
|
871 |
|
872 |
+
if(empty($el['atts']['ids'])){
|
873 |
+
$el['atts']['ids'] = '';
|
874 |
+
}
|
875 |
+
|
876 |
$ids = explode(',', $el['atts']['ids']);
|
877 |
$urls = [];
|
878 |
$all_urls = [];
|
942 |
//Grid Gallery Handler
|
943 |
function pagelayer_sc_grid_gallery(&$el){
|
944 |
|
945 |
+
if(empty($el['atts']['ids'])){
|
946 |
+
$el['atts']['ids'] = '';
|
947 |
+
}
|
948 |
+
|
949 |
$ids = explode(',', $el['atts']['ids']);
|
950 |
$urls = [];
|
951 |
$all_urls = [];
|
1028 |
|
1029 |
$ul[] = '</ul>';
|
1030 |
|
1031 |
+
$pagiComplete[] = '<div class="pagelayer-grid-gallery-pagination"><ul class="pagelayer-grid-page-ul">'.'<li class="pagelayer-grid-page-item">«</li>'.$pagin.'<li class="pagelayer-grid-page-item">»</li>'.'</ul></div>';
|
1032 |
//pagelayer_print($urls);
|
1033 |
//pagelayer_print($final_urls);
|
1034 |
//pagelayer_print($all_urls);
|
1050 |
// Testimonial Handler
|
1051 |
function pagelayer_sc_testimonial(&$el){
|
1052 |
|
1053 |
+
$custom_size = empty($el['atts']['custom_size']) ? '' : @$el['tmp']['avatar-'.$el['atts']['custom_size'].'-url'];
|
1054 |
+
$el['atts']['func_image'] = empty($custom_size) ? @$el['tmp']['avatar-url'] : $custom_size;
|
1055 |
|
1056 |
if(!empty($image)){
|
1057 |
foreach($image as $k => $v){
|
1064 |
// Video Handler
|
1065 |
function pagelayer_sc_video(&$el){
|
1066 |
|
1067 |
+
$el['atts']['custom_size'] = empty($el['atts']['custom_size']) ? '' : $el['atts']['custom_size'];
|
1068 |
+
$el['tmp']['video_overlay_image-url'] = empty($el['tmp']['video_overlay_image-url']) ? '' : $el['tmp']['video_overlay_image-url'];
|
1069 |
+
$el['atts']['video_overlay_image'] = empty($el['atts']['video_overlay_image']) ? '' : $el['atts']['video_overlay_image'];
|
1070 |
+
|
1071 |
$el['atts']['video_overlay_image-url'] = empty($el['tmp']['video_overlay_image-'.$el['atts']['custom_size'].'-url']) ? $el['tmp']['video_overlay_image-url'] : $el['tmp']['video_overlay_image-'.$el['atts']['custom_size'].'-url'];
|
1072 |
$el['atts']['video_overlay_image-url'] = empty($el['atts']['video_overlay_image-url']) ? $el['atts']['video_overlay_image'] : $el['atts']['video_overlay_image-url'];
|
1073 |
|
1074 |
// Get the video URL for the iframe
|
1075 |
$el['atts']['vid_src'] = pagelayer_video_url($el['tmp']['src-url']);
|
1076 |
|
1077 |
+
if(!empty($el['atts']['autoplay'])){
|
1078 |
$el['atts']['vid_src'] .="?&autoplay=1";
|
1079 |
}else{
|
1080 |
$el['atts']['vid_src'] .="?&autoplay=0";
|
1081 |
}
|
1082 |
|
1083 |
+
if(!empty($el['atts']['mute'])){
|
1084 |
$el['atts']['vid_src'] .="&mute=1";
|
1085 |
}else{
|
1086 |
$el['atts']['vid_src'] .="&mute=0";
|
1087 |
}
|
1088 |
|
1089 |
+
if(!empty($el['atts']['loop'])){
|
1090 |
$el['atts']['vid_src'] .="&loop=1";
|
1091 |
}else{
|
1092 |
$el['atts']['vid_src'] .="&loop=0";
|
main/shortcodes.php
CHANGED
@@ -1979,6 +1979,16 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
|
|
1979 |
'desc' => __pl('video_src_desc'),
|
1980 |
'req' => ['row_bg_type' => 'video']
|
1981 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1982 |
'parallax_img' => array(
|
1983 |
'type' => 'image',
|
1984 |
'label' => __pl('Image'),
|
@@ -2464,6 +2474,16 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
|
|
2464 |
'desc' => __pl('video_src_desc'),
|
2465 |
'req' => ['col_bg_type' => 'video']
|
2466 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2467 |
'parallax_img' => array(
|
2468 |
'type' => 'image',
|
2469 |
'label' => __pl('Image'),
|
@@ -4683,9 +4703,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
|
|
4683 |
'html' => '<div class="pagelayer-grid-gallery-container">
|
4684 |
{{ul}}
|
4685 |
</div>
|
4686 |
-
|
4687 |
-
{{pagin}}
|
4688 |
-
</div>',
|
4689 |
'params' => array(
|
4690 |
'ids' => array(
|
4691 |
'type' => 'multi_image',
|
@@ -4809,7 +4827,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
|
|
4809 |
),
|
4810 |
'images_no' => array(
|
4811 |
'type' => 'spinner',
|
4812 |
-
'label' => __pl('
|
4813 |
'min' => 0,
|
4814 |
'step' => 1,
|
4815 |
'max' => 1000,
|
@@ -5600,7 +5618,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
|
|
5600 |
),
|
5601 |
'mute' => array(
|
5602 |
'type' => 'checkbox',
|
5603 |
-
'label' => __pl('
|
5604 |
),
|
5605 |
'loop' => array(
|
5606 |
'type' => 'checkbox',
|
@@ -9002,7 +9020,13 @@ foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
|
|
9002 |
'group' => 'wordpress',
|
9003 |
'func' => 'pagelayer_does_not_exist',
|
9004 |
'innerHTML' => 'widget_data',
|
9005 |
-
'widget' => $widget_key
|
|
|
|
|
|
|
|
|
|
|
|
|
9006 |
)
|
9007 |
);
|
9008 |
|
1979 |
'desc' => __pl('video_src_desc'),
|
1980 |
'req' => ['row_bg_type' => 'video']
|
1981 |
),
|
1982 |
+
'mute' => array(
|
1983 |
+
'type' => 'checkbox',
|
1984 |
+
'label' => __pl('mute'),
|
1985 |
+
'req' => ['row_bg_type' => 'video']
|
1986 |
+
),
|
1987 |
+
'stop_loop' => array(
|
1988 |
+
'type' => 'checkbox',
|
1989 |
+
'label' => __pl('stop_loop'),
|
1990 |
+
'req' => ['row_bg_type' => 'video']
|
1991 |
+
),
|
1992 |
'parallax_img' => array(
|
1993 |
'type' => 'image',
|
1994 |
'label' => __pl('Image'),
|
2474 |
'desc' => __pl('video_src_desc'),
|
2475 |
'req' => ['col_bg_type' => 'video']
|
2476 |
),
|
2477 |
+
'mute' => array(
|
2478 |
+
'type' => 'checkbox',
|
2479 |
+
'label' => __pl('mute'),
|
2480 |
+
'req' => ['col_bg_type' => 'video']
|
2481 |
+
),
|
2482 |
+
'stop_loop' => array(
|
2483 |
+
'type' => 'checkbox',
|
2484 |
+
'label' => __pl('stop_loop'),
|
2485 |
+
'req' => ['col_bg_type' => 'video']
|
2486 |
+
),
|
2487 |
'parallax_img' => array(
|
2488 |
'type' => 'image',
|
2489 |
'label' => __pl('Image'),
|
4703 |
'html' => '<div class="pagelayer-grid-gallery-container">
|
4704 |
{{ul}}
|
4705 |
</div>
|
4706 |
+
{{pagin}}',
|
|
|
|
|
4707 |
'params' => array(
|
4708 |
'ids' => array(
|
4709 |
'type' => 'multi_image',
|
4827 |
),
|
4828 |
'images_no' => array(
|
4829 |
'type' => 'spinner',
|
4830 |
+
'label' => __pl('num_images'),
|
4831 |
'min' => 0,
|
4832 |
'step' => 1,
|
4833 |
'max' => 1000,
|
5618 |
),
|
5619 |
'mute' => array(
|
5620 |
'type' => 'checkbox',
|
5621 |
+
'label' => __pl('mute'),
|
5622 |
),
|
5623 |
'loop' => array(
|
5624 |
'type' => 'checkbox',
|
9020 |
'group' => 'wordpress',
|
9021 |
'func' => 'pagelayer_does_not_exist',
|
9022 |
'innerHTML' => 'widget_data',
|
9023 |
+
'widget' => $widget_key,
|
9024 |
+
'params'=>array(
|
9025 |
+
'widget_data' => array(
|
9026 |
+
'type' => 'text',
|
9027 |
+
'not_visible' => 1,
|
9028 |
+
)
|
9029 |
+
)
|
9030 |
)
|
9031 |
);
|
9032 |
|
main/template.php
CHANGED
@@ -126,6 +126,7 @@ function pagelayer_template_include($template){
|
|
126 |
// If we do have Popup templates, then append it in body
|
127 |
if(!empty($pagelayer->template_popup_ids) && empty($pagelayer->template_editor)){
|
128 |
$pagelayer_enqueue_frontend = true;
|
|
|
129 |
add_action('wp_footer', 'pagelayer_builder_popup_append');
|
130 |
}
|
131 |
|
126 |
// If we do have Popup templates, then append it in body
|
127 |
if(!empty($pagelayer->template_popup_ids) && empty($pagelayer->template_editor)){
|
128 |
$pagelayer_enqueue_frontend = true;
|
129 |
+
add_action('wp_body_open', 'pagelayer_builder_popup_append');
|
130 |
add_action('wp_footer', 'pagelayer_builder_popup_append');
|
131 |
}
|
132 |
|
pagelayer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: PageLayer
|
4 |
Plugin URI: http://wordpress.org/plugins/pagelayer/
|
5 |
Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
|
6 |
-
Version: 1.1.
|
7 |
Author: Pagelayer Team
|
8 |
Author URI: https://pagelayer.com/
|
9 |
License: LGPL v2.1
|
3 |
Plugin Name: PageLayer
|
4 |
Plugin URI: http://wordpress.org/plugins/pagelayer/
|
5 |
Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
|
6 |
+
Version: 1.1.7
|
7 |
Author: Pagelayer Team
|
8 |
Author URI: https://pagelayer.com/
|
9 |
License: LGPL v2.1
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, editor, landing page, drag-and-drop, pagelayer, form-builder
|
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.4
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 1.1.
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
@@ -109,6 +109,11 @@ Do you have questions related to PageLayer ? Use the following links :
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
= 1.1.6 (June 22, 2020) =
|
113 |
* [Bug-Fix] In certain cases some js error occurred while dragging and dropping the widget. This is fixed.
|
114 |
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.4
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.1.7
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.1.7 (June 26, 2020) =
|
113 |
+
* [Feature] Now you can open the media library by clicking the images and choosing or uploading the same.
|
114 |
+
* [Tasks] Added Mute and Looping options in background video in rows and columns.
|
115 |
+
* [Bug-fix] On turning on the error report in PHP, some PHP error notice was shown. This is fixed.
|
116 |
+
|
117 |
= 1.1.6 (June 22, 2020) =
|
118 |
* [Bug-Fix] In certain cases some js error occurred while dragging and dropping the widget. This is fixed.
|
119 |
|