Version Description
(September 18, 2020) = * [Task] Adding support for block formats in Pagelayer. This is complete but due to compatibility, we are still storing in shortcodes which will change over the next few versions. * [Improvement] The CSS rendering method has been further improved and will reduce your page size. * [Bug-Fix] While applying the page/post revisions, the revision content was not rendering properly. This is fixed. * [Bug-Fix] In the Image Hotspot widget "Tooltip Display" was not working properly. This is fixed. * [Bug-Fix] If the animation heading widget contains the
tag then it was not rendering properly. This is fixed.
Download this release
Release Info
Developer | pagelayer |
Plugin | Page Builder: PageLayer – Drag and Drop website builder |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
- init.php +2 -1
- js/pagelayer-editor.js +159 -15
- js/properties.js +1 -1
- main/ajax.php +6 -6
- main/freemium.php +0 -6157
- main/freemium_functions.php +0 -831
- main/functions.php +21 -13
- main/live-body.php +4 -1
- main/live.php +1 -0
- main/shortcode_functions.php +71 -12
- main/template.php +1 -1
- pagelayer.php +1 -1
- readme.txt +9 -1
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.2.
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
@@ -17,6 +17,7 @@ define('PAGELAYER_DOCS', 'https://pagelayer.com/docs/');
|
|
17 |
define('PAGELAYER_API', 'https://api.pagelayer.com/');
|
18 |
define('PAGELAYER_SC_PREFIX', 'pl');
|
19 |
define('PAGELAYER_YOUTUBE_BG', 'https://www.youtube.com/watch?v=Csa6rvCWmLU');
|
|
|
20 |
|
21 |
include_once(PAGELAYER_DIR.'/main/functions.php');
|
22 |
include_once(PAGELAYER_DIR.'/main/class.php');
|
5 |
|
6 |
define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
|
7 |
define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
|
8 |
+
define('PAGELAYER_VERSION', '1.2.8');
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
17 |
define('PAGELAYER_API', 'https://api.pagelayer.com/');
|
18 |
define('PAGELAYER_SC_PREFIX', 'pl');
|
19 |
define('PAGELAYER_YOUTUBE_BG', 'https://www.youtube.com/watch?v=Csa6rvCWmLU');
|
20 |
+
define('PAGELAYER_BLOCK_PREFIX', defined('SITEPAD') ? 'sp' : 'wp');
|
21 |
|
22 |
include_once(PAGELAYER_DIR.'/main/functions.php');
|
23 |
include_once(PAGELAYER_DIR.'/main/class.php');
|
js/pagelayer-editor.js
CHANGED
@@ -54,9 +54,6 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
|
|
54 |
pagelayer.$$('.pagelayer-errorBox-close').on('click', function(){
|
55 |
pagelayer.$$('.pagelayer-errorBox').fadeOut();
|
56 |
});
|
57 |
-
pagelayer.$$('.pagelayer-errorBox-support').on('click', function(){
|
58 |
-
window.open('http://pagelayer.deskuss.com');
|
59 |
-
});
|
60 |
pagelayer.$$('.pagelayer-errorBox').fadeIn();
|
61 |
|
62 |
return false;
|
@@ -1467,7 +1464,7 @@ function pagelayer_element_setup(selector, render){
|
|
1467 |
// Unsetup element for restup
|
1468 |
function pagelayer_element_unsetup(selector, id){
|
1469 |
|
1470 |
-
id = id ||
|
1471 |
|
1472 |
var src = jQuery(selector);
|
1473 |
var html = src[0].outerHTML;
|
@@ -1488,7 +1485,9 @@ function pagelayer_element_unsetup(selector, id){
|
|
1488 |
});
|
1489 |
|
1490 |
// Assign id
|
1491 |
-
|
|
|
|
|
1492 |
|
1493 |
return jEle;
|
1494 |
}
|
@@ -1802,9 +1801,10 @@ jQuery(document).on('paste', function(pasteEvent){
|
|
1802 |
pagelayer.history_action = false;
|
1803 |
|
1804 |
// Create image html
|
1805 |
-
var html =
|
1806 |
-
|
1807 |
-
html
|
|
|
1808 |
|
1809 |
// Allow to add action history
|
1810 |
pagelayer.history_action = true;
|
@@ -2100,7 +2100,6 @@ function pagelayer_save_sections(sel, section = 'section'){
|
|
2100 |
jData['post_id'] = post_id;
|
2101 |
jData['title'] = title; // TODO : create modal to input title
|
2102 |
jData['$'] = jEle;
|
2103 |
-
jData['tag'] = pagelayer_tag(jEle);
|
2104 |
jData['is_dirty'] = true;
|
2105 |
|
2106 |
// Add the array in global widgets array
|
@@ -2149,9 +2148,10 @@ function pagelayer_generate_sc_global_widget(){
|
|
2149 |
global_widgets[y]['type'] = 'global_widget';
|
2150 |
|
2151 |
var content = pagelayer_generate_sc(jQuery(cWidget.$), true);
|
|
|
2152 |
|
2153 |
// IF is group then need to remove pagelayer id,
|
2154 |
-
if(pagelayer_is_group(
|
2155 |
content = content.replace(/pagelayer-id="(.*?)"/g, "");
|
2156 |
}
|
2157 |
|
@@ -3263,6 +3263,15 @@ function pagelayer_close(){
|
|
3263 |
}
|
3264 |
};
|
3265 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3266 |
// Generate Shortcode Post to save
|
3267 |
function pagelayer_generate_sc(selector, selfEle){
|
3268 |
|
@@ -3406,6 +3415,139 @@ function pagelayer_generate_sc(selector, selfEle){
|
|
3406 |
|
3407 |
};
|
3408 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3409 |
// Escape charaters in attributes
|
3410 |
var pagelayer_escapeChars = {
|
3411 |
'\\]' : '#93',
|
@@ -3627,7 +3769,8 @@ function pagelayer_leftbar(){
|
|
3627 |
// Indivdual icon
|
3628 |
for(var y in pagelayer_global_widgets){
|
3629 |
|
3630 |
-
var sc = pagelayer_global_widgets[y]['
|
|
|
3631 |
|
3632 |
if(!(sc in pagelayer_shortcodes) || 'not_visible' in pagelayer_shortcodes[sc]){
|
3633 |
continue;
|
@@ -3945,11 +4088,12 @@ function pagelayer_history_setup(force){
|
|
3945 |
|
3946 |
props_new.attr('pagelayer-a-post_name', post_name);
|
3947 |
props_new.attr('pagelayer-a-post_status', post_status);
|
3948 |
-
}
|
3949 |
-
|
3950 |
-
|
3951 |
-
pagelayer_element_setup();
|
3952 |
pagelayer_add_widget();
|
|
|
3953 |
}
|
3954 |
}
|
3955 |
});
|
54 |
pagelayer.$$('.pagelayer-errorBox-close').on('click', function(){
|
55 |
pagelayer.$$('.pagelayer-errorBox').fadeOut();
|
56 |
});
|
|
|
|
|
|
|
57 |
pagelayer.$$('.pagelayer-errorBox').fadeIn();
|
58 |
|
59 |
return false;
|
1464 |
// Unsetup element for restup
|
1465 |
function pagelayer_element_unsetup(selector, id){
|
1466 |
|
1467 |
+
id = id || false;
|
1468 |
|
1469 |
var src = jQuery(selector);
|
1470 |
var html = src[0].outerHTML;
|
1485 |
});
|
1486 |
|
1487 |
// Assign id
|
1488 |
+
if(id){
|
1489 |
+
jEle.attr('pagelayer-id', id);
|
1490 |
+
}
|
1491 |
|
1492 |
return jEle;
|
1493 |
}
|
1801 |
pagelayer.history_action = false;
|
1802 |
|
1803 |
// Create image html
|
1804 |
+
var html = pagelayer_create_sc('pl_image');
|
1805 |
+
|
1806 |
+
pagelayer_set_atts(html, 'id', obj['data']['id']);
|
1807 |
+
pagelayer_set_tmp_atts(html, 'id-url', obj['data']['url']);
|
1808 |
|
1809 |
// Allow to add action history
|
1810 |
pagelayer.history_action = true;
|
2100 |
jData['post_id'] = post_id;
|
2101 |
jData['title'] = title; // TODO : create modal to input title
|
2102 |
jData['$'] = jEle;
|
|
|
2103 |
jData['is_dirty'] = true;
|
2104 |
|
2105 |
// Add the array in global widgets array
|
2148 |
global_widgets[y]['type'] = 'global_widget';
|
2149 |
|
2150 |
var content = pagelayer_generate_sc(jQuery(cWidget.$), true);
|
2151 |
+
var tag = pagelayer_tag(jQuery(cWidget.$));
|
2152 |
|
2153 |
// IF is group then need to remove pagelayer id,
|
2154 |
+
if(!pagelayer_empty(tag) && pagelayer_is_group(tag)){
|
2155 |
content = content.replace(/pagelayer-id="(.*?)"/g, "");
|
2156 |
}
|
2157 |
|
3263 |
}
|
3264 |
};
|
3265 |
|
3266 |
+
function pagelayer_serializeAttributes(attributes) {
|
3267 |
+
return JSON.stringify(attributes) // Don't break HTML comments.
|
3268 |
+
.replace(/--/g, "\\u002d\\u002d") // Don't break non-standard-compliant tools.
|
3269 |
+
.replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026") // Bypass server stripslashes behavior which would unescape stringify's
|
3270 |
+
// escaping of quotation mark.
|
3271 |
+
// See: https://developer.wordpress.org/reference/functions/wp_kses_stripslashes/
|
3272 |
+
.replace(/\\"/g, "\\u0022");
|
3273 |
+
}
|
3274 |
+
|
3275 |
// Generate Shortcode Post to save
|
3276 |
function pagelayer_generate_sc(selector, selfEle){
|
3277 |
|
3415 |
|
3416 |
};
|
3417 |
|
3418 |
+
// Generate blocks Post to save
|
3419 |
+
function pagelayer_generate_sc_new(selector, selfEle){
|
3420 |
+
|
3421 |
+
selfEle = selfEle || false;
|
3422 |
+
var txt = '';
|
3423 |
+
|
3424 |
+
var generate_sc_single = function(jEle){
|
3425 |
+
|
3426 |
+
// The ID
|
3427 |
+
var id = jEle.attr('pagelayer-id');
|
3428 |
+
|
3429 |
+
// If there is an Add element wrapper
|
3430 |
+
if(pagelayer_empty(id)){
|
3431 |
+
return;
|
3432 |
+
}
|
3433 |
+
|
3434 |
+
// Find the type of tag
|
3435 |
+
var tag = jEle.attr('pagelayer-tag');
|
3436 |
+
var final_tag = tag;
|
3437 |
+
var closestEle = jEle.closest('.pagelayer-col-holder');
|
3438 |
+
|
3439 |
+
// Define inner row | Note : Commented as we now have a new widget of type inner_row
|
3440 |
+
/*if(tag == 'pl_row' && closestEle.length > 0 && closestEle.closest(pagelayer_editable).length > 0){
|
3441 |
+
final_tag = 'pl_inner_row';
|
3442 |
+
}*/
|
3443 |
+
|
3444 |
+
if(pagelayer_empty(tag)){
|
3445 |
+
var err = 'Found an error in the content as the TAG was missing. The console will have more details.';
|
3446 |
+
alert(err);
|
3447 |
+
console.log(err);
|
3448 |
+
console.log(jEle);
|
3449 |
+
}
|
3450 |
+
|
3451 |
+
// Define inner column
|
3452 |
+
if(tag == 'pl_col' && closestEle.length > 0 && closestEle.closest(pagelayer_editable).length > 0){
|
3453 |
+
final_tag = 'pl_inner_col';
|
3454 |
+
}
|
3455 |
+
//console.log(tag);
|
3456 |
+
|
3457 |
+
// Is there an innerHTML ele
|
3458 |
+
var inner = '';
|
3459 |
+
if('innerHTML' in pagelayer_shortcodes[tag]){
|
3460 |
+
inner = pagelayer_shortcodes[tag]['innerHTML'];
|
3461 |
+
}
|
3462 |
+
|
3463 |
+
// Create the tag
|
3464 |
+
var data = {};
|
3465 |
+
|
3466 |
+
// Get the attributes to store
|
3467 |
+
jQuery.each(jEle[0].attributes, function(i, attrib){
|
3468 |
+
var res = attrib.name.match(/^pagelayer-a-(.+)/i);
|
3469 |
+
if(res && res[1] != inner){
|
3470 |
+
//console.log(attrib.name+' '+res[1]);
|
3471 |
+
data[res[1]] = attrib.value;
|
3472 |
+
}
|
3473 |
+
});
|
3474 |
+
|
3475 |
+
data['pagelayer-id'] = id;
|
3476 |
+
data = pagelayer_serializeAttributes(data);
|
3477 |
+
|
3478 |
+
var content = '';
|
3479 |
+
|
3480 |
+
// Any internal function to handle the save ?
|
3481 |
+
var func = window['pagelayer_tag_'+tag];
|
3482 |
+
if(typeof func == 'function'){
|
3483 |
+
|
3484 |
+
content = func(jEle);
|
3485 |
+
|
3486 |
+
// If its a Row or Column or Group then it will have children
|
3487 |
+
}else if(jEle.hasClass('pagelayer-row') || jEle.hasClass('pagelayer-col') || jEle.hasClass('pagelayer-inner_row') || pagelayer_is_group(tag)){
|
3488 |
+
|
3489 |
+
var sel = "[pagelayer-id="+id+"]";
|
3490 |
+
|
3491 |
+
// Any holder which holds children ?
|
3492 |
+
if('holder' in pagelayer_shortcodes[tag]){
|
3493 |
+
sel = sel+' '+pagelayer_shortcodes[tag]['holder'];
|
3494 |
+
}
|
3495 |
+
|
3496 |
+
// Select the top-most element
|
3497 |
+
sel = jQuery(sel).first();
|
3498 |
+
|
3499 |
+
// Any child selector - Majorly for owl carousel
|
3500 |
+
// NOTE : Child selector should be very specific with immediate child selection at all levels
|
3501 |
+
var child_selector = false;
|
3502 |
+
if('child_selector' in pagelayer_shortcodes[tag]){
|
3503 |
+
sel = sel.find(pagelayer_shortcodes[tag]['child_selector']);
|
3504 |
+
}
|
3505 |
+
|
3506 |
+
content = pagelayer_generate_sc(sel);
|
3507 |
+
|
3508 |
+
// Its a normal element so we might need to handle the content
|
3509 |
+
}else{
|
3510 |
+
|
3511 |
+
if(inner.length > 0){
|
3512 |
+
content = pagelayer_get_att(jEle, inner);
|
3513 |
+
if(!content){
|
3514 |
+
content = '';
|
3515 |
+
}
|
3516 |
+
}else{
|
3517 |
+
content = '';//jEle.html();
|
3518 |
+
}
|
3519 |
+
|
3520 |
+
}
|
3521 |
+
|
3522 |
+
if (pagelayer_empty(content)) {
|
3523 |
+
txt += "<!-- ".concat(pagelayer_block_prefix, ":pagelayer/").concat(final_tag, " ").concat(data, " /-->\n");
|
3524 |
+
}else{
|
3525 |
+
txt += "<!-- ".concat(pagelayer_block_prefix, ":pagelayer/").concat(final_tag, " ").concat(data, " -->\n") + content + "\n<!-- /".concat(pagelayer_block_prefix, ":pagelayer/").concat(final_tag, " -->\n");
|
3526 |
+
}
|
3527 |
+
|
3528 |
+
};
|
3529 |
+
|
3530 |
+
// Are you an element for which to generate the codes ?
|
3531 |
+
if(jQuery(selector).hasClass('pagelayer-ele') && selfEle){
|
3532 |
+
|
3533 |
+
generate_sc_single(jQuery(selector));
|
3534 |
+
|
3535 |
+
// The selector is the holder, so loop thru
|
3536 |
+
}else{
|
3537 |
+
|
3538 |
+
jQuery(selector).children(".pagelayer-ele-wrap").each(function(){
|
3539 |
+
|
3540 |
+
var jEle = jQuery(this).children('.pagelayer-ele');
|
3541 |
+
generate_sc_single(jEle);
|
3542 |
+
|
3543 |
+
});
|
3544 |
+
|
3545 |
+
}
|
3546 |
+
|
3547 |
+
return txt;
|
3548 |
+
|
3549 |
+
};
|
3550 |
+
|
3551 |
// Escape charaters in attributes
|
3552 |
var pagelayer_escapeChars = {
|
3553 |
'\\]' : '#93',
|
3769 |
// Indivdual icon
|
3770 |
for(var y in pagelayer_global_widgets){
|
3771 |
|
3772 |
+
var sc = pagelayer_tag( jQuery(pagelayer_global_widgets[y]['$']) );
|
3773 |
+
|
3774 |
|
3775 |
if(!(sc in pagelayer_shortcodes) || 'not_visible' in pagelayer_shortcodes[sc]){
|
3776 |
continue;
|
4088 |
|
4089 |
props_new.attr('pagelayer-a-post_name', post_name);
|
4090 |
props_new.attr('pagelayer-a-post_status', post_status);
|
4091 |
+
}
|
4092 |
+
|
4093 |
+
// Need to pass true to render table
|
4094 |
+
pagelayer_element_setup('.pagelayer-ele', true);
|
4095 |
pagelayer_add_widget();
|
4096 |
+
alert(obj['success']);
|
4097 |
}
|
4098 |
}
|
4099 |
});
|
js/properties.js
CHANGED
@@ -18,7 +18,7 @@ function pagelayer_data(jEle, clean){
|
|
18 |
|
19 |
// Get the data
|
20 |
ret.tag = pagelayer_tag(jEle);
|
21 |
-
ret.id = jEle
|
22 |
ret.$ = jEle;
|
23 |
|
24 |
// Parse the attributes
|
18 |
|
19 |
// Get the data
|
20 |
ret.tag = pagelayer_tag(jEle);
|
21 |
+
ret.id = pagelayer_id(jEle);;
|
22 |
ret.$ = jEle;
|
23 |
|
24 |
// Parse the attributes
|
main/ajax.php
CHANGED
@@ -368,7 +368,7 @@ function pagelayer_do_shortcodes(){
|
|
368 |
// Load shortcodes
|
369 |
pagelayer_load_shortcodes();
|
370 |
|
371 |
-
$data =
|
372 |
|
373 |
// Create the HTML object
|
374 |
$node = pagelayerQuery::parseStr($data);
|
@@ -477,7 +477,7 @@ function pagelayer_get_section_shortcodes(){
|
|
477 |
pagelayer_load_shortcodes();
|
478 |
|
479 |
if(!empty($data['code'])){
|
480 |
-
$data['code'] =
|
481 |
}
|
482 |
|
483 |
pagelayer_json_output($data);
|
@@ -668,7 +668,7 @@ function pagelayer_apply_revision(){
|
|
668 |
pagelayer_load_shortcodes();
|
669 |
|
670 |
$ret['id'] = $revisionID;
|
671 |
-
$ret['content'] =
|
672 |
|
673 |
if (is_wp_error($postID)) {
|
674 |
$ret['error'] = __pl('rev_load_error');
|
@@ -902,7 +902,7 @@ function pagelayer_archive_posts_data(){
|
|
902 |
$sc = '[pl_archive_posts '.$string.'][/pl_archive_posts]';
|
903 |
|
904 |
// TODO : Allowed
|
905 |
-
echo
|
906 |
wp_die();
|
907 |
}
|
908 |
|
@@ -1411,7 +1411,7 @@ function pagelayer_product_categories(){
|
|
1411 |
$shortcode = '[product_categories '. $attributes .']';
|
1412 |
|
1413 |
// do_shortcode the shortcode
|
1414 |
-
echo
|
1415 |
|
1416 |
wp_die();
|
1417 |
}
|
@@ -1493,7 +1493,7 @@ function pagelayer_products_ajax(){
|
|
1493 |
|
1494 |
$shortcode = '['.$type.' '. $attributes .']';
|
1495 |
|
1496 |
-
$content =
|
1497 |
|
1498 |
// If product not found
|
1499 |
if('<div class="woocommerce columns-'.$_POST['atts']['columns'] .' "></div>' == $content){
|
368 |
// Load shortcodes
|
369 |
pagelayer_load_shortcodes();
|
370 |
|
371 |
+
$data = pagelayer_the_content($data);
|
372 |
|
373 |
// Create the HTML object
|
374 |
$node = pagelayerQuery::parseStr($data);
|
477 |
pagelayer_load_shortcodes();
|
478 |
|
479 |
if(!empty($data['code'])){
|
480 |
+
$data['code'] = pagelayer_the_content($data['code']);
|
481 |
}
|
482 |
|
483 |
pagelayer_json_output($data);
|
668 |
pagelayer_load_shortcodes();
|
669 |
|
670 |
$ret['id'] = $revisionID;
|
671 |
+
$ret['content'] = pagelayer_the_content($post->post_content);
|
672 |
|
673 |
if (is_wp_error($postID)) {
|
674 |
$ret['error'] = __pl('rev_load_error');
|
902 |
$sc = '[pl_archive_posts '.$string.'][/pl_archive_posts]';
|
903 |
|
904 |
// TODO : Allowed
|
905 |
+
echo pagelayer_the_content($sc);
|
906 |
wp_die();
|
907 |
}
|
908 |
|
1411 |
$shortcode = '[product_categories '. $attributes .']';
|
1412 |
|
1413 |
// do_shortcode the shortcode
|
1414 |
+
echo pagelayer_the_content($shortcode);
|
1415 |
|
1416 |
wp_die();
|
1417 |
}
|
1493 |
|
1494 |
$shortcode = '['.$type.' '. $attributes .']';
|
1495 |
|
1496 |
+
$content = pagelayer_the_content($shortcode);
|
1497 |
|
1498 |
// If product not found
|
1499 |
if('<div class="woocommerce columns-'.$_POST['atts']['columns'] .' "></div>' == $content){
|
main/freemium.php
DELETED
@@ -1,6157 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
//////////////////////////////////////////////////////////////
|
4 |
-
//===========================================================
|
5 |
-
// freemium.php
|
6 |
-
//===========================================================
|
7 |
-
// PAGELAYER
|
8 |
-
// Inspired by the DESIRE to be the BEST OF ALL
|
9 |
-
// ----------------------------------------------------------
|
10 |
-
// Started by: Pulkit Gupta
|
11 |
-
// Date: 23rd Jan 2017
|
12 |
-
// Time: 23:00 hrs
|
13 |
-
// Site: http://pagelayer.com/wordpress (PAGELAYER)
|
14 |
-
// ----------------------------------------------------------
|
15 |
-
// Please Read the Terms of use at http://pagelayer.com/tos
|
16 |
-
// ----------------------------------------------------------
|
17 |
-
//===========================================================
|
18 |
-
// (c)Pagelayer Team
|
19 |
-
//===========================================================
|
20 |
-
//////////////////////////////////////////////////////////////
|
21 |
-
|
22 |
-
// Are we being accessed directly ?
|
23 |
-
if(!defined('PAGELAYER_VERSION')) {
|
24 |
-
exit('Hacking Attempt !');
|
25 |
-
}
|
26 |
-
|
27 |
-
// Posts options style
|
28 |
-
$pagelayer_posts_options = array(
|
29 |
-
'type' => array(
|
30 |
-
'type' => 'select',
|
31 |
-
'label' => __pl('type'),
|
32 |
-
'default' => 'default',
|
33 |
-
'list' => array(
|
34 |
-
'default' => __pl('default'),
|
35 |
-
),
|
36 |
-
),
|
37 |
-
'columns' => array(
|
38 |
-
'type' => 'select',
|
39 |
-
'label' => __pl('columns'),
|
40 |
-
'default' => '3',
|
41 |
-
'screen' => 1,
|
42 |
-
'css' => ['{{element}} .pagelayer-posts-container' => 'grid-template-columns: repeat({{val}},1fr);'],
|
43 |
-
'list' => array(
|
44 |
-
'1' => '1',
|
45 |
-
'2' => '2',
|
46 |
-
'3' => '3',
|
47 |
-
'4' => '4',
|
48 |
-
'5' => '5',
|
49 |
-
'6' => '6',
|
50 |
-
),
|
51 |
-
),
|
52 |
-
'col_gap' => array(
|
53 |
-
'type' => 'slider',
|
54 |
-
'label' => __pl('col_gap'),
|
55 |
-
'min' => 0,
|
56 |
-
'step' => 1,
|
57 |
-
'max' => 100,
|
58 |
-
'default' => 20,
|
59 |
-
'screen' => 1,
|
60 |
-
'css' => ['{{element}} .pagelayer-posts-container' => 'grid-column-gap: {{val}}px;'],
|
61 |
-
),
|
62 |
-
'row_gap' => array(
|
63 |
-
'type' => 'slider',
|
64 |
-
'label' => __pl('row_gap'),
|
65 |
-
'min' => 0,
|
66 |
-
'step' => 1,
|
67 |
-
'max' => 100,
|
68 |
-
'default' => 40,
|
69 |
-
'screen' => 1,
|
70 |
-
'css' => ['{{element}} .pagelayer-posts-container' => 'grid-row-gap: {{val}}px;'],
|
71 |
-
),
|
72 |
-
'data_padding' => array(
|
73 |
-
'type' => 'padding',
|
74 |
-
'label' => __pl('padding'),
|
75 |
-
'default' => '5,5,5,5',
|
76 |
-
'screen' => 1,
|
77 |
-
'css' => ['{{element}} .pagelayer-wposts-content' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
78 |
-
),
|
79 |
-
'bg_color' => array(
|
80 |
-
'type' => 'color',
|
81 |
-
'label' => __pl('bg_color'),
|
82 |
-
'default' => '#ffffff',
|
83 |
-
'css' => ['{{element}} .pagelayer-wposts-col' => 'background-color:{{val}};'],
|
84 |
-
),
|
85 |
-
'box_shadow' => array(
|
86 |
-
'type' => 'box_shadow',
|
87 |
-
'label' => __pl('box_shadow'),
|
88 |
-
'css' => ['{{element}} .pagelayer-wposts-col' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
89 |
-
),
|
90 |
-
);
|
91 |
-
|
92 |
-
// Posts thumb style
|
93 |
-
$pagelayer_thumb_style = [
|
94 |
-
'show_thumb' => array(
|
95 |
-
'label' => __pl('show_thumb'),
|
96 |
-
'type' => 'checkbox',
|
97 |
-
'default' => 'true',
|
98 |
-
//'addAttr' => ['{{element}} a' => 'target="_blank"'],
|
99 |
-
),
|
100 |
-
'thumb_size' => array(
|
101 |
-
'type' => 'select',
|
102 |
-
'label' => __pl('type'),
|
103 |
-
'default' => 'medium_large',
|
104 |
-
'list' => pagelayer_image_sizes(),
|
105 |
-
'req' => ['show_thumb' => 'true'],
|
106 |
-
),
|
107 |
-
'ratio' => array(
|
108 |
-
'type' => 'slider',
|
109 |
-
'label' => __pl('ratio'),
|
110 |
-
'min' => 0,
|
111 |
-
'step' => 0.1,
|
112 |
-
'max' => 2,
|
113 |
-
'default' => 0.7,
|
114 |
-
'screen' => 1,
|
115 |
-
'css' => ['{{element}} .pagelayer-wposts-thumb' => 'padding: calc(50% * {{val}}) 0;'],
|
116 |
-
'req' => ['show_thumb' => 'true'],
|
117 |
-
),
|
118 |
-
];
|
119 |
-
|
120 |
-
// Posts type style
|
121 |
-
$pagelayer_title_style = [
|
122 |
-
'show_title' => array(
|
123 |
-
'type' => 'checkbox',
|
124 |
-
'label' => __pl('show_title'),
|
125 |
-
'default' => 'true',
|
126 |
-
),
|
127 |
-
'title_color' => array(
|
128 |
-
'type' => 'color',
|
129 |
-
'label' => __pl('color'),
|
130 |
-
'default' => '#0986c0',
|
131 |
-
'css' => ['{{element}} .pagelayer-wposts-title' => 'color:{{val}};'],
|
132 |
-
'req' => ['show_title' => 'true'],
|
133 |
-
),
|
134 |
-
'title_typo' => array(
|
135 |
-
'type' => 'typography',
|
136 |
-
'label' => __pl('typography'),
|
137 |
-
'default' => ',18,,,,,solid,,,,',
|
138 |
-
'screen' => 1,
|
139 |
-
'css' => ['{{element}} .pagelayer-wposts-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
140 |
-
'req' => ['show_title' => 'true'],
|
141 |
-
),
|
142 |
-
'title_spacing' => array(
|
143 |
-
'type' => 'dimension',
|
144 |
-
'label' => __pl('top_bottom_spacing'),
|
145 |
-
'screen' => 1,
|
146 |
-
'css' => ['{{element}} .pagelayer-wposts-title' => 'padding-top:{{val[0]}}px; padding-bottom:{{val[1]}}px;'],
|
147 |
-
'req' => ['show_title' => 'true'],
|
148 |
-
),
|
149 |
-
];
|
150 |
-
|
151 |
-
// Posts meta options
|
152 |
-
$pagelayer_meta_style = [
|
153 |
-
'meta' => array(
|
154 |
-
'type' => 'multiselect',
|
155 |
-
'label' => __pl('meta'),
|
156 |
-
'default' => 'author,date',
|
157 |
-
'list' => array(
|
158 |
-
'date' => __pl('date'),
|
159 |
-
'author' => __pl('author'),
|
160 |
-
'comments' => __pl('comments'),
|
161 |
-
'tags' => __pl('tags'),
|
162 |
-
'category' => __pl('category'),
|
163 |
-
),
|
164 |
-
),
|
165 |
-
'meta_sep' => array(
|
166 |
-
'type' => 'text',
|
167 |
-
'label' => __pl('separator'),
|
168 |
-
'default' => ' | ',
|
169 |
-
),
|
170 |
-
'meta_color' => array(
|
171 |
-
'type' => 'color',
|
172 |
-
'label' => __pl('color'),
|
173 |
-
'css' => ['{{element}} .pagelayer-wposts-meta *' => 'color:{{val}};'],
|
174 |
-
),
|
175 |
-
'meta_bg' => array(
|
176 |
-
'type' => 'color',
|
177 |
-
'label' => __pl('bg_color'),
|
178 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => 'background-color:{{val}};'],
|
179 |
-
),
|
180 |
-
'meta_align' => array(
|
181 |
-
'type' => 'radio',
|
182 |
-
'label' => __pl('alignment'),
|
183 |
-
'screen' => 1,
|
184 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => 'text-align:{{val}};'],
|
185 |
-
'list' => array(
|
186 |
-
'left' => __pl('left'),
|
187 |
-
'center' => __pl('center'),
|
188 |
-
'right' => __pl('right'),
|
189 |
-
),
|
190 |
-
),
|
191 |
-
'meta_spacing' => array(
|
192 |
-
'type' => 'padding',
|
193 |
-
'label' => __pl('spacing'),
|
194 |
-
'screen' => 1,
|
195 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
196 |
-
),
|
197 |
-
'meta_bor_rad' => array(
|
198 |
-
'type' => 'padding',
|
199 |
-
'label' => __pl('border_radius'),
|
200 |
-
'units' => ['px', '%'],
|
201 |
-
'screen' => 1,
|
202 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => 'border-top-left-radius: {{val[0]}}; border-top-right-radius: {{val[0]}}; border-bottom-right-radius: {{val[0]}}; border-bottom-left-radius: {{val[0]}};'],
|
203 |
-
),
|
204 |
-
'meta_typo' => array(
|
205 |
-
'type' => 'typography',
|
206 |
-
'label' => __pl('typography'),
|
207 |
-
'screen' => 1,
|
208 |
-
'css' => [
|
209 |
-
'{{element}} .pagelayer-wposts-meta *' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
210 |
-
'{{element}} .pagelayer-wposts-sep' => 'font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important;'
|
211 |
-
],
|
212 |
-
),
|
213 |
-
'meta_tag_pos' => array(
|
214 |
-
'type' => 'select',
|
215 |
-
'label' => __pl('position'),
|
216 |
-
'screen' => 1,
|
217 |
-
'css' => [
|
218 |
-
'{{element}} .pagelayer-wposts-post' => 'position: relative;',
|
219 |
-
'{{element}} .pagelayer-wposts-meta' => 'position: {{val}};'
|
220 |
-
],
|
221 |
-
'list' => array(
|
222 |
-
'' => __pl('default'),
|
223 |
-
'relative' => __pl('relative'),
|
224 |
-
'absolute' => __pl('absolute')
|
225 |
-
),
|
226 |
-
),
|
227 |
-
'meta_width' => [
|
228 |
-
'type' => 'slider',
|
229 |
-
'label' => __pl('width'),
|
230 |
-
'screen' => 1,
|
231 |
-
'units' => ['px','%','em'],
|
232 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => 'width:{{val}};'],
|
233 |
-
'min' => 0,
|
234 |
-
'max' => 1000,
|
235 |
-
'step' => 1,
|
236 |
-
'req' => ['!meta_tag_pos' => '']
|
237 |
-
],
|
238 |
-
'meta_vposition' => [
|
239 |
-
'type' => 'select',
|
240 |
-
'label' => __pl('verticle_pos'),
|
241 |
-
'screen' => 1,
|
242 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => '{{val}}:0;'],
|
243 |
-
'list' => [
|
244 |
-
'' => __pl('default'),
|
245 |
-
'top' => __pl('top'),
|
246 |
-
'bottom' => __pl('bottom')
|
247 |
-
],
|
248 |
-
'req' => ['!meta_tag_pos' => '']
|
249 |
-
],
|
250 |
-
'meta_vposition_offset' => [
|
251 |
-
'type' => 'slider',
|
252 |
-
'label' => __pl('ver_offset'),
|
253 |
-
'screen' => 1,
|
254 |
-
'units' => ['px','%','em'],
|
255 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => '{{meta_vposition}}:{{val}};'],
|
256 |
-
'min' => -1000,
|
257 |
-
'max' => 1000,
|
258 |
-
'step' => 1,
|
259 |
-
'req' => [
|
260 |
-
'!meta_vposition' => '',
|
261 |
-
'!meta_tag_pos' => ''
|
262 |
-
]
|
263 |
-
],
|
264 |
-
'meta_hposition' => [
|
265 |
-
'type' => 'select',
|
266 |
-
'label' => __pl('horizontal_pos'),
|
267 |
-
'screen' => 1,
|
268 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => '{{val}}:0;'],
|
269 |
-
'list' => [
|
270 |
-
'' => __pl('default'),
|
271 |
-
'left' => __pl('left'),
|
272 |
-
'right' => __pl('right')
|
273 |
-
],
|
274 |
-
'req' => ['!meta_tag_pos' => '']
|
275 |
-
],
|
276 |
-
'meta_hposition_offset' => [
|
277 |
-
'type' => 'slider',
|
278 |
-
'label' => __pl('hor_offset'),
|
279 |
-
'screen' => 1,
|
280 |
-
'units' => ['px','%','em'],
|
281 |
-
'css' => ['{{element}} .pagelayer-wposts-meta' => '{{meta_hposition}}:{{val}};'],
|
282 |
-
'min' => -1000,
|
283 |
-
'max' => 1000,
|
284 |
-
'step' => 1,
|
285 |
-
'req' => [
|
286 |
-
'!meta_hposition' => '',
|
287 |
-
'!meta_tag_pos' => ''
|
288 |
-
]
|
289 |
-
]
|
290 |
-
];
|
291 |
-
|
292 |
-
// Posts content style
|
293 |
-
$pagelayer_content_style = [
|
294 |
-
'show_content' => array(
|
295 |
-
'type' => 'select',
|
296 |
-
'label' => __pl('show_content'),
|
297 |
-
'default' => 'excerpt',
|
298 |
-
'list' => array(
|
299 |
-
'' => __pl('none'),
|
300 |
-
'excerpt' => __pl('excerpt'),
|
301 |
-
'full' => __pl('full'),
|
302 |
-
),
|
303 |
-
),
|
304 |
-
'exc_length' => array(
|
305 |
-
'type' => 'spinner',
|
306 |
-
'label' => __pl('exc_length'),
|
307 |
-
'min' => 0,
|
308 |
-
'step' => 1,
|
309 |
-
'max' => 500,
|
310 |
-
'default' => 10,
|
311 |
-
'req' => ['show_content' => 'excerpt']
|
312 |
-
),
|
313 |
-
'content_color' => array(
|
314 |
-
'type' => 'color',
|
315 |
-
'label' => __pl('color'),
|
316 |
-
'default' => '#121212',
|
317 |
-
'css' => ['{{element}} .pagelayer-wposts-content' => 'color:{{val}};'],
|
318 |
-
),
|
319 |
-
'content_padding' => array(
|
320 |
-
'type' => 'padding',
|
321 |
-
'label' => __pl('padding'),
|
322 |
-
'css' => ['{{element}} .pagelayer-wposts-content .pagelayer-wposts-excerpt' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
323 |
-
),
|
324 |
-
'content_align' => array(
|
325 |
-
'type' => 'radio',
|
326 |
-
'label' => __pl('alignment'),
|
327 |
-
'default' => 'left',
|
328 |
-
'screen' => 1,
|
329 |
-
'css' => ['{{element}} .pagelayer-wposts-content' => 'text-align:{{val}};'],
|
330 |
-
'list' => array(
|
331 |
-
'left' => __pl('left'),
|
332 |
-
'center' => __pl('center'),
|
333 |
-
'right' => __pl('right'),
|
334 |
-
),
|
335 |
-
),
|
336 |
-
];
|
337 |
-
|
338 |
-
// Post More style
|
339 |
-
$pagelayer_more_style = [
|
340 |
-
'show_more' => array(
|
341 |
-
'type' => 'checkbox',
|
342 |
-
'label' => __pl('show'),
|
343 |
-
),
|
344 |
-
'more' => array(
|
345 |
-
'type' => 'text',
|
346 |
-
'label' => __pl('text'),
|
347 |
-
'default' => 'read more »',
|
348 |
-
'req' => ['show_more' => 'true'],
|
349 |
-
),
|
350 |
-
'more_typo' => array(
|
351 |
-
'type' => 'typography',
|
352 |
-
'label' => __pl('typography'),
|
353 |
-
'screen' => 1,
|
354 |
-
'css' => ['{{element}} .pagelayer-wposts-more' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
355 |
-
'req' => ['show_more' => 'true'],
|
356 |
-
),
|
357 |
-
'full_width' => array(
|
358 |
-
'type' => 'checkbox',
|
359 |
-
'label' => __pl('stretch'),
|
360 |
-
'screen' => 1,
|
361 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'width: 100%; text-align: center;'],
|
362 |
-
'req' => ['show_more' => 'true'],
|
363 |
-
),
|
364 |
-
'align' => array(
|
365 |
-
'type' => 'radio',
|
366 |
-
'label' => __pl('obj_align_label'),
|
367 |
-
'screen' => 1,
|
368 |
-
'css' => ['{{element}} .pagelayer-wposts-mdiv' => 'text-align: {{val}}'],
|
369 |
-
'list' => array(
|
370 |
-
'left' => __pl('left'),
|
371 |
-
'center' => __pl('center'),
|
372 |
-
'right' => __pl('right')
|
373 |
-
),
|
374 |
-
'req' => array(
|
375 |
-
'full_width' => '',
|
376 |
-
'show_more' => 'true',
|
377 |
-
)
|
378 |
-
),
|
379 |
-
'icon' => array(
|
380 |
-
'type' => 'icon',
|
381 |
-
'label' => __pl('service_box_font_icon_label'),
|
382 |
-
'req' => ['show_more' => 'true'],
|
383 |
-
),
|
384 |
-
'icon_position' => array(
|
385 |
-
'type' => 'radio',
|
386 |
-
'label' => __pl('alignment'),
|
387 |
-
'list' => array(
|
388 |
-
'pagelayer-btn-icon-left' => __pl('left'),
|
389 |
-
'pagelayer-btn-icon-right' => __pl('right')
|
390 |
-
),
|
391 |
-
'req' => ['show_more' => 'true'],
|
392 |
-
),
|
393 |
-
'icon_spacing' => array(
|
394 |
-
'type' => 'slider',
|
395 |
-
'label' => __pl('icon_spacing'),
|
396 |
-
'min' => 1,
|
397 |
-
'step' => 1,
|
398 |
-
'max' => 100,
|
399 |
-
'screen' => 1,
|
400 |
-
'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
|
401 |
-
'req' => array(
|
402 |
-
'!icon' => 'none',
|
403 |
-
'show_more' => 'true',
|
404 |
-
),
|
405 |
-
),
|
406 |
-
'btn_type' => array(
|
407 |
-
'type' => 'select',
|
408 |
-
'label' => __pl('button_type'),
|
409 |
-
//'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'],
|
410 |
-
'list' => array(
|
411 |
-
'pagelayer-btn-link' => __pl('btn_type_link'),
|
412 |
-
'pagelayer-btn-default' => __pl('btn_type_default'),
|
413 |
-
'pagelayer-btn-primary' => __pl('btn_type_primary'),
|
414 |
-
'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
|
415 |
-
'pagelayer-btn-success' => __pl('btn_type_success'),
|
416 |
-
'pagelayer-btn-info' => __pl('btn_type_info'),
|
417 |
-
'pagelayer-btn-warning' => __pl('btn_type_warning'),
|
418 |
-
'pagelayer-btn-danger' => __pl('btn_type_danger'),
|
419 |
-
'pagelayer-btn-dark' => __pl('btn_type_dark'),
|
420 |
-
'pagelayer-btn-light' => __pl('btn_type_light'),
|
421 |
-
'pagelayer-btn-custom' => __pl('btn_type_custom')
|
422 |
-
),
|
423 |
-
'req' => ['show_more' => 'true'],
|
424 |
-
),
|
425 |
-
'size' => array(
|
426 |
-
'type' => 'select',
|
427 |
-
'label' => __pl('button_size_label'),
|
428 |
-
'list' => array(
|
429 |
-
'pagelayer-btn-mini' => __pl('mini'),
|
430 |
-
'pagelayer-btn-small' => __pl('small'),
|
431 |
-
'pagelayer-btn-large' => __pl('large'),
|
432 |
-
'pagelayer-btn-extra-large' => __pl('extra_large'),
|
433 |
-
'pagelayer-btn-double-large' => __pl('double_large'),
|
434 |
-
'pagelayer-btn-custom' => __pl('custom'),
|
435 |
-
),
|
436 |
-
'req' => ['show_more' => 'true'],
|
437 |
-
),
|
438 |
-
'btn_custom_size' => array(
|
439 |
-
'type' => 'dimension',
|
440 |
-
'label' => __pl('btn_custom_size'),
|
441 |
-
'screen' => 1,
|
442 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val[0]}}px {{val[1]}}px;'],
|
443 |
-
'req' => array(
|
444 |
-
'size' => 'pagelayer-btn-custom',
|
445 |
-
'show_more' => 'true',
|
446 |
-
),
|
447 |
-
),
|
448 |
-
'btn_hover' => array(
|
449 |
-
'type' => 'radio',
|
450 |
-
'label' => __pl('state'),
|
451 |
-
'default' => '',
|
452 |
-
'list' => array(
|
453 |
-
'' => __pl('normal'),
|
454 |
-
'hover' => __pl('hover'),
|
455 |
-
),
|
456 |
-
'req' => array(
|
457 |
-
'btn_type' => 'pagelayer-btn-custom',
|
458 |
-
'show_more' => 'true',
|
459 |
-
),
|
460 |
-
),
|
461 |
-
'btn_bg_color' => array(
|
462 |
-
'type' => 'color',
|
463 |
-
'label' => __pl('btn_bg_color_label'),
|
464 |
-
'screen' => 1,
|
465 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'],
|
466 |
-
'req' => array(
|
467 |
-
'btn_type' => 'pagelayer-btn-custom',
|
468 |
-
'show_more' => 'true',
|
469 |
-
),
|
470 |
-
'show' => array(
|
471 |
-
'btn_hover' => ''
|
472 |
-
),
|
473 |
-
),
|
474 |
-
'more_color' => array(
|
475 |
-
'type' => 'color',
|
476 |
-
'label' => __pl('color'),
|
477 |
-
'screen' => 1,
|
478 |
-
'css' => ['{{element}} .pagelayer-wposts-more' => 'color:{{val}};'],
|
479 |
-
'req' => array(
|
480 |
-
'btn_type' => 'pagelayer-btn-custom',
|
481 |
-
'show_more' => 'true',
|
482 |
-
),
|
483 |
-
'show' => array(
|
484 |
-
'btn_hover' => ''
|
485 |
-
),
|
486 |
-
),
|
487 |
-
'btn_hover_delay' => array(
|
488 |
-
'type' => 'spinner',
|
489 |
-
'label' => __pl('btn_hover_delay_label'),
|
490 |
-
'desc' => __pl('btn_hover_delay_desc'),
|
491 |
-
'min' => 0,
|
492 |
-
'step' => 100,
|
493 |
-
'max' => 5000,
|
494 |
-
'screen' => 1,
|
495 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
496 |
-
'show' => array(
|
497 |
-
'btn_hover' => 'hover'
|
498 |
-
),
|
499 |
-
'req' => ['show_more' => 'true'],
|
500 |
-
),
|
501 |
-
'btn_bg_color_hover' => array(
|
502 |
-
'type' => 'color',
|
503 |
-
'label' => __pl('btn_bg_color_hover_label'),
|
504 |
-
'screen' => 1,
|
505 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'],
|
506 |
-
'req' => array(
|
507 |
-
'btn_type' => 'pagelayer-btn-custom',
|
508 |
-
'show_more' => 'true',
|
509 |
-
),
|
510 |
-
'show' => array(
|
511 |
-
'btn_hover' => 'hover'
|
512 |
-
),
|
513 |
-
),
|
514 |
-
'more_color_hover' => array(
|
515 |
-
'type' => 'color',
|
516 |
-
'label' => __pl('color'),
|
517 |
-
'screen' => 1,
|
518 |
-
'css' => ['{{element}} .pagelayer-wposts-more:hover' => 'color:{{val}};'],
|
519 |
-
'req' => array(
|
520 |
-
'btn_type' => 'pagelayer-btn-custom',
|
521 |
-
'show_more' => 'true',
|
522 |
-
),
|
523 |
-
'show' => array(
|
524 |
-
'btn_hover' => 'hover'
|
525 |
-
),
|
526 |
-
),
|
527 |
-
];
|
528 |
-
|
529 |
-
// Post More style
|
530 |
-
$pagelayer_btn_border_style = [
|
531 |
-
'btn_bor_hover' => array(
|
532 |
-
'type' => 'radio',
|
533 |
-
'label' => __pl('state'),
|
534 |
-
'default' => '',
|
535 |
-
//'no_val' => 1,// Dont set any value to element
|
536 |
-
'list' => array(
|
537 |
-
'' => __pl('normal'),
|
538 |
-
'hover' => __pl('hover'),
|
539 |
-
)
|
540 |
-
),
|
541 |
-
'btn_border_type' => array(
|
542 |
-
'type' => 'select',
|
543 |
-
'label' => __pl('border_type'),
|
544 |
-
'screen' => 1,
|
545 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'],
|
546 |
-
'list' => [
|
547 |
-
'' => __pl('none'),
|
548 |
-
'solid' => __pl('solid'),
|
549 |
-
'double' => __pl('double'),
|
550 |
-
'dotted' => __pl('dotted'),
|
551 |
-
'dashed' => __pl('dashed'),
|
552 |
-
'groove' => __pl('groove'),
|
553 |
-
],
|
554 |
-
'show' => array(
|
555 |
-
'btn_bor_hover' => ''
|
556 |
-
)
|
557 |
-
),
|
558 |
-
'btn_border_color' => array(
|
559 |
-
'type' => 'color',
|
560 |
-
'label' => __pl('border_color_label'),
|
561 |
-
'screen' => 1,
|
562 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'],
|
563 |
-
'req' => array(
|
564 |
-
'!btn_border_type' => ''
|
565 |
-
),
|
566 |
-
'show' => array(
|
567 |
-
'btn_bor_hover' => ''
|
568 |
-
),
|
569 |
-
),
|
570 |
-
'btn_border_width' => array(
|
571 |
-
'type' => 'padding',
|
572 |
-
'label' => __pl('border_width'),
|
573 |
-
'screen' => 1,
|
574 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
575 |
-
'req' => [
|
576 |
-
'!btn_border_type' => ''
|
577 |
-
],
|
578 |
-
'show' => array(
|
579 |
-
'btn_bor_hover' => ''
|
580 |
-
),
|
581 |
-
),
|
582 |
-
'btn_border_radius' => array(
|
583 |
-
'type' => 'padding',
|
584 |
-
'label' => __pl('border_radius'),
|
585 |
-
'screen' => 1,
|
586 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
587 |
-
'req' => array(
|
588 |
-
'!btn_border_type' => ''
|
589 |
-
),
|
590 |
-
'show' => array(
|
591 |
-
'btn_bor_hover' => ''
|
592 |
-
),
|
593 |
-
),
|
594 |
-
'btn_border_type_hover' => array(
|
595 |
-
'type' => 'select',
|
596 |
-
'label' => __pl('border_type'),
|
597 |
-
'screen' => 1,
|
598 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'],
|
599 |
-
'list' => [
|
600 |
-
'' => __pl('none'),
|
601 |
-
'solid' => __pl('solid'),
|
602 |
-
'double' => __pl('double'),
|
603 |
-
'dotted' => __pl('dotted'),
|
604 |
-
'dashed' => __pl('dashed'),
|
605 |
-
'groove' => __pl('groove'),
|
606 |
-
],
|
607 |
-
'show' => array(
|
608 |
-
'btn_bor_hover' => 'hover'
|
609 |
-
)
|
610 |
-
),
|
611 |
-
'btn_border_color_hover' => array(
|
612 |
-
'type' => 'color',
|
613 |
-
'label' => __pl('border_color_hover_label'),
|
614 |
-
'screen' => 1,
|
615 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'],
|
616 |
-
'req' => array(
|
617 |
-
'!btn_border_type_hover' => ''
|
618 |
-
),
|
619 |
-
'show' => array(
|
620 |
-
'btn_bor_hover' => 'hover'
|
621 |
-
),
|
622 |
-
),
|
623 |
-
'btn_border_width_hover' => array(
|
624 |
-
'type' => 'padding',
|
625 |
-
'label' => __pl('border_width_hover'),
|
626 |
-
'screen' => 1,
|
627 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
628 |
-
'req' => [
|
629 |
-
'!btn_border_type_hover' => ''
|
630 |
-
],
|
631 |
-
'show' => array(
|
632 |
-
'btn_bor_hover' => 'hover'
|
633 |
-
),
|
634 |
-
),
|
635 |
-
'btn_border_radius_hover' => array(
|
636 |
-
'type' => 'padding',
|
637 |
-
'label' => __pl('border_radius_hover'),
|
638 |
-
'screen' => 1,
|
639 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
640 |
-
'req' => array(
|
641 |
-
'!btn_border_type_hover' => ''
|
642 |
-
),
|
643 |
-
'show' => array(
|
644 |
-
'btn_bor_hover' => 'hover'
|
645 |
-
),
|
646 |
-
),
|
647 |
-
];
|
648 |
-
|
649 |
-
// Archives Post title
|
650 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_archive_title', array(
|
651 |
-
'name' => __pl('archive_title'),
|
652 |
-
'group' => 'archive',
|
653 |
-
'html' => '<div class="pagelayer-archive-title">'. pagelayer_get_the_title() .'</div>',
|
654 |
-
'params' => array(
|
655 |
-
'align' => array(
|
656 |
-
'type' => 'radio',
|
657 |
-
'label' => __pl('alignment'),
|
658 |
-
'np' => 1,
|
659 |
-
'list' => [
|
660 |
-
'left' => __pl('left'),
|
661 |
-
'center' => __pl('center'),
|
662 |
-
'right' => __pl('right'),
|
663 |
-
],
|
664 |
-
'css' => ['{{element}} .pagelayer-archive-title' => 'text-align: {{val}}'],
|
665 |
-
),
|
666 |
-
'color' => array(
|
667 |
-
'type' => 'color',
|
668 |
-
'label' => __pl('color'),
|
669 |
-
'css' => ['{{element}} .pagelayer-archive-title' => 'color:{{val}}'],
|
670 |
-
),
|
671 |
-
'typo' => array(
|
672 |
-
'type' => 'typography',
|
673 |
-
'label' => __pl('typography'),
|
674 |
-
'css' => ['{{element}} .pagelayer-archive-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
675 |
-
),
|
676 |
-
)
|
677 |
-
)
|
678 |
-
);
|
679 |
-
|
680 |
-
// Archive Posts shows the posts as per the QUERY of the current page
|
681 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_archive_posts', array(
|
682 |
-
'name' => __pl('archive_posts'),
|
683 |
-
'group' => 'archive',
|
684 |
-
'html' => '{{pagelayer_pagination_top}}
|
685 |
-
<div class="pagelayer-posts-container">{{pagelayer_archive_posts}}</div>
|
686 |
-
{{pagelayer_pagination_bottom}}',
|
687 |
-
'params' => $pagelayer_posts_options,
|
688 |
-
'thumb_style' => $pagelayer_thumb_style,
|
689 |
-
'title_style' => $pagelayer_title_style,
|
690 |
-
'meta_options' => $pagelayer_meta_style,
|
691 |
-
'content_style' => $pagelayer_content_style,
|
692 |
-
'more_style' => $pagelayer_more_style,
|
693 |
-
'paginate_links' => array(
|
694 |
-
'pagination' => array(
|
695 |
-
'type' => 'select',
|
696 |
-
'label' => __pl('pagination'),
|
697 |
-
'default' => 'number_prev_next',
|
698 |
-
'list' => array(
|
699 |
-
'' => __pl('none'),
|
700 |
-
'number' => __pl('number'),
|
701 |
-
'number_prev_next' => __pl('number_prev_next'),
|
702 |
-
),
|
703 |
-
),
|
704 |
-
'pagination_on' => array(
|
705 |
-
'type' => 'select',
|
706 |
-
'label' => __pl('pagination_on'),
|
707 |
-
'list' => array(
|
708 |
-
'' => __pl('bottom'),
|
709 |
-
'top' => __pl('top'),
|
710 |
-
),
|
711 |
-
'req' => ['!pagination' => '']
|
712 |
-
),
|
713 |
-
'pagi_prev_text' => array(
|
714 |
-
'type' => 'text',
|
715 |
-
'label' => __pl('prev_text'),
|
716 |
-
'default' => 'Previous',
|
717 |
-
'req' => ['!pagination' => ['', 'number']]
|
718 |
-
),
|
719 |
-
'pagi_next_text' => array(
|
720 |
-
'type' => 'text',
|
721 |
-
'label' => __pl('next_text'),
|
722 |
-
'default' => 'Next',
|
723 |
-
'req' => ['!pagination' => ['', 'number']]
|
724 |
-
),
|
725 |
-
'pagi_end_size' => array(
|
726 |
-
'type' => 'spinner',
|
727 |
-
'label' => __pl('pagi_end_size'),
|
728 |
-
'default' => 1,
|
729 |
-
'req' => ['!pagination' => '']
|
730 |
-
),
|
731 |
-
'pagi_mid_size' => array(
|
732 |
-
'type' => 'spinner',
|
733 |
-
'label' => __pl('pagi_mid_size'),
|
734 |
-
'default' => 2,
|
735 |
-
'req' => ['!pagination' => '']
|
736 |
-
),
|
737 |
-
'before_page_number' => array(
|
738 |
-
'type' => 'text',
|
739 |
-
'label' => __pl('before_page_number'),
|
740 |
-
'req' => ['!pagination' => '']
|
741 |
-
),
|
742 |
-
'after_page_number' => array(
|
743 |
-
'type' => 'text',
|
744 |
-
'label' => __pl('after_page_number'),
|
745 |
-
'req' => ['!pagination' => '']
|
746 |
-
),
|
747 |
-
),
|
748 |
-
'paginate_links_style' => array(
|
749 |
-
'pagi_typo' => array(
|
750 |
-
'type' => 'typography',
|
751 |
-
'label' => __pl('typography'),
|
752 |
-
'screen' => 1,
|
753 |
-
'css' => [
|
754 |
-
'{{element}} .pagelayer-pagination' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
755 |
-
],
|
756 |
-
'req' => ['!pagination' => '']
|
757 |
-
),
|
758 |
-
'pagi_align' => array(
|
759 |
-
'type' => 'radio',
|
760 |
-
'label' => __pl('alignment'),
|
761 |
-
'list' => array(
|
762 |
-
'left' => __pl('left'),
|
763 |
-
'center' => __pl('center'),
|
764 |
-
'right' => __pl('right'),
|
765 |
-
),
|
766 |
-
'css' => ['{{element}} .pagelayer-pagination' => 'text-align:{{val}}'],
|
767 |
-
'req' => ['!pagination' => '']
|
768 |
-
),
|
769 |
-
'pagi_colors' => array(
|
770 |
-
'type' => 'radio',
|
771 |
-
'label' => __pl('colors'),
|
772 |
-
'list' => array(
|
773 |
-
'normal' => __pl('normal'),
|
774 |
-
'hover' => __pl('hover'),
|
775 |
-
'active' => __pl('active'),
|
776 |
-
),
|
777 |
-
'req' => ['!pagination' => '']
|
778 |
-
),
|
779 |
-
'pagi_color' => array(
|
780 |
-
'type' => 'color',
|
781 |
-
'label' => __pl('color'),
|
782 |
-
'css' => ['{{element}} .pagelayer-pagination a.page-numbers' => 'color:{{val}}'],
|
783 |
-
'show' => [ 'pagi_colors' => 'normal'],
|
784 |
-
'req' => ['!pagination' => '']
|
785 |
-
),
|
786 |
-
'pagi_hover_color' => array(
|
787 |
-
'type' => 'color',
|
788 |
-
'label' => __pl('current_color'),
|
789 |
-
'css' => ['{{element}} .pagelayer-pagination a.page-numbers:hover' => 'color:{{val}}'],
|
790 |
-
'show' => [ 'pagi_colors' => 'hover'],
|
791 |
-
'req' => ['!pagination' => '']
|
792 |
-
),
|
793 |
-
'pagi_current_color' => array(
|
794 |
-
'type' => 'color',
|
795 |
-
'label' => __pl('current_color'),
|
796 |
-
'css' => ['{{element}} .pagelayer-pagination .current' => 'color:{{val}}'],
|
797 |
-
'show' => [ 'pagi_colors' => 'active']
|
798 |
-
),
|
799 |
-
'pagi_space_between' => array(
|
800 |
-
'type' => 'slider',
|
801 |
-
'label' => __pl('space_between'),
|
802 |
-
'css' => ['{{element}} .pagelayer-pagination .page-numbers:not(:last-child)' => 'margin-right:{{val}}px'],
|
803 |
-
'req' => ['!pagination' => '']
|
804 |
-
),
|
805 |
-
'pagi_padding' => array(
|
806 |
-
'type' => 'padding',
|
807 |
-
'label' => __pl('padding'),
|
808 |
-
'css' => ['{{element}} .pagelayer-pagination' => 'padding:{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
809 |
-
'req' => ['!pagination' => '']
|
810 |
-
),
|
811 |
-
),
|
812 |
-
'styles' => array(
|
813 |
-
'thumb_style' => __pl('thumb_style'),
|
814 |
-
'title_style' => __pl('title_style'),
|
815 |
-
'meta_options' => __pl('meta_options'),
|
816 |
-
'content_style' => __pl('content_style'),
|
817 |
-
'more_style' => __pl('more_style'),
|
818 |
-
'paginate_links' => __pl('paginate_links'),
|
819 |
-
'paginate_links_style' => __pl('paginate_links_style'),
|
820 |
-
),
|
821 |
-
)
|
822 |
-
);
|
823 |
-
|
824 |
-
// Site Title
|
825 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_wp_title', array(
|
826 |
-
'name' => __pl('Site Title'),
|
827 |
-
'group' => 'wordpress',
|
828 |
-
'html' => '<div class="pagelayer-wp-title-content">
|
829 |
-
<div class="pagelayer-wp-title-section">
|
830 |
-
<a href="'.get_site_url().'" class="pagelayer-wp-title-link pagelayer-ele-link">
|
831 |
-
<img if={{site_logo}} class="pagelayer-img pagelayer-wp-title-img" src="{{func_image}}"/>
|
832 |
-
<div class="pagelayer-wp-title-heading">'.get_bloginfo( 'name' ).'</div>
|
833 |
-
<div if="{{site_desc}}" class="pagelayer-wp-title-desc">'.get_bloginfo( 'description' ).'</div>
|
834 |
-
</a>
|
835 |
-
</div>
|
836 |
-
<div>',
|
837 |
-
'params' => array(
|
838 |
-
'site_title_style' => array(
|
839 |
-
'type' => 'typography',
|
840 |
-
'label' => __pl('typography'),
|
841 |
-
'screen' => 1,
|
842 |
-
'css' => ['{{element}} .pagelayer-wp-title-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
843 |
-
),
|
844 |
-
'site_title_state' => array(
|
845 |
-
'type' => 'radio',
|
846 |
-
'label' => __pl('state'),
|
847 |
-
'default' => 'normal',
|
848 |
-
'list' => array(
|
849 |
-
'normal' => __pl('normal'),
|
850 |
-
'hover' => __pl('hover'),
|
851 |
-
),
|
852 |
-
),
|
853 |
-
'title_color' => array(
|
854 |
-
'type' => 'color',
|
855 |
-
'label' => __pl('text_color'),
|
856 |
-
'css' => ['{{element}} .pagelayer-wp-title-heading' => 'color:{{val}};'],
|
857 |
-
'show' => ['!site_title_state' => 'hover'],
|
858 |
-
),
|
859 |
-
'title_color_hover' => array(
|
860 |
-
'type' => 'color',
|
861 |
-
'label' => __pl('text_color'),
|
862 |
-
'css' => ['{{element}} .pagelayer-wp-title-heading:hover' => 'color:{{val}};'],
|
863 |
-
'show' => ['site_title_state' => 'hover'],
|
864 |
-
),
|
865 |
-
'title_hover_delay' => array(
|
866 |
-
'type' => 'spinner',
|
867 |
-
'label' => __pl('service_icon_hover_delay'),
|
868 |
-
'min' => 0,
|
869 |
-
'step' => 100,
|
870 |
-
'max' => 5000,
|
871 |
-
'css' => ['{{element}} .pagelayer-wp-title-heading' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
872 |
-
'show' => ['site_title_state' => 'hover'],
|
873 |
-
),
|
874 |
-
'text-align' => array(
|
875 |
-
'type' => 'radio',
|
876 |
-
'label' => __pl('alignment'),
|
877 |
-
'default' => 'center',
|
878 |
-
'screen' => 1,
|
879 |
-
'list' => array(
|
880 |
-
'left' => __pl('left'),
|
881 |
-
'center' => __pl('center'),
|
882 |
-
'right' => __pl('right')
|
883 |
-
),
|
884 |
-
'css' => ['{{element}} .pagelayer-wp-title-heading' => 'text-align:{{val}};'],
|
885 |
-
),
|
886 |
-
'title_padding' => array(
|
887 |
-
'type' => 'padding',
|
888 |
-
'label' => __pl('padding'),
|
889 |
-
'screen' => 1,
|
890 |
-
'css' => ['{{element}} .pagelayer-wp-title-heading' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
891 |
-
),
|
892 |
-
),
|
893 |
-
'site_description' => array(
|
894 |
-
'site_desc' => array(
|
895 |
-
'type' => 'checkbox',
|
896 |
-
'label' => __pl('site_desc'),
|
897 |
-
),
|
898 |
-
'site_desc_style' => array(
|
899 |
-
'type' => 'typography',
|
900 |
-
'label' => __pl('typography'),
|
901 |
-
'screen' => 1,
|
902 |
-
'css' => ['{{element}} .pagelayer-wp-title-desc' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
903 |
-
'req' => ['site_desc' => 'true']
|
904 |
-
),
|
905 |
-
'site_desc_state' => array(
|
906 |
-
'type' => 'radio',
|
907 |
-
'label' => __pl('state'),
|
908 |
-
'default' => 'normal',
|
909 |
-
'list' => array(
|
910 |
-
'normal' => __pl('normal'),
|
911 |
-
'hover' => __pl('hover'),
|
912 |
-
),
|
913 |
-
'req' => ['site_desc' => 'true']
|
914 |
-
),
|
915 |
-
'desc_color' => array(
|
916 |
-
'type' => 'color',
|
917 |
-
'label' => __pl('text_color'),
|
918 |
-
'css' => ['{{element}} .pagelayer-wp-title-desc' => 'color:{{val}};'],
|
919 |
-
'show' => ['site_desc_state' => 'normal'],
|
920 |
-
'req' => ['site_desc' => 'true']
|
921 |
-
),
|
922 |
-
'desc_color_hover' => array(
|
923 |
-
'type' => 'color',
|
924 |
-
'label' => __pl('text_color'),
|
925 |
-
'css' => ['{{element}} .pagelayer-wp-title-desc:hover' => 'color:{{val}};'],
|
926 |
-
'show' => ['site_desc_state' => 'hover'],
|
927 |
-
'req' => ['site_desc' => 'true']
|
928 |
-
),
|
929 |
-
'desc_hover_delay' => array(
|
930 |
-
'type' => 'spinner',
|
931 |
-
'label' => __pl('service_icon_hover_delay'),
|
932 |
-
'min' => 0,
|
933 |
-
'step' => 100,
|
934 |
-
'max' => 5000,
|
935 |
-
'css' => ['{{element}} .pagelayer-wp-title-desc' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
936 |
-
'show' => ['site_desc_state' => 'hover'],
|
937 |
-
'req' => ['site_desc' => 'true']
|
938 |
-
),
|
939 |
-
'desc_text_align' => array(
|
940 |
-
'type' => 'radio',
|
941 |
-
'label' => __pl('alignment'),
|
942 |
-
'screen' => 1,
|
943 |
-
'list' => array(
|
944 |
-
'left' => __pl('left'),
|
945 |
-
'center' => __pl('center'),
|
946 |
-
'right' => __pl('right')
|
947 |
-
),
|
948 |
-
'css' => ['{{element}} .pagelayer-wp-title-desc' => 'text-align:{{val}};'],
|
949 |
-
'req' => ['site_desc' => 'true']
|
950 |
-
),
|
951 |
-
'desc_padding' => array(
|
952 |
-
'type' => 'padding',
|
953 |
-
'label' => __pl('padding'),
|
954 |
-
'screen' => 1,
|
955 |
-
'css' => ['{{element}} .pagelayer-wp-title-desc' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
956 |
-
'req' => ['site_desc' => 'true']
|
957 |
-
),
|
958 |
-
),
|
959 |
-
'logo_style' => array(
|
960 |
-
'site_logo' => array(
|
961 |
-
'type' => 'checkbox',
|
962 |
-
'label' => __pl('site_logo'),
|
963 |
-
//'desc' => __pl('site_logo_desc'),
|
964 |
-
),
|
965 |
-
'logo_img_type' => array(
|
966 |
-
'type' => 'select',
|
967 |
-
'label' => __pl('logo_img_type'),
|
968 |
-
'list' => array(
|
969 |
-
'' => __pl('default_logo'),
|
970 |
-
'custom-logo' => __pl('custom_logo'),
|
971 |
-
),
|
972 |
-
'req' => array(
|
973 |
-
'site_logo' => 'true'
|
974 |
-
)
|
975 |
-
),
|
976 |
-
'logo_img' => array(
|
977 |
-
'type' => 'image',
|
978 |
-
'label' => __pl('logo_select'),
|
979 |
-
'req' => array(
|
980 |
-
'site_logo' => 'true',
|
981 |
-
'logo_img_type' => 'custom-logo',
|
982 |
-
)
|
983 |
-
),
|
984 |
-
'logo_img_size' => array(
|
985 |
-
'type' => 'radio',
|
986 |
-
'label' => __pl('logo_size'),
|
987 |
-
'default' => 'full',
|
988 |
-
'list' => array(
|
989 |
-
'full' => __pl('full'),
|
990 |
-
'thumbnail' => __pl('thumbnail'),
|
991 |
-
'custom' => __pl('custom'),
|
992 |
-
),
|
993 |
-
'req' => array(
|
994 |
-
'site_logo' => 'true'
|
995 |
-
)
|
996 |
-
),
|
997 |
-
'logo_img_custom_size' => array(
|
998 |
-
'type' => 'slider',
|
999 |
-
'label' => __pl('logo_custom_size'),
|
1000 |
-
'min' => 10,
|
1001 |
-
'max' => 100,
|
1002 |
-
'default' => 20,
|
1003 |
-
'screen' => 1,
|
1004 |
-
'css' => ['{{element}} .pagelayer-wp-title-img' => 'width:{{val}}%; height: auto;'],
|
1005 |
-
'req' => array(
|
1006 |
-
'logo_img_size' => 'custom',
|
1007 |
-
'site_logo' => 'true'
|
1008 |
-
)
|
1009 |
-
),
|
1010 |
-
'align' => array(
|
1011 |
-
'type' => 'radio',
|
1012 |
-
'label' => __pl('alignment'),
|
1013 |
-
'default' => 'left',
|
1014 |
-
'list' => array(
|
1015 |
-
'left' => __pl('left'),
|
1016 |
-
'top' => __pl('top'),
|
1017 |
-
'right' => __pl('right')
|
1018 |
-
),
|
1019 |
-
'addClass' => ['{{element}} .pagelayer-wp-title-link' => 'pagelayer-wp-title-align-{{val}}'],
|
1020 |
-
'req' => array(
|
1021 |
-
'site_logo' => 'true'
|
1022 |
-
)
|
1023 |
-
),
|
1024 |
-
'vertical_align' => array(
|
1025 |
-
'type' => 'radio',
|
1026 |
-
'label' => __pl('vertical_alignment'),
|
1027 |
-
'default' => 'middle',
|
1028 |
-
'list' => array(
|
1029 |
-
'top' => __pl('top'),
|
1030 |
-
'middle' => __pl('middle'),
|
1031 |
-
'bottom' => __pl('bottom')
|
1032 |
-
),
|
1033 |
-
'addClass' => ['{{element}} .pagelayer-wp-title-link' => 'pagelayer-wp-title-vertical-{{val}}'],
|
1034 |
-
'req' => ['site_logo' => 'true',
|
1035 |
-
'!align' => 'top']
|
1036 |
-
),
|
1037 |
-
),
|
1038 |
-
'styles' => [
|
1039 |
-
'site_description' => __pl('site_desc'),
|
1040 |
-
'logo_style' => __pl('logo_style'),
|
1041 |
-
]
|
1042 |
-
)
|
1043 |
-
);
|
1044 |
-
|
1045 |
-
// Copyright
|
1046 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_copyright', array(
|
1047 |
-
'name' => __pl('copyright'),
|
1048 |
-
'group' => 'other',
|
1049 |
-
'icon' => 'fa fa-copyright',
|
1050 |
-
'html' => '<div class="pagelayer-copyright">
|
1051 |
-
<a href="'.home_url().'">
|
1052 |
-
'.pagelayer_get_option('pagelayer-copyright').'
|
1053 |
-
</a>
|
1054 |
-
</div>',
|
1055 |
-
'params' => array(
|
1056 |
-
/*'link' => array(
|
1057 |
-
'type' => 'link',
|
1058 |
-
'label' => __pl('icon_link_field_label'),
|
1059 |
-
'default' => ,
|
1060 |
-
),*/
|
1061 |
-
'color' => array(
|
1062 |
-
'type' => 'color',
|
1063 |
-
'label' => __pl('color'),
|
1064 |
-
'css' => ['{{element}} .pagelayer-copyright *, {{element}} .pagelayer-copyright' => 'color:{{val}}'],
|
1065 |
-
'desc' => __pl('CMA_desc')
|
1066 |
-
),
|
1067 |
-
'typography' => array(
|
1068 |
-
'type' => 'typography',
|
1069 |
-
'label' => __pl('typography'),
|
1070 |
-
'screen' => 1,
|
1071 |
-
'css' => ['{{element}} .pagelayer-copyright *, {{element}} .pagelayer-copyright' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1072 |
-
),
|
1073 |
-
'align' => array(
|
1074 |
-
'type' => 'radio',
|
1075 |
-
'label' => __pl('alignment'),
|
1076 |
-
'screen' => 1,
|
1077 |
-
'list' => [
|
1078 |
-
'left' => __pl('left'),
|
1079 |
-
'center' => __pl('center'),
|
1080 |
-
'right' => __pl('right'),
|
1081 |
-
],
|
1082 |
-
'css' => ['{{element}} .pagelayer-copyright' => 'text-align: {{val}}'],
|
1083 |
-
),
|
1084 |
-
)
|
1085 |
-
)
|
1086 |
-
);
|
1087 |
-
|
1088 |
-
// Primary Menu
|
1089 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_wp_menu', array(
|
1090 |
-
'name' => __pl('primary_menu'),
|
1091 |
-
'group' => 'wordpress',
|
1092 |
-
'html' => '<div class="pagelayer-wp-menu-holder" data-layout="{{layout}}" data-submenu_ind="{{submenu_ind}}" data-drop_breakpoint="{{drop_breakpoint}}">
|
1093 |
-
<div class="pagelayer-primary-menu-bar"><i class="fa fa-bars"></i></div>
|
1094 |
-
<div class="pagelayer-wp-menu-container pagelayer-menu-type-{{layout}} pagelayer-menu-hover-{{pointer}} {{m_animation}} {{slide_style}}" data-align="{{align}}">
|
1095 |
-
<div class="pagelayer-wp_menu-close"><i class="fa fa-times"></i></div>
|
1096 |
-
{{nav_menu}}
|
1097 |
-
</div>
|
1098 |
-
</div>',
|
1099 |
-
'params' => array(
|
1100 |
-
'nav_list' => array(// Never use the same name as we are replacing in IMPORT
|
1101 |
-
'type' => 'select',
|
1102 |
-
'label' => __pl('select_menu'),
|
1103 |
-
'default' => pagelayer_get_menu_list(true),
|
1104 |
-
'list' => pagelayer_get_menu_list(),
|
1105 |
-
),
|
1106 |
-
'align' => array(
|
1107 |
-
'type' => 'radio',
|
1108 |
-
'label' => __pl('alignment'),
|
1109 |
-
'default' => 'left',
|
1110 |
-
'screen' => 1,
|
1111 |
-
'list' => array(
|
1112 |
-
'left' => __pl('left'),
|
1113 |
-
'center' => __pl('center'),
|
1114 |
-
'right' => __pl('right'),
|
1115 |
-
),
|
1116 |
-
'css' => ['{{element}} ul' => 'text-align:{{val}};'],
|
1117 |
-
),
|
1118 |
-
'layout' => array(
|
1119 |
-
'type' => 'select',
|
1120 |
-
'label' => __pl('layout'),
|
1121 |
-
'default' => 'horizontal',
|
1122 |
-
'list' => array(
|
1123 |
-
'horizontal' => __pl('horizontal'),
|
1124 |
-
'vertical' => __pl('vertical'),
|
1125 |
-
'dropdown' => __pl('dropdown'),
|
1126 |
-
),
|
1127 |
-
),
|
1128 |
-
'drop_breakpoint' => array(
|
1129 |
-
'type' => 'select',
|
1130 |
-
'label' => __pl('drop_breakpoint'),
|
1131 |
-
'list' => array(
|
1132 |
-
'none' => __pl('none'),
|
1133 |
-
'mobile' => __pl('mobile'),
|
1134 |
-
'tablet' => __pl('tablet'),
|
1135 |
-
),
|
1136 |
-
'req' => [ '!layout' => 'dropdown']
|
1137 |
-
),
|
1138 |
-
'pointer' => array(
|
1139 |
-
'type' => 'select',
|
1140 |
-
'label' => __pl('pointer'),
|
1141 |
-
'default' => 'underline',
|
1142 |
-
'list' => array(
|
1143 |
-
'' => __pl('none'),
|
1144 |
-
'underline' => __pl('underline'),
|
1145 |
-
'overline' => __pl('overline'),
|
1146 |
-
'doubleline' => __pl('double_line'),
|
1147 |
-
'framed' => __pl('Framed'),
|
1148 |
-
'background' => __pl('bg_color'),
|
1149 |
-
'text' => __pl('text'),
|
1150 |
-
),
|
1151 |
-
),
|
1152 |
-
'm_animation' => array(
|
1153 |
-
'type' => 'select',
|
1154 |
-
'label' => __pl('animation'),
|
1155 |
-
'default' => 'slide',
|
1156 |
-
'list' => array(
|
1157 |
-
'none' => __pl('none'),
|
1158 |
-
'fade' => __pl('fade'),
|
1159 |
-
'slide' => __pl('slide'),
|
1160 |
-
'grow' => __pl('Grow'),
|
1161 |
-
'dropin' => __pl('drop_in'),
|
1162 |
-
'dropout' => __pl('Drop_out'),
|
1163 |
-
),
|
1164 |
-
),
|
1165 |
-
'list_style' => array(
|
1166 |
-
'type' => 'select',
|
1167 |
-
'label' => __pl('list_style'),
|
1168 |
-
'default' => 'none',
|
1169 |
-
'list' => array(
|
1170 |
-
'none' => __pl('none'),
|
1171 |
-
'circle' => __pl('list_list_type_circle'),
|
1172 |
-
'decimal' => __pl('decimal'),
|
1173 |
-
'square' => __pl('list_list_type_square'),
|
1174 |
-
'disc' => __pl('list_list_type_disc'),
|
1175 |
-
'inherit' => __pl('inherit'),
|
1176 |
-
'upper-roman' => __pl('upper_roman'),
|
1177 |
-
'upper-alpha' => __pl('upper_alpha'),
|
1178 |
-
'lower-roman' => __pl('lower_roman'),
|
1179 |
-
'lower-alpha' => __pl('lower_alpha'),
|
1180 |
-
),
|
1181 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container li' => 'list-style: {{val}};']
|
1182 |
-
),
|
1183 |
-
'submenu_ind' => array(
|
1184 |
-
'type' => 'select',
|
1185 |
-
'label' => __pl('sbmenu_indicator'),
|
1186 |
-
'default' => 'caret-down',
|
1187 |
-
'list' => array(
|
1188 |
-
'' => __pl('none'),
|
1189 |
-
'caret-down' => __pl('caret_down'),
|
1190 |
-
'chevron-down' => __pl('chevron'),
|
1191 |
-
'angle-down' => __pl('angle'),
|
1192 |
-
'plus' => __pl('Plus'),
|
1193 |
-
'arrow-down' => __pl('arrow_down'),
|
1194 |
-
),
|
1195 |
-
),
|
1196 |
-
),
|
1197 |
-
'menu_style' => [
|
1198 |
-
'menu_colors' => array(
|
1199 |
-
'type' => 'radio',
|
1200 |
-
'label' => __pl('Background'),
|
1201 |
-
//'no_val' => 1,// Dont set any value to element
|
1202 |
-
'list' => [
|
1203 |
-
'' => __pl('normal'),
|
1204 |
-
'hover' => __pl('hover'),
|
1205 |
-
'active' => __pl('active'),
|
1206 |
-
],
|
1207 |
-
),
|
1208 |
-
'menu_color' => [
|
1209 |
-
'type' => 'color',
|
1210 |
-
'label' => __pl('color'),
|
1211 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li a:first-child' => 'color: {{val}};'],
|
1212 |
-
'show' => ['menu_colors' => ''],
|
1213 |
-
'screen' => 1
|
1214 |
-
],
|
1215 |
-
'menu_bg_color' => [
|
1216 |
-
'type' => 'color',
|
1217 |
-
'label' => __pl('p_bg_color'),
|
1218 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li' => 'background-color: {{val}};'],
|
1219 |
-
'show' => ['menu_colors' => ''],
|
1220 |
-
'screen' => 1
|
1221 |
-
],
|
1222 |
-
'menu_color_hover' => [
|
1223 |
-
'type' => 'color',
|
1224 |
-
'label' => __pl('color'),
|
1225 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a:hover' => 'color: {{val}};',
|
1226 |
-
'{{element}} .pagelayer-wp_menu-ul>li.active-sub-menu>a:hover' => 'color: {{val}};'],
|
1227 |
-
'show' => ['menu_colors' => 'hover'],
|
1228 |
-
'screen' => 1
|
1229 |
-
],
|
1230 |
-
'menu_bg_color_hover' => [
|
1231 |
-
'type' => 'color',
|
1232 |
-
'label' => __pl('p_bg_color'),
|
1233 |
-
'default' => '#00ccff',
|
1234 |
-
'css' => ['{{element}} .pagelayer-menu-hover-background .pagelayer-wp_menu-ul>li:hover' => 'background-color: {{val}};','{{element}} .pagelayer-wp_menu-ul>li>a:hover:before' => 'background-color: {{val}};border-color:{{val}}',
|
1235 |
-
'{{element}} .pagelayer-wp_menu-ul>li>a:hover:after' => 'background-color: {{val}};border-color:{{val}}',
|
1236 |
-
'{{element}} .pagelayer-wp_menu-ul>li.active-sub-menu' => 'background-color: {{val}};'],
|
1237 |
-
'show' => ['menu_colors' => 'hover'],
|
1238 |
-
'screen' => 1
|
1239 |
-
],
|
1240 |
-
'menu_color_active' => [
|
1241 |
-
'type' => 'color',
|
1242 |
-
'label' => __pl('color'),
|
1243 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li.current-menu-item>a' => 'color: {{val}};'],
|
1244 |
-
'show' => ['menu_colors' => 'active'],
|
1245 |
-
'screen' => 1
|
1246 |
-
],
|
1247 |
-
'menu_bg_color_active' => [
|
1248 |
-
'type' => 'color',
|
1249 |
-
'label' => __pl('p_bg_color'),
|
1250 |
-
'default' => '#00ccff',
|
1251 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li.current-menu-item' => 'background-color: {{val}};'],
|
1252 |
-
'show' => ['menu_colors' => 'active'],
|
1253 |
-
'screen' => 1
|
1254 |
-
],
|
1255 |
-
'menu_typo' => array(
|
1256 |
-
'type' => 'typography',
|
1257 |
-
'label' => __pl('typography'),
|
1258 |
-
'screen' => 1,
|
1259 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul li a' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
1260 |
-
'{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1261 |
-
),
|
1262 |
-
'menu_pointer_height' => [
|
1263 |
-
'type' => 'slider',
|
1264 |
-
'label' => __pl('pointer_height'),
|
1265 |
-
'screen' => 1,
|
1266 |
-
'min' => 1,
|
1267 |
-
'max' => 50,
|
1268 |
-
'css' => ['{{element}} .pagelayer-menu-hover-underline:not(.none) .pagelayer-wp_menu-ul>li>a:before, {{element}} .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:before, {{element}} .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:after, {{element}} .pagelayer-menu-hover-overline:not(.none) .pagelayer-wp_menu-ul>li>a:before' => 'height:{{val}}px;',
|
1269 |
-
'{{element}} .pagelayer-menu-hover-framed .pagelayer-wp_menu-ul>li>a:hover:before' => 'border-width: {{val}}px'],
|
1270 |
-
'show' => ['pointer' => ['underline', 'overline', 'doubleline', 'framed']],
|
1271 |
-
],
|
1272 |
-
'horizontal_padding' => [
|
1273 |
-
'type' => 'slider',
|
1274 |
-
'label' => __pl('horizontal_padding'),
|
1275 |
-
'default' => 10,
|
1276 |
-
'screen' => 1,
|
1277 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li a' => 'padding-left: {{val}}px;padding-right: {{val}}px;'],
|
1278 |
-
],
|
1279 |
-
'vertical_padding' => [
|
1280 |
-
'type' => 'slider',
|
1281 |
-
'label' => __pl('vertical_padding'),
|
1282 |
-
'default' => 10,
|
1283 |
-
'screen' => 1,
|
1284 |
-
'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a' => 'padding-top: {{val}}px;padding-bottom : {{val}}px;'],
|
1285 |
-
],
|
1286 |
-
],
|
1287 |
-
'submenu_style' => [
|
1288 |
-
'submenu_colors' => array(
|
1289 |
-
'type' => 'radio',
|
1290 |
-
'label' => __pl('Background'),
|
1291 |
-
//'no_val' => 1,// Dont set any value to element
|
1292 |
-
'list' => [
|
1293 |
-
'' => __pl('normal'),
|
1294 |
-
'hover' => __pl('hover'),
|
1295 |
-
'active' => __pl('active'),
|
1296 |
-
],
|
1297 |
-
),
|
1298 |
-
'submenu_color' => [
|
1299 |
-
'type' => 'color',
|
1300 |
-
'label' => __pl('color'),
|
1301 |
-
'default' => '#ffffff',
|
1302 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li a' => 'color: {{val}};'],
|
1303 |
-
'show' => ['submenu_colors' => ''],
|
1304 |
-
'screen' => 1
|
1305 |
-
],
|
1306 |
-
'submenu_bg_color' => [
|
1307 |
-
'type' => 'color',
|
1308 |
-
'label' => __pl('bg_color'),
|
1309 |
-
'default' => '#0986c0',
|
1310 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu' => 'background-color: {{val}};'],
|
1311 |
-
'show' => ['submenu_colors' => ''],
|
1312 |
-
'screen' => 1
|
1313 |
-
],
|
1314 |
-
'submenu_color_hover' => [
|
1315 |
-
'type' => 'color',
|
1316 |
-
'label' => __pl('color'),
|
1317 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li a:hover' => 'color: {{val}};', '{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.active-sub-menu a:hover' => 'color: {{val}};'],
|
1318 |
-
'show' => ['submenu_colors' => 'hover'],
|
1319 |
-
'screen' => 1
|
1320 |
-
],
|
1321 |
-
'submenu_bg_color_hover' => [
|
1322 |
-
'type' => 'color',
|
1323 |
-
'label' => __pl('bg_color'),
|
1324 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li:hover' => 'background-color: {{val}};', '{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.active-sub-menu' => 'background-color: {{val}};'],
|
1325 |
-
'show' => ['submenu_colors' => 'hover'],
|
1326 |
-
'screen' => 1
|
1327 |
-
],
|
1328 |
-
'submenu_color_active' => [
|
1329 |
-
'type' => 'color',
|
1330 |
-
'label' => __pl('color'),
|
1331 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.current-menu-item a' => 'color: {{val}};'],
|
1332 |
-
'show' => ['submenu_colors' => 'active'],
|
1333 |
-
'screen' => 1
|
1334 |
-
],
|
1335 |
-
'submenu_bg_color_active' => [
|
1336 |
-
'type' => 'color',
|
1337 |
-
'label' => __pl('bg_color'),
|
1338 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.current-menu-item' => 'background-color: {{val}};'],
|
1339 |
-
'show' => ['submenu_colors' => 'active'],
|
1340 |
-
'screen' => 1
|
1341 |
-
],
|
1342 |
-
'submenu_typo' => array(
|
1343 |
-
'type' => 'typography',
|
1344 |
-
'label' => __pl('typography'),
|
1345 |
-
'screen' => 1,
|
1346 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
1347 |
-
'{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1348 |
-
),
|
1349 |
-
'submenu_horizontal_padding' => [
|
1350 |
-
'type' => 'slider',
|
1351 |
-
'label' => __pl('horizontal_padding'),
|
1352 |
-
'default' => 10,
|
1353 |
-
'screen' => 1,
|
1354 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'padding-left: {{val}}px;padding-right: {{val}}px;'],
|
1355 |
-
],
|
1356 |
-
'submenu_vertical_padding' => [
|
1357 |
-
'type' => 'slider',
|
1358 |
-
'label' => __pl('vertical_padding'),
|
1359 |
-
'default' => 10,
|
1360 |
-
'screen' => 1,
|
1361 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'padding-top: {{val}}px;padding-bottom : {{val}}px;'],
|
1362 |
-
],
|
1363 |
-
'submenu_left_margin' => [
|
1364 |
-
'type' => 'slider',
|
1365 |
-
'label' => __pl('left_margin'),
|
1366 |
-
'default' => 10,
|
1367 |
-
'screen' => 1,
|
1368 |
-
'css' => ['{{element}} .pagelayer-wp-menu-container .sub-menu a' => 'margin-left: {{val}}px;', '{{element}} .pagelayer-wp-menu-container .sub-menu .sub-menu a' => 'margin-left: calc(2 * {{val}}px);'],
|
1369 |
-
],
|
1370 |
-
'submenu_position' => [
|
1371 |
-
'type' => 'radio',
|
1372 |
-
'label' => __pl('position'),
|
1373 |
-
'default' => 'left',
|
1374 |
-
'list' => array(
|
1375 |
-
'left' => __pl('left'),
|
1376 |
-
'right' => __pl('right'),
|
1377 |
-
),
|
1378 |
-
'css' => ['{{element}} .pagelayer-menu-type-horizontal .sub-menu' => '{{val}}:0px;', '{{element}} .pagelayer-menu-type-horizontal .sub-menu .sub-menu' => 'left:unset;{{val}}:100% !important;top:0px;'],
|
1379 |
-
'req' => ['layout' => 'horizontal'],
|
1380 |
-
],
|
1381 |
-
],
|
1382 |
-
'menu_toggle' => [
|
1383 |
-
'menu_toggle_align' => array(
|
1384 |
-
'type' => 'radio',
|
1385 |
-
'label' => __pl('alignment'),
|
1386 |
-
'default' => 'center',
|
1387 |
-
'screen' => 1,
|
1388 |
-
'list' => array(
|
1389 |
-
'left' => __pl('left'),
|
1390 |
-
'center' => __pl('center'),
|
1391 |
-
'right' => __pl('right'),
|
1392 |
-
),
|
1393 |
-
'css' => ['{{element}} .pagelayer-primary-menu-bar' => 'text-align:{{val}}'],
|
1394 |
-
),
|
1395 |
-
'menu_toggle_color' => array(
|
1396 |
-
'type' => 'color',
|
1397 |
-
'label' => __pl('color'),
|
1398 |
-
'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'color:{{val}}'],
|
1399 |
-
),
|
1400 |
-
'menu_toggle_bg_color' => array(
|
1401 |
-
'type' => 'color',
|
1402 |
-
'label' => __pl('bg_color'),
|
1403 |
-
'default' => '#0986c050',
|
1404 |
-
'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'background-color:{{val}}'],
|
1405 |
-
),
|
1406 |
-
'menu_toggle_size' => array(
|
1407 |
-
'type' => 'slider',
|
1408 |
-
'label' => __pl('font_size'),
|
1409 |
-
'default' => 30,
|
1410 |
-
'screen' => 1,
|
1411 |
-
'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'font-size:{{val}}px'],
|
1412 |
-
),
|
1413 |
-
'menu_toggle_padding' => array(
|
1414 |
-
'type' => 'slider',
|
1415 |
-
'label' => __pl('padding'),
|
1416 |
-
'screen' => 1,
|
1417 |
-
'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'padding:{{val}}px'],
|
1418 |
-
),
|
1419 |
-
],
|
1420 |
-
'dropdown_style' => [
|
1421 |
-
'slide_style' => array(
|
1422 |
-
'type' => 'select',
|
1423 |
-
'label' => __pl('slide_style'),
|
1424 |
-
'default' => 'pagelayer-wp_menu-right',
|
1425 |
-
'list' => array(
|
1426 |
-
'pagelayer-wp_menu-down' => __pl('slide-down'),
|
1427 |
-
'pagelayer-wp_menu-right' => __pl('slide-right'),
|
1428 |
-
'pagelayer-wp_menu-left' => __pl('slide-left'),
|
1429 |
-
'pagelayer-wp_menu-full' => __pl('full_screen')
|
1430 |
-
),
|
1431 |
-
'req' => ['!drop_breakpoint' => 'none']
|
1432 |
-
),
|
1433 |
-
'dropdown_align' => array(
|
1434 |
-
'type' => 'radio',
|
1435 |
-
'label' => __pl('alignment'),
|
1436 |
-
'screen' => 1,
|
1437 |
-
'list' => array(
|
1438 |
-
'flex-start' => __pl('left'),
|
1439 |
-
'center' => __pl('center'),
|
1440 |
-
'flex-end' => __pl('right'),
|
1441 |
-
),
|
1442 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul a' => 'justify-content: {{val}};'],
|
1443 |
-
),
|
1444 |
-
'menu_width' => [
|
1445 |
-
'type' => 'spinner',
|
1446 |
-
'label' => __pl('width'),
|
1447 |
-
'default' => 30,
|
1448 |
-
'min' => 1,
|
1449 |
-
'screen' => 1,
|
1450 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'width:{{val}}%;'],
|
1451 |
-
'req' => [
|
1452 |
-
'!drop_breakpoint' => 'none',
|
1453 |
-
'!slide_style' => ['pagelayer-wp_menu-full','pagelayer-wp_menu-down']
|
1454 |
-
]
|
1455 |
-
],
|
1456 |
-
'menu_down_width' => [
|
1457 |
-
'type' => 'spinner',
|
1458 |
-
'label' => __pl('width'),
|
1459 |
-
'default' => 100,
|
1460 |
-
'min' => 1,
|
1461 |
-
'screen' => 1,
|
1462 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'width:{{val}}%;'],
|
1463 |
-
'req' => [
|
1464 |
-
'!drop_breakpoint' => 'none',
|
1465 |
-
'slide_style' => 'pagelayer-wp_menu-down'
|
1466 |
-
]
|
1467 |
-
],
|
1468 |
-
'menu_items_width' => [
|
1469 |
-
'type' => 'spinner',
|
1470 |
-
'label' => __pl('menu_items_width'),
|
1471 |
-
'default' => 100,
|
1472 |
-
'min' => 1,
|
1473 |
-
'max' => 100,
|
1474 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'width:{{val}}%;'],
|
1475 |
-
'req' => [
|
1476 |
-
'!drop_breakpoint' => 'none',
|
1477 |
-
'!slide_style' => ['pagelayer-wp_menu-down']
|
1478 |
-
]
|
1479 |
-
],
|
1480 |
-
'menu_posx' => array(
|
1481 |
-
'type' => 'slider',
|
1482 |
-
'label' => __pl('horizontal_pos'),
|
1483 |
-
'screen' => 1,
|
1484 |
-
'min' => 0,
|
1485 |
-
'step' => 1,
|
1486 |
-
'max' => 100,
|
1487 |
-
'default' => 0,
|
1488 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'left: {{val}}%;'],
|
1489 |
-
'req' => [
|
1490 |
-
'!drop_breakpoint' => 'none',
|
1491 |
-
'!slide_style' => 'pagelayer-wp_menu-down'
|
1492 |
-
]
|
1493 |
-
),
|
1494 |
-
'menu_posy' => array(
|
1495 |
-
'type' => 'slider',
|
1496 |
-
'label' => __pl('verticle_postion'),
|
1497 |
-
'screen' => 1,
|
1498 |
-
'min' => 0,
|
1499 |
-
'step' => 1,
|
1500 |
-
'max' => 100,
|
1501 |
-
'default' => 8,
|
1502 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'top: {{val}}%; transform: translateY(-{{val}}%);'],
|
1503 |
-
'req' => [
|
1504 |
-
'!drop_breakpoint' => 'none',
|
1505 |
-
'!slide_style' => 'pagelayer-wp_menu-down'
|
1506 |
-
]
|
1507 |
-
),
|
1508 |
-
'menu_bg' => array(
|
1509 |
-
'type' => 'radio',
|
1510 |
-
'label' => __pl('col_bg_styles'),
|
1511 |
-
'default' => 'color',
|
1512 |
-
'list' => array(
|
1513 |
-
'' => __pl('none'),
|
1514 |
-
'color' => __pl('color'),
|
1515 |
-
'gradient' => __pl('gradient'),
|
1516 |
-
),
|
1517 |
-
'req' => ['!drop_breakpoint' => 'none']
|
1518 |
-
),
|
1519 |
-
'menu_items_bg' => array(
|
1520 |
-
'type' => 'color',
|
1521 |
-
'label' => __pl('color'),
|
1522 |
-
'default' => '#ffffff',
|
1523 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'background-color:{{val}}'],
|
1524 |
-
'req' => [
|
1525 |
-
'menu_bg' => 'color',
|
1526 |
-
'!drop_breakpoint' => 'none'
|
1527 |
-
],
|
1528 |
-
),
|
1529 |
-
'menu_items_gradient' => array(
|
1530 |
-
'type' => 'gradient',
|
1531 |
-
'label' => '',
|
1532 |
-
'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
1533 |
-
'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
1534 |
-
'req' => [
|
1535 |
-
'menu_bg' => 'gradient',
|
1536 |
-
'!drop_breakpoint' => 'none'
|
1537 |
-
],
|
1538 |
-
),
|
1539 |
-
],
|
1540 |
-
'close_style' =>[
|
1541 |
-
'close_size' => array(
|
1542 |
-
'type' => 'slider',
|
1543 |
-
'label' => __pl('font_size'),
|
1544 |
-
'default' => 25,
|
1545 |
-
'screen' => 1,
|
1546 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'font-size:{{val}}px'],
|
1547 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1548 |
-
),
|
1549 |
-
'close_padding' => array(
|
1550 |
-
'type' => 'slider',
|
1551 |
-
'label' => __pl('padding'),
|
1552 |
-
'default' => 8,
|
1553 |
-
'screen' => 1,
|
1554 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'padding:{{val}}px'],
|
1555 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1556 |
-
),
|
1557 |
-
'close_pos_x' => array(
|
1558 |
-
'type' => 'slider',
|
1559 |
-
'label' => __pl('horizontal_pos'),
|
1560 |
-
'step' => 1,
|
1561 |
-
'max' => 100,
|
1562 |
-
'default' => 0,
|
1563 |
-
'screen' => 1,
|
1564 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'left:{{val}}%;'],
|
1565 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1566 |
-
),
|
1567 |
-
'close_pos_y' => array(
|
1568 |
-
'type' => 'slider',
|
1569 |
-
'label' => __pl('verticle_postion'),
|
1570 |
-
'step' => 1,
|
1571 |
-
'max' => 100,
|
1572 |
-
'default' => 0,
|
1573 |
-
'screen' => 1,
|
1574 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'top:{{val}}%;'],
|
1575 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1576 |
-
),
|
1577 |
-
'close_state' => array(
|
1578 |
-
'type' => 'radio',
|
1579 |
-
'label' => __pl('state'),
|
1580 |
-
'default' => '',
|
1581 |
-
'list' => array(
|
1582 |
-
'' => __pl('normal'),
|
1583 |
-
'hover' => __pl('hover'),
|
1584 |
-
),
|
1585 |
-
),
|
1586 |
-
'close_color' => array(
|
1587 |
-
'type' => 'color',
|
1588 |
-
'label' => __pl('color'),
|
1589 |
-
'default' => '#ffffff68',
|
1590 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'color:{{val}}'],
|
1591 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1592 |
-
'show' => ['close_state' => '']
|
1593 |
-
),
|
1594 |
-
'close_bg_color' => array(
|
1595 |
-
'type' => 'color',
|
1596 |
-
'label' => __pl('bg_color'),
|
1597 |
-
'default' => '#00000036',
|
1598 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'background-color:{{val}}'],
|
1599 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1600 |
-
'show' => ['close_state' => '']
|
1601 |
-
),
|
1602 |
-
'close_hover_delay' => array(
|
1603 |
-
'type' => 'spinner',
|
1604 |
-
'label' => __pl('delay'),
|
1605 |
-
'min' => 0,
|
1606 |
-
'step' => 100,
|
1607 |
-
'max' => 5000,
|
1608 |
-
'default' => 600,
|
1609 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
1610 |
-
'show' => ['close_state' => 'hover']
|
1611 |
-
),
|
1612 |
-
'close_color_hover' => array(
|
1613 |
-
'type' => 'color',
|
1614 |
-
'label' => __pl('color'),
|
1615 |
-
'default' => '#ffffff',
|
1616 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i:hover' => 'color:{{val}}'],
|
1617 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1618 |
-
'show' => ['close_state' => 'hover']
|
1619 |
-
),
|
1620 |
-
'close_bg_color_hover' => array(
|
1621 |
-
'type' => 'color',
|
1622 |
-
'label' => __pl('bg_color'),
|
1623 |
-
'default' => '#000000',
|
1624 |
-
'css' => ['{{element}} .pagelayer-wp_menu-close i:hover' => 'background-color:{{val}}'],
|
1625 |
-
'req' => ['!drop_breakpoint' => 'none'],
|
1626 |
-
'show' => ['close_state' => 'hover']
|
1627 |
-
),
|
1628 |
-
],
|
1629 |
-
'styles' => [
|
1630 |
-
'menu_style' => __pl('menu_style'),
|
1631 |
-
'submenu_style' => __pl('submenu_style'),
|
1632 |
-
'menu_toggle' => __pl('toggle_style'),
|
1633 |
-
'dropdown_style' => __pl('dropdown_style'),
|
1634 |
-
'close_style' => __pl('close_style'),
|
1635 |
-
]
|
1636 |
-
)
|
1637 |
-
);
|
1638 |
-
|
1639 |
-
// Breadcrumb
|
1640 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_breadcrumb', array(
|
1641 |
-
'name' => __pl('breadcrumb'),
|
1642 |
-
'group' => 'other',
|
1643 |
-
'html' => '<span if="{{prefix}}" class="pagelayer-breadcrumb-prefix">{{prefix}}</span>
|
1644 |
-
<span class="pagelayer-breadcrumb-section">'.
|
1645 |
-
pagelayer_get_breadcrumb().
|
1646 |
-
'</span>',
|
1647 |
-
//'html' => yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ).pagelayer_get_breadcrumb(),
|
1648 |
-
'params' => array(
|
1649 |
-
'home' => array(
|
1650 |
-
'type' => 'text',
|
1651 |
-
'label' => __pl('home_label'),
|
1652 |
-
'default' => 'Home',
|
1653 |
-
),
|
1654 |
-
'breadcrumb_color' => array(
|
1655 |
-
'type' => 'color',
|
1656 |
-
'label' => __pl('color'),
|
1657 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-section a' => 'color:{{val}};']
|
1658 |
-
),
|
1659 |
-
'breadcrumb_hover' => array(
|
1660 |
-
'type' => 'color',
|
1661 |
-
'label' => __pl('hovered_color'),
|
1662 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-section a:hover' => 'color:{{val}};']
|
1663 |
-
),
|
1664 |
-
'cur_color' => array(
|
1665 |
-
'type' => 'color',
|
1666 |
-
'label' => __pl('cur_color'),
|
1667 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-section' => 'color:{{val}};']
|
1668 |
-
),
|
1669 |
-
'typo' => array(
|
1670 |
-
'type' => 'typography',
|
1671 |
-
'label' => __pl('typography'),
|
1672 |
-
'screen' => 1,
|
1673 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-section' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1674 |
-
),
|
1675 |
-
'alignment' => array(
|
1676 |
-
'type' => 'radio',
|
1677 |
-
'label' => __pl('alignment'),
|
1678 |
-
'default' => 'center',
|
1679 |
-
'screen' => 1,
|
1680 |
-
'css' =>'text-align:{{val}};',
|
1681 |
-
'list' => array(
|
1682 |
-
'left' => __pl('left'),
|
1683 |
-
'center' => __pl('center'),
|
1684 |
-
'right' => __pl('right'),
|
1685 |
-
),
|
1686 |
-
),
|
1687 |
-
),
|
1688 |
-
'prefix_style' => [
|
1689 |
-
'prefix' => array(
|
1690 |
-
'type' => 'text',
|
1691 |
-
'label' => __pl('breadcrumb_prefix'),
|
1692 |
-
),
|
1693 |
-
'search_prefix' => array(
|
1694 |
-
'type' => 'text',
|
1695 |
-
'label' => __pl('search_prefix'),
|
1696 |
-
),
|
1697 |
-
'404_prefix' => array(
|
1698 |
-
'type' => 'text',
|
1699 |
-
'label' => __pl('404_prefix'),
|
1700 |
-
),
|
1701 |
-
'prefix_color' => array(
|
1702 |
-
'type' => 'color',
|
1703 |
-
'label' => __pl('color'),
|
1704 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-prefix' => 'color:{{val}};']
|
1705 |
-
),
|
1706 |
-
'prefix_typo' => array(
|
1707 |
-
'type' => 'typography',
|
1708 |
-
'label' => __pl('typography'),
|
1709 |
-
'screen' => 1,
|
1710 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-prefix' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1711 |
-
),
|
1712 |
-
],
|
1713 |
-
'separator_style' => [
|
1714 |
-
'separator' => array(
|
1715 |
-
'type' => 'text',
|
1716 |
-
'label' => __pl('separator_style'),
|
1717 |
-
'default' => ' » ',
|
1718 |
-
),
|
1719 |
-
'separator_color' => array(
|
1720 |
-
'type' => 'color',
|
1721 |
-
'label' => __pl('color'),
|
1722 |
-
'default' => '#333333',
|
1723 |
-
'css' => ['{{element}} .pagelayer-breadcrumb-sep' => 'color:{{val}};']
|
1724 |
-
),
|
1725 |
-
],
|
1726 |
-
'styles' => [
|
1727 |
-
'prefix_style' => __pl('prefix_style'),
|
1728 |
-
'separator_style' => __pl('separator_style'),
|
1729 |
-
]
|
1730 |
-
)
|
1731 |
-
);
|
1732 |
-
|
1733 |
-
// Contact Form
|
1734 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_contact', array(
|
1735 |
-
'name' => __pl('contact_form'),
|
1736 |
-
'group' => 'other',
|
1737 |
-
'has_group' => [
|
1738 |
-
'section' => 'params',
|
1739 |
-
'prop' => 'elements'
|
1740 |
-
],
|
1741 |
-
'holder' => '.pagelayer-contact-holder',
|
1742 |
-
'html' => '<div class="pagelayer-contact-form-div pagelayer-contact-form-holder">
|
1743 |
-
<form class="pagelayer-contact-form" id="{{form}}" name="{{name}}" onsubmit="return pagelayer_contact_submit(this, event)" method="POST">
|
1744 |
-
<div class="pagelayer-contact-holder">
|
1745 |
-
</div>
|
1746 |
-
<input type="hidden" name="cfa-pagelayer-id"/>
|
1747 |
-
<input if="{{con_post_id}}" type="hidden" name="cfa-post-id" value="{{con_post_id}}"/>
|
1748 |
-
<input if="{{contact_custom_templ}}" type="hidden" name="cfa-custom-template" value="{{contact_custom_templ}}"/>
|
1749 |
-
<input if="{{redirect_url}}" type="hidden" name="cfa-redirect" value="{{{redirect_url}}}"/>
|
1750 |
-
<div class="g-recaptcha pagelayer-recaptcha" data-sitekey="{{grecaptcha}}" if="{{captcha}}"></div>
|
1751 |
-
<div class="pagelayer-contact-submit-holder">
|
1752 |
-
<button if="{{submit}}" type="submit" form="{{form}}" class="pagelayer-contact-submit-btn pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
|
1753 |
-
<i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
|
1754 |
-
<span if="{{submit}}" class="pagelayer-btn-text">{{submit}}</span>
|
1755 |
-
<i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
|
1756 |
-
</button>
|
1757 |
-
<div>
|
1758 |
-
</form>
|
1759 |
-
<div class="pagelayer-message-box"></div>
|
1760 |
-
</div>',
|
1761 |
-
'params' => array(
|
1762 |
-
'elements' => array(
|
1763 |
-
'type' => 'group',
|
1764 |
-
'label' => __pl('Label'),
|
1765 |
-
'sc' => PAGELAYER_SC_PREFIX.'_contact_item',
|
1766 |
-
'item_label' => array(
|
1767 |
-
'default' => __pl('Label'),
|
1768 |
-
'param' => 'label_name'
|
1769 |
-
),
|
1770 |
-
'count' => 1,
|
1771 |
-
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('field_name'))),
|
1772 |
-
),
|
1773 |
-
'redirect_show' => array(
|
1774 |
-
'type' => 'checkbox',
|
1775 |
-
'label' => __pl('redirect_url'),
|
1776 |
-
),
|
1777 |
-
'redirect_url' => array(
|
1778 |
-
'type' => 'link',
|
1779 |
-
'label' => __pl('redirect_urllabel'),
|
1780 |
-
'desc' => __pl('redirect_urldesc'),
|
1781 |
-
'req' => array(
|
1782 |
-
'redirect_show' => 'true'
|
1783 |
-
)
|
1784 |
-
),
|
1785 |
-
'captcha' => array(
|
1786 |
-
'type' => 'checkbox',
|
1787 |
-
'label' => __pl('use_recaptcha'),
|
1788 |
-
'default' => '',
|
1789 |
-
'desc' => __pl('use_recaptcha_desc'),
|
1790 |
-
),
|
1791 |
-
'form' => array(
|
1792 |
-
'type' => 'text',
|
1793 |
-
'label' => __pl('form_id'),
|
1794 |
-
'desc' => __pl('form_id_desc'),
|
1795 |
-
'default' => 'contact-form',
|
1796 |
-
),
|
1797 |
-
'name' => array(
|
1798 |
-
'type' => 'text',
|
1799 |
-
'label' => __pl('form_name'),
|
1800 |
-
'default' => 'Contact Form',
|
1801 |
-
'desc' => __pl('form_name_desc'),
|
1802 |
-
),
|
1803 |
-
'form_position' => array(
|
1804 |
-
'type' => 'radio',
|
1805 |
-
'label' => __pl('alignment'),
|
1806 |
-
'default' => 'default',
|
1807 |
-
'screen' => 1,
|
1808 |
-
'list' => array(
|
1809 |
-
'left' => __pl('left'),
|
1810 |
-
'center' => __pl('center'),
|
1811 |
-
'right' => __pl('right')
|
1812 |
-
),
|
1813 |
-
'css' => ['{{element}} .pagelayer-contact-form' => 'text-align: {{val}}'],
|
1814 |
-
),
|
1815 |
-
),
|
1816 |
-
'label_style' =>[
|
1817 |
-
'form_label_color' => array(
|
1818 |
-
'type' => 'color',
|
1819 |
-
'label' => __pl('label_color'),
|
1820 |
-
'default' => '',
|
1821 |
-
'show' => ['field_state' => ''],
|
1822 |
-
'css' => ['{{element}} label' => 'color: {{val}}'],
|
1823 |
-
),
|
1824 |
-
'label_typo' => array(
|
1825 |
-
'type' => 'typography',
|
1826 |
-
'label' => __pl('typography'),
|
1827 |
-
'screen' => 1,
|
1828 |
-
'css' => ['{{element}} label' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1829 |
-
),
|
1830 |
-
'space_label' => array(
|
1831 |
-
'type' => 'padding',
|
1832 |
-
'label' => __pl('space_between'),
|
1833 |
-
'default' => ',,10,',
|
1834 |
-
'screen' => 1,
|
1835 |
-
'css' => ['{{element}} label' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
1836 |
-
),
|
1837 |
-
'form_placeholder_color' => array(
|
1838 |
-
'type' => 'color',
|
1839 |
-
'label' => __pl('placeholder_color'),
|
1840 |
-
'default' => '',
|
1841 |
-
'show' => ['field_state' => ''],
|
1842 |
-
'css' => ['{{element}} ::placeholder' => 'color: {{val}}'],
|
1843 |
-
),
|
1844 |
-
'placeholder_typo' => array(
|
1845 |
-
'type' => 'typography',
|
1846 |
-
'label' => __pl('typography'),
|
1847 |
-
'screen' => 1,
|
1848 |
-
'css' => ['{{element}} ::placeholder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1849 |
-
),
|
1850 |
-
],
|
1851 |
-
'input_style' => [
|
1852 |
-
'input_state' => array(
|
1853 |
-
'type' => 'radio',
|
1854 |
-
'label' => __pl('state'),
|
1855 |
-
'default' => 'normal',
|
1856 |
-
'list' => array(
|
1857 |
-
'normal' => __pl('normal'),
|
1858 |
-
'hover' => __pl('hover'),
|
1859 |
-
),
|
1860 |
-
),
|
1861 |
-
'form_input_color' => array(
|
1862 |
-
'type' => 'color',
|
1863 |
-
'label' => __pl('text_color'),
|
1864 |
-
'css' => [
|
1865 |
-
'{{element}} textarea, {{element}} input, {{element}} select, {{element}} date' => 'color: {{val}}'
|
1866 |
-
],
|
1867 |
-
'req' => array(
|
1868 |
-
'input_state' => 'normal'
|
1869 |
-
),
|
1870 |
-
),
|
1871 |
-
'form_input_bg' => array(
|
1872 |
-
'type' => 'color',
|
1873 |
-
'label' => __pl('bg_color'),
|
1874 |
-
'css' => [
|
1875 |
-
'{{element}} textarea, {{element}} input, {{element}} select, {{element}} date' => 'background-color: {{val}}',
|
1876 |
-
],
|
1877 |
-
'req' => array(
|
1878 |
-
'input_state' => 'normal',
|
1879 |
-
),
|
1880 |
-
),
|
1881 |
-
'input_hover_delay' => array(
|
1882 |
-
'type' => 'spinner',
|
1883 |
-
'label' => __pl('input_hover_delay_label'),
|
1884 |
-
'min' => 0,
|
1885 |
-
'step' => 100,
|
1886 |
-
'max' => 5000,
|
1887 |
-
'css' => ['{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
1888 |
-
'show' => array(
|
1889 |
-
'input_state' => 'hover'
|
1890 |
-
),
|
1891 |
-
),
|
1892 |
-
'form_input_color_hover' => array(
|
1893 |
-
'type' => 'color',
|
1894 |
-
'label' => __pl('text_color'),
|
1895 |
-
'css' => [
|
1896 |
-
'{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => 'color: {{val}}'
|
1897 |
-
],
|
1898 |
-
'req' => array(
|
1899 |
-
'input_state' => 'hover'
|
1900 |
-
),
|
1901 |
-
),
|
1902 |
-
'form_input_bg_hover' => array(
|
1903 |
-
'type' => 'color',
|
1904 |
-
'label' => __pl('bg_color'),
|
1905 |
-
'css' => [
|
1906 |
-
'{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => 'background-color: {{val}}'
|
1907 |
-
],
|
1908 |
-
'req' => array(
|
1909 |
-
'input_state' => 'hover'
|
1910 |
-
),
|
1911 |
-
),
|
1912 |
-
'input_typo' => array(
|
1913 |
-
'type' => 'typography',
|
1914 |
-
'label' => __pl('typography'),
|
1915 |
-
'screen' => 1,
|
1916 |
-
'css' => ['{{element}} select, {{element}} input' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
1917 |
-
),
|
1918 |
-
'input_height' => array(
|
1919 |
-
'type' => 'spinner',
|
1920 |
-
'label' => __pl('text_field_height'),
|
1921 |
-
'min' => 1,
|
1922 |
-
'max' => 1000,
|
1923 |
-
'step' => 1,
|
1924 |
-
'screen' => 1,
|
1925 |
-
'css' => [
|
1926 |
-
'{{element}} input, {{element}} select, {{element}} textarea'=> 'line-height: {{val}}px; min-height: {{val}}px',
|
1927 |
-
],
|
1928 |
-
),
|
1929 |
-
'input_padding' => array(
|
1930 |
-
'type' => 'dimension',
|
1931 |
-
'label' => __pl('padding'),
|
1932 |
-
'screen' => 1,
|
1933 |
-
'default' => '10,10',
|
1934 |
-
'css' => [
|
1935 |
-
'{{element}} input, {{element}} select, {{element}} textarea'=> 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[0]}}px; padding-left:{{val[1]}}px',
|
1936 |
-
],
|
1937 |
-
),
|
1938 |
-
/* 'input_state' => array(
|
1939 |
-
'type' => 'radio',
|
1940 |
-
'label' => __pl('state'),
|
1941 |
-
'default' => '',
|
1942 |
-
'list' => [
|
1943 |
-
'' => __pl('normal'),
|
1944 |
-
'hover' => __pl('hover'),
|
1945 |
-
],
|
1946 |
-
), */
|
1947 |
-
],
|
1948 |
-
'form_style' => [
|
1949 |
-
'field_state' => array(
|
1950 |
-
'type' => 'radio',
|
1951 |
-
'label' => '',
|
1952 |
-
'default' => '',
|
1953 |
-
'list' => array(
|
1954 |
-
'' => __pl('normal'),
|
1955 |
-
'hover' => __pl('hover'),
|
1956 |
-
'focus' => __pl('focus'),
|
1957 |
-
),
|
1958 |
-
),
|
1959 |
-
'field_border_type' => array(
|
1960 |
-
'type' => 'select',
|
1961 |
-
'label' => __pl('border_type'),
|
1962 |
-
'css' => [
|
1963 |
-
'{{element}} input, {{element}} select, {{element}} textarea' => 'border-style: {{val}}',
|
1964 |
-
'{{element}} input[type="checkbox"] + label:before' => 'border-style: {{val}}'
|
1965 |
-
],
|
1966 |
-
'list' => [
|
1967 |
-
'' => __pl('none'),
|
1968 |
-
'solid' => __pl('solid'),
|
1969 |
-
'double' => __pl('double'),
|
1970 |
-
'dotted' => __pl('dotted'),
|
1971 |
-
'dashed' => __pl('dashed'),
|
1972 |
-
'groove' => __pl('groove'),
|
1973 |
-
],
|
1974 |
-
'show' => array(
|
1975 |
-
'field_state' => ''
|
1976 |
-
),
|
1977 |
-
),
|
1978 |
-
'field_border_color' => array(
|
1979 |
-
'type' => 'color',
|
1980 |
-
'label' => __pl('service_box_icon_border_color_label'),
|
1981 |
-
'default' => '#0986c0',
|
1982 |
-
'css' => [
|
1983 |
-
'{{element}} input, {{element}} select, {{element}} textarea' => 'border-color: {{val}};',
|
1984 |
-
'{{element}} input[type="checkbox"] + label:before' => 'border-color: {{val}};'
|
1985 |
-
],
|
1986 |
-
'req' => array(
|
1987 |
-
'!field_border_type' => ''
|
1988 |
-
),
|
1989 |
-
'show' => array(
|
1990 |
-
'field_state' => ''
|
1991 |
-
),
|
1992 |
-
),
|
1993 |
-
'field_border_width' => array(
|
1994 |
-
'type' => 'padding',
|
1995 |
-
'label' => __pl('border_width'),
|
1996 |
-
'screen' => 1,
|
1997 |
-
'css' => ['{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
1998 |
-
'req' => [
|
1999 |
-
'!field_border_type' => ''
|
2000 |
-
],
|
2001 |
-
'show' => array(
|
2002 |
-
'field_state' => ''
|
2003 |
-
),
|
2004 |
-
),
|
2005 |
-
'field_border_radius' => array(
|
2006 |
-
'type' => 'padding',
|
2007 |
-
'label' => __pl('border_radius'),
|
2008 |
-
'screen' => 1,
|
2009 |
-
'css' => ['{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
2010 |
-
'req' => array(
|
2011 |
-
'!field_border_type' => ''
|
2012 |
-
),
|
2013 |
-
'show' => array(
|
2014 |
-
'field_state' => ''
|
2015 |
-
),
|
2016 |
-
),
|
2017 |
-
'field_shadow' => array(
|
2018 |
-
'type' => 'box_shadow',
|
2019 |
-
'label' => __pl('text_shadow'),
|
2020 |
-
'screen' => 1,
|
2021 |
-
'css' => [
|
2022 |
-
'{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'
|
2023 |
-
],
|
2024 |
-
'show' => ['field_state' => ''],
|
2025 |
-
),
|
2026 |
-
'field_hover_delay' => array(
|
2027 |
-
'type' => 'spinner',
|
2028 |
-
'label' => __pl('service_btn_hover_delay'),
|
2029 |
-
'min' => 0,
|
2030 |
-
'step' => 100,
|
2031 |
-
'max' => 5000,
|
2032 |
-
'default' => 400,
|
2033 |
-
'css' => ['{{element}} input, {{element}} select, {{element}} textarea' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
2034 |
-
'show' => array(
|
2035 |
-
'field_state' => 'hover'
|
2036 |
-
),
|
2037 |
-
),
|
2038 |
-
'field_border_type_hover' => array(
|
2039 |
-
'type' => 'select',
|
2040 |
-
'label' => __pl('border_type'),
|
2041 |
-
'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-style: {{val}}'],
|
2042 |
-
'list' => [
|
2043 |
-
'' => __pl('none'),
|
2044 |
-
'solid' => __pl('solid'),
|
2045 |
-
'double' => __pl('double'),
|
2046 |
-
'dotted' => __pl('dotted'),
|
2047 |
-
'dashed' => __pl('dashed'),
|
2048 |
-
'groove' => __pl('groove'),
|
2049 |
-
],
|
2050 |
-
'show' => array(
|
2051 |
-
'field_state' => 'hover'
|
2052 |
-
),
|
2053 |
-
),
|
2054 |
-
'field_border_color_hover' => array(
|
2055 |
-
'type' => 'color',
|
2056 |
-
'label' => __pl('service_box_icon_border_color_label'),
|
2057 |
-
'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-color: {{val}};'],
|
2058 |
-
'default' => '#0986c0',
|
2059 |
-
'req' => array(
|
2060 |
-
'!field_border_type_hover' => ''
|
2061 |
-
),
|
2062 |
-
'show' => array(
|
2063 |
-
'field_state' => 'hover'
|
2064 |
-
),
|
2065 |
-
),
|
2066 |
-
'field_border_width_hover' => array(
|
2067 |
-
'type' => 'padding',
|
2068 |
-
'label' => __pl('border_width'),
|
2069 |
-
'screen' => 1,
|
2070 |
-
'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
2071 |
-
'req' => [
|
2072 |
-
'!field_border_type_hover' => ''
|
2073 |
-
],
|
2074 |
-
'show' => array(
|
2075 |
-
'field_state' => 'hover'
|
2076 |
-
),
|
2077 |
-
),
|
2078 |
-
'field_border_radius_hover' => array(
|
2079 |
-
'type' => 'padding',
|
2080 |
-
'label' => __pl('border_radius'),
|
2081 |
-
'screen' => 1,
|
2082 |
-
'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
2083 |
-
'req' => array(
|
2084 |
-
'!field_border_type_hover' => ''
|
2085 |
-
),
|
2086 |
-
'show' => array(
|
2087 |
-
'field_state' => 'hover'
|
2088 |
-
),
|
2089 |
-
),
|
2090 |
-
'field_shadow_hover' => array(
|
2091 |
-
'type' => 'box_shadow',
|
2092 |
-
'label' => __pl('text_shadow'),
|
2093 |
-
'screen' => 1,
|
2094 |
-
'css' => [
|
2095 |
-
'{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'
|
2096 |
-
],
|
2097 |
-
'show' => ['field_state' => 'hover'],
|
2098 |
-
),
|
2099 |
-
'field_border_type_focus' => array(
|
2100 |
-
'type' => 'select',
|
2101 |
-
'label' => __pl('border_type'),
|
2102 |
-
'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-style: {{val}}'],
|
2103 |
-
'list' => [
|
2104 |
-
'' => __pl('none'),
|
2105 |
-
'solid' => __pl('solid'),
|
2106 |
-
'double' => __pl('double'),
|
2107 |
-
'dotted' => __pl('dotted'),
|
2108 |
-
'dashed' => __pl('dashed'),
|
2109 |
-
'groove' => __pl('groove'),
|
2110 |
-
],
|
2111 |
-
'show' => array(
|
2112 |
-
'field_state' => 'focus'
|
2113 |
-
),
|
2114 |
-
),
|
2115 |
-
'field_border_color_focus' => array(
|
2116 |
-
'type' => 'color',
|
2117 |
-
'label' => __pl('service_box_icon_border_color_label'),
|
2118 |
-
'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-color: {{val}};'],
|
2119 |
-
'default' => '#0986c0',
|
2120 |
-
'req' => array(
|
2121 |
-
'!field_border_type_focus' => ''
|
2122 |
-
),
|
2123 |
-
'show' => array(
|
2124 |
-
'field_state' => 'focus'
|
2125 |
-
),
|
2126 |
-
),
|
2127 |
-
'field_border_width_focus' => array(
|
2128 |
-
'type' => 'padding',
|
2129 |
-
'label' => __pl('border_width'),
|
2130 |
-
'screen' => 1,
|
2131 |
-
'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
2132 |
-
'req' => [
|
2133 |
-
'!field_border_type_focus' => ''
|
2134 |
-
],
|
2135 |
-
'show' => array(
|
2136 |
-
'field_state' => 'focus'
|
2137 |
-
),
|
2138 |
-
),
|
2139 |
-
'field_border_radius_focus' => array(
|
2140 |
-
'type' => 'padding',
|
2141 |
-
'label' => __pl('border_radius'),
|
2142 |
-
'screen' => 1,
|
2143 |
-
'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
2144 |
-
'req' => array(
|
2145 |
-
'!field_border_type_focus' => ''
|
2146 |
-
),
|
2147 |
-
'show' => array(
|
2148 |
-
'field_state' => 'focus'
|
2149 |
-
),
|
2150 |
-
),
|
2151 |
-
'field_shadow_focus' => array(
|
2152 |
-
'type' => 'box_shadow',
|
2153 |
-
'label' => __pl('text_shadow'),
|
2154 |
-
'screen' => 1,
|
2155 |
-
'css' => [
|
2156 |
-
'{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'
|
2157 |
-
],
|
2158 |
-
'show' => ['field_state' => 'focus'],
|
2159 |
-
),
|
2160 |
-
],
|
2161 |
-
'radio_style' => [
|
2162 |
-
'form_box_color' => array(
|
2163 |
-
'type' => 'color',
|
2164 |
-
'label' => __pl('color'),
|
2165 |
-
'default' => '',
|
2166 |
-
'css' => [
|
2167 |
-
'{{element}} input[type="radio"]:checked:before' => 'color: {{val}}',
|
2168 |
-
'{{element}} input[type="checkbox"]:checked + label:before' => 'color: {{val}}'
|
2169 |
-
],
|
2170 |
-
),
|
2171 |
-
'form_box_bg_color' => array(
|
2172 |
-
'type' => 'color',
|
2173 |
-
'label' => __pl('bg_color'),
|
2174 |
-
'default' => '',
|
2175 |
-
'css' => [
|
2176 |
-
'{{element}} input[type="radio"]:checked:before' => 'background-color: {{val}}',
|
2177 |
-
'{{element}} input[type="checkbox"]:checked + label:before' => 'background-color: {{val}}'
|
2178 |
-
],
|
2179 |
-
),
|
2180 |
-
'inline_radio' => array(
|
2181 |
-
'type' => 'checkbox',
|
2182 |
-
'label' => __pl('inline'),
|
2183 |
-
'screen' => 1,
|
2184 |
-
'css' => ['{{element}} .pagelayer-radcheck-holder' => 'display:flex; align-items:center;']
|
2185 |
-
),
|
2186 |
-
'radio_padding' => array(
|
2187 |
-
'type' => 'dimension',
|
2188 |
-
'label' => __pl('padding'),
|
2189 |
-
'screen' => 1,
|
2190 |
-
'default' => '10,10',
|
2191 |
-
'css' => [
|
2192 |
-
'{{element}} input[type="checkbox"] + label:before, {{element}} input[type="radio"]'=> 'height:{{val[0]}}px; min-height:{{val[0]}}px; width:{{val[1]}}px;',
|
2193 |
-
],
|
2194 |
-
),
|
2195 |
-
'radio_spacing' => array(
|
2196 |
-
'type' => 'padding',
|
2197 |
-
'label' => __pl('space_around'),
|
2198 |
-
'screen' => 1,
|
2199 |
-
'css' => [
|
2200 |
-
'{{element}} .pagelayer-radcheck-holder>div'=> 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;',
|
2201 |
-
],
|
2202 |
-
),
|
2203 |
-
],
|
2204 |
-
'button_style' => [
|
2205 |
-
'hide_btn' => array(
|
2206 |
-
'type' => 'checkbox',
|
2207 |
-
'label' => __pl('hide_btn'),
|
2208 |
-
),
|
2209 |
-
'submit' => array(
|
2210 |
-
'type' => 'text',
|
2211 |
-
'label' => __pl('submit_button_label'),
|
2212 |
-
'default' => 'Submit',
|
2213 |
-
'edit' => '.pagelayer-btn-text',
|
2214 |
-
'req' => ['!hide_btn' => 'true'],
|
2215 |
-
),
|
2216 |
-
'btn_typo' => array(
|
2217 |
-
'type' => 'typography',
|
2218 |
-
'label' => __pl('quote_content_typo'),
|
2219 |
-
'screen' => 1,
|
2220 |
-
'css' => [
|
2221 |
-
'{{element}} .pagelayer-btn-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
2222 |
-
'{{element}} .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
2223 |
-
],
|
2224 |
-
'req' => ['!hide_btn' => 'true'],
|
2225 |
-
),
|
2226 |
-
'stretch' => array(
|
2227 |
-
'type' => 'checkbox',
|
2228 |
-
'label' => __pl('stretch_button_label'),
|
2229 |
-
'screen' => 1,
|
2230 |
-
'css' => ['{{element}} .pagelayer-contact-submit-btn' => 'width: 100%'],
|
2231 |
-
'req' => ['!hide_btn' => 'true'],
|
2232 |
-
),
|
2233 |
-
'btn_spacing' => array(
|
2234 |
-
'type' => 'padding',
|
2235 |
-
'label' => __pl('spacing'),
|
2236 |
-
'css' => ['{{element}} .pagelayer-contact-submit-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
2237 |
-
'req' => [
|
2238 |
-
'!hide_btn' => 'true',
|
2239 |
-
]
|
2240 |
-
),
|
2241 |
-
'type' => array(
|
2242 |
-
'type' => 'select',
|
2243 |
-
'label' => __pl('button_type_label'),
|
2244 |
-
'default' => 'pagelayer-btn-default',
|
2245 |
-
//'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'],
|
2246 |
-
'list' => array(
|
2247 |
-
'pagelayer-btn-default' => __pl('btn_type_default'),
|
2248 |
-
'pagelayer-btn-primary' => __pl('btn_type_primary'),
|
2249 |
-
'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
|
2250 |
-
'pagelayer-btn-success' => __pl('btn_type_success'),
|
2251 |
-
'pagelayer-btn-info' => __pl('btn_type_info'),
|
2252 |
-
'pagelayer-btn-warning' => __pl('btn_type_warning'),
|
2253 |
-
'pagelayer-btn-danger' => __pl('btn_type_danger'),
|
2254 |
-
'pagelayer-btn-dark' => __pl('btn_type_dark'),
|
2255 |
-
'pagelayer-btn-light' => __pl('btn_type_light'),
|
2256 |
-
'pagelayer-btn-link' => __pl('btn_type_link'),
|
2257 |
-
'pagelayer-btn-custom' => __pl('btn_type_custom')
|
2258 |
-
),
|
2259 |
-
'req' => ['!hide_btn' => 'true'],
|
2260 |
-
),
|
2261 |
-
'size' => array(
|
2262 |
-
'type' => 'select',
|
2263 |
-
'label' => __pl('button_size_label'),
|
2264 |
-
'default' => 'pagelayer-btn-small',
|
2265 |
-
'list' => array(
|
2266 |
-
'pagelayer-btn-mini' => __pl('mini'),
|
2267 |
-
'pagelayer-btn-small' => __pl('small'),
|
2268 |
-
'pagelayer-btn-large' => __pl('large'),
|
2269 |
-
'pagelayer-btn-extra-large' => __pl('extra_large'),
|
2270 |
-
'pagelayer-btn-double-large' => __pl('double_large'),
|
2271 |
-
'pagelayer-btn-custom' => __pl('custom'),
|
2272 |
-
),
|
2273 |
-
'req' => ['!hide_btn' => 'true'],
|
2274 |
-
),
|
2275 |
-
'btn_custom_size' => array(
|
2276 |
-
'type' => 'dimension',
|
2277 |
-
'label' => __pl('btn_custom_size'),
|
2278 |
-
'default' => '5,10',
|
2279 |
-
'screen' => 1,
|
2280 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[0]}}px; padding-left:{{val[1]}}px;'],
|
2281 |
-
'req' => array(
|
2282 |
-
'size' => 'pagelayer-btn-custom',
|
2283 |
-
'!hide_btn' => 'true'
|
2284 |
-
),
|
2285 |
-
),
|
2286 |
-
'contect_btn_align' => array(
|
2287 |
-
'type' => 'radio',
|
2288 |
-
'label' => __pl('alignment'),
|
2289 |
-
'screen' => 1,
|
2290 |
-
'css' => ['{{element}} .pagelayer-contact-submit-holder' => 'text-align:{{val}}'],
|
2291 |
-
'list' => array(
|
2292 |
-
'left' => __pl('left'),
|
2293 |
-
'center' => __pl('center'),
|
2294 |
-
'right' => __pl('right'),
|
2295 |
-
),
|
2296 |
-
'req' => ['!hide_btn' => 'true'],
|
2297 |
-
),
|
2298 |
-
'btn_hover' => array(
|
2299 |
-
'type' => 'radio',
|
2300 |
-
'label' => __pl('state'),
|
2301 |
-
'default' => '',
|
2302 |
-
//'no_val' => 1,// Dont set any value to element
|
2303 |
-
'list' => array(
|
2304 |
-
'' => __pl('normal'),
|
2305 |
-
'hover' => __pl('hover'),
|
2306 |
-
),
|
2307 |
-
'req' => array(
|
2308 |
-
'type' => 'pagelayer-btn-custom',
|
2309 |
-
'!hide_btn' => 'true'
|
2310 |
-
),
|
2311 |
-
),
|
2312 |
-
'btn_bg_color' => array(
|
2313 |
-
'type' => 'color',
|
2314 |
-
'label' => __pl('btn_bg_color_label'),
|
2315 |
-
'default' => '#0986c0',
|
2316 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'],
|
2317 |
-
'req' => array(
|
2318 |
-
'type' => 'pagelayer-btn-custom',
|
2319 |
-
),
|
2320 |
-
'show' => array(
|
2321 |
-
'btn_hover' => '',
|
2322 |
-
'!hide_btn' => 'true'
|
2323 |
-
),
|
2324 |
-
),
|
2325 |
-
'btn_color' => array(
|
2326 |
-
'type' => 'color',
|
2327 |
-
'label' => __pl('btn_color_label'),
|
2328 |
-
'default' => '#ffffff',
|
2329 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
|
2330 |
-
'req' => array(
|
2331 |
-
'type' => 'pagelayer-btn-custom',
|
2332 |
-
),
|
2333 |
-
'show' => array(
|
2334 |
-
'btn_hover' => '',
|
2335 |
-
'!hide_btn' => 'true'
|
2336 |
-
),
|
2337 |
-
),
|
2338 |
-
'btn_hover_delay' => array(
|
2339 |
-
'type' => 'spinner',
|
2340 |
-
'label' => __pl('btn_hover_delay_label'),
|
2341 |
-
'desc' => __pl('btn_hover_delay_desc'),
|
2342 |
-
'min' => 0,
|
2343 |
-
'step' => 100,
|
2344 |
-
'max' => 5000,
|
2345 |
-
'default' => 400,
|
2346 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
2347 |
-
'show' => array(
|
2348 |
-
'btn_hover' => 'hover',
|
2349 |
-
'!hide_btn' => 'true'
|
2350 |
-
),
|
2351 |
-
),
|
2352 |
-
'btn_bg_color_hover' => array(
|
2353 |
-
'type' => 'color',
|
2354 |
-
'label' => __pl('btn_bg_color_hover_label'),
|
2355 |
-
'default' => '',
|
2356 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'],
|
2357 |
-
'req' => array(
|
2358 |
-
'type' => 'pagelayer-btn-custom',
|
2359 |
-
),
|
2360 |
-
'show' => array(
|
2361 |
-
'btn_hover' => 'hover',
|
2362 |
-
'!hide_btn' => 'true'
|
2363 |
-
),
|
2364 |
-
),
|
2365 |
-
'btn_color_hover' => array(
|
2366 |
-
'type' => 'color',
|
2367 |
-
'label' => __pl('btn_color_hover_label'),
|
2368 |
-
'default' => '',
|
2369 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
|
2370 |
-
'req' => array(
|
2371 |
-
'type' => 'pagelayer-btn-custom',
|
2372 |
-
),
|
2373 |
-
'show' => array(
|
2374 |
-
'btn_hover' => 'hover',
|
2375 |
-
'!hide_btn' => 'true'
|
2376 |
-
),
|
2377 |
-
),
|
2378 |
-
],
|
2379 |
-
'icon_style' => [
|
2380 |
-
'icon' => array(
|
2381 |
-
'type' => 'icon',
|
2382 |
-
'label' => __pl('service_box_font_icon_label'),
|
2383 |
-
'default' => '',
|
2384 |
-
),
|
2385 |
-
'icon_position' => array(
|
2386 |
-
'type' => 'radio',
|
2387 |
-
'label' => __pl('alignment'),
|
2388 |
-
'default' => 'pagelayer-btn-icon-left',
|
2389 |
-
'list' => array(
|
2390 |
-
'pagelayer-btn-icon-left' => __pl('left'),
|
2391 |
-
'pagelayer-btn-icon-right' => __pl('right')
|
2392 |
-
),
|
2393 |
-
),
|
2394 |
-
'icon_spacing' => array(
|
2395 |
-
'type' => 'slider',
|
2396 |
-
'label' => __pl('icon_spacing'),
|
2397 |
-
'min' => 1,
|
2398 |
-
'step' => 1,
|
2399 |
-
'max' => 100,
|
2400 |
-
'default' => 5,
|
2401 |
-
'screen' => 1,
|
2402 |
-
'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
|
2403 |
-
'req' => array(
|
2404 |
-
'!icon' => 'none'
|
2405 |
-
),
|
2406 |
-
),
|
2407 |
-
],
|
2408 |
-
'border_style' => [
|
2409 |
-
'btn_bor_hover' => array(
|
2410 |
-
'type' => 'radio',
|
2411 |
-
'label' => __pl('state'),
|
2412 |
-
'default' => '',
|
2413 |
-
//'no_val' => 1,// Dont set any value to element
|
2414 |
-
'list' => array(
|
2415 |
-
'' => __pl('normal'),
|
2416 |
-
'hover' => __pl('hover'),
|
2417 |
-
)
|
2418 |
-
),
|
2419 |
-
'btn_border_type' => array(
|
2420 |
-
'type' => 'select',
|
2421 |
-
'label' => __pl('border_type'),
|
2422 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'],
|
2423 |
-
'list' => [
|
2424 |
-
'' => __pl('none'),
|
2425 |
-
'solid' => __pl('solid'),
|
2426 |
-
'double' => __pl('double'),
|
2427 |
-
'dotted' => __pl('dotted'),
|
2428 |
-
'dashed' => __pl('dashed'),
|
2429 |
-
'groove' => __pl('groove'),
|
2430 |
-
],
|
2431 |
-
'show' => array(
|
2432 |
-
'btn_bor_hover' => ''
|
2433 |
-
),
|
2434 |
-
),
|
2435 |
-
'btn_border_color' => array(
|
2436 |
-
'type' => 'color',
|
2437 |
-
'label' => __pl('border_color_label'),
|
2438 |
-
'default' => '#42414f',
|
2439 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'],
|
2440 |
-
'req' => array(
|
2441 |
-
'!btn_border_type' => ''
|
2442 |
-
),
|
2443 |
-
'show' => array(
|
2444 |
-
'btn_bor_hover' => ''
|
2445 |
-
),
|
2446 |
-
),
|
2447 |
-
'btn_border_width' => array(
|
2448 |
-
'type' => 'padding',
|
2449 |
-
'label' => __pl('border_width'),
|
2450 |
-
'screen' => 1,
|
2451 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
2452 |
-
'req' => [
|
2453 |
-
'!btn_border_type' => ''
|
2454 |
-
],
|
2455 |
-
'show' => array(
|
2456 |
-
'btn_bor_hover' => ''
|
2457 |
-
),
|
2458 |
-
),
|
2459 |
-
'btn_border_radius' => array(
|
2460 |
-
'type' => 'padding',
|
2461 |
-
'label' => __pl('border_radius'),
|
2462 |
-
'screen' => 1,
|
2463 |
-
'css' => ['{{element}} .pagelayer-btn-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
2464 |
-
'req' => array(
|
2465 |
-
'!btn_border_type' => ''
|
2466 |
-
),
|
2467 |
-
'show' => array(
|
2468 |
-
'btn_bor_hover' => ''
|
2469 |
-
),
|
2470 |
-
),
|
2471 |
-
'btn_border_type_hover' => array(
|
2472 |
-
'type' => 'select',
|
2473 |
-
'label' => __pl('border_type'),
|
2474 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'],
|
2475 |
-
'list' => [
|
2476 |
-
'' => __pl('none'),
|
2477 |
-
'solid' => __pl('solid'),
|
2478 |
-
'double' => __pl('double'),
|
2479 |
-
'dotted' => __pl('dotted'),
|
2480 |
-
'dashed' => __pl('dashed'),
|
2481 |
-
'groove' => __pl('groove'),
|
2482 |
-
],
|
2483 |
-
'show' => array(
|
2484 |
-
'btn_bor_hover' => 'hover'
|
2485 |
-
),
|
2486 |
-
),
|
2487 |
-
'btn_border_color_hover' => array(
|
2488 |
-
'type' => 'color',
|
2489 |
-
'label' => __pl('border_color_hover_label'),
|
2490 |
-
'default' => '#42414f',
|
2491 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'],
|
2492 |
-
'req' => array(
|
2493 |
-
'!btn_border_type_hover' => ''
|
2494 |
-
),
|
2495 |
-
'show' => array(
|
2496 |
-
'btn_bor_hover' => 'hover'
|
2497 |
-
),
|
2498 |
-
),
|
2499 |
-
'btn_border_width_hover' => array(
|
2500 |
-
'type' => 'padding',
|
2501 |
-
'label' => __pl('border_width_hover'),
|
2502 |
-
'screen' => 1,
|
2503 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
2504 |
-
'req' => [
|
2505 |
-
'!btn_border_type_hover' => ''
|
2506 |
-
],
|
2507 |
-
'show' => array(
|
2508 |
-
'btn_bor_hover' => 'hover'
|
2509 |
-
),
|
2510 |
-
),
|
2511 |
-
'btn_border_radius_hover' => array(
|
2512 |
-
'type' => 'padding',
|
2513 |
-
'label' => __pl('border_radius_hover'),
|
2514 |
-
'screen' => 1,
|
2515 |
-
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
2516 |
-
'req' => array(
|
2517 |
-
'!btn_border_type_hover' => ''
|
2518 |
-
),
|
2519 |
-
'show' => array(
|
2520 |
-
'btn_bor_hover' => 'hover'
|
2521 |
-
),
|
2522 |
-
),
|
2523 |
-
],
|
2524 |
-
'mail_template' => array(
|
2525 |
-
'contact_custom_templ' => array(
|
2526 |
-
'type' => 'checkbox',
|
2527 |
-
'label' => __pl('custom_templ'),
|
2528 |
-
),
|
2529 |
-
'templ_modal' => array(
|
2530 |
-
'type' => 'modal',
|
2531 |
-
'label' => __pl('create_mail_templ'),
|
2532 |
-
'show_group' => 'contact_templ_modal',
|
2533 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2534 |
-
),
|
2535 |
-
'to_email' => array(
|
2536 |
-
'type' => 'text',
|
2537 |
-
'label' => __pl('to_email'),
|
2538 |
-
'group' => 'contact_templ_modal',
|
2539 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2540 |
-
),
|
2541 |
-
'from_email' => array(
|
2542 |
-
'type' => 'text',
|
2543 |
-
'label' => __pl('from_email'),
|
2544 |
-
'group' => 'contact_templ_modal',
|
2545 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2546 |
-
),
|
2547 |
-
'cont_subject' => array(
|
2548 |
-
'type' => 'text',
|
2549 |
-
'label' => __pl('subject'),
|
2550 |
-
'group' => 'contact_templ_modal',
|
2551 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2552 |
-
),
|
2553 |
-
'cont_header' => array(
|
2554 |
-
'type' => 'textarea',
|
2555 |
-
'label' => __pl('additional_head'),
|
2556 |
-
'group' => 'contact_templ_modal',
|
2557 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2558 |
-
),
|
2559 |
-
'cont_body' => array(
|
2560 |
-
'type' => 'textarea',
|
2561 |
-
'label' => __pl('message_body'),
|
2562 |
-
'desc' => __pl('usr_field_desc'),
|
2563 |
-
'rows' => 4,
|
2564 |
-
'group' => 'contact_templ_modal',
|
2565 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2566 |
-
),
|
2567 |
-
'cont_use_html' => array(
|
2568 |
-
'type' => 'checkbox',
|
2569 |
-
'label' => __pl('use_html'),
|
2570 |
-
'group' => 'contact_templ_modal',
|
2571 |
-
'req' => ['contact_custom_templ' => 'true'],
|
2572 |
-
),
|
2573 |
-
),
|
2574 |
-
'styles' => [
|
2575 |
-
'label_style' => __pl('label_style'),
|
2576 |
-
'input_style' => __pl('input_style'),
|
2577 |
-
'radio_style' => __pl('radio_style'),
|
2578 |
-
'form_style' => __pl('form_style'),
|
2579 |
-
'button_style' => __pl('button_style'),
|
2580 |
-
'icon_style' => __pl('icon_style'),
|
2581 |
-
'border_style' => __pl('btn_border_style'),
|
2582 |
-
'mail_template' => __pl('mail_template'),
|
2583 |
-
]
|
2584 |
-
)
|
2585 |
-
);
|
2586 |
-
|
2587 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_contact_item', array(
|
2588 |
-
'name' => __pl('contact_item'),
|
2589 |
-
'group' => 'other',
|
2590 |
-
'not_visible' => 1,
|
2591 |
-
'html' => '{{fieldhtml}}',
|
2592 |
-
'params' => array(
|
2593 |
-
'label_name' => array(
|
2594 |
-
'type' => 'text',
|
2595 |
-
'label' => __pl('label_name'),
|
2596 |
-
'default' => 'Input Label',
|
2597 |
-
'edit' => '.pagelayer-form-label',
|
2598 |
-
),
|
2599 |
-
'field_type' => array(
|
2600 |
-
'type' => 'select',
|
2601 |
-
'label' => __pl('input_field_type'),
|
2602 |
-
'default' => 'text',
|
2603 |
-
'list' => array(
|
2604 |
-
'text' => __pl('text'),
|
2605 |
-
'email' => __pl('e-mail'),
|
2606 |
-
'number' => __pl('number'),
|
2607 |
-
'tel' => __pl('telephone'),
|
2608 |
-
'checkbox' => __pl('checkbox'),
|
2609 |
-
'radio' => __pl('radio'),
|
2610 |
-
'textarea' => __pl('textarea'),
|
2611 |
-
'select' => __pl('select'),
|
2612 |
-
'date' => __pl('date'),
|
2613 |
-
'file' => __pl('file'),
|
2614 |
-
),
|
2615 |
-
),
|
2616 |
-
'values' => array(
|
2617 |
-
'type' => 'textarea',
|
2618 |
-
'label' => __pl('values'),
|
2619 |
-
'default' => "One\nTwo",
|
2620 |
-
'show' => array(
|
2621 |
-
'field_type' => ['select', 'checkbox', 'radio']
|
2622 |
-
),
|
2623 |
-
),
|
2624 |
-
'textarea_rows' => array(
|
2625 |
-
'type' => 'spinner',
|
2626 |
-
'label' => __pl('row'),
|
2627 |
-
'default' => 6,
|
2628 |
-
'min' => 1,
|
2629 |
-
'max' => 100,
|
2630 |
-
'step' => 1,
|
2631 |
-
'screen' => 1,
|
2632 |
-
'req' => array(
|
2633 |
-
'field_type' => ['textarea']
|
2634 |
-
),
|
2635 |
-
),
|
2636 |
-
'accept_file' => array(
|
2637 |
-
'type' => 'text',
|
2638 |
-
'label' => __pl('accept_file'),
|
2639 |
-
'req' => array(
|
2640 |
-
'field_type' => ['file']
|
2641 |
-
),
|
2642 |
-
),
|
2643 |
-
'required' => array(
|
2644 |
-
'type' => 'checkbox',
|
2645 |
-
'label' => __pl('required_label'),
|
2646 |
-
'default' => '',
|
2647 |
-
),
|
2648 |
-
'label_as_holder' => array(
|
2649 |
-
'type' => 'checkbox',
|
2650 |
-
'label' => __pl('show_label_as_placeholder'),
|
2651 |
-
'default' => '',
|
2652 |
-
),
|
2653 |
-
'placeholder' => array(
|
2654 |
-
'type' => 'text',
|
2655 |
-
'label' => __pl('placeholder'),
|
2656 |
-
'default' => '',
|
2657 |
-
'show' => [
|
2658 |
-
'!label_as_holder' => 'true',
|
2659 |
-
],
|
2660 |
-
),
|
2661 |
-
'field_name' => array(
|
2662 |
-
'type' => 'text',
|
2663 |
-
'label' => __pl('input_field_name'),
|
2664 |
-
'default' => 'Fieldname',
|
2665 |
-
),
|
2666 |
-
'field_width' => array(
|
2667 |
-
'type' => 'slider',
|
2668 |
-
'label' => __pl('width'),
|
2669 |
-
'default' => 100,
|
2670 |
-
'min' => 1,
|
2671 |
-
'max' => 100,
|
2672 |
-
'step' => 1,
|
2673 |
-
'screen' => 1,
|
2674 |
-
'css' => ['{{wrap}}' => 'width:{{val}}%'],
|
2675 |
-
),
|
2676 |
-
'field_display' => array(
|
2677 |
-
'type' => 'select',
|
2678 |
-
'label' => __pl('display'),
|
2679 |
-
'screen' => 1,
|
2680 |
-
'default' => '',
|
2681 |
-
'css' => ['{{wrap}}' => 'display:{{val}}'],
|
2682 |
-
'list' => array(
|
2683 |
-
'' => __pl('full'),
|
2684 |
-
'inline-block' => __pl('inline'),
|
2685 |
-
),
|
2686 |
-
),
|
2687 |
-
'space_between' => array(
|
2688 |
-
'type' => 'padding',
|
2689 |
-
'label' => __pl('space_between'),
|
2690 |
-
'default' => ',,10,',
|
2691 |
-
'screen' => 1,
|
2692 |
-
'css' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;',
|
2693 |
-
),
|
2694 |
-
)
|
2695 |
-
)
|
2696 |
-
);
|
2697 |
-
|
2698 |
-
|
2699 |
-
|
2700 |
-
// Post Title
|
2701 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_title', array(
|
2702 |
-
'name' => __pl('post_title'),
|
2703 |
-
'group' => 'other',
|
2704 |
-
'html' => '<div class="pagelayer-post-title">
|
2705 |
-
<a class="pagelayer-ele-link" if-ext="{{link}}" href="{{{link}}}">
|
2706 |
-
<span if="{{before}}">{{before}} </span>'.pagelayer_get_the_title(false).'<span if="{{after}}"> {{after}}</span>
|
2707 |
-
</a>
|
2708 |
-
</div>',
|
2709 |
-
'params' => array(
|
2710 |
-
'before' => array(
|
2711 |
-
'type' => 'text',
|
2712 |
-
'label' => __pl('before'),
|
2713 |
-
),
|
2714 |
-
'after' => array(
|
2715 |
-
'type' => 'text',
|
2716 |
-
'label' => __pl('after'),
|
2717 |
-
),
|
2718 |
-
'link' => array(
|
2719 |
-
'type' => 'link',
|
2720 |
-
'label' => __pl('image_link_label'),
|
2721 |
-
),
|
2722 |
-
'title_color' => array(
|
2723 |
-
'type' => 'color',
|
2724 |
-
'label' => __pl('color'),
|
2725 |
-
'default' => '#0986c0',
|
2726 |
-
'css' => [
|
2727 |
-
'{{element}} .pagelayer-post-title'=> 'color:{{val}}',
|
2728 |
-
'{{element}} .pagelayer-post-title *'=> 'color:{{val}}'
|
2729 |
-
],
|
2730 |
-
),
|
2731 |
-
'typo' => array(
|
2732 |
-
'type' => 'typography',
|
2733 |
-
'label' => __pl('typography'),
|
2734 |
-
'default' => ',35,,700,,,solid,,,,',
|
2735 |
-
'screen' => 1,
|
2736 |
-
'css' => ['{{element}} .pagelayer-post-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
2737 |
-
),
|
2738 |
-
'shadow' => array(
|
2739 |
-
'type' => 'shadow',
|
2740 |
-
'label' => __pl('shadow'),
|
2741 |
-
'css' => ['{{element}} .pagelayer-post-title' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
2742 |
-
),
|
2743 |
-
'align' => array(
|
2744 |
-
'type' => 'radio',
|
2745 |
-
'label' => __pl('alignment'),
|
2746 |
-
'list' => [
|
2747 |
-
'left' => __pl('left'),
|
2748 |
-
'center' => __pl('center'),
|
2749 |
-
'right' => __pl('right'),
|
2750 |
-
],
|
2751 |
-
'css' => 'text-align: {{val}}',
|
2752 |
-
),
|
2753 |
-
)
|
2754 |
-
)
|
2755 |
-
);
|
2756 |
-
|
2757 |
-
// Post Content
|
2758 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_content', array(
|
2759 |
-
'name' => __pl('post_content'),
|
2760 |
-
'group' => 'other',
|
2761 |
-
'html' => '<div class="entry-content pagelayer-post-excerpt">{{post_content}}</div>',
|
2762 |
-
'params' => array(
|
2763 |
-
'color' => array(
|
2764 |
-
'type' => 'color',
|
2765 |
-
'label' => __pl('color'),
|
2766 |
-
'css' => ['{{element}} .pagelayer-post-excerpt' => 'color:{{val}}'],
|
2767 |
-
),
|
2768 |
-
'typo' => array(
|
2769 |
-
'type' => 'typography',
|
2770 |
-
'label' => __pl('typography'),
|
2771 |
-
'css' => ['{{element}} .pagelayer-post-excerpt' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
2772 |
-
),
|
2773 |
-
'align' => array(
|
2774 |
-
'type' => 'radio',
|
2775 |
-
'label' => __pl('alignment'),
|
2776 |
-
'list' => [
|
2777 |
-
'left' => __pl('left'),
|
2778 |
-
'center' => __pl('center'),
|
2779 |
-
'right' => __pl('right'),
|
2780 |
-
],
|
2781 |
-
'css' => 'text-align: {{val}}'
|
2782 |
-
),
|
2783 |
-
)
|
2784 |
-
)
|
2785 |
-
);
|
2786 |
-
|
2787 |
-
// Post Excerpt
|
2788 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_excerpt', array(
|
2789 |
-
'name' => __pl('post_excerpt'),
|
2790 |
-
'group' => 'other',
|
2791 |
-
'html' => '<div class="pagelayer-post-excerpt'.( pagelayer_is_live_template() ? ' pagelayer-empty-widget' : '' ).'">'.( pagelayer_is_live_template() ? '' : get_the_excerpt()).'</div>',
|
2792 |
-
'params' => array(
|
2793 |
-
'color' => array(
|
2794 |
-
'type' => 'color',
|
2795 |
-
'label' => __pl('color'),
|
2796 |
-
'css' => ['{{element}} .pagelayer-post-excerpt' => 'color:{{val}}'],
|
2797 |
-
),
|
2798 |
-
'typo' => array(
|
2799 |
-
'type' => 'typography',
|
2800 |
-
'label' => __pl('typography'),
|
2801 |
-
'screen' => 1,
|
2802 |
-
'css' => ['{{element}} .pagelayer-post-excerpt' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
2803 |
-
),
|
2804 |
-
'align' => array(
|
2805 |
-
'type' => 'radio',
|
2806 |
-
'label' => __pl('alignment'),
|
2807 |
-
'list' => [
|
2808 |
-
'left' => __pl('left'),
|
2809 |
-
'center' => __pl('center'),
|
2810 |
-
'right' => __pl('right'),
|
2811 |
-
],
|
2812 |
-
'css' => 'text-align: {{val}}',
|
2813 |
-
),
|
2814 |
-
)
|
2815 |
-
)
|
2816 |
-
);
|
2817 |
-
|
2818 |
-
// Featured Image
|
2819 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_featured_img', array(
|
2820 |
-
'name' => __pl('featured_img'),
|
2821 |
-
'group' => 'other',
|
2822 |
-
'html' => '<a if-ext="{{link_type}}" href="{{func_link}}" class="pagelayer-ele-link" pagelayer-image-link-type="{{link_type}}">
|
2823 |
-
<div class="pagelayer-featured-img">{{img_html}}</div>
|
2824 |
-
</a>
|
2825 |
-
<p if="{{caption}}" class="pagelayer-featured-caption">{{caption}}</p>',
|
2826 |
-
'params' => array(
|
2827 |
-
'img' => array(
|
2828 |
-
'label' => __pl('fallback_img'),
|
2829 |
-
'type' => 'image',
|
2830 |
-
),
|
2831 |
-
'size' => array(
|
2832 |
-
'label' => __pl('obj_image_size_label'),
|
2833 |
-
'type' => 'select',
|
2834 |
-
'default' => 'full',
|
2835 |
-
'list' => array(
|
2836 |
-
'full' => __pl('full'),
|
2837 |
-
'large' => __pl('large'),
|
2838 |
-
'medium' => __pl('medium'),
|
2839 |
-
'thumbnail' => __pl('thumbnail'),
|
2840 |
-
'custom' => __pl('custom')
|
2841 |
-
)
|
2842 |
-
),
|
2843 |
-
'custom_size' => array(
|
2844 |
-
'type' => 'dimension',
|
2845 |
-
'units' => ['px', '%'],
|
2846 |
-
'screen' => 1,
|
2847 |
-
'label' => __pl('image_custom_size_label'),
|
2848 |
-
'css' => ['{{element}} img' => 'width: {{val[0]}}; height: {{val[1]}};'],
|
2849 |
-
'req' => ['size' => 'custom']
|
2850 |
-
),
|
2851 |
-
'align' => array(
|
2852 |
-
'type' => 'radio',
|
2853 |
-
'label' => __pl('alignment'),
|
2854 |
-
'screen' => 1,
|
2855 |
-
'list' => [
|
2856 |
-
'left' => __pl('left'),
|
2857 |
-
'center' => __pl('center'),
|
2858 |
-
'right' => __pl('right'),
|
2859 |
-
],
|
2860 |
-
'css' => 'text-align: {{val}}',
|
2861 |
-
),
|
2862 |
-
'img_filter' => array(
|
2863 |
-
'type' => 'filter',
|
2864 |
-
'label' => __pl('filter'),
|
2865 |
-
'default' => '0,100,100,0,0,100,100',
|
2866 |
-
'css' => ['{{element}} img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'],
|
2867 |
-
),
|
2868 |
-
'img_shadow' => array(
|
2869 |
-
'type' => 'box_shadow',
|
2870 |
-
'label' => __pl('shadow'),
|
2871 |
-
'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
2872 |
-
),
|
2873 |
-
),
|
2874 |
-
'link_settings' => [
|
2875 |
-
'link_type' => array(
|
2876 |
-
'label' => __pl('image_link_label'),
|
2877 |
-
'type' => 'select',
|
2878 |
-
'default' => '',
|
2879 |
-
'list' => array(
|
2880 |
-
'' => __pl('none'),
|
2881 |
-
'custom_url' => __pl('custom_url'),
|
2882 |
-
'media_file' => __pl('media_file'),
|
2883 |
-
'lightbox' => __pl('lightbox')
|
2884 |
-
)
|
2885 |
-
),
|
2886 |
-
'link' => array(
|
2887 |
-
'label' => __pl('image_link_label'),
|
2888 |
-
'desc' => __pl('image_link_desc'),
|
2889 |
-
'type' => 'link',
|
2890 |
-
'req' => array(
|
2891 |
-
'link_type' => 'custom_url'
|
2892 |
-
)
|
2893 |
-
),
|
2894 |
-
'rel' => array(
|
2895 |
-
'label' => __pl('image_rel_label'),
|
2896 |
-
'type' => 'text',
|
2897 |
-
'default' => '',
|
2898 |
-
'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'],
|
2899 |
-
'req' => array(
|
2900 |
-
'link_type' => 'media_file'
|
2901 |
-
)
|
2902 |
-
),
|
2903 |
-
'target' => array(
|
2904 |
-
'label' => __pl('open_link_in_new_window'),
|
2905 |
-
'type' => 'checkbox',
|
2906 |
-
'addAttr' => ['{{element}} a' => 'target="_blank"'],
|
2907 |
-
'req' => array(
|
2908 |
-
'link_type' => ['custom_url', 'media_file']
|
2909 |
-
)
|
2910 |
-
),
|
2911 |
-
],
|
2912 |
-
'caption_style' => [
|
2913 |
-
'caption' => array(
|
2914 |
-
'label' => __pl('gallery_grid_caption_label'),
|
2915 |
-
'desc' => __pl('gallery_grid_caption_desc'),
|
2916 |
-
'type' => 'text',
|
2917 |
-
),
|
2918 |
-
'caption_color' => array(
|
2919 |
-
'label' => __pl('Caption Color'),
|
2920 |
-
'type' => 'color',
|
2921 |
-
'default' => '#0986c0',
|
2922 |
-
'css' => ['{{element}} .pagelayer-featured-caption' => 'color: {{val}}'],
|
2923 |
-
),
|
2924 |
-
'caption_typo' => array(
|
2925 |
-
'type' => 'typography',
|
2926 |
-
'label' => __pl('typography'),
|
2927 |
-
'screen' => 1,
|
2928 |
-
'css' => ['{{element}} .pagelayer-featured-caption' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
2929 |
-
),
|
2930 |
-
],
|
2931 |
-
'border_style' => [
|
2932 |
-
'f_border_hover' => array(
|
2933 |
-
'type' => 'radio',
|
2934 |
-
'label' => '',
|
2935 |
-
'default' => '',
|
2936 |
-
'list' => array(
|
2937 |
-
'' => __pl('normal'),
|
2938 |
-
'hover' => __pl('hover'),
|
2939 |
-
),
|
2940 |
-
),
|
2941 |
-
'img_border_type' => array(
|
2942 |
-
'type' => 'select',
|
2943 |
-
'label' => __pl('border_type'),
|
2944 |
-
'css' => ['{{element}} img' => 'border-style: {{val}}'],
|
2945 |
-
'list' => [
|
2946 |
-
'' => __pl('none'),
|
2947 |
-
'solid' => __pl('solid'),
|
2948 |
-
'double' => __pl('double'),
|
2949 |
-
'dotted' => __pl('dotted'),
|
2950 |
-
'dashed' => __pl('dashed'),
|
2951 |
-
'groove' => __pl('groove'),
|
2952 |
-
],
|
2953 |
-
'show' => array(
|
2954 |
-
'f_border_hover' => ''
|
2955 |
-
),
|
2956 |
-
),
|
2957 |
-
'img_border_color' => array(
|
2958 |
-
'type' => 'color',
|
2959 |
-
'label' => __pl('service_box_icon_border_color_label'),
|
2960 |
-
'default' => '#0986c0',
|
2961 |
-
'css' => ['{{element}} img' => 'border-color: {{val}};'],
|
2962 |
-
'req' => array(
|
2963 |
-
'!img_border_type' => ''
|
2964 |
-
),
|
2965 |
-
'show' => array(
|
2966 |
-
'f_border_hover' => ''
|
2967 |
-
),
|
2968 |
-
),
|
2969 |
-
'img_border_width' => array(
|
2970 |
-
'type' => 'padding',
|
2971 |
-
'label' => __pl('border_width'),
|
2972 |
-
'screen' => 1,
|
2973 |
-
'css' => ['{{element}} img' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
2974 |
-
'req' => [
|
2975 |
-
'!img_border_type' => ''
|
2976 |
-
],
|
2977 |
-
'show' => array(
|
2978 |
-
'f_border_hover' => ''
|
2979 |
-
),
|
2980 |
-
),
|
2981 |
-
'img_border_radius' => array(
|
2982 |
-
'type' => 'padding',
|
2983 |
-
'label' => __pl('border_radius'),
|
2984 |
-
'screen' => 1,
|
2985 |
-
'css' => ['{{element}} img' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
2986 |
-
'show' => array(
|
2987 |
-
'f_border_hover' => ''
|
2988 |
-
),
|
2989 |
-
),
|
2990 |
-
'img_hover_delay' => array(
|
2991 |
-
'type' => 'spinner',
|
2992 |
-
'label' => __pl('service_btn_hover_delay'),
|
2993 |
-
'min' => 0,
|
2994 |
-
'step' => 100,
|
2995 |
-
'max' => 2000,
|
2996 |
-
'default' => 400,
|
2997 |
-
'css' => ['{{element}} img' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
2998 |
-
'show' => ['f_border_hover' => 'hover'],
|
2999 |
-
),
|
3000 |
-
'img_border_type_hover' => array(
|
3001 |
-
'type' => 'select',
|
3002 |
-
'label' => __pl('border_type'),
|
3003 |
-
'css' => ['{{element}} img:hover' => 'border-style: {{val}}'],
|
3004 |
-
'list' => [
|
3005 |
-
'' => __pl('none'),
|
3006 |
-
'solid' => __pl('solid'),
|
3007 |
-
'double' => __pl('double'),
|
3008 |
-
'dotted' => __pl('dotted'),
|
3009 |
-
'dashed' => __pl('dashed'),
|
3010 |
-
'groove' => __pl('groove'),
|
3011 |
-
],
|
3012 |
-
'show' => array(
|
3013 |
-
'f_border_hover' => 'hover'
|
3014 |
-
),
|
3015 |
-
),
|
3016 |
-
'img_border_color_hover' => array(
|
3017 |
-
'type' => 'color',
|
3018 |
-
'label' => __pl('service_box_icon_border_color_label'),
|
3019 |
-
'css' => ['{{element}} img:hover' => 'border-color: {{val}};'],
|
3020 |
-
'default' => '#0986c0',
|
3021 |
-
'req' => array(
|
3022 |
-
'!img_border_type_hover' => ''
|
3023 |
-
),
|
3024 |
-
'show' => array(
|
3025 |
-
'f_border_hover' => 'hover'
|
3026 |
-
),
|
3027 |
-
),
|
3028 |
-
'img_border_width_hover' => array(
|
3029 |
-
'type' => 'padding',
|
3030 |
-
'label' => __pl('border_width'),
|
3031 |
-
'screen' => 1,
|
3032 |
-
'css' => ['{{element}} img:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
3033 |
-
'req' => [
|
3034 |
-
'!img_border_type_hover' => ''
|
3035 |
-
],
|
3036 |
-
'show' => array(
|
3037 |
-
'f_border_hover' => 'hover'
|
3038 |
-
),
|
3039 |
-
),
|
3040 |
-
'img_border_radius_hover' => array(
|
3041 |
-
'type' => 'padding',
|
3042 |
-
'label' => __pl('border_radius'),
|
3043 |
-
'screen' => 1,
|
3044 |
-
'css' => ['{{element}} img:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
3045 |
-
'show' => array(
|
3046 |
-
'f_border_hover' => 'hover'
|
3047 |
-
),
|
3048 |
-
),
|
3049 |
-
],
|
3050 |
-
'styles' => [
|
3051 |
-
'caption_style' => __pl('caption_style'),
|
3052 |
-
'link_settings' => __pl('link_settings'),
|
3053 |
-
'border_style' => __pl('border_style')
|
3054 |
-
]
|
3055 |
-
)
|
3056 |
-
);
|
3057 |
-
|
3058 |
-
// Post info
|
3059 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_info', array(
|
3060 |
-
'name' => __pl('post_info'),
|
3061 |
-
'group' => 'other',
|
3062 |
-
'has_group' => [
|
3063 |
-
'section' => 'params',
|
3064 |
-
'prop' => 'elements',
|
3065 |
-
],
|
3066 |
-
'holder' => '.pagelayer-post-info-container',
|
3067 |
-
'html' => '<div class="pagelayer-post-info-container pagelayer-post-info-{{layout}}"></div>',
|
3068 |
-
'params' => array(
|
3069 |
-
'elements' => array(
|
3070 |
-
'type' => 'group',
|
3071 |
-
'label' => __pl('post_info_list'),
|
3072 |
-
'sc' => PAGELAYER_SC_PREFIX.'_post_info_list',
|
3073 |
-
'item_label' => array(
|
3074 |
-
'default' => __pl('info_list'),
|
3075 |
-
'param' => 'type',
|
3076 |
-
),
|
3077 |
-
'count' => 1,
|
3078 |
-
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('post_info'))),
|
3079 |
-
),
|
3080 |
-
'layout' => array(
|
3081 |
-
'type' => 'select',
|
3082 |
-
'label' => __pl('layout'),
|
3083 |
-
'default' => 'vertical',
|
3084 |
-
'list' => array(
|
3085 |
-
'horizontal' => __pl('horizontal'),
|
3086 |
-
'vertical' => __pl('vertical'),
|
3087 |
-
),
|
3088 |
-
),
|
3089 |
-
'space_between' => array(
|
3090 |
-
'type' => 'slider',
|
3091 |
-
'label' => __pl('list_spacing_label'),
|
3092 |
-
'default' => 15,
|
3093 |
-
'screen' => 1,
|
3094 |
-
'css' => ['{{element}} .pagelayer-post-info-vertical .pagelayer-post-info-list-container' => 'margin-right:{{val}}px',
|
3095 |
-
'{{element}} .pagelayer-post-info-horizontal .pagelayer-post-info-list-container' => 'margin-bottom:{{val}}px']
|
3096 |
-
),
|
3097 |
-
'align' => array(
|
3098 |
-
'type' => 'radio',
|
3099 |
-
'label' => __pl('alignment'),
|
3100 |
-
'default' => 'left',
|
3101 |
-
'screen' => 1,
|
3102 |
-
'list' => array(
|
3103 |
-
'left' => __pl('left'),
|
3104 |
-
'center' => __pl('center'),
|
3105 |
-
'right' => __pl('right'),
|
3106 |
-
),
|
3107 |
-
'css' => ['{{element}} .pagelayer-post-info-container' => 'text-align:{{val}}']
|
3108 |
-
),
|
3109 |
-
),
|
3110 |
-
'icon_style' => array(
|
3111 |
-
'icon_size' => array(
|
3112 |
-
'type' => 'slider',
|
3113 |
-
'label' => __pl('font_size'),
|
3114 |
-
'units' => ['px', 'em', '%'],
|
3115 |
-
'screen' => 1,
|
3116 |
-
'css' => ['{{element}} .pagelayer-post-info-icon span' => 'font-size:{{val}}'],
|
3117 |
-
),
|
3118 |
-
'icon_colors' => array(
|
3119 |
-
'type' => 'radio',
|
3120 |
-
'label' => __pl('color'),
|
3121 |
-
'default' => 'normal',
|
3122 |
-
'list' => array(
|
3123 |
-
'normal' => __pl('normal'),
|
3124 |
-
'hover' => __pl('hover'),
|
3125 |
-
),
|
3126 |
-
),
|
3127 |
-
'icon_color_normal' => array(
|
3128 |
-
'type' => 'color',
|
3129 |
-
'label' => __pl('color'),
|
3130 |
-
'css' => ['{{element}} .pagelayer-post-info-icon span' => 'color:{{val}}'],
|
3131 |
-
'show' => ['icon_colors' => 'normal']
|
3132 |
-
),
|
3133 |
-
'icon_color_hover' => array(
|
3134 |
-
'type' => 'color',
|
3135 |
-
'label' => __pl('color'),
|
3136 |
-
'css' => ['{{element}} .pagelayer-post-info-icon span:hover' => 'color:{{val}}'],
|
3137 |
-
'show' => ['icon_colors' => 'hover']
|
3138 |
-
),
|
3139 |
-
),
|
3140 |
-
'text_style' => array(
|
3141 |
-
'input_typo' => array(
|
3142 |
-
'type' => 'typography',
|
3143 |
-
'label' => __pl('typography'),
|
3144 |
-
'screen' => 1,
|
3145 |
-
'css' => ['{{element}} .pagelayer-post-info-list-container a' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
3146 |
-
),
|
3147 |
-
'text_colors' => array(
|
3148 |
-
'type' => 'radio',
|
3149 |
-
'label' => __pl('color'),
|
3150 |
-
'default' => 'normal',
|
3151 |
-
'list' => array(
|
3152 |
-
'normal' => __pl('normal'),
|
3153 |
-
'hover' => __pl('hover'),
|
3154 |
-
),
|
3155 |
-
),
|
3156 |
-
'text_color_normal' => array(
|
3157 |
-
'type' => 'color',
|
3158 |
-
'label' => __pl('color'),
|
3159 |
-
'css' => ['{{element}} .pagelayer-post-info-label' => 'color:{{val}}',
|
3160 |
-
'{{element}} .pagelayer-post-info-label a' => 'color:{{val}}'],
|
3161 |
-
'show' => ['text_colors' => 'normal']
|
3162 |
-
),
|
3163 |
-
'text_color_hover' => array(
|
3164 |
-
'type' => 'color',
|
3165 |
-
'label' => __pl('color'),
|
3166 |
-
'css' => ['{{element}} .pagelayer-post-info-label:hover' => 'color:{{val}}',
|
3167 |
-
'{{element}} .pagelayer-post-info-label:hover a' => 'color:{{val}}'],
|
3168 |
-
'show' => ['text_colors' => 'hover']
|
3169 |
-
),
|
3170 |
-
),
|
3171 |
-
'styles' => array(
|
3172 |
-
'icon_style' => __pl('icon_style'),
|
3173 |
-
'text_style' => __pl('text_style'),
|
3174 |
-
),
|
3175 |
-
)
|
3176 |
-
);
|
3177 |
-
|
3178 |
-
// Post info list
|
3179 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_info_list', array(
|
3180 |
-
'name' => __pl('post_info_list'),
|
3181 |
-
'group' => 'other',
|
3182 |
-
'html' => '<div class="pagelayer-post-info-list-container">
|
3183 |
-
<a if-ext="{{info_link}}" href="{{link}}" class="pagelayer-post-info-list-link">
|
3184 |
-
<span class="pagelayer-post-info-icon">
|
3185 |
-
<span if="{{info_icon_on}}" class="{{info_icon}}"></span>
|
3186 |
-
<img class="pagelayer-img" if="{{info_avatar}}" src="{{avatar_url}}"></span>
|
3187 |
-
</span>
|
3188 |
-
<span if="{{info_before}}" class="pagelayer-post-info-before">{{info_before}}</span>
|
3189 |
-
<span class="pagelayer-post-info-label">{{post_info_content}}</span>
|
3190 |
-
</a>
|
3191 |
-
</div>',
|
3192 |
-
'not_visible' => 1,
|
3193 |
-
'params' => array(
|
3194 |
-
'type' => array(
|
3195 |
-
'type' => 'select',
|
3196 |
-
'label' => __pl('type'),
|
3197 |
-
'default' => 'author',
|
3198 |
-
'list' => array(
|
3199 |
-
'author' => __pl('author'),
|
3200 |
-
'date' => __pl('date'),
|
3201 |
-
'time' => __pl('time'),
|
3202 |
-
'comments' => __pl('comments'),
|
3203 |
-
'terms' => __pl('Terms'),
|
3204 |
-
'custom' => __pl('custom'),
|
3205 |
-
),
|
3206 |
-
),
|
3207 |
-
'date_format' => array(
|
3208 |
-
'type' => 'select',
|
3209 |
-
'label' => __pl('date_format'),
|
3210 |
-
'default' => 'default',
|
3211 |
-
'list' => array(
|
3212 |
-
'default' => __pl('default'),
|
3213 |
-
'0' => 'F j, Y',
|
3214 |
-
'1' => 'Y-m-d',
|
3215 |
-
'2' => 'm/d/Y',
|
3216 |
-
'3' => 'd/m/Y',
|
3217 |
-
'custom' => __pl('custom'),
|
3218 |
-
),
|
3219 |
-
'req' => ['type' => 'date'],
|
3220 |
-
),
|
3221 |
-
'date_format_custom' => array(
|
3222 |
-
'type' => 'text',
|
3223 |
-
'label' => __pl('custom_date_format'),
|
3224 |
-
'default' => 's - M -Y',
|
3225 |
-
'req' => ['date_format' => 'custom', 'type' => 'date'],
|
3226 |
-
),
|
3227 |
-
'time_format' => array(
|
3228 |
-
'type' => 'select',
|
3229 |
-
'label' => __pl('time_format'),
|
3230 |
-
'default' => 'default',
|
3231 |
-
'list' => array(
|
3232 |
-
'default' => __pl('default'),
|
3233 |
-
'0' => 'g:i a',
|
3234 |
-
'1' => 'g:i A',
|
3235 |
-
'2' => 'H:i',
|
3236 |
-
'custom' => __pl('custom'),
|
3237 |
-
),
|
3238 |
-
'req' => ['type' => 'time'],
|
3239 |
-
),
|
3240 |
-
'time_format_custom' => array(
|
3241 |
-
'type' => 'text',
|
3242 |
-
'label' => __pl('custom_time_format'),
|
3243 |
-
'default' => 'g:i a',
|
3244 |
-
'req' => ['time_format' => 'custom', 'type' => 'time'],
|
3245 |
-
),
|
3246 |
-
'taxonomy' => array(
|
3247 |
-
'type' => 'select',
|
3248 |
-
'label' => __pl('Post_taxonomy'),
|
3249 |
-
'default' => 'category',
|
3250 |
-
'list' => pagelayer_tax_list(),
|
3251 |
-
'req' => ['type' => 'terms'],
|
3252 |
-
),
|
3253 |
-
'type_custom' => array(
|
3254 |
-
'type' => 'text',
|
3255 |
-
'label' => __pl('custom'),
|
3256 |
-
'req' => ['type' => 'custom'],
|
3257 |
-
),
|
3258 |
-
'info_before' => array(
|
3259 |
-
'type' => 'text',
|
3260 |
-
'label' => __pl('before'),
|
3261 |
-
),
|
3262 |
-
'info_avatar' => array(
|
3263 |
-
'type' => 'checkbox',
|
3264 |
-
'label' => __pl('avatar_style'),
|
3265 |
-
'req' => ['type' => 'author'],
|
3266 |
-
),
|
3267 |
-
'info_avatar_size' => array(
|
3268 |
-
'type' => 'slider',
|
3269 |
-
'label' => __pl('obj_size_label'),
|
3270 |
-
'default' => 22,
|
3271 |
-
'screen' => 1,
|
3272 |
-
'css' => ['{{element}} .pagelayer-post-info-icon img' => 'height:{{val}}px;width:{{val}}px;border-radius:50%;display:inline-block;'],
|
3273 |
-
'req' => ['info_avatar' => 'true', 'type' => 'author'],
|
3274 |
-
),
|
3275 |
-
'info_link' => array(
|
3276 |
-
'type' => 'checkbox',
|
3277 |
-
'label' => __pl('link_settings'),
|
3278 |
-
'default' => true,
|
3279 |
-
'req' => ['!type' => 'time'],
|
3280 |
-
),
|
3281 |
-
'info_custom_link' => array(
|
3282 |
-
'type' => 'text',
|
3283 |
-
'label' => __pl('custom_link'),
|
3284 |
-
'default' => '#',
|
3285 |
-
'req' => ['type' => 'custom'],
|
3286 |
-
),
|
3287 |
-
'info_icon_on' => array(
|
3288 |
-
'type' => 'checkbox',
|
3289 |
-
'label' => __pl('icon'),
|
3290 |
-
'default' => true,
|
3291 |
-
'req' => ['info_avatar' => ''],
|
3292 |
-
),
|
3293 |
-
'info_icon' => array(
|
3294 |
-
'type' => 'icon',
|
3295 |
-
'label' => __pl('icon_list'),
|
3296 |
-
'default' => 'fas fa-user-circle',
|
3297 |
-
'req' => ['info_icon_on' => 'true', 'info_avatar' => ''],
|
3298 |
-
),
|
3299 |
-
),
|
3300 |
-
)
|
3301 |
-
);
|
3302 |
-
|
3303 |
-
// Post navigation
|
3304 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_nav', array(
|
3305 |
-
'name' => __pl('post_nav'),
|
3306 |
-
'group' => 'other',
|
3307 |
-
'html' => '<div class="pagelayer-post-nav-container">
|
3308 |
-
<div class="pagelayer-prev-post">
|
3309 |
-
{{prev_link}}
|
3310 |
-
</div>
|
3311 |
-
<div class="pagelayer-post-nav-separator"></div>
|
3312 |
-
<div class="pagelayer-next-post">
|
3313 |
-
{{next_link}}
|
3314 |
-
</div>
|
3315 |
-
</div>',
|
3316 |
-
'params' => array(
|
3317 |
-
'in_same_term' => array(
|
3318 |
-
'type' => 'checkbox',
|
3319 |
-
'label' => __pl('in_same_term'),
|
3320 |
-
'default' => '',
|
3321 |
-
),
|
3322 |
-
'taxonomies' => array(
|
3323 |
-
'type' => 'select',
|
3324 |
-
'label' => __pl('Post_taxonomy'),
|
3325 |
-
'default' => 'category',
|
3326 |
-
'list' => pagelayer_tax_list(),
|
3327 |
-
'req' => ['in_same_term' => 'true'],
|
3328 |
-
),
|
3329 |
-
),
|
3330 |
-
'nav_label' => array(
|
3331 |
-
'lables' => array(
|
3332 |
-
'type' => 'checkbox',
|
3333 |
-
'label' => __pl('label'),
|
3334 |
-
'default' => 'true',
|
3335 |
-
),
|
3336 |
-
'prev_label' => array(
|
3337 |
-
'type' => 'text',
|
3338 |
-
'label' => __pl('prev_label'),
|
3339 |
-
'default' => __pl('Previous'),
|
3340 |
-
'req' => ['lables' => 'true'],
|
3341 |
-
),
|
3342 |
-
'next_label' => array(
|
3343 |
-
'type' => 'text',
|
3344 |
-
'label' => __pl('next_label'),
|
3345 |
-
'default' => __pl('Next'),
|
3346 |
-
'req' => ['lables' => 'true'],
|
3347 |
-
),
|
3348 |
-
'label_colors' => array(
|
3349 |
-
'type' => 'radio',
|
3350 |
-
'label' => __pl('color'),
|
3351 |
-
'default' => 'normal',
|
3352 |
-
'list' => array(
|
3353 |
-
'normal' => __pl('normal'),
|
3354 |
-
'hover' => __pl('hover'),
|
3355 |
-
),
|
3356 |
-
'req' => ['lables' => 'true'],
|
3357 |
-
),
|
3358 |
-
'label_color' => array(
|
3359 |
-
'type' => 'color',
|
3360 |
-
'label' => __pl('color'),
|
3361 |
-
'css' => ['{{element}} .pagelayer-post-nav-link' => 'color:{{val}}'],
|
3362 |
-
'show' => ['label_colors' => 'normal'],
|
3363 |
-
'req' => ['lables' => 'true'],
|
3364 |
-
),
|
3365 |
-
'label_hover_color' => array(
|
3366 |
-
'type' => 'color',
|
3367 |
-
'label' => __pl('color'),
|
3368 |
-
'css' => ['{{element}} .pagelayer-post-nav-link:hover' => 'color:{{val}}'],
|
3369 |
-
'show' => ['label_colors' => 'hover'],
|
3370 |
-
'req' => ['lables' => 'true'],
|
3371 |
-
),
|
3372 |
-
'label_typo' => array(
|
3373 |
-
'type' => 'typography',
|
3374 |
-
'label' => __pl('typography'),
|
3375 |
-
'screen' => 1,
|
3376 |
-
'css' => ['{{element}} .pagelayer-post-nav-link' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
3377 |
-
'req' => ['lables' => 'true'],
|
3378 |
-
),
|
3379 |
-
|
3380 |
-
),
|
3381 |
-
'nav_title' => array(
|
3382 |
-
'post_title' => array(
|
3383 |
-
'type' => 'checkbox',
|
3384 |
-
'label' => __pl('post_title'),
|
3385 |
-
'default' => 'true',
|
3386 |
-
),
|
3387 |
-
'title_colors' => array(
|
3388 |
-
'type' => 'radio',
|
3389 |
-
'label' => __pl('color'),
|
3390 |
-
'default' => 'normal',
|
3391 |
-
'list' => array(
|
3392 |
-
'normal' => __pl('normal'),
|
3393 |
-
'hover' => __pl('hover'),
|
3394 |
-
),
|
3395 |
-
'req' => ['post_title' => 'true'],
|
3396 |
-
),
|
3397 |
-
'title_color' => array(
|
3398 |
-
'type' => 'color',
|
3399 |
-
'label' => __pl('color'),
|
3400 |
-
'css' => ['{{element}} .pagelayer-post-nav-title' => 'color:{{val}}'],
|
3401 |
-
'show' => ['title_colors' => 'normal'],
|
3402 |
-
'req' => ['post_title' => 'true'],
|
3403 |
-
),
|
3404 |
-
'title_hover_color' => array(
|
3405 |
-
'type' => 'color',
|
3406 |
-
'label' => __pl('color'),
|
3407 |
-
'css' => ['{{element}} .pagelayer-post-nav-title:hover' => 'color:{{val}}'],
|
3408 |
-
'show' => ['title_colors' => 'hover'],
|
3409 |
-
'req' => ['post_title' => 'true'],
|
3410 |
-
),
|
3411 |
-
'title_typo' => array(
|
3412 |
-
'type' => 'typography',
|
3413 |
-
'label' => __pl('typography'),
|
3414 |
-
'screen' => 1,
|
3415 |
-
'css' => ['{{element}} .pagelayer-post-nav-title' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
3416 |
-
'req' => ['post_title' => 'true'],
|
3417 |
-
),
|
3418 |
-
),
|
3419 |
-
'nav_icon' => array(
|
3420 |
-
'arrows' => array(
|
3421 |
-
'type' => 'checkbox',
|
3422 |
-
'label' => __pl('arrows'),
|
3423 |
-
'default' => 'true',
|
3424 |
-
),
|
3425 |
-
'arrows_list' => array(
|
3426 |
-
'type' => 'select',
|
3427 |
-
'label' => __pl('arrows_list'),
|
3428 |
-
'default' => 'angle',
|
3429 |
-
'list' => array(
|
3430 |
-
'angle' => __pl('angle'),
|
3431 |
-
'arrow' => __pl('Arrow'),
|
3432 |
-
'angle-double' => __pl('angle_double'),
|
3433 |
-
'arrow-circle' => __pl('arrow_circle'),
|
3434 |
-
'arrow-circle-o' => __pl('arrow_circle_O'),
|
3435 |
-
'chevron' => __pl('chevron'),
|
3436 |
-
'chevron-circle' => __pl('chevron_circle'),
|
3437 |
-
'caret' => __pl('caret'),
|
3438 |
-
'long-arrow' => __pl('long_arrow'),
|
3439 |
-
),
|
3440 |
-
'req' => ['arrows' => 'true'],
|
3441 |
-
),
|
3442 |
-
'icon_colors' => array(
|
3443 |
-
'type' => 'radio',
|
3444 |
-
'label' => __pl('color'),
|
3445 |
-
'default' => 'normal',
|
3446 |
-
'list' => array(
|
3447 |
-
'normal' => __pl('normal'),
|
3448 |
-
'hover' => __pl('hover'),
|
3449 |
-
),
|
3450 |
-
'req' => ['arrows' => 'true'],
|
3451 |
-
),
|
3452 |
-
'icon_color' => array(
|
3453 |
-
'type' => 'color',
|
3454 |
-
'label' => __pl('color'),
|
3455 |
-
'css' => ['{{element}} .pagelayer-post-nav-icon' => 'color:{{val}}'],
|
3456 |
-
'show' => ['icon_colors' => 'normal'],
|
3457 |
-
'req' => ['arrows' => 'true'],
|
3458 |
-
),
|
3459 |
-
'icon_hover_color' => array(
|
3460 |
-
'type' => 'color',
|
3461 |
-
'label' => __pl('color'),
|
3462 |
-
'css' => ['{{element}} .pagelayer-post-nav-icon:hover' => 'color:{{val}}'],
|
3463 |
-
'show' => ['icon_colors' => 'hover'],
|
3464 |
-
'req' => ['arrows' => 'true'],
|
3465 |
-
),
|
3466 |
-
'icon_size' => array(
|
3467 |
-
'type' => 'slider',
|
3468 |
-
'label' => __pl('font_size'),
|
3469 |
-
'screen' => 1,
|
3470 |
-
'css' => ['{{element}} .pagelayer-post-nav-icon' => 'font-size:{{val}}px'],
|
3471 |
-
'req' => ['arrows' => 'true'],
|
3472 |
-
),
|
3473 |
-
),
|
3474 |
-
'nav_sep' => array(
|
3475 |
-
'sep_color' => array(
|
3476 |
-
'type' => 'color',
|
3477 |
-
'label' => __pl('color'),
|
3478 |
-
'default' => '#bdbdbd',
|
3479 |
-
'css' => ['{{element}} .pagelayer-post-nav-separator' => 'background-color:{{val}}'],
|
3480 |
-
),
|
3481 |
-
'sep_rotate' => array(
|
3482 |
-
'type' => 'slider',
|
3483 |
-
'label' => __pl('Rotate'),
|
3484 |
-
'default' => 20,
|
3485 |
-
'max' => 360,
|
3486 |
-
'screen' => 1,
|
3487 |
-
'css' => ['{{element}} .pagelayer-post-nav-separator' => 'transform: rotate({{val}}deg);'],
|
3488 |
-
),
|
3489 |
-
'sep_width' => array(
|
3490 |
-
'type' => 'slider',
|
3491 |
-
'label' => __pl('width'),
|
3492 |
-
'default' => 1,
|
3493 |
-
'max' => 10,
|
3494 |
-
'screen' => 1,
|
3495 |
-
'css' => ['{{element}} .pagelayer-post-nav-separator' => 'width: {{val}}px;'],
|
3496 |
-
),
|
3497 |
-
|
3498 |
-
),
|
3499 |
-
'styles' => array(
|
3500 |
-
'nav_label' => __pl('label_style'),
|
3501 |
-
'nav_title' => __pl('title_style'),
|
3502 |
-
'nav_icon' => __pl('icon_style'),
|
3503 |
-
'nav_sep' => __pl('separator_style'),
|
3504 |
-
),
|
3505 |
-
)
|
3506 |
-
);
|
3507 |
-
|
3508 |
-
// Post comment
|
3509 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_comment', array(
|
3510 |
-
'name' => __pl('post_commment'),
|
3511 |
-
'group' => 'other',
|
3512 |
-
'html' => '<div class="pagelayer-post-comment-container">
|
3513 |
-
{{post_comment}}
|
3514 |
-
</div>',
|
3515 |
-
'params' => array(
|
3516 |
-
'comment_skin' => array(
|
3517 |
-
'type' => 'select',
|
3518 |
-
'label' => __pl('skin'),
|
3519 |
-
'default' => 'theme_comment',
|
3520 |
-
'list' => array(
|
3521 |
-
'theme_comment' => __pl('theme_tamplate'),
|
3522 |
-
),
|
3523 |
-
),
|
3524 |
-
'post_type' => array(
|
3525 |
-
'type' => 'radio',
|
3526 |
-
'label' => __pl('post_type'),
|
3527 |
-
'default' => 'current',
|
3528 |
-
'list' => array(
|
3529 |
-
'current' => __pl('current'),
|
3530 |
-
'custom' => __pl('custom'),
|
3531 |
-
),
|
3532 |
-
),
|
3533 |
-
'post_id' => array(
|
3534 |
-
'type' => 'select',
|
3535 |
-
'label' => __pl('post_list'),
|
3536 |
-
'default' => '',
|
3537 |
-
'list' => pagelayer_get_posts(),
|
3538 |
-
'req' => ['post_type' => 'custom']
|
3539 |
-
),
|
3540 |
-
),
|
3541 |
-
)
|
3542 |
-
);
|
3543 |
-
|
3544 |
-
// Flipbox
|
3545 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_flipbox', array(
|
3546 |
-
'name' => __pl('Flipbox'),
|
3547 |
-
'group' => 'other',
|
3548 |
-
'html' => '<div class="pagelayer-flipbox-container pagelayer-flipbox-{{back_section}} pagelayer-flipbox-{{flip_animation}} pagelayer-flipbox-direction-{{animation_direction}}">
|
3549 |
-
<div class="pagelayer-flipbox-overlay"></div>
|
3550 |
-
<div class="pagelayer-flipbox-main">
|
3551 |
-
<div class="pagelayer-flipbox-flipper">
|
3552 |
-
<div class="pagelayer-flipbox-box pagelayer-flipbox-front" style="background-image:url({{front_background}});">
|
3553 |
-
<div class="pagelayer-flipbox-box-overlay">
|
3554 |
-
<div class="pagelayer-flipbox-box-inner">
|
3555 |
-
<div class="pagelayer-flipbox-content">
|
3556 |
-
<div class="pagelayer-icon-holder pagelayer-service-icon pagelayer-service-{{icon_view}}">
|
3557 |
-
<i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
|
3558 |
-
</div>
|
3559 |
-
<div if="{{heading_image}}" class="pagelayer-flipbox-image">
|
3560 |
-
<img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_image}}">
|
3561 |
-
</div>
|
3562 |
-
<h2 if={{front_heading}}>{{front_heading}}</h2>
|
3563 |
-
<p if={{front_content}}>{{front_content}}</p>
|
3564 |
-
</div>
|
3565 |
-
</div>
|
3566 |
-
</div>
|
3567 |
-
</div>
|
3568 |
-
<div class="pagelayer-flipbox-box pagelayer-flipbox-back" style="">
|
3569 |
-
<div class="pagelayer-flipbox-box-overlay">
|
3570 |
-
<div class="pagelayer-flipbox-box-inner">
|
3571 |
-
<div class="pagelayer-flipbox-content">
|
3572 |
-
<h2 if={{back_heading}}>{{back_heading}}</h2>
|
3573 |
-
<p if={{back_content}}>{{back_content}}</p>
|
3574 |
-
<a if="{{display_button}}" href="{{{back_button_url}}}" class="pagelayer-service-btn {{back_button_type}} pagelayer-ele-link pagelayer-button {{back_button_size}}">{{back_button_text}}</a>
|
3575 |
-
</div>
|
3576 |
-
</div>
|
3577 |
-
</div>
|
3578 |
-
</div>
|
3579 |
-
</div>
|
3580 |
-
</div>
|
3581 |
-
</div>',
|
3582 |
-
'params' => array(
|
3583 |
-
'height' => array(
|
3584 |
-
'type' => 'slider',
|
3585 |
-
'label' => __pl('block_height'),
|
3586 |
-
'min' => 100,
|
3587 |
-
'max' => 1200,
|
3588 |
-
'default' => 500,
|
3589 |
-
'screen' => 1,
|
3590 |
-
'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'height: {{val}}px;'],
|
3591 |
-
),
|
3592 |
-
'content_width' => array(
|
3593 |
-
'type' => 'slider',
|
3594 |
-
'label' => __pl('content_width'),
|
3595 |
-
'min' => 50,
|
3596 |
-
'max' => 100,
|
3597 |
-
'default' => 100,
|
3598 |
-
'screen' => 1,
|
3599 |
-
'css' => ['{{element}} .pagelayer-flipbox-content' => 'width: {{val}}%; margin:0 auto;'],
|
3600 |
-
),
|
3601 |
-
'flip_animation' => array(
|
3602 |
-
'type' => 'select',
|
3603 |
-
'label' => __pl('animation_styles'),
|
3604 |
-
'default' => 'flip',
|
3605 |
-
'list' => array(
|
3606 |
-
'flip' => __pl('flip'),
|
3607 |
-
'slide' => __pl('slide'),
|
3608 |
-
'push' => __pl('push'),
|
3609 |
-
'zoom-in' => __pl('zoom-in'),
|
3610 |
-
'zoom-out' => __pl('zoom-out'),
|
3611 |
-
'fade' => __pl('fade'),
|
3612 |
-
),
|
3613 |
-
),
|
3614 |
-
'animation_direction' => array(
|
3615 |
-
'type' => 'select',
|
3616 |
-
'label' => __pl('animation_direction'),
|
3617 |
-
'default' => 'right',
|
3618 |
-
'list' => array(
|
3619 |
-
'up' => __pl('top'),
|
3620 |
-
'down' => __pl('bottom'),
|
3621 |
-
'right' => __pl('right'),
|
3622 |
-
'left' => __pl('left'),
|
3623 |
-
),
|
3624 |
-
'req' => array(
|
3625 |
-
'!flip_animation' => ['fade','zoom-out','zoom-in'],
|
3626 |
-
),
|
3627 |
-
),
|
3628 |
-
'animation_duration' => array(
|
3629 |
-
'type' => 'spinner',
|
3630 |
-
'label' => __pl('animation_duration'),
|
3631 |
-
'default' => 600,
|
3632 |
-
'min' => 100,
|
3633 |
-
'step' => 50,
|
3634 |
-
'max' => 2000,
|
3635 |
-
'css' => ['{{element}} .pagelayer-flipbox-box' => 'transition: all {{val}}ms ease-in-out !important;
|
3636 |
-
-webkit-transition: all {{val}}ms ease-in-out !important;']
|
3637 |
-
),
|
3638 |
-
'flip_border_type' => array(
|
3639 |
-
'type' => 'select',
|
3640 |
-
'label' => __pl('border_type'),
|
3641 |
-
'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-style: {{val}}'],
|
3642 |
-
'list' => array(
|
3643 |
-
'' => __pl('none'),
|
3644 |
-
'solid' => __pl('solid'),
|
3645 |
-
'double' => __pl('double'),
|
3646 |
-
'dotted' => __pl('dotted'),
|
3647 |
-
'dashed' => __pl('dashed'),
|
3648 |
-
'groove' => __pl('groove'),
|
3649 |
-
),
|
3650 |
-
),
|
3651 |
-
'flip_border_color' => array(
|
3652 |
-
'type' => 'color',
|
3653 |
-
'label' => __pl('border_color'),
|
3654 |
-
'default' => '#0986c0',
|
3655 |
-
'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-color: {{val}};'],
|
3656 |
-
'req' => array(
|
3657 |
-
'!flip_border_type' => ''
|
3658 |
-
),
|
3659 |
-
),
|
3660 |
-
'flip_border_width' => array(
|
3661 |
-
'type' => 'padding',
|
3662 |
-
'label' => __pl('border_width'),
|
3663 |
-
'screen' => 1,
|
3664 |
-
'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
3665 |
-
'req' => array(
|
3666 |
-
'!flip_border_type' => ''
|
3667 |
-
),
|
3668 |
-
),
|
3669 |
-
'flip_border_radius' => array(
|
3670 |
-
'type' => 'padding',
|
3671 |
-
'label' => __pl('border_radius'),
|
3672 |
-
'units' => ['px', '%'],
|
3673 |
-
'screen' => 1,
|
3674 |
-
'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
|
3675 |
-
),
|
3676 |
-
),
|
3677 |
-
'front_section' => array(
|
3678 |
-
'heading_element' => array(
|
3679 |
-
'type' => 'radio',
|
3680 |
-
'label' => __pl('visual_element'),
|
3681 |
-
'default' => '',
|
3682 |
-
'list' => array(
|
3683 |
-
'' => __pl('none'),
|
3684 |
-
'icon' => __pl('icon'),
|
3685 |
-
'image' => __pl('image'),
|
3686 |
-
),
|
3687 |
-
),
|
3688 |
-
'icon' => array(
|
3689 |
-
'type' => 'icon',
|
3690 |
-
'label' => __pl('icon'),
|
3691 |
-
'default' => 'fas fa-star',
|
3692 |
-
'req' => array(
|
3693 |
-
'heading_element'=>'icon',
|
3694 |
-
),
|
3695 |
-
),
|
3696 |
-
'icon_view' => array(
|
3697 |
-
'type' => 'select',
|
3698 |
-
'label' => __pl('iconbox_icon_view'),
|
3699 |
-
'default' => 'default',
|
3700 |
-
'list' =>array(
|
3701 |
-
'default' => __pl('default'),
|
3702 |
-
'stacked' => __pl('Stacked'),
|
3703 |
-
'framed' => __pl('Framed'),
|
3704 |
-
),
|
3705 |
-
'req' => array(
|
3706 |
-
'heading_element'=>'icon',
|
3707 |
-
),
|
3708 |
-
),
|
3709 |
-
'bg_shape' => array(
|
3710 |
-
'type' => 'select',
|
3711 |
-
'label' => __pl('icon_background_shape'),
|
3712 |
-
'default' => 'pagelayer-icon-circle',
|
3713 |
-
'list' => array(
|
3714 |
-
'' => __pl('icon_shape_none'),
|
3715 |
-
'pagelayer-icon-circle' => __pl('icon_shape_circle'),
|
3716 |
-
'pagelayer-icon-square' => __pl('icon_shape_square'),
|
3717 |
-
'pagelayer-icon-rounded' => __pl('icon_shape_rounded')
|
3718 |
-
),
|
3719 |
-
'req' => array(
|
3720 |
-
'heading_element'=>'icon',
|
3721 |
-
'!icon_view' => 'default',
|
3722 |
-
),
|
3723 |
-
),
|
3724 |
-
'icon_color_style' => array(
|
3725 |
-
'type' => 'color',
|
3726 |
-
'label' => __pl('color'),
|
3727 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'position: relative; color: {{val}};',
|
3728 |
-
'{{element}} pagelayer-flipbox-content i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'],
|
3729 |
-
'default' => '#ffffff',
|
3730 |
-
'req' => array(
|
3731 |
-
'heading_element'=>'icon',
|
3732 |
-
),
|
3733 |
-
),
|
3734 |
-
'bg_color' => array(
|
3735 |
-
'type' => 'color',
|
3736 |
-
'label' => __pl('icon_background_color'),
|
3737 |
-
'default' => '#ef9229',
|
3738 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'background-color: {{val}};'],
|
3739 |
-
'req' => array(
|
3740 |
-
'heading_element'=>'icon',
|
3741 |
-
'!bg_shape' => '',
|
3742 |
-
'icon_view' => 'stacked',
|
3743 |
-
),
|
3744 |
-
'show' => array(
|
3745 |
-
'icon_hover' => ''
|
3746 |
-
),
|
3747 |
-
),
|
3748 |
-
'icon_background_size' => array(
|
3749 |
-
'type' => 'spinner',
|
3750 |
-
'label' => __pl('icon_background_size'),
|
3751 |
-
'default' => 20,
|
3752 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'padding: calc(0.5em + {{val}}px);'],
|
3753 |
-
'min' => 1,
|
3754 |
-
'max' => 100,
|
3755 |
-
'step' => 1,
|
3756 |
-
'screen' => 1,
|
3757 |
-
'req' => array(
|
3758 |
-
'heading_element'=>'icon',
|
3759 |
-
),
|
3760 |
-
),
|
3761 |
-
'icon_size' => array(
|
3762 |
-
'type' => 'select',
|
3763 |
-
'label' => __pl('size_label'),
|
3764 |
-
'default' => 'pagelayer-icon-large',
|
3765 |
-
'list' => array(
|
3766 |
-
'pagelayer-icon-mini' => __pl('mini'),
|
3767 |
-
'pagelayer-icon-small' => __pl('small'),
|
3768 |
-
'pagelayer-icon-large' => __pl('large'),
|
3769 |
-
'pagelayer-icon-extra-large' => __pl('extra_large'),
|
3770 |
-
'pagelayer-icon-double-large' => __pl('double_large'),
|
3771 |
-
'pagelayer-icon-custom' => __pl('custom'),
|
3772 |
-
),
|
3773 |
-
'req' => array(
|
3774 |
-
'heading_element'=>'icon',
|
3775 |
-
),
|
3776 |
-
),
|
3777 |
-
'icon_size_custom' => array(
|
3778 |
-
'type' => 'spinner',
|
3779 |
-
'label' => __pl('icon_custom_size'),
|
3780 |
-
'min' => 1,
|
3781 |
-
'step' => 1,
|
3782 |
-
'max' => 100,
|
3783 |
-
'default' => 26,
|
3784 |
-
'screen' => 1,
|
3785 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'font-size: {{val}}px'],
|
3786 |
-
'req' => array(
|
3787 |
-
'icon_size' => 'pagelayer-icon-custom'
|
3788 |
-
),
|
3789 |
-
),
|
3790 |
-
'icon_rotate' => array(
|
3791 |
-
'type' => 'spinner',
|
3792 |
-
'label' => __pl('icon_rotate'),
|
3793 |
-
'default' => 0,
|
3794 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'transform: rotate({{val}}deg)'],
|
3795 |
-
'min' => 0,
|
3796 |
-
'max' => 360,
|
3797 |
-
'step' => 1,
|
3798 |
-
'screen' => 1,
|
3799 |
-
'req' => array(
|
3800 |
-
'heading_element'=>'icon',
|
3801 |
-
),
|
3802 |
-
),
|
3803 |
-
'icon_border_type' => array(
|
3804 |
-
'type' => 'select',
|
3805 |
-
'label' => __pl('border_type'),
|
3806 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-style: {{val}}'],
|
3807 |
-
'list' => [
|
3808 |
-
'' => __pl('none'),
|
3809 |
-
'solid' => __pl('solid'),
|
3810 |
-
'double' => __pl('double'),
|
3811 |
-
'dotted' => __pl('dotted'),
|
3812 |
-
'dashed' => __pl('dashed'),
|
3813 |
-
'groove' => __pl('groove'),
|
3814 |
-
],
|
3815 |
-
'req' => array(
|
3816 |
-
'heading_element'=>'icon',
|
3817 |
-
),
|
3818 |
-
),
|
3819 |
-
'icon_border_color' => array(
|
3820 |
-
'type' => 'color',
|
3821 |
-
'label' => __pl('icon_border_color'),
|
3822 |
-
'default' => '#0986c0',
|
3823 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-color: {{val}};'],
|
3824 |
-
'req' => array(
|
3825 |
-
'!icon_border_type' => ''
|
3826 |
-
),
|
3827 |
-
),
|
3828 |
-
'icon_border_width' => array(
|
3829 |
-
'type' => 'padding',
|
3830 |
-
'label' => __pl('border_width'),
|
3831 |
-
'screen' => 1,
|
3832 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
3833 |
-
'req' => [
|
3834 |
-
'!icon_border_type' => ''
|
3835 |
-
],
|
3836 |
-
),
|
3837 |
-
'icon_border_radius' => array(
|
3838 |
-
'type' => 'padding',
|
3839 |
-
'label' => __pl('border_radius'),
|
3840 |
-
'screen' => 1,
|
3841 |
-
'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
3842 |
-
'req' => array(
|
3843 |
-
'!icon_border_type' => ''
|
3844 |
-
),
|
3845 |
-
),
|
3846 |
-
'heading_image'=> array(
|
3847 |
-
'type' => 'image',
|
3848 |
-
'label' => __pl('image'),
|
3849 |
-
'default' => '',
|
3850 |
-
'req' => array(
|
3851 |
-
'heading_element' => 'image',
|
3852 |
-
),
|
3853 |
-
),
|
3854 |
-
'heading_image_size' => array(
|
3855 |
-
'type' => 'radio',
|
3856 |
-
'label' => __pl('image_size'),
|
3857 |
-
'default' => 'full',
|
3858 |
-
'list' => array(
|
3859 |
-
'full' => __pl('full'),
|
3860 |
-
'thumbnail' => __pl('thumbnail'),
|
3861 |
-
'custom' => __pl('custom'),
|
3862 |
-
),
|
3863 |
-
'req' => array(
|
3864 |
-
'heading_element' => 'image',
|
3865 |
-
),
|
3866 |
-
),
|
3867 |
-
'heading_image_custom_size' => array(
|
3868 |
-
'type' => 'slider',
|
3869 |
-
'label' => __pl('img_custom_size'),
|
3870 |
-
'min' => 0,
|
3871 |
-
'max' => 100,
|
3872 |
-
'screen' => 1,
|
3873 |
-
'default' => 50,
|
3874 |
-
'css' => ['{{element}} .pagelayer-flipbox-image img' => 'width:{{val}}%; height: auto;'],
|
3875 |
-
'req' => array(
|
3876 |
-
'heading_element' => 'image',
|
3877 |
-
'heading_image_size' => 'custom',
|
3878 |
-
)
|
3879 |
-
),
|
3880 |
-
'heading_image_spacing' => array(
|
3881 |
-
'type' => 'slider',
|
3882 |
-
'label' => __pl('spacing'),
|
3883 |
-
'min' => 0,
|
3884 |
-
'max' => 100,
|
3885 |
-
'screen' => 1,
|
3886 |
-
'default' => 20,
|
3887 |
-
'css' => ['{{element}} .pagelayer-flipbox-image img' => 'margin-bottom:{{val}}px;'],
|
3888 |
-
'req' => array(
|
3889 |
-
'heading_element' => 'image',
|
3890 |
-
)
|
3891 |
-
),
|
3892 |
-
'front-text-align' => array(
|
3893 |
-
'type' => 'radio',
|
3894 |
-
'label' => __pl('alignment'),
|
3895 |
-
'default' => 'center',
|
3896 |
-
'screen' => 1,
|
3897 |
-
'list' => array(
|
3898 |
-
'left' => __pl('left'),
|
3899 |
-
'center' => __pl('center'),
|
3900 |
-
'right' => __pl('right')
|
3901 |
-
),
|
3902 |
-
'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-box-overlay' => 'text-align:{{val}} !important;'],
|
3903 |
-
),
|
3904 |
-
'front_heading' => array(
|
3905 |
-
'type' => 'text',
|
3906 |
-
'default' => 'Flipbox Heading',
|
3907 |
-
'label' => __pl('heading_name'),
|
3908 |
-
),
|
3909 |
-
'heading_color' => array(
|
3910 |
-
'type' => 'color',
|
3911 |
-
'label' => __pl('color'),
|
3912 |
-
'default' => '#ffffff',
|
3913 |
-
'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content h2' => 'color:{{val}};'],
|
3914 |
-
),
|
3915 |
-
'heading_typography' => array(
|
3916 |
-
'type' => 'typography',
|
3917 |
-
'label' => __pl('typography'),
|
3918 |
-
'default' => 'Poppins,40,,500,,,solid,,,,',
|
3919 |
-
'screen' => 1,
|
3920 |
-
'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
3921 |
-
),
|
3922 |
-
'front_content' => array(
|
3923 |
-
'type' => 'textarea',
|
3924 |
-
'label' => __pl('content'),
|
3925 |
-
'default' => 'Flipbox content comes here such as It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.',
|
3926 |
-
),
|
3927 |
-
'front_content_color' => array(
|
3928 |
-
'type' => 'color',
|
3929 |
-
'label' => __pl('text_color'),
|
3930 |
-
'default' => '#ffffff',
|
3931 |
-
'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content p' => 'color:{{val}};'],
|
3932 |
-
),
|
3933 |
-
'front_content_typography' => array(
|
3934 |
-
'type' => 'typography',
|
3935 |
-
'label' => __pl('text_style'),
|
3936 |
-
'default' => ',16,,500,,,solid,,,,',
|
3937 |
-
'screen' => 1,
|
3938 |
-
'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
3939 |
-
),
|
3940 |
-
'front_shadow' => array(
|
3941 |
-
'type' => 'box_shadow',
|
3942 |
-
'label' => __pl('shadow'),
|
3943 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
3944 |
-
),
|
3945 |
-
'front_background_type' => array(
|
3946 |
-
'type' => 'radio',
|
3947 |
-
'label' => __pl('background_type'),
|
3948 |
-
'default' => '',
|
3949 |
-
'list' => array(
|
3950 |
-
'color' => __pl('color'),
|
3951 |
-
'gradient' => __pl('gradient'),
|
3952 |
-
'image' => __pl('image'),
|
3953 |
-
),
|
3954 |
-
),
|
3955 |
-
'front_background_color' => array(
|
3956 |
-
'type' => 'color',
|
3957 |
-
'label' => __pl('bg_color'),
|
3958 |
-
'default' => '',
|
3959 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-color:{{val}};'],
|
3960 |
-
'req' => array(
|
3961 |
-
'front_background_type' => 'color',
|
3962 |
-
),
|
3963 |
-
),
|
3964 |
-
'front_background_gradient' => array(
|
3965 |
-
'type' => 'gradient',
|
3966 |
-
'label' => __pl('background_gradient'),
|
3967 |
-
'default' => '150,#f12711,40,#f5af19,60,#f5af19,100',
|
3968 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%) !important;'],
|
3969 |
-
'req' => array(
|
3970 |
-
'front_background_type' => 'gradient',
|
3971 |
-
),
|
3972 |
-
),
|
3973 |
-
'front_background_image' => array(
|
3974 |
-
'type' => 'image',
|
3975 |
-
'label' => __pl('image'),
|
3976 |
-
'default' => PAGELAYER_URL.'/images/default-image.png',
|
3977 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-image:url("{{{front_background_image-url}}}") !important;'],
|
3978 |
-
'req' => array(
|
3979 |
-
'front_background_type' => 'image',
|
3980 |
-
),
|
3981 |
-
),
|
3982 |
-
'front_background_attachment' => array(
|
3983 |
-
'type' => 'select',
|
3984 |
-
'label' => __pl('background_attachment'),
|
3985 |
-
'list' => array(
|
3986 |
-
'' => __pl('default'),
|
3987 |
-
'scroll' => __pl('scroll'),
|
3988 |
-
'fixed' => __pl('fixed')
|
3989 |
-
),
|
3990 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-attachment: {{val}}'],
|
3991 |
-
'req' => array(
|
3992 |
-
'front_background_type' => 'image',
|
3993 |
-
),
|
3994 |
-
),
|
3995 |
-
'front_background_posx' => array(
|
3996 |
-
'type' => 'select',
|
3997 |
-
'label' => __pl('ele_bg_posx'),
|
3998 |
-
'list' => array(
|
3999 |
-
'' => __pl('default'),
|
4000 |
-
'center' => __pl('center'),
|
4001 |
-
'left' => __pl('left'),
|
4002 |
-
'right' => __pl('right')
|
4003 |
-
),
|
4004 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-position-x: {{val}};'],
|
4005 |
-
'req' => array(
|
4006 |
-
'front_background_type' => 'image',
|
4007 |
-
),
|
4008 |
-
),
|
4009 |
-
'front_background_posy' => array(
|
4010 |
-
'type' => 'select',
|
4011 |
-
'label' => __pl('ele_bg_posy'),
|
4012 |
-
'list' => array(
|
4013 |
-
'' => __pl('default'),
|
4014 |
-
'center' => __pl('center'),
|
4015 |
-
'top' => __pl('top'),
|
4016 |
-
'bottom' => __pl('bottom')
|
4017 |
-
),
|
4018 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-position-y: {{val}};'],
|
4019 |
-
'req' => array(
|
4020 |
-
'front_background_type' => 'image',
|
4021 |
-
),
|
4022 |
-
),
|
4023 |
-
'front_background_repeat' => array(
|
4024 |
-
'type' => 'select',
|
4025 |
-
'label' => __pl('repeat'),
|
4026 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-repeat: {{val}};'],
|
4027 |
-
'list' => array(
|
4028 |
-
'' => __pl('default'),
|
4029 |
-
'repeat' => __pl('repeat'),
|
4030 |
-
'no-repeat' => __pl('no-repeat'),
|
4031 |
-
'repeat-x' => __pl('repeat-x'),
|
4032 |
-
'repeat-y' => __pl('repeat-y'),
|
4033 |
-
),
|
4034 |
-
'req' => array(
|
4035 |
-
'front_background_type' => 'image',
|
4036 |
-
),
|
4037 |
-
),
|
4038 |
-
'front_background_size' => array(
|
4039 |
-
'type' => 'select',
|
4040 |
-
'label' => __pl('ele_bg_size'),
|
4041 |
-
'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-size: {{val}};'],
|
4042 |
-
'list' => array(
|
4043 |
-
'' => __pl('default'),
|
4044 |
-
'cover' => __pl('cover'),
|
4045 |
-
'contain' => __pl('contain')
|
4046 |
-
),
|
4047 |
-
'req' => array(
|
4048 |
-
'front_background_type' => 'image',
|
4049 |
-
),
|
4050 |
-
),
|
4051 |
-
'front_section_padding' => array(
|
4052 |
-
'type' => 'padding',
|
4053 |
-
'label' => __pl('padding'),
|
4054 |
-
'screen' => 1,
|
4055 |
-
'default' => '100,100,100,100',
|
4056 |
-
'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-box-overlay' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
4057 |
-
),
|
4058 |
-
),
|
4059 |
-
'back_section' => array(
|
4060 |
-
'back_section' => array(
|
4061 |
-
'type' => 'checkbox',
|
4062 |
-
'label' => __pl('back_side'),
|
4063 |
-
),
|
4064 |
-
'back-text-align' => array(
|
4065 |
-
'type' => 'radio',
|
4066 |
-
'label' => __pl('alignment'),
|
4067 |
-
'default' => 'center',
|
4068 |
-
'screen' => 1,
|
4069 |
-
'list' => array(
|
4070 |
-
'left' => __pl('left'),
|
4071 |
-
'center' => __pl('center'),
|
4072 |
-
'right' => __pl('right')
|
4073 |
-
),
|
4074 |
-
'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-box-overlay' => 'text-align:{{val}} !important;'],
|
4075 |
-
),
|
4076 |
-
'back_heading' => array(
|
4077 |
-
'type' => 'text',
|
4078 |
-
'label' => __pl('title'),
|
4079 |
-
'default' => 'Flipbox Back Heading',
|
4080 |
-
),
|
4081 |
-
'back_heading_color' => array(
|
4082 |
-
'type' => 'color',
|
4083 |
-
'label' => __pl('color'),
|
4084 |
-
'default' => '#000000',
|
4085 |
-
'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content h2' => 'color:{{val}};'],
|
4086 |
-
),
|
4087 |
-
'back_heading_typography' => array(
|
4088 |
-
'type' => 'typography',
|
4089 |
-
'label' => __pl('typography'),
|
4090 |
-
'default' => 'Poppins,40,,500,,,solid,,,,',
|
4091 |
-
'screen' => 1,
|
4092 |
-
'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4093 |
-
),
|
4094 |
-
'back_content' => array(
|
4095 |
-
'type' => 'textarea',
|
4096 |
-
'label' => __pl('content'),
|
4097 |
-
'default' => 'Flipbox content comes here such as It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.',
|
4098 |
-
),
|
4099 |
-
'back_content_color' => array(
|
4100 |
-
'type' => 'color',
|
4101 |
-
'label' => __pl('text_color'),
|
4102 |
-
'default' => '#3c3f40',
|
4103 |
-
'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content p' => 'color:{{val}};'],
|
4104 |
-
),
|
4105 |
-
'back_content_typography' => array(
|
4106 |
-
'type' => 'typography',
|
4107 |
-
'label' => __pl('text_style'),
|
4108 |
-
'default' => ',16,,500,,,solid,,,,',
|
4109 |
-
'screen' => 1,
|
4110 |
-
'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4111 |
-
),
|
4112 |
-
'back_shadow' => array(
|
4113 |
-
'type' => 'box_shadow',
|
4114 |
-
'label' => __pl('shadow'),
|
4115 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
4116 |
-
),
|
4117 |
-
'display_button' => array(
|
4118 |
-
'type' => 'checkbox',
|
4119 |
-
'label' => __pl('button'),
|
4120 |
-
),
|
4121 |
-
'back_button_url' => array(
|
4122 |
-
'type' => 'link',
|
4123 |
-
'label' => __pl('btn_url_label'),
|
4124 |
-
'req' => array(
|
4125 |
-
'!display_button' => '',
|
4126 |
-
),
|
4127 |
-
),
|
4128 |
-
'back_button_text' => array(
|
4129 |
-
'type' => 'text',
|
4130 |
-
'label' => __pl('button_text_label'),
|
4131 |
-
'default' => 'Click Here!',
|
4132 |
-
'req' => array(
|
4133 |
-
'!display_button' => '',
|
4134 |
-
),
|
4135 |
-
),
|
4136 |
-
'back_button_typography' => array(
|
4137 |
-
'type' => 'typography',
|
4138 |
-
'label' => __pl('typography'),
|
4139 |
-
'default' => ',20,,500,,,solid,,,,',
|
4140 |
-
'screen' => 1,
|
4141 |
-
'css' => ['{{element}} .pagelayer-service-btn' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4142 |
-
'req' => array(
|
4143 |
-
'!display_button' => '',
|
4144 |
-
),
|
4145 |
-
),
|
4146 |
-
'back_button_type' => array(
|
4147 |
-
'type' => 'select',
|
4148 |
-
'label' => __pl('type'),
|
4149 |
-
'default' => 'pagelayer-btn-default',
|
4150 |
-
'list' => array(
|
4151 |
-
'pagelayer-btn-default' => __pl('btn_type_default'),
|
4152 |
-
'pagelayer-btn-primary' => __pl('btn_type_primary'),
|
4153 |
-
'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
|
4154 |
-
'pagelayer-btn-success' => __pl('btn_type_success'),
|
4155 |
-
'pagelayer-btn-info' => __pl('btn_type_info'),
|
4156 |
-
'pagelayer-btn-warning' => __pl('btn_type_warning'),
|
4157 |
-
'pagelayer-btn-danger' => __pl('btn_type_danger'),
|
4158 |
-
'pagelayer-btn-dark' => __pl('btn_type_dark'),
|
4159 |
-
'pagelayer-btn-light' => __pl('btn_type_light'),
|
4160 |
-
'pagelayer-btn-link' => __pl('btn_type_link'),
|
4161 |
-
'pagelayer-btn-custom' => __pl('btn_type_custom')
|
4162 |
-
),
|
4163 |
-
'req' => array(
|
4164 |
-
'!display_button' => '',
|
4165 |
-
),
|
4166 |
-
),
|
4167 |
-
'back_button_size' => array(
|
4168 |
-
'type' => 'select',
|
4169 |
-
'label' => __pl('button_size'),
|
4170 |
-
'default' => 'pagelayer-btn-mini',
|
4171 |
-
'list' => array(
|
4172 |
-
'pagelayer-btn-mini' => __pl('mini'),
|
4173 |
-
'pagelayer-btn-small' => __pl('small'),
|
4174 |
-
'pagelayer-btn-large' => __pl('large'),
|
4175 |
-
'pagelayer-btn-extra-large' => __pl('extra_large'),
|
4176 |
-
'pagelayer-btn-double-large' => __pl('double_large'),
|
4177 |
-
),
|
4178 |
-
'req' => array(
|
4179 |
-
'!display_button' => '',
|
4180 |
-
),
|
4181 |
-
),
|
4182 |
-
'back_btn_spacing' => array(
|
4183 |
-
'type' => 'slider',
|
4184 |
-
'label' => __pl('spacing'),
|
4185 |
-
'min' => 0,
|
4186 |
-
'max' => 200,
|
4187 |
-
'default' => 10,
|
4188 |
-
'screen' => 1,
|
4189 |
-
'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
|
4190 |
-
'req' => array(
|
4191 |
-
'!display_button' => '',
|
4192 |
-
),
|
4193 |
-
),
|
4194 |
-
'back_btn_state' => array(
|
4195 |
-
'type' => 'radio',
|
4196 |
-
'label' => __pl('button_state'),
|
4197 |
-
'default' => 'normal',
|
4198 |
-
'list' => array(
|
4199 |
-
'normal' => __pl('normal'),
|
4200 |
-
'hover' => __pl('hover'),
|
4201 |
-
),
|
4202 |
-
'req' => array(
|
4203 |
-
'back_button_type' => 'pagelayer-btn-custom',
|
4204 |
-
'!display_button' => '',
|
4205 |
-
),
|
4206 |
-
),
|
4207 |
-
'back_button_color' => array(
|
4208 |
-
'type' => 'color',
|
4209 |
-
'label' => __pl('button_color'),
|
4210 |
-
'default' => '#ffffff',
|
4211 |
-
'css' => ['{{element}} .pagelayer-service-btn' => 'color:{{val}};'],
|
4212 |
-
'show' => array(
|
4213 |
-
'back_btn_state' => 'normal',
|
4214 |
-
),
|
4215 |
-
),
|
4216 |
-
'back_button_bg_color' => array(
|
4217 |
-
'type' => 'color',
|
4218 |
-
'label' => __pl('button_bg_color'),
|
4219 |
-
'default' => '#0986c0',
|
4220 |
-
'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
|
4221 |
-
'show' => array(
|
4222 |
-
'back_btn_state' => 'normal',
|
4223 |
-
),
|
4224 |
-
),
|
4225 |
-
'back_btn_hover_delay' => array(
|
4226 |
-
'type' => 'spinner',
|
4227 |
-
'label' => __pl('btn_hover_delay'),
|
4228 |
-
'min' => 0,
|
4229 |
-
'step' => 100,
|
4230 |
-
'max' => 5000,
|
4231 |
-
'default' => 400,
|
4232 |
-
'css' => ['{{element}} .pagelayer-service-btn' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
4233 |
-
'show' => array(
|
4234 |
-
'back_btn_state' => 'hover',
|
4235 |
-
),
|
4236 |
-
),
|
4237 |
-
'back_button_color_hover' => array(
|
4238 |
-
'type' => 'color',
|
4239 |
-
'label' => __pl('button_color'),
|
4240 |
-
'default' => '',
|
4241 |
-
'css' => ['{{element}} .pagelayer-service-btn:hover' => 'color:{{val}} !important;'],
|
4242 |
-
'show' => array(
|
4243 |
-
'back_btn_state' => 'hover',
|
4244 |
-
),
|
4245 |
-
),
|
4246 |
-
'back_button_bg_color_hover' => array(
|
4247 |
-
'type' => 'color',
|
4248 |
-
'label' => __pl('button_bg_color'),
|
4249 |
-
'default' => '',
|
4250 |
-
'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}} !important;'],
|
4251 |
-
'show' => array(
|
4252 |
-
'back_btn_state' => 'hover'
|
4253 |
-
),
|
4254 |
-
),
|
4255 |
-
'back_background_type' => array(
|
4256 |
-
'type' => 'radio',
|
4257 |
-
'label' => __pl('background_type'),
|
4258 |
-
'default' => '',
|
4259 |
-
'list' => array(
|
4260 |
-
'color' => __pl('color'),
|
4261 |
-
'gradient' => __pl('gradient'),
|
4262 |
-
'image' => __pl('image'),
|
4263 |
-
),
|
4264 |
-
),
|
4265 |
-
'back_background_color' => array(
|
4266 |
-
'type' => 'color',
|
4267 |
-
'label' => __pl('bg_color'),
|
4268 |
-
'default' => '',
|
4269 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-color:{{val}};'],
|
4270 |
-
'req' => array(
|
4271 |
-
'back_background_type' => 'color',
|
4272 |
-
),
|
4273 |
-
),
|
4274 |
-
'back_background_gradient' => array(
|
4275 |
-
'type' => 'gradient',
|
4276 |
-
'label' => __pl('background_gradient'),
|
4277 |
-
'default' => '150,#1488CC,40,#2B32B2,60,#2B32B2,100',
|
4278 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%) !important;'],
|
4279 |
-
'req' => array(
|
4280 |
-
'back_background_type' => 'gradient',
|
4281 |
-
),
|
4282 |
-
),
|
4283 |
-
'back_background_image' => array(
|
4284 |
-
'type' => 'image',
|
4285 |
-
'label' => __pl('image'),
|
4286 |
-
'default' => PAGELAYER_URL.'/images/default-image.png',
|
4287 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-image:url("{{{back_background_image-url}}}") !important;'],
|
4288 |
-
'req' => array(
|
4289 |
-
'back_background_type' => 'image',
|
4290 |
-
),
|
4291 |
-
),
|
4292 |
-
'back_background_attachment' => array(
|
4293 |
-
'type' => 'select',
|
4294 |
-
'label' => __pl('background_attachment'),
|
4295 |
-
'list' => array(
|
4296 |
-
'' => __pl('default'),
|
4297 |
-
'scroll' => __pl('scroll'),
|
4298 |
-
'fixed' => __pl('fixed')
|
4299 |
-
),
|
4300 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-attachment: {{val}}'],
|
4301 |
-
'req' => array(
|
4302 |
-
'back_background_type' => 'image',
|
4303 |
-
),
|
4304 |
-
),
|
4305 |
-
'back_background_posx' => array(
|
4306 |
-
'type' => 'select',
|
4307 |
-
'label' => __pl('ele_bg_posx'),
|
4308 |
-
'list' => array(
|
4309 |
-
'' => __pl('default'),
|
4310 |
-
'center' => __pl('center'),
|
4311 |
-
'left' => __pl('left'),
|
4312 |
-
'right' => __pl('right')
|
4313 |
-
),
|
4314 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-position-x: {{val}};'],
|
4315 |
-
'req' => array(
|
4316 |
-
'back_background_type' => 'image',
|
4317 |
-
),
|
4318 |
-
),
|
4319 |
-
'back_background_posy' => array(
|
4320 |
-
'type' => 'select',
|
4321 |
-
'label' => __pl('ele_bg_posy'),
|
4322 |
-
'list' => array(
|
4323 |
-
'' => __pl('default'),
|
4324 |
-
'center' => __pl('center'),
|
4325 |
-
'top' => __pl('top'),
|
4326 |
-
'bottom' => __pl('bottom')
|
4327 |
-
),
|
4328 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-position-y: {{val}};'],
|
4329 |
-
'req' => array(
|
4330 |
-
'back_background_type' => 'image',
|
4331 |
-
),
|
4332 |
-
),
|
4333 |
-
'back_background_repeat' => array(
|
4334 |
-
'type' => 'select',
|
4335 |
-
'label' => __pl('ele_bg_repeat'),
|
4336 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-repeat: {{val}};'],
|
4337 |
-
'list' => array(
|
4338 |
-
'' => __pl('default'),
|
4339 |
-
'repeat' => __pl('repeat'),
|
4340 |
-
'no-repeat' => __pl('no-repeat'),
|
4341 |
-
'repeat-x' => __pl('repeat-x'),
|
4342 |
-
'repeat-y' => __pl('repeat-y'),
|
4343 |
-
),
|
4344 |
-
'req' => array(
|
4345 |
-
'back_background_type' => 'image',
|
4346 |
-
),
|
4347 |
-
),
|
4348 |
-
'back_background_size' => array(
|
4349 |
-
'type' => 'select',
|
4350 |
-
'label' => __pl('ele_bg_size'),
|
4351 |
-
'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-size: {{val}};'],
|
4352 |
-
'list' => array(
|
4353 |
-
'' => __pl('default'),
|
4354 |
-
'cover' => __pl('cover'),
|
4355 |
-
'contain' => __pl('contain')
|
4356 |
-
),
|
4357 |
-
'req' => array(
|
4358 |
-
'back_background_type' => 'image',
|
4359 |
-
),
|
4360 |
-
),
|
4361 |
-
'back_section_padding' => array(
|
4362 |
-
'type' => 'padding',
|
4363 |
-
'label' => __pl('padding'),
|
4364 |
-
'default' => '100,100,100,100',
|
4365 |
-
'screen' => 1,
|
4366 |
-
'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-box-overlay' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
4367 |
-
),
|
4368 |
-
),
|
4369 |
-
'styles' => [
|
4370 |
-
'front_section' => __pl('front_section'),
|
4371 |
-
'back_section' => __pl('back_section'),
|
4372 |
-
]
|
4373 |
-
)
|
4374 |
-
);
|
4375 |
-
|
4376 |
-
// Countdown Timer
|
4377 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_countdown', array(
|
4378 |
-
'name' => __pl('countdown_timer'),
|
4379 |
-
'group' => 'other',
|
4380 |
-
'html' => '<div class="pagelayer-countdown-container" pagelayer-expiry-date={{date}} pagelayer-time-type={{time_zone}}>
|
4381 |
-
<div class="pagelayer-countdown-expired">
|
4382 |
-
<p if={{expired_text}}>{{expired_text}}</p>
|
4383 |
-
</div>
|
4384 |
-
<div class="pagelayer-countdown-counter">
|
4385 |
-
<div if={{days}} class="pagelayer-countdown-days pagelayer-countdown-item pagelayer-countdown-{{display}}">
|
4386 |
-
<div class="pagelayer-days-count pagelayer-countdown-count"></div>
|
4387 |
-
<div if={{show_label}} class="pagelayer-countdown-name">
|
4388 |
-
<span if={{days_label_text}}>{{days_label_text}}</span>
|
4389 |
-
</div>
|
4390 |
-
</div>
|
4391 |
-
<div if={{hours}} class="pagelayer-countdown-hours pagelayer-countdown-item pagelayer-countdown-{{display}}">
|
4392 |
-
<div class="pagelayer-hours-count pagelayer-countdown-count"></div>
|
4393 |
-
<div if={{show_label}} class="pagelayer-countdown-name">
|
4394 |
-
<span if={{hours_label_text}}>{{hours_label_text}}</span>
|
4395 |
-
</div>
|
4396 |
-
</div>
|
4397 |
-
<div if={{minutes}} class="pagelayer-countdown-minutes pagelayer-countdown-item pagelayer-countdown-{{display}}">
|
4398 |
-
<div class="pagelayer-minutes-count pagelayer-countdown-count"></div>
|
4399 |
-
<div if={{show_label}} class="pagelayer-countdown-name">
|
4400 |
-
<span if={{minutes_label_text}} >{{minutes_label_text}}</span>
|
4401 |
-
</div>
|
4402 |
-
</div>
|
4403 |
-
<div if={{seconds}} class="pagelayer-countdown-seconds pagelayer-countdown-item pagelayer-countdown-{{display}}">
|
4404 |
-
<div class="pagelayer-seconds-count pagelayer-countdown-count"></div>
|
4405 |
-
<div if={{show_label}} class="pagelayer-countdown-name">
|
4406 |
-
<span if={{seconds_label_text}} >{{seconds_label_text}}</span>
|
4407 |
-
</div>
|
4408 |
-
</div>
|
4409 |
-
</div>
|
4410 |
-
</div>',
|
4411 |
-
'params' => array(
|
4412 |
-
'date' => array(
|
4413 |
-
'type' => 'datetime',
|
4414 |
-
'displayMode' => 'datetime', // date | datetime (default)
|
4415 |
-
'returnMode' => 'YYYY-MM-DD H:m:s', // mysql format uses here (default: Y-m-d H:i:s )
|
4416 |
-
'label' => __pl('date_picker_label'),
|
4417 |
-
'default' => '',
|
4418 |
-
),
|
4419 |
-
'time_zone' => array(
|
4420 |
-
'type' => 'select',
|
4421 |
-
'label' => __pl('time_zone'),
|
4422 |
-
'default' => 'server',
|
4423 |
-
'list' => array(
|
4424 |
-
'server' => __pl('server_time'),
|
4425 |
-
'local' => __pl('user_local')
|
4426 |
-
),
|
4427 |
-
),
|
4428 |
-
'number_color' => array(
|
4429 |
-
'type' => 'color',
|
4430 |
-
'label' => __pl('color'),
|
4431 |
-
'default' => '#ffffff',
|
4432 |
-
'css' => ['{{element}} .pagelayer-countdown-count' => 'color:{{number_color}}'],
|
4433 |
-
),
|
4434 |
-
'number_style' => array(
|
4435 |
-
'type' => 'typography',
|
4436 |
-
'label' => __pl('typography'),
|
4437 |
-
'default' => ',50,,500,,,solid,,,,',
|
4438 |
-
'screen' => 1,
|
4439 |
-
'css' => ['{{element}} .pagelayer-countdown-count' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4440 |
-
),
|
4441 |
-
'number_spacing' => array(
|
4442 |
-
'type' => 'padding',
|
4443 |
-
'label' => __pl('spacing'),
|
4444 |
-
'units' => ['px', 'em', '%'],
|
4445 |
-
'screen' => 1,
|
4446 |
-
'css' => ['{{element}} .pagelayer-countdown-count' => 'margin-top: {{val[0]}}; margin-right: {{val[1]}}; margin-bottom: {{val[2]}}; margin-left: {{val[3]}};'],
|
4447 |
-
),
|
4448 |
-
'days' => array(
|
4449 |
-
'type' => 'checkbox',
|
4450 |
-
'label' => __pl('days'),
|
4451 |
-
'default' => 'true',
|
4452 |
-
),
|
4453 |
-
'hours' => array(
|
4454 |
-
'type' => 'checkbox',
|
4455 |
-
'label' => __pl('hours'),
|
4456 |
-
'default' => 'true',
|
4457 |
-
),
|
4458 |
-
'minutes' => array(
|
4459 |
-
'type' => 'checkbox',
|
4460 |
-
'label' => __pl('minutes'),
|
4461 |
-
'default' => 'true',
|
4462 |
-
),
|
4463 |
-
'seconds' => array(
|
4464 |
-
'type' => 'checkbox',
|
4465 |
-
'label' => __pl('seconds'),
|
4466 |
-
'default' => 'true',
|
4467 |
-
),
|
4468 |
-
),
|
4469 |
-
'expired_text' =>[
|
4470 |
-
'display_expired_text' => array(
|
4471 |
-
'type' => 'checkbox',
|
4472 |
-
'label' => __pl('expired_text'),
|
4473 |
-
),
|
4474 |
-
'expired_text' => array(
|
4475 |
-
'type' => 'text',
|
4476 |
-
'label' => __pl('text'),
|
4477 |
-
'default' => 'Countdown Timer Expired',
|
4478 |
-
),
|
4479 |
-
'expired_color' => array(
|
4480 |
-
'type' => 'color',
|
4481 |
-
'label' => __pl('text_color'),
|
4482 |
-
'default' => '#000000',
|
4483 |
-
'css' => ['{{element}} .pagelayer-countdown-expired p' => 'color:{{expired_color}};'],
|
4484 |
-
),
|
4485 |
-
'expired_style' => array(
|
4486 |
-
'type' => 'typography',
|
4487 |
-
'label' => __pl('expired_style'),
|
4488 |
-
'default' => ',50,,500,,,solid,,,,',
|
4489 |
-
'screen' => 1,
|
4490 |
-
'css' => ['{{element}} .pagelayer-countdown-expired p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4491 |
-
),
|
4492 |
-
'expired_padding' => array(
|
4493 |
-
'type' => 'padding',
|
4494 |
-
'label' => __pl('padding'),
|
4495 |
-
'units' => ['px', '%'],
|
4496 |
-
'screen' => 1,
|
4497 |
-
'css' => ['{{element}} .pagelayer-countdown-expired' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
|
4498 |
-
),
|
4499 |
-
'expired_align' => array(
|
4500 |
-
'type' => 'radio',
|
4501 |
-
'label' => __pl('alignment'),
|
4502 |
-
'default' => 'center',
|
4503 |
-
'screen' => 1,
|
4504 |
-
'list' => array(
|
4505 |
-
'left' => __pl('left'),
|
4506 |
-
'center' => __pl('center'),
|
4507 |
-
'right' => __pl('right'),
|
4508 |
-
),
|
4509 |
-
'css' => ['{{element}} .pagelayer-countdown-expired' => 'text-align:{{val}};'],
|
4510 |
-
),
|
4511 |
-
],
|
4512 |
-
'text_style' =>[
|
4513 |
-
'show_label' => array(
|
4514 |
-
'type' => 'checkbox',
|
4515 |
-
'label' => __pl('show_title'),
|
4516 |
-
'default' => 'true',
|
4517 |
-
),
|
4518 |
-
'custom_label_text' => array(
|
4519 |
-
'type' => 'checkbox',
|
4520 |
-
'label' => __pl('custom_label_text'),
|
4521 |
-
'show' => array(
|
4522 |
-
'show_label' => 'true',
|
4523 |
-
),
|
4524 |
-
),
|
4525 |
-
'days_label_text' => array(
|
4526 |
-
'type' => 'text',
|
4527 |
-
'label' => __pl('days'),
|
4528 |
-
'default' => __pl('days'),
|
4529 |
-
'show' => array(
|
4530 |
-
'!custom_label_text' => '',
|
4531 |
-
'!days' => '',
|
4532 |
-
),
|
4533 |
-
),
|
4534 |
-
'hours_label_text' => array(
|
4535 |
-
'type' => 'text',
|
4536 |
-
'label' => __pl('hours'),
|
4537 |
-
'default' => __pl('hours'),
|
4538 |
-
'show' => array(
|
4539 |
-
'!custom_label_text' => '',
|
4540 |
-
'!hours' => '',
|
4541 |
-
),
|
4542 |
-
),
|
4543 |
-
'minutes_label_text' => array(
|
4544 |
-
'type' => 'text',
|
4545 |
-
'label' => __pl('minutes'),
|
4546 |
-
'default' => __pl('minutes'),
|
4547 |
-
'show' => array(
|
4548 |
-
'!custom_label_text' => '',
|
4549 |
-
'!minutes' => '',
|
4550 |
-
),
|
4551 |
-
),
|
4552 |
-
'seconds_label_text' => array(
|
4553 |
-
'type' => 'text',
|
4554 |
-
'label' => __pl('seconds'),
|
4555 |
-
'default' => __pl('seconds'),
|
4556 |
-
'show' => array(
|
4557 |
-
'!custom_label_text' => '',
|
4558 |
-
'!seconds' => '',
|
4559 |
-
),
|
4560 |
-
),
|
4561 |
-
'font_color' => array(
|
4562 |
-
'type' => 'color',
|
4563 |
-
'label' => __pl('text_color'),
|
4564 |
-
'default' => '#ffffff',
|
4565 |
-
'css' => ['{{element}} .pagelayer-countdown-name span' => 'color:{{font_color}}'],
|
4566 |
-
'show' => array(
|
4567 |
-
'show_label' => 'true',
|
4568 |
-
),
|
4569 |
-
),
|
4570 |
-
'cd_text_style' => array(
|
4571 |
-
'type' => 'typography',
|
4572 |
-
'label' => __pl('typography'),
|
4573 |
-
'default' => ',18,,500,,,solid,,,,',
|
4574 |
-
'screen' => 1,
|
4575 |
-
'css' => ['{{element}} .pagelayer-countdown-name' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4576 |
-
'show' => array(
|
4577 |
-
'show_label' => 'true',
|
4578 |
-
),
|
4579 |
-
),
|
4580 |
-
],
|
4581 |
-
'block_styles' =>[
|
4582 |
-
'display' => array(
|
4583 |
-
'type' => 'select',
|
4584 |
-
'label' => __pl('display'),
|
4585 |
-
'default' => 'block',
|
4586 |
-
'list' => [
|
4587 |
-
'block' => __pl('block'),
|
4588 |
-
'inline' => __pl('inline'),
|
4589 |
-
],
|
4590 |
-
),
|
4591 |
-
'block_color' => array(
|
4592 |
-
'type' => 'color',
|
4593 |
-
'label' => __pl('bg_color'),
|
4594 |
-
'default' => '#2b1661',
|
4595 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'background-color:{{block_color}}'],
|
4596 |
-
),
|
4597 |
-
'blocks_padding' => array(
|
4598 |
-
'type' => 'padding',
|
4599 |
-
'label' => __pl('padding'),
|
4600 |
-
'units' => ['px', 'em', '%'],
|
4601 |
-
'screen' => 1,
|
4602 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'padding-top: {{val[0]}}; padding-right: {{val[1]}}; padding-bottom: {{val[2]}}; padding-left: {{val[3]}}'],
|
4603 |
-
),
|
4604 |
-
'blocks_space' => array(
|
4605 |
-
'type' => 'padding',
|
4606 |
-
'label' => __pl('block_space'),
|
4607 |
-
'units' => ['px', 'em'],
|
4608 |
-
'screen' => 1,
|
4609 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'margin-top: {{val[0]}}; margin-right: {{val[1]}}; margin-bottom: {{val[2]}}; margin-left: {{val[3]}}'],
|
4610 |
-
),
|
4611 |
-
'cd_border_state' => array(
|
4612 |
-
'type' => 'radio',
|
4613 |
-
'label' => __pl(''),
|
4614 |
-
'default' => '',
|
4615 |
-
'list' => array(
|
4616 |
-
'' => __pl('normal'),
|
4617 |
-
'hover' => __pl('hover'),
|
4618 |
-
),
|
4619 |
-
),
|
4620 |
-
'cd_border_type' => array(
|
4621 |
-
'type' => 'select',
|
4622 |
-
'label' => __pl('border_type'),
|
4623 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'border-style: {{val}}'],
|
4624 |
-
'list' => [
|
4625 |
-
'' => __pl('none'),
|
4626 |
-
'solid' => __pl('solid'),
|
4627 |
-
'double' => __pl('double'),
|
4628 |
-
'dotted' => __pl('dotted'),
|
4629 |
-
'dashed' => __pl('dashed'),
|
4630 |
-
'groove' => __pl('groove'),
|
4631 |
-
],
|
4632 |
-
'show' => array(
|
4633 |
-
'cd_border_state' => ''
|
4634 |
-
),
|
4635 |
-
),
|
4636 |
-
'cd_border_color' => array(
|
4637 |
-
'type' => 'color',
|
4638 |
-
'label' => __pl('border_color'),
|
4639 |
-
'default' => '#0986c0',
|
4640 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'border-color: {{val}};'],
|
4641 |
-
'req' => array(
|
4642 |
-
'!cd_border_type' => ''
|
4643 |
-
),
|
4644 |
-
'show' => array(
|
4645 |
-
'cd_border_state' => ''
|
4646 |
-
),
|
4647 |
-
),
|
4648 |
-
'cd_border_width' => array(
|
4649 |
-
'type' => 'padding',
|
4650 |
-
'label' => __pl('border_width'),
|
4651 |
-
'screen' => 1,
|
4652 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
4653 |
-
'req' => [
|
4654 |
-
'!cd_border_type' => ''
|
4655 |
-
],
|
4656 |
-
'show' => array(
|
4657 |
-
'cd_border_state' => ''
|
4658 |
-
),
|
4659 |
-
),
|
4660 |
-
'cd_border_radius' => array(
|
4661 |
-
'type' => 'padding',
|
4662 |
-
'label' => __pl('border_radius'),
|
4663 |
-
'units' => ['px', '%'],
|
4664 |
-
'screen' => 1,
|
4665 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
|
4666 |
-
'show' => array(
|
4667 |
-
'cd_border_state' => ''
|
4668 |
-
),
|
4669 |
-
),
|
4670 |
-
'cd_border_type_hover' => array(
|
4671 |
-
'type' => 'select',
|
4672 |
-
'label' => __pl('border_type'),
|
4673 |
-
'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-style: {{val}}'],
|
4674 |
-
'list' => [
|
4675 |
-
'' => __pl('none'),
|
4676 |
-
'solid' => __pl('solid'),
|
4677 |
-
'double' => __pl('double'),
|
4678 |
-
'dotted' => __pl('dotted'),
|
4679 |
-
'dashed' => __pl('dashed'),
|
4680 |
-
'groove' => __pl('groove'),
|
4681 |
-
],
|
4682 |
-
'show' => array(
|
4683 |
-
'cd_border_state' => 'hover'
|
4684 |
-
),
|
4685 |
-
),
|
4686 |
-
'cd_border_color_hover' => array(
|
4687 |
-
'type' => 'color',
|
4688 |
-
'label' => __pl('border_color'),
|
4689 |
-
'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-color: {{val}};'],
|
4690 |
-
'default' => '#0986c0',
|
4691 |
-
'req' => array(
|
4692 |
-
'!cd_border_type_hover' => ''
|
4693 |
-
),
|
4694 |
-
'show' => array(
|
4695 |
-
'cd_border_state' => 'hover'
|
4696 |
-
),
|
4697 |
-
),
|
4698 |
-
'cd_border_width_hover' => array(
|
4699 |
-
'type' => 'padding',
|
4700 |
-
'label' => __pl('border_width'),
|
4701 |
-
'screen' => 1,
|
4702 |
-
'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
4703 |
-
'req' => [
|
4704 |
-
'!cd_border_type_hover' => ''
|
4705 |
-
],
|
4706 |
-
'show' => array(
|
4707 |
-
'cd_border_state' => 'hover'
|
4708 |
-
),
|
4709 |
-
),
|
4710 |
-
'cd_border_radius_hover' => array(
|
4711 |
-
'type' => 'padding',
|
4712 |
-
'label' => __pl('border_radius'),
|
4713 |
-
'units' => ['px', '%'],
|
4714 |
-
'screen' => 1,
|
4715 |
-
'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
4716 |
-
'show' => array(
|
4717 |
-
'cd_border_state' => 'hover'
|
4718 |
-
),
|
4719 |
-
),
|
4720 |
-
'cd_shadow' => array(
|
4721 |
-
'type' => 'box_shadow',
|
4722 |
-
'label' => __pl('shadow'),
|
4723 |
-
'css' => ['{{element}} .pagelayer-countdown-item' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
4724 |
-
'show' => array(
|
4725 |
-
'cd_border_state' => '',
|
4726 |
-
),
|
4727 |
-
),
|
4728 |
-
'cd_shadow_hover' => array(
|
4729 |
-
'type' => 'box_shadow',
|
4730 |
-
'label' => __pl('shadow'),
|
4731 |
-
'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
4732 |
-
'show' => array(
|
4733 |
-
'cd_border_state' => 'hover'
|
4734 |
-
),
|
4735 |
-
),
|
4736 |
-
],
|
4737 |
-
'styles' => [
|
4738 |
-
'text_style' => __pl('title_style'),
|
4739 |
-
'expired_text' => __pl('expired_text'),
|
4740 |
-
'block_styles' => __pl('block_styles'),
|
4741 |
-
],
|
4742 |
-
)
|
4743 |
-
);
|
4744 |
-
|
4745 |
-
// Button Group
|
4746 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_btn_grp', array(
|
4747 |
-
'name' => __pl('btn_grp'),
|
4748 |
-
'group' => 'button',
|
4749 |
-
'has_group' => [
|
4750 |
-
'section' => 'params',
|
4751 |
-
'prop' => 'elements'
|
4752 |
-
],
|
4753 |
-
'params' => array(
|
4754 |
-
'elements' => array(
|
4755 |
-
'type' => 'group',
|
4756 |
-
'label' => __pl('buttons'),
|
4757 |
-
'sc' => PAGELAYER_SC_PREFIX.'_btn',
|
4758 |
-
'item_label' => array(
|
4759 |
-
'default' => __pl('button'),
|
4760 |
-
'param' => 'text'
|
4761 |
-
),
|
4762 |
-
'count' => 2,
|
4763 |
-
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('button_name'))),
|
4764 |
-
),
|
4765 |
-
'align' => array(
|
4766 |
-
'type' => 'radio',
|
4767 |
-
'label' => __pl('alignment'),
|
4768 |
-
'default' => 'center',
|
4769 |
-
'screen' => 1,
|
4770 |
-
'css' => [
|
4771 |
-
'{{element}}' => 'text-align: {{val}}',
|
4772 |
-
'{{element}} .pagelayer-btn' => 'text-align: {{val}}'
|
4773 |
-
],
|
4774 |
-
'list' => array(
|
4775 |
-
'left' => __pl('left'),
|
4776 |
-
'center' => __pl('center'),
|
4777 |
-
'right' => __pl('right')
|
4778 |
-
)
|
4779 |
-
),
|
4780 |
-
'group_layout' => array(
|
4781 |
-
'type' => 'radio',
|
4782 |
-
'label' => __pl('layout'),
|
4783 |
-
'default' => 'horizontal',
|
4784 |
-
'css' => ['{{element}} > div' => 'display: inline-block;'],
|
4785 |
-
'list' => array(
|
4786 |
-
'horizontal' => __pl('horizontal'),
|
4787 |
-
'' => __pl('vertical')
|
4788 |
-
)
|
4789 |
-
),
|
4790 |
-
'hindent' => array(
|
4791 |
-
'type' => 'spinner',
|
4792 |
-
'label' => __pl('space_between'),
|
4793 |
-
'default' => '5',
|
4794 |
-
'css' => ['{{element}} .pagelayer-btn' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
|
4795 |
-
'min' => 0,
|
4796 |
-
'step' => 1,
|
4797 |
-
'max' => 50,
|
4798 |
-
'default' => 3,
|
4799 |
-
'screen' => 1,
|
4800 |
-
'req' => ['group_layout' => 'horizontal']
|
4801 |
-
),
|
4802 |
-
'vindent' => array(
|
4803 |
-
'type' => 'spinner',
|
4804 |
-
'label' => __pl('space_between'),
|
4805 |
-
'default' => '5',
|
4806 |
-
'css' => ['{{element}} .pagelayer-btn' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
|
4807 |
-
'min' => 0,
|
4808 |
-
'step' => 1,
|
4809 |
-
'max' => 50,
|
4810 |
-
'default' => 3,
|
4811 |
-
'screen' => 1,
|
4812 |
-
'req' => ['group_layout' => '']
|
4813 |
-
)
|
4814 |
-
)
|
4815 |
-
)
|
4816 |
-
);
|
4817 |
-
|
4818 |
-
// Testimonial Slider
|
4819 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_testimonial_slider', array(
|
4820 |
-
'name' => __pl('testimonial_slider'),
|
4821 |
-
'group' => 'other',
|
4822 |
-
'has_group' => [
|
4823 |
-
'section' => 'params',
|
4824 |
-
'prop' => 'elements'
|
4825 |
-
],
|
4826 |
-
'icon' => 'pli pli-commenting-o',
|
4827 |
-
'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc
|
4828 |
-
'holder' => '.pagelayer-testimonials-holder',
|
4829 |
-
'html' => '<div class="pagelayer-testimonials-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme"></div>',
|
4830 |
-
'params' => array(
|
4831 |
-
'elements' => array(
|
4832 |
-
'type' => 'group',
|
4833 |
-
'label' => __pl('testimonial'),
|
4834 |
-
'sc' => PAGELAYER_SC_PREFIX.'_testimonial',
|
4835 |
-
'item_label' => array(
|
4836 |
-
'default' => __pl('testimonial'),
|
4837 |
-
'param' => 'cite'
|
4838 |
-
),
|
4839 |
-
'count' => 3,
|
4840 |
-
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('testimonial')))
|
4841 |
-
),
|
4842 |
-
),
|
4843 |
-
'slider_options' => $pagelayer->slider_options,
|
4844 |
-
'arrow_styles' => $pagelayer->slider_arrow_styles,
|
4845 |
-
'pager_styles' => $pagelayer->slider_pager_styles,
|
4846 |
-
'styles' => [
|
4847 |
-
'slider_options' => __pl('slider_options'),
|
4848 |
-
'arrow_styles' => __pl('arrow_styles'),
|
4849 |
-
'pager_styles' => __pl('pager_styles'),
|
4850 |
-
]
|
4851 |
-
));
|
4852 |
-
|
4853 |
-
|
4854 |
-
|
4855 |
-
// Pricing Table
|
4856 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_pricing', array(
|
4857 |
-
'name' => __pl('pricing_table'),
|
4858 |
-
'group' => 'other',
|
4859 |
-
'has_group' => [
|
4860 |
-
'section' => 'feature_style',
|
4861 |
-
'prop' => 'elements'
|
4862 |
-
],
|
4863 |
-
'holder' => '.pagelayer-pricing-ul',
|
4864 |
-
'html' => '<div class="pagelayer-pricing-details">
|
4865 |
-
<div if="{{ribbon_text}}" class="pagelayer-pricing-ribbon-container">
|
4866 |
-
<div class="pagelayer-pricing-ribbon">
|
4867 |
-
{{ribbon_text}}
|
4868 |
-
</div>
|
4869 |
-
</div>
|
4870 |
-
<h3 if="{{plan_title}}" class="pagelayer-pricing-type">{{plan_title}}</h3>
|
4871 |
-
<h4 if="{{plan_sub_title}}" class="pagelayer-pricing-sub-title">{{plan_sub_title}}</h4>
|
4872 |
-
</div>
|
4873 |
-
<div class="pagelayer-pricing-rate-section">
|
4874 |
-
<h4 if="{{original_price}}" class="pagelayer-pricing-price pagelayer-pricing-original">
|
4875 |
-
<span class="pagelayer-pricing-rate">
|
4876 |
-
<span if="{{currency}}">{{currency}}</span><span class="pagelayer-pricing-orig-amt">{{original_price}}</span>
|
4877 |
-
</span>
|
4878 |
-
</h4>
|
4879 |
-
<h2 class="pagelayer-pricing-price">
|
4880 |
-
<span if="{{currency}}" class="pagelayer-pricing-currency pagelayer-pricing-currency-{{currency_position}}">{{currency}}</span>
|
4881 |
-
<span if="{{price}}" class="pagelayer-pricing-rate pagelayer-pricing-amt">{{price}}</span>
|
4882 |
-
</h2>
|
4883 |
-
<p if="{{period}}" class="pagelayer-pricing-duration">{{period}}</p>
|
4884 |
-
</div>
|
4885 |
-
<div class="pagelayer-pricing-features">
|
4886 |
-
<ul class="pagelayer-pricing-ul"></ul>
|
4887 |
-
<a if="{{price_button}}" href="{{{button_url}}}" class="pagelayer-pricing-btn {{button_type}} pagelayer-ele-link pagelayer-button {{button_size}}">{{button_text}}</a>
|
4888 |
-
<p if="{{additional_info}}" class="pagelayer-pricing-additional">{{additional_info}}</p>
|
4889 |
-
</div>',
|
4890 |
-
'params' => array(
|
4891 |
-
'plan_title' => array(
|
4892 |
-
'type' => 'text',
|
4893 |
-
'label' => __pl('plan_type'),
|
4894 |
-
'default' => 'Standard',
|
4895 |
-
'edit' => '.pagelayer-pricing-type',
|
4896 |
-
),
|
4897 |
-
'title_color' => array(
|
4898 |
-
'type' => 'color',
|
4899 |
-
'label' => __pl('color'),
|
4900 |
-
'default' => '#ffffff',
|
4901 |
-
'css' => ['{{element}} .pagelayer-pricing-type' => 'color:{{val}};'],
|
4902 |
-
),
|
4903 |
-
'title_size' => array(
|
4904 |
-
'type' => 'typography',
|
4905 |
-
'label' => __pl('typography'),
|
4906 |
-
'default' => 'Poppins,20,,500,,,solid,,,,',
|
4907 |
-
'css' => ['{{element}} .pagelayer-pricing-type' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4908 |
-
),
|
4909 |
-
),
|
4910 |
-
//styles
|
4911 |
-
'header_style' => [
|
4912 |
-
'header_background_color' => array(
|
4913 |
-
'type' => 'color',
|
4914 |
-
'label' => __pl('bg_color'),
|
4915 |
-
'default' => '#d55400',
|
4916 |
-
'css' => ['{{element}} .pagelayer-pricing-details' => 'background-color:{{val}} !important;'],
|
4917 |
-
),
|
4918 |
-
'header_padding' => array(
|
4919 |
-
'label' => __pl('padding'),
|
4920 |
-
'type' => 'padding',
|
4921 |
-
'default' => '10,10,10,10',
|
4922 |
-
'css' => ['{{element}} .pagelayer-pricing-details' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
4923 |
-
),
|
4924 |
-
'header_border_type' => array(
|
4925 |
-
'type' => 'select',
|
4926 |
-
'label' => __pl('border_type'),
|
4927 |
-
'css' => ['{{element}} .pagelayer-pricing-details' =>'border-style: {{val}};'],
|
4928 |
-
'list' => [
|
4929 |
-
'' => __pl('none'),
|
4930 |
-
'solid' => __pl('solid'),
|
4931 |
-
'double' => __pl('double'),
|
4932 |
-
'dotted' => __pl('dotted'),
|
4933 |
-
'dashed' => __pl('dashed'),
|
4934 |
-
'groove' => __pl('groove'),
|
4935 |
-
],
|
4936 |
-
),
|
4937 |
-
'header_border_color' => array(
|
4938 |
-
'type' => 'color',
|
4939 |
-
'label' => __pl('border_color'),
|
4940 |
-
'default' => '#e5e5e8',
|
4941 |
-
'css' => ['{{element}} .pagelayer-pricing-details' => 'border-color: {{val}};'],
|
4942 |
-
'req' => ['!header_border_type' => '']
|
4943 |
-
),
|
4944 |
-
'header_border_width' => array(
|
4945 |
-
'type' => 'padding',
|
4946 |
-
'label' => __pl('border_width'),
|
4947 |
-
'default' => '0,0,0,0',
|
4948 |
-
'css' => ['{{element}} .pagelayer-pricing-details' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
|
4949 |
-
'req' => ['!header_border_type' => '']
|
4950 |
-
),
|
4951 |
-
'header_border_radius' => array(
|
4952 |
-
'type' => 'padding',
|
4953 |
-
'label' => __pl('border_radius'),
|
4954 |
-
'css' => ['{{element}} .pagelayer-pricing-details' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
4955 |
-
'req' => ['!header_border_type' => '']
|
4956 |
-
),
|
4957 |
-
],
|
4958 |
-
'subtitle_style' => [
|
4959 |
-
'plan_sub_title' => array(
|
4960 |
-
'type' => 'text',
|
4961 |
-
'label' => __pl('subtitle'),
|
4962 |
-
'default' => 'For beginners',
|
4963 |
-
'edit' => '.pagelayer-pricing-sub-title',
|
4964 |
-
),
|
4965 |
-
'subtitle_color' => array(
|
4966 |
-
'type' => 'color',
|
4967 |
-
'label' => __pl('color'),
|
4968 |
-
'default' => '#ffffff',
|
4969 |
-
'css' => ['{{element}} .pagelayer-pricing-sub-title' => 'color:{{val}}'],
|
4970 |
-
),
|
4971 |
-
'subtitle_size' => array(
|
4972 |
-
'type' => 'typography',
|
4973 |
-
'label' => __pl('typography'),
|
4974 |
-
'default' => 'Poppins,18,,500,,,solid,,,,',
|
4975 |
-
'css' => ['{{element}} .pagelayer-pricing-sub-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
4976 |
-
),
|
4977 |
-
],
|
4978 |
-
'price_style' => [
|
4979 |
-
'price' => array(
|
4980 |
-
'type' => 'text',
|
4981 |
-
'label' => __pl('plan_price'),
|
4982 |
-
'default' => '49',
|
4983 |
-
'edit' => '.pagelayer-pricing-amt',
|
4984 |
-
),
|
4985 |
-
'sale' => array(
|
4986 |
-
'type' => 'checkbox',
|
4987 |
-
'label' => __pl('sale'),
|
4988 |
-
),
|
4989 |
-
'original_price' => array(
|
4990 |
-
'type' => 'text',
|
4991 |
-
'label' => __pl('old_price'),
|
4992 |
-
'default' => '100',
|
4993 |
-
'edit' => '.pagelayer-pricing-orig-amt',
|
4994 |
-
'css' => ['{{element}} .pagelayer-pricing-original '=> 'display:inline-block;'],
|
4995 |
-
'req' => array(
|
4996 |
-
'sale' => 'true'
|
4997 |
-
)
|
4998 |
-
),
|
4999 |
-
'price_size' => array(
|
5000 |
-
'label' => __pl('price_size'),
|
5001 |
-
'type' => 'typography',
|
5002 |
-
'default' => 'Poppins,45,,500,,,solid,,,,',
|
5003 |
-
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5004 |
-
),
|
5005 |
-
'price_sale_size' => array(
|
5006 |
-
'label' => __pl('old_price_size'),
|
5007 |
-
'type' => 'typography',
|
5008 |
-
'default' => 'Poppins,35,,500,,,solid,,,,',
|
5009 |
-
'css' => ['{{element}} .pagelayer-pricing-original .pagelayer-pricing-rate' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5010 |
-
'req' => array(
|
5011 |
-
'sale' => 'true'
|
5012 |
-
)
|
5013 |
-
),
|
5014 |
-
'price_state' => array(
|
5015 |
-
'type' => 'radio',
|
5016 |
-
'label' => __pl('price_state'),
|
5017 |
-
'default' => 'normal',
|
5018 |
-
'list' => array(
|
5019 |
-
'normal' => __pl('normal'),
|
5020 |
-
'hover' => __pl('hover'),
|
5021 |
-
),
|
5022 |
-
),
|
5023 |
-
'price_line_height' => array(
|
5024 |
-
'label' => __pl('price_line_height'),
|
5025 |
-
'type' => 'slider',
|
5026 |
-
'min' => 0,
|
5027 |
-
'max' => 500,
|
5028 |
-
'default' => 30,
|
5029 |
-
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'line-height:{{val}}%;'],
|
5030 |
-
),
|
5031 |
-
'price_color' => array(
|
5032 |
-
'type' => 'color',
|
5033 |
-
'label' => __pl('color'),
|
5034 |
-
'default' => '#ffffff',
|
5035 |
-
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'color:{{val}}'],
|
5036 |
-
'show' => ['price_state' => 'normal'],
|
5037 |
-
),
|
5038 |
-
'old_price_color' => array(
|
5039 |
-
'type' => 'color',
|
5040 |
-
'label' => __pl('old_price_color'),
|
5041 |
-
'default' => '#ffffff',
|
5042 |
-
'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate' => 'color:{{val}}'],
|
5043 |
-
'show' => ['price_state' => 'normal'],
|
5044 |
-
'req' => ['sale' => 'true'],
|
5045 |
-
),
|
5046 |
-
'old_price_line_color' => array(
|
5047 |
-
'type' => 'color',
|
5048 |
-
'label' => __pl('old_price_line_color'),
|
5049 |
-
'default' => '#000000',
|
5050 |
-
'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original' => 'color:{{val}}'],
|
5051 |
-
'show' => ['price_state' => 'normal'],
|
5052 |
-
'req' => ['sale' => 'true'],
|
5053 |
-
),
|
5054 |
-
'price_background_color' => array(
|
5055 |
-
'type' => 'color',
|
5056 |
-
'label' => __pl('background_color'),
|
5057 |
-
'default' => '#e98b2b',
|
5058 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'background-color:{{val}}'],
|
5059 |
-
'show' => ['price_state' => 'normal'],
|
5060 |
-
),
|
5061 |
-
'price_color_hover' => array(
|
5062 |
-
'type' => 'color',
|
5063 |
-
'label' => __pl('color'),
|
5064 |
-
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate:hover' => 'color:{{val}}'],
|
5065 |
-
'show' => ['price_state' => 'hover'],
|
5066 |
-
),
|
5067 |
-
'old_price_color_hover' => array(
|
5068 |
-
'type' => 'color',
|
5069 |
-
'label' => __pl('old_price_color'),
|
5070 |
-
'default' => '#ffffff',
|
5071 |
-
'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate:hover' => 'color:{{val}}'],
|
5072 |
-
'show' => ['price_state' => 'hover'],
|
5073 |
-
'req' => ['sale' => 'true'],
|
5074 |
-
),
|
5075 |
-
'old_price_line_color_hover' => array(
|
5076 |
-
'type' => 'color',
|
5077 |
-
'label' => __pl('old_price_line_color'),
|
5078 |
-
'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original:hover' => 'color:{{val}}'],
|
5079 |
-
'show' => ['price_state' => 'hover'],
|
5080 |
-
'req' => ['sale' => 'true'],
|
5081 |
-
),
|
5082 |
-
'price_background_color_hover' => array(
|
5083 |
-
'type' => 'color',
|
5084 |
-
'label' => __pl('background_color'),
|
5085 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section:hover' => 'background-color:{{val}}'],
|
5086 |
-
'show' => ['price_state' => 'hover'],
|
5087 |
-
),
|
5088 |
-
'price_border_type' => array(
|
5089 |
-
'type' => 'select',
|
5090 |
-
'label' => __pl('border_type'),
|
5091 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-style: {{val}};'],
|
5092 |
-
'list' => [
|
5093 |
-
'' => __pl('none'),
|
5094 |
-
'solid' => __pl('solid'),
|
5095 |
-
'double' => __pl('double'),
|
5096 |
-
'dotted' => __pl('dotted'),
|
5097 |
-
'dashed' => __pl('dashed'),
|
5098 |
-
'groove' => __pl('groove'),
|
5099 |
-
],
|
5100 |
-
),
|
5101 |
-
'price_border_color' => array(
|
5102 |
-
'type' => 'color',
|
5103 |
-
'label' => __pl('border_color'),
|
5104 |
-
'default' => '#42414f',
|
5105 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-color: {{val}};'],
|
5106 |
-
'req' => ['!price_border_type' => '']
|
5107 |
-
),
|
5108 |
-
'price_border_width' => array(
|
5109 |
-
'type' => 'padding',
|
5110 |
-
'label' => __pl('border_width'),
|
5111 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
|
5112 |
-
'req' => ['!price_border_type' => '']
|
5113 |
-
),
|
5114 |
-
'price_border_radius' => array(
|
5115 |
-
'type' => 'padding',
|
5116 |
-
'label' => __pl('border_radius'),
|
5117 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5118 |
-
'req' => ['!price_border_type' => '']
|
5119 |
-
),
|
5120 |
-
'price_margin' => array(
|
5121 |
-
'type' => 'padding',
|
5122 |
-
'label' => __pl('margin'),
|
5123 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'margin: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5124 |
-
),
|
5125 |
-
'price_padding' => array(
|
5126 |
-
'type' => 'padding',
|
5127 |
-
'label' => __pl('padding'),
|
5128 |
-
'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5129 |
-
),
|
5130 |
-
],
|
5131 |
-
'currency_style' => [
|
5132 |
-
'currency' => array(
|
5133 |
-
'type' => 'text',
|
5134 |
-
'label' => __pl('currency'),
|
5135 |
-
'default' => '$',
|
5136 |
-
'edit' => '.pagelayer-pricing-currency',
|
5137 |
-
),
|
5138 |
-
'currency_color' => array(
|
5139 |
-
'type' => 'color',
|
5140 |
-
'label' => __pl('color'),
|
5141 |
-
'default' => '#ffffff',
|
5142 |
-
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'color:{{val}}'],
|
5143 |
-
),
|
5144 |
-
'currency_size' => array(
|
5145 |
-
'label' => __pl('currency_size'),
|
5146 |
-
'type' => 'typography',
|
5147 |
-
'default' => 'Poppins,35,,500,,,solid,,,,',
|
5148 |
-
'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5149 |
-
),
|
5150 |
-
'currency_position' => array(
|
5151 |
-
'type' => 'radio',
|
5152 |
-
'label' => __pl('position'),
|
5153 |
-
'default' => 'top',
|
5154 |
-
'list' => array(
|
5155 |
-
'top' => __pl('top'),
|
5156 |
-
'middle' => __pl('middle'),
|
5157 |
-
'bottom' => __pl('bottom'),
|
5158 |
-
),
|
5159 |
-
),
|
5160 |
-
],
|
5161 |
-
'period_style' => [
|
5162 |
-
'period_inline' => array(
|
5163 |
-
'type' => 'checkbox',
|
5164 |
-
'label' => __pl('inline'),
|
5165 |
-
'css' => ['{{element}} .pagelayer-pricing-duration' => 'display:inline-block;'],
|
5166 |
-
),
|
5167 |
-
'period' => array(
|
5168 |
-
'type' => 'text',
|
5169 |
-
'label' => __pl('period'),
|
5170 |
-
'default' => 'Per Month',
|
5171 |
-
'edit' => '.pagelayer-pricing-duration',
|
5172 |
-
),
|
5173 |
-
'period_color' => array(
|
5174 |
-
'type' => 'color',
|
5175 |
-
'label' => __pl('color'),
|
5176 |
-
'default' => '#ffffff',
|
5177 |
-
'css' => ['{{element}} .pagelayer-pricing-duration' => 'color:{{val}}'],
|
5178 |
-
),
|
5179 |
-
'period_size' => array(
|
5180 |
-
'type' => 'typography',
|
5181 |
-
'label' => __pl('heading_typo'),
|
5182 |
-
'default' => ',16,,500,,,solid,,,,',
|
5183 |
-
'css' => ['{{element}} .pagelayer-pricing-duration' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5184 |
-
),
|
5185 |
-
],
|
5186 |
-
'feature_style' => [
|
5187 |
-
'elements' => array(
|
5188 |
-
'type' => 'group',
|
5189 |
-
'label' => __pl('features_item'),
|
5190 |
-
'sc' => PAGELAYER_SC_PREFIX.'_list_item',
|
5191 |
-
'item_label' => array(
|
5192 |
-
'default' => __pl('Features Item'),
|
5193 |
-
'param' => 'item'
|
5194 |
-
),
|
5195 |
-
'count' => 3,
|
5196 |
-
'text' =>strtr(__pl('add_new_item'), array('%name%' => __pl('Feature'))),
|
5197 |
-
),
|
5198 |
-
'features_background_color' => array(
|
5199 |
-
'type' => 'color',
|
5200 |
-
'label' => __pl('background_color'),
|
5201 |
-
'default' => '#ffffff',
|
5202 |
-
'css' => ['{{element}} .pagelayer-pricing-features' => 'background-color:{{val}}'],
|
5203 |
-
),
|
5204 |
-
'features_text_color' => array(
|
5205 |
-
'type' => 'color',
|
5206 |
-
'label' => __pl('color'),
|
5207 |
-
'default' => '#000000',
|
5208 |
-
'css' => ['{{element}} .pagelayer-pricing-ul li span' => 'color:{{val}}'],
|
5209 |
-
),
|
5210 |
-
'features_text_typo' => array(
|
5211 |
-
'type' => 'typography',
|
5212 |
-
'label' => __pl('typography'),
|
5213 |
-
'default' => ',18,,500,,,solid,,,,',
|
5214 |
-
'css' => ['{{element}} .pagelayer-pricing-ul li span' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5215 |
-
),
|
5216 |
-
'pri_features_spacing' => array(
|
5217 |
-
'label' => __pl('space_between'),
|
5218 |
-
'type' => 'slider',
|
5219 |
-
'css' => ['{{element}} .pagelayer-pricing-ul > :not(:last-child) ' => 'margin-bottom:{{val}}px'],
|
5220 |
-
),
|
5221 |
-
'features_padding' => array(
|
5222 |
-
'label' => __pl('padding'),
|
5223 |
-
'type' => 'padding',
|
5224 |
-
'css' => ['{{element}} .pagelayer-pricing-features' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'],
|
5225 |
-
),
|
5226 |
-
],
|
5227 |
-
'additional_info' => [
|
5228 |
-
'additional_info' => array(
|
5229 |
-
'type' => 'textarea',
|
5230 |
-
'label' => __pl('additional_info'),
|
5231 |
-
'default' => 'Some Additional Information',
|
5232 |
-
'edit' => '.pagelayer-pricing-additional',
|
5233 |
-
),
|
5234 |
-
'additional_text_color' => array(
|
5235 |
-
'type' => 'color',
|
5236 |
-
'label' => __pl('color'),
|
5237 |
-
'default' => '#000000',
|
5238 |
-
'css' => ['{{element}} .pagelayer-pricing-additional' => 'color:{{val}}'],
|
5239 |
-
),
|
5240 |
-
'addition_text_typo' => array(
|
5241 |
-
'type' => 'typography',
|
5242 |
-
'label' => __pl('heading_typo'),
|
5243 |
-
'default' => ',16,,500,,,solid,,,,',
|
5244 |
-
'css' => ['{{element}} .pagelayer-pricing-additional' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5245 |
-
),
|
5246 |
-
],
|
5247 |
-
'button_style' => [
|
5248 |
-
'price_button' => array(
|
5249 |
-
'type' => 'checkbox',
|
5250 |
-
'label' => __pl('show_btn'),
|
5251 |
-
'default' => 'true',
|
5252 |
-
),
|
5253 |
-
'button_type' => array(
|
5254 |
-
'type' => 'select',
|
5255 |
-
'label' => __pl('type'),
|
5256 |
-
'default' => 'pagelayer-btn-danger',
|
5257 |
-
'list' => array(
|
5258 |
-
'pagelayer-btn-default' => __pl('btn_type_default'),
|
5259 |
-
'pagelayer-btn-primary' => __pl('btn_type_primary'),
|
5260 |
-
'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
|
5261 |
-
'pagelayer-btn-success' => __pl('btn_type_success'),
|
5262 |
-
'pagelayer-btn-info' => __pl('btn_type_info'),
|
5263 |
-
'pagelayer-btn-warning' => __pl('btn_type_warning'),
|
5264 |
-
'pagelayer-btn-danger' => __pl('btn_type_danger'),
|
5265 |
-
'pagelayer-btn-dark' => __pl('btn_type_dark'),
|
5266 |
-
'pagelayer-btn-light' => __pl('btn_type_light'),
|
5267 |
-
'pagelayer-btn-link' => __pl('btn_type_link'),
|
5268 |
-
'pagelayer-btn-custom' => __pl('btn_type_custom')
|
5269 |
-
),
|
5270 |
-
'req' => array(
|
5271 |
-
'price_button' => 'true'
|
5272 |
-
),
|
5273 |
-
),
|
5274 |
-
'button_size' => array(
|
5275 |
-
'type' => 'select',
|
5276 |
-
'label' => __pl('button_size_label'),
|
5277 |
-
'default' => 'pagelayer-btn-mini',
|
5278 |
-
'list' => array(
|
5279 |
-
'pagelayer-btn-mini' => __pl('mini'),
|
5280 |
-
'pagelayer-btn-small' => __pl('small'),
|
5281 |
-
'pagelayer-btn-large' => __pl('large'),
|
5282 |
-
'pagelayer-btn-extra-large' => __pl('extra_large'),
|
5283 |
-
'pagelayer-btn-double-large' => __pl('double_large'),
|
5284 |
-
'pagelayer-btn-custom' => __pl('custom'),
|
5285 |
-
),
|
5286 |
-
'req' => array(
|
5287 |
-
'price_button' => 'true'
|
5288 |
-
)
|
5289 |
-
),
|
5290 |
-
'button_size_custom' => array(
|
5291 |
-
'type' => 'dimension',
|
5292 |
-
'label' => __pl('padding'),
|
5293 |
-
'screen' => 1,
|
5294 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => 'padding:{{val[0]}}px {{val[1]}}px;'],
|
5295 |
-
'req' => array(
|
5296 |
-
'button_size' => 'pagelayer-btn-custom'
|
5297 |
-
)
|
5298 |
-
),
|
5299 |
-
'button_url' => array(
|
5300 |
-
'type' => 'link',
|
5301 |
-
'label' => __pl('btn_url_label'),
|
5302 |
-
'req' => array(
|
5303 |
-
'price_button' => 'true'
|
5304 |
-
),
|
5305 |
-
),
|
5306 |
-
'button_text' => array(
|
5307 |
-
'type' => 'text',
|
5308 |
-
'label' => __pl('button_text_label'),
|
5309 |
-
'default' => 'Buy This Plan',
|
5310 |
-
'edit' => '.pagelayer-pricing-btn',
|
5311 |
-
'req' => array(
|
5312 |
-
'price_button' => 'true'
|
5313 |
-
),
|
5314 |
-
),
|
5315 |
-
'btn_typo' => array(
|
5316 |
-
'type' => 'typography',
|
5317 |
-
'label' => __pl('typography'),
|
5318 |
-
'screen' => 1,
|
5319 |
-
'css' => [
|
5320 |
-
'{{element}} .pagelayer-pricing-btn' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
|
5321 |
-
],
|
5322 |
-
),
|
5323 |
-
'btn_spacing' => array(
|
5324 |
-
'type' => 'slider',
|
5325 |
-
'label' => __pl('spacing'),
|
5326 |
-
'min' => '0',
|
5327 |
-
'max' => '200',
|
5328 |
-
'default' => '10',
|
5329 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => 'margin-top: {{val}}px;'],
|
5330 |
-
'req' => [
|
5331 |
-
'price_button' => 'true',
|
5332 |
-
]
|
5333 |
-
),
|
5334 |
-
'btn_state' => array(
|
5335 |
-
'type' => 'radio',
|
5336 |
-
'label' => __pl('button_state'),
|
5337 |
-
'default' => 'normal',
|
5338 |
-
'list' => array(
|
5339 |
-
'normal' => __pl('Normal'),
|
5340 |
-
'hover' => __pl('Hover'),
|
5341 |
-
),
|
5342 |
-
'req' => array(
|
5343 |
-
'price_button' => 'true',
|
5344 |
-
'button_type' => 'pagelayer-btn-custom'
|
5345 |
-
),
|
5346 |
-
),
|
5347 |
-
'button_color' => array(
|
5348 |
-
'type' => 'color',
|
5349 |
-
'label' => __pl('iconbox_button_color'),
|
5350 |
-
'default' => '#ffffff',
|
5351 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => 'color:{{val}};'],
|
5352 |
-
'req' => [
|
5353 |
-
'price_button' => 'true',
|
5354 |
-
'button_type' => 'pagelayer-btn-custom',
|
5355 |
-
],
|
5356 |
-
'show' => ['btn_state' => 'normal']
|
5357 |
-
),
|
5358 |
-
'button_bg_color' => array(
|
5359 |
-
'type' => 'color',
|
5360 |
-
'label' => __pl('button_bg_color'),
|
5361 |
-
'default' => '#0986c0',
|
5362 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => 'background-color:{{val}};'],
|
5363 |
-
'req' => [
|
5364 |
-
'button_type' => 'pagelayer-btn-custom',
|
5365 |
-
],
|
5366 |
-
'show' => ['btn_state' => 'normal']
|
5367 |
-
),
|
5368 |
-
'price_btn_border_type' => array(
|
5369 |
-
'type' => 'select',
|
5370 |
-
'label' => __pl('border_type'),
|
5371 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-style: {{val}};'],
|
5372 |
-
'list' => [
|
5373 |
-
'' => __pl('none'),
|
5374 |
-
'solid' => __pl('solid'),
|
5375 |
-
'double' => __pl('double'),
|
5376 |
-
'dotted' => __pl('dotted'),
|
5377 |
-
'dashed' => __pl('dashed'),
|
5378 |
-
'groove' => __pl('groove'),
|
5379 |
-
],
|
5380 |
-
'show' => ['btn_state' => 'normal']
|
5381 |
-
),
|
5382 |
-
'price_btn_border_color' => array(
|
5383 |
-
'type' => 'color',
|
5384 |
-
'label' => __pl('border_color'),
|
5385 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-color: {{val}};'],
|
5386 |
-
'req' => ['!price_btn_border_type' => ''],
|
5387 |
-
'show' => ['btn_state' => 'normal']
|
5388 |
-
),
|
5389 |
-
'price_btn_border_width' => array(
|
5390 |
-
'type' => 'padding',
|
5391 |
-
'label' => __pl('border_width'),
|
5392 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
|
5393 |
-
'req' => ['!price_btn_border_type' => ''],
|
5394 |
-
'show' => ['btn_state' => 'normal']
|
5395 |
-
),
|
5396 |
-
'price_btn_border_radius' => array(
|
5397 |
-
'type' => 'padding',
|
5398 |
-
'label' => __pl('border_radius'),
|
5399 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5400 |
-
'show' => ['btn_state' => 'normal']
|
5401 |
-
),
|
5402 |
-
'pricing_btn_hover_delay' => array(
|
5403 |
-
'type' => 'spinner',
|
5404 |
-
'label' => __pl('btn_hover_delay'),
|
5405 |
-
'min' => 0,
|
5406 |
-
'step' => 100,
|
5407 |
-
'max' => 5000,
|
5408 |
-
'default' => 400,
|
5409 |
-
'css' => ['{{element}} .pagelayer-pricing-btn' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
5410 |
-
'show' => ['btn_state' => 'hover'],
|
5411 |
-
),
|
5412 |
-
'pricing_btn_color_hover' => array(
|
5413 |
-
'type' => 'color',
|
5414 |
-
'label' => __pl('iconbox_button_color'),
|
5415 |
-
'default' => '',
|
5416 |
-
'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'color:{{val}};'],
|
5417 |
-
'show' => ['btn_state' => 'hover'],
|
5418 |
-
),
|
5419 |
-
'pricing_btn_bg_color_hover' => array(
|
5420 |
-
'type' => 'color',
|
5421 |
-
'label' => __pl('button_bg_color_hover'),
|
5422 |
-
'default' => '',
|
5423 |
-
'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'background-color:{{val}};'],
|
5424 |
-
'show' => ['btn_state' => 'hover'],
|
5425 |
-
),
|
5426 |
-
'price_btn_border_type_hover' => array(
|
5427 |
-
'type' => 'select',
|
5428 |
-
'label' => __pl('border_type'),
|
5429 |
-
'css' => ['{{element}} .pagelayer-pricing-btn:hover' =>'border-style: {{val}};'],
|
5430 |
-
'list' => [
|
5431 |
-
'' => __pl('none'),
|
5432 |
-
'solid' => __pl('solid'),
|
5433 |
-
'double' => __pl('double'),
|
5434 |
-
'dotted' => __pl('dotted'),
|
5435 |
-
'dashed' => __pl('dashed'),
|
5436 |
-
'groove' => __pl('groove'),
|
5437 |
-
],
|
5438 |
-
'show' => ['btn_state' => 'hover']
|
5439 |
-
),
|
5440 |
-
'price_btn_border_color_hover' => array(
|
5441 |
-
'type' => 'color',
|
5442 |
-
'label' => __pl('border_color'),
|
5443 |
-
'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'border-color: {{val}};'],
|
5444 |
-
'req' => ['!price_btn_border_type_hover' => ''],
|
5445 |
-
'show' => ['btn_state' => 'hover']
|
5446 |
-
),
|
5447 |
-
'price_btn_border_width_hover' => array(
|
5448 |
-
'type' => 'padding',
|
5449 |
-
'label' => __pl('border_width'),
|
5450 |
-
'css' => ['{{element}} .pagelayer-pricing-btn:hover' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
|
5451 |
-
'req' => ['!price_btn_border_type_hover' => ''],
|
5452 |
-
'show' => ['btn_state' => 'hover']
|
5453 |
-
),
|
5454 |
-
'price_btn_border_radius_hover' => array(
|
5455 |
-
'type' => 'padding',
|
5456 |
-
'label' => __pl('border_radius'),
|
5457 |
-
'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5458 |
-
'show' => ['btn_state' => 'hover']
|
5459 |
-
),
|
5460 |
-
],
|
5461 |
-
'ribbon_style' => [
|
5462 |
-
'ribbon' => array(
|
5463 |
-
'type' => 'checkbox',
|
5464 |
-
'label' => __pl('ribbion_display'),
|
5465 |
-
),
|
5466 |
-
'ribbon_text' => array(
|
5467 |
-
'type' => 'text',
|
5468 |
-
'label' => __pl('ribbion_text'),
|
5469 |
-
'default' => 'Popular',
|
5470 |
-
'css' => ['{{element}} .pagelayer-pricing-ribbon'=> 'display:inline-block;'],
|
5471 |
-
'req' => array(
|
5472 |
-
'ribbon' => 'true'
|
5473 |
-
)
|
5474 |
-
),
|
5475 |
-
'ribbon_text_size' => array(
|
5476 |
-
'type' => 'typography',
|
5477 |
-
'label' => __pl('ribbon_text_size'),
|
5478 |
-
'default' => ',16,,500,,,solid,,,,',
|
5479 |
-
'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5480 |
-
'req' => array(
|
5481 |
-
'ribbon' => 'true'
|
5482 |
-
)
|
5483 |
-
),
|
5484 |
-
'ribbon_text_color' => array(
|
5485 |
-
'type' => 'color',
|
5486 |
-
'label' => __pl('color'),
|
5487 |
-
'default' => '#ffffff',
|
5488 |
-
'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'color:{{val}}'],
|
5489 |
-
'req' => array(
|
5490 |
-
'ribbon' => 'true'
|
5491 |
-
)
|
5492 |
-
),
|
5493 |
-
'ribbon_background' => array(
|
5494 |
-
'type' => 'color',
|
5495 |
-
'label' => __pl('background_color'),
|
5496 |
-
'default' => '#fd6129',
|
5497 |
-
'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'background-color:{{val}}'],
|
5498 |
-
'req' => array(
|
5499 |
-
'ribbon' => 'true'
|
5500 |
-
)
|
5501 |
-
),
|
5502 |
-
],
|
5503 |
-
'styles' => [
|
5504 |
-
'subtitle_style' => __pl('subtitle'),
|
5505 |
-
'header_style' => __pl('header_style'),
|
5506 |
-
'currency_style' => __pl('currency_style'),
|
5507 |
-
'price_style' => __pl('price_style'),
|
5508 |
-
'period_style' => __pl('period_style'),
|
5509 |
-
'feature_style' => __pl('feature_style'),
|
5510 |
-
'button_style' => __pl('button_style'),
|
5511 |
-
'additional_info' => __pl('addition_info'),
|
5512 |
-
'ribbon_style' => __pl('ribbon_style'),
|
5513 |
-
],
|
5514 |
-
)
|
5515 |
-
);
|
5516 |
-
|
5517 |
-
// Social Share Group
|
5518 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_share_grp', array(
|
5519 |
-
'name' => __pl('social_share'),
|
5520 |
-
'group' => 'button',
|
5521 |
-
'has_group' => [
|
5522 |
-
'section' => 'params',
|
5523 |
-
'prop' => 'elements'
|
5524 |
-
],
|
5525 |
-
'params' => array(
|
5526 |
-
'elements' => array(
|
5527 |
-
'type' => 'group',
|
5528 |
-
'label' => __pl('social_share_grp'),
|
5529 |
-
'sc' => PAGELAYER_SC_PREFIX.'_share',
|
5530 |
-
'item_label' => array(
|
5531 |
-
'default' => __pl('share_item'),
|
5532 |
-
'param' => 'icon'
|
5533 |
-
),
|
5534 |
-
'count' => 3,
|
5535 |
-
'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('share_name'))),
|
5536 |
-
),
|
5537 |
-
),
|
5538 |
-
'layout_style' => [
|
5539 |
-
'type' => array(
|
5540 |
-
'type' => 'select',
|
5541 |
-
'label' => __pl('type'),
|
5542 |
-
//'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-style: {{val}}'],
|
5543 |
-
'addClass' => 'pagelayer-share-type-{{val}}',
|
5544 |
-
'default' => 'icon-label',
|
5545 |
-
'list' => [
|
5546 |
-
'icon' => __pl('icon'),
|
5547 |
-
'icon-label' => __pl('icon-label'),
|
5548 |
-
'label' => __pl('label'),
|
5549 |
-
],
|
5550 |
-
),
|
5551 |
-
'count' => array(
|
5552 |
-
'type' => 'radio',
|
5553 |
-
'label' => __pl('count_in_line'),
|
5554 |
-
'default' => '',
|
5555 |
-
'screen' => 1,
|
5556 |
-
'css' => ['{{element}} > div' => 'width: calc(100% / {{val}});'],
|
5557 |
-
'list' => array(
|
5558 |
-
'' => __pl('auto'),
|
5559 |
-
'1' => '1',
|
5560 |
-
'2' => '2',
|
5561 |
-
'3' => '3',
|
5562 |
-
'4' => '4',
|
5563 |
-
'5' => '5',
|
5564 |
-
'6' => '6',
|
5565 |
-
),
|
5566 |
-
'req' => array(
|
5567 |
-
'!type' => 'icon'
|
5568 |
-
)
|
5569 |
-
),
|
5570 |
-
'bg_shape' => array(
|
5571 |
-
'type' => 'select',
|
5572 |
-
'label' => __pl('icon_background_shape'),
|
5573 |
-
'default' => 'pagelayer-social-shape-square',
|
5574 |
-
//'css' => ['{{element}} i' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);',
|
5575 |
-
//'{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'],
|
5576 |
-
'addClass' => '{{val}}',
|
5577 |
-
'list' => array(
|
5578 |
-
'pagelayer-social-bg-none' => __pl('icon_shape_none'),
|
5579 |
-
'pagelayer-social-shape-circle' => __pl('icon_shape_circle'),
|
5580 |
-
'pagelayer-social-shape-square' => __pl('icon_shape_square'),
|
5581 |
-
'pagelayer-social-shape-rounded' => __pl('icon_shape_rounded'),
|
5582 |
-
'pagelayer-social-shape-boxed' => __pl('icon_shape_boxed'),
|
5583 |
-
'pagelayer-social-outline-border' => __pl('icon_shape_outline')
|
5584 |
-
),
|
5585 |
-
),
|
5586 |
-
/* 'bg_size' => array(
|
5587 |
-
'type' => 'spinner',
|
5588 |
-
'label' => __pl('social_grp_size_label'),
|
5589 |
-
'css' => ['{{element}} .pagelayer-icon-holder' => 'height: calc(1em + {{val}}px); width: calc(1em + {{val}}px);'],
|
5590 |
-
'min' => 0,
|
5591 |
-
'step' => 1,
|
5592 |
-
'max' => 100,
|
5593 |
-
'default' => 10,
|
5594 |
-
'req' => array(
|
5595 |
-
'!bg_shape' => ''
|
5596 |
-
)
|
5597 |
-
), */
|
5598 |
-
'align' => array(
|
5599 |
-
'type' => 'radio',
|
5600 |
-
'label' => __pl('obj_align_label'),
|
5601 |
-
'default' => 'center',
|
5602 |
-
'css' => 'text-align: {{val}};',
|
5603 |
-
'screen' => 1,
|
5604 |
-
'list' => array(
|
5605 |
-
'left' => __pl('left'),
|
5606 |
-
'center' => __pl('center'),
|
5607 |
-
'right' => __pl('right')
|
5608 |
-
)
|
5609 |
-
),
|
5610 |
-
/* 'group_layout' => array(
|
5611 |
-
'type' => 'radio',
|
5612 |
-
'label' => __pl('layout'),
|
5613 |
-
'css' => ['{{element}} > div' => 'display: inline-block;'],
|
5614 |
-
'default' => 'horizontal',
|
5615 |
-
'list' => array(
|
5616 |
-
'' => __pl('vertical'),
|
5617 |
-
'horizontal' => __pl('horizontal')
|
5618 |
-
)
|
5619 |
-
), */
|
5620 |
-
'vspace' => array(
|
5621 |
-
'type' => 'spinner',
|
5622 |
-
'label' => __pl('space_between_col'),
|
5623 |
-
'css' => ['{{element}} .pagelayer-share' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
|
5624 |
-
'min' => 0,
|
5625 |
-
'step' => 1,
|
5626 |
-
'max' => 100,
|
5627 |
-
'default' => 2,
|
5628 |
-
'screen' => 1,
|
5629 |
-
/* 'req' => array(
|
5630 |
-
'group_layout' => 'horizontal'
|
5631 |
-
) */
|
5632 |
-
),
|
5633 |
-
'hspace' => array(
|
5634 |
-
'type' => 'spinner',
|
5635 |
-
'label' => __pl('space_between_row'),
|
5636 |
-
'css' => ['{{element}} .pagelayer-share' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
|
5637 |
-
'min' => 0,
|
5638 |
-
'step' => 1,
|
5639 |
-
'max' => 100,
|
5640 |
-
'default' => 2,
|
5641 |
-
'screen' => 1,
|
5642 |
-
/* 'req' => array(
|
5643 |
-
'group_layout' => ''
|
5644 |
-
) */
|
5645 |
-
),
|
5646 |
-
'height' => array(
|
5647 |
-
'type' => 'slider',
|
5648 |
-
'label' => __pl('height'),
|
5649 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'min-height: {{val}}px;'],
|
5650 |
-
'min' => 0,
|
5651 |
-
'step' => 1,
|
5652 |
-
'max' => 100,
|
5653 |
-
'default' => 35,
|
5654 |
-
'screen' => 1,
|
5655 |
-
),
|
5656 |
-
/* 'width' => array(
|
5657 |
-
'type' => 'slider',
|
5658 |
-
'label' => __pl('width'),
|
5659 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'min-width: {{val}}px;'],
|
5660 |
-
'min' => 0,
|
5661 |
-
'step' => 1,
|
5662 |
-
'max' => 100,
|
5663 |
-
), */
|
5664 |
-
],
|
5665 |
-
'icon_style' => [
|
5666 |
-
'icon_size' => array(
|
5667 |
-
'type' => 'spinner',
|
5668 |
-
'label' => __pl('social_grp_size_label'),
|
5669 |
-
'css' => ['{{element}} i' => 'font-size: {{val}}px;',
|
5670 |
-
'{{element}} .pagelayer-icon-holder' => 'font-size: {{val}}px;'],
|
5671 |
-
'min' => 1,
|
5672 |
-
'step' => 1,
|
5673 |
-
'max' => 500,
|
5674 |
-
'default' => 25,
|
5675 |
-
'screen' => 1,
|
5676 |
-
),
|
5677 |
-
'icon_space' => array(
|
5678 |
-
'type' => 'spinner',
|
5679 |
-
'label' => __pl('space_around'),
|
5680 |
-
'css' => ['{{element}} .pagelayer-icon-holder' => 'padding-left: calc(0.5em + {{val}}px); padding-right: calc(0.5em + {{val}}px);'],
|
5681 |
-
'min' => 0,
|
5682 |
-
'step' => 1,
|
5683 |
-
'max' => 100,
|
5684 |
-
'default' => 5,
|
5685 |
-
'screen' => 1,
|
5686 |
-
),
|
5687 |
-
'color_scheme' => array(
|
5688 |
-
'type' => 'select',
|
5689 |
-
'label' => __pl('color'),
|
5690 |
-
'default' => 'pagelayer-scheme-official',
|
5691 |
-
'addClass' => '{{val}}',
|
5692 |
-
'list' => array(
|
5693 |
-
'' => __pl('custom'),
|
5694 |
-
'pagelayer-scheme-official' => __pl('official')
|
5695 |
-
)
|
5696 |
-
),
|
5697 |
-
'social_hover' => array(
|
5698 |
-
'type' => 'radio',
|
5699 |
-
'label' => __pl('state'),
|
5700 |
-
'default' => '',
|
5701 |
-
//'no_val' => 1,// Dont set any value to element
|
5702 |
-
'list' => array(
|
5703 |
-
'' => __pl('normal'),
|
5704 |
-
'hover' => __pl('hover'),
|
5705 |
-
)
|
5706 |
-
),
|
5707 |
-
'icon_color' => array(
|
5708 |
-
'type' => 'color',
|
5709 |
-
'label' => __pl('social_color_label'),
|
5710 |
-
'default' => '#ffffff',
|
5711 |
-
'css' => ['{{element}} .pagelayer-share-buttons i' => 'color: {{val}} !important;'],
|
5712 |
-
'req' => array(
|
5713 |
-
'color_scheme' => ''
|
5714 |
-
),
|
5715 |
-
'show' => ['social_hover' => '']
|
5716 |
-
),
|
5717 |
-
'icon_bg_color' => array(
|
5718 |
-
'type' => 'color',
|
5719 |
-
'label' => __pl('social_bg_color_label'),
|
5720 |
-
'default' => '#0986c0',
|
5721 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'background-color: {{val}} !important;'],
|
5722 |
-
'req' => array(
|
5723 |
-
'!bg_shape' => '',
|
5724 |
-
'color_scheme' => ''
|
5725 |
-
),
|
5726 |
-
'show' => ['social_hover' => '']
|
5727 |
-
),
|
5728 |
-
'icon_border_type' => array(
|
5729 |
-
'type' => 'select',
|
5730 |
-
'label' => __pl('border_type'),
|
5731 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'border-style: {{val}}'],
|
5732 |
-
'list' => [
|
5733 |
-
'' => __pl('none'),
|
5734 |
-
'solid' => __pl('solid'),
|
5735 |
-
'double' => __pl('double'),
|
5736 |
-
'dotted' => __pl('dotted'),
|
5737 |
-
'dashed' => __pl('dashed'),
|
5738 |
-
'groove' => __pl('groove'),
|
5739 |
-
],
|
5740 |
-
'show' => ['social_hover' => '']
|
5741 |
-
),
|
5742 |
-
'icon_border_color' => array(
|
5743 |
-
'type' => 'color',
|
5744 |
-
'label' => __pl('service_box_icon_border_color_label'),
|
5745 |
-
'default' => '#42414f',
|
5746 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'border-color: {{val}} !important;'],
|
5747 |
-
'req' => array(
|
5748 |
-
'!icon_border_type' => '',
|
5749 |
-
'color_scheme' => ''
|
5750 |
-
),
|
5751 |
-
'show' => ['social_hover' => '']
|
5752 |
-
),
|
5753 |
-
'icon_border_width' => array(
|
5754 |
-
'type' => 'padding',
|
5755 |
-
'label' => __pl('border_width'),
|
5756 |
-
'screen' => 1,
|
5757 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important'],
|
5758 |
-
'req' => [
|
5759 |
-
'!icon_border_type' => ''
|
5760 |
-
],
|
5761 |
-
'show' => ['social_hover' => '']
|
5762 |
-
),
|
5763 |
-
'icon_border_radius' => array(
|
5764 |
-
'type' => 'padding',
|
5765 |
-
'label' => __pl('border_radius'),
|
5766 |
-
'screen' => 1,
|
5767 |
-
'css' => ['{{element}} .pagelayer-share-content' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5768 |
-
'req' => array(
|
5769 |
-
'!icon_border_type' => ''
|
5770 |
-
),
|
5771 |
-
'show' => ['social_hover' => '']
|
5772 |
-
),
|
5773 |
-
'social_hover_delay' => array(
|
5774 |
-
'type' => 'spinner',
|
5775 |
-
'label' => __pl('btn_hover_delay_label'),
|
5776 |
-
'desc' => __pl('btn_hover_delay_desc'),
|
5777 |
-
'min' => 0,
|
5778 |
-
'step' => 100,
|
5779 |
-
'max' => 5000,
|
5780 |
-
'default' => 400,
|
5781 |
-
'css' => ['{{element}} .pagelayer-share-content' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
|
5782 |
-
'{{element}} .pagelayer-share-content i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
5783 |
-
'show' => array(
|
5784 |
-
'social_hover' => 'hover'
|
5785 |
-
),
|
5786 |
-
),
|
5787 |
-
'icon_color_hover' => array(
|
5788 |
-
'type' => 'color',
|
5789 |
-
'label' => __pl('social_color_label'),
|
5790 |
-
'css' => ['{{element}} .pagelayer-share-buttons:hover i' => 'color: {{val}} !important;'],
|
5791 |
-
'req' => array(
|
5792 |
-
'color_scheme' => ''
|
5793 |
-
),
|
5794 |
-
'show' => ['social_hover' => 'hover']
|
5795 |
-
),
|
5796 |
-
'icon_bg_color_hover' => array(
|
5797 |
-
'type' => 'color',
|
5798 |
-
'label' => __pl('social_bg_color_label'),
|
5799 |
-
'css' => ['{{element}} .pagelayer-share-content:hover' => 'background-color: {{val}} !important;'],
|
5800 |
-
'req' => array(
|
5801 |
-
'!bg_shape' => '',
|
5802 |
-
'color_scheme' => ''
|
5803 |
-
),
|
5804 |
-
'show' => ['social_hover' => 'hover']
|
5805 |
-
),
|
5806 |
-
'icon_border_type_hover' => array(
|
5807 |
-
'type' => 'select',
|
5808 |
-
'label' => __pl('border_type'),
|
5809 |
-
'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-style: {{val}}'],
|
5810 |
-
'list' => [
|
5811 |
-
'' => __pl('none'),
|
5812 |
-
'solid' => __pl('solid'),
|
5813 |
-
'double' => __pl('double'),
|
5814 |
-
'dotted' => __pl('dotted'),
|
5815 |
-
'dashed' => __pl('dashed'),
|
5816 |
-
'groove' => __pl('groove'),
|
5817 |
-
],
|
5818 |
-
'show' => ['social_hover' => 'hover']
|
5819 |
-
),
|
5820 |
-
'icon_border_color_hover' => array(
|
5821 |
-
'type' => 'color',
|
5822 |
-
'label' => __pl('border_color_hover_label'),
|
5823 |
-
'default' => '#42414f',
|
5824 |
-
'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-color: {{val}} !important;'],
|
5825 |
-
'req' => array(
|
5826 |
-
'!icon_border_type_hover' => '',
|
5827 |
-
'color_scheme' => ''
|
5828 |
-
),
|
5829 |
-
'show' => ['social_hover' => 'hover']
|
5830 |
-
),
|
5831 |
-
'icon_border_width_hover' => array(
|
5832 |
-
'type' => 'padding',
|
5833 |
-
'label' => __pl('border_width_hover'),
|
5834 |
-
'screen' => 1,
|
5835 |
-
'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important'],
|
5836 |
-
'req' => [
|
5837 |
-
'!icon_border_type_hover' => ''
|
5838 |
-
],
|
5839 |
-
'show' => ['social_hover' => 'hover']
|
5840 |
-
),
|
5841 |
-
'icon_border_radius_hover' => array(
|
5842 |
-
'type' => 'padding',
|
5843 |
-
'label' => __pl('border_radius_hover'),
|
5844 |
-
'screen' => 1,
|
5845 |
-
'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
|
5846 |
-
'req' => array(
|
5847 |
-
'!icon_border_type_hover' => ''
|
5848 |
-
),
|
5849 |
-
'show' => ['social_hover' => 'hover']
|
5850 |
-
),
|
5851 |
-
],
|
5852 |
-
'label_style' => [
|
5853 |
-
'hide_name' => array(
|
5854 |
-
'type' => 'checkbox',
|
5855 |
-
'label' => __pl('hide_name'),
|
5856 |
-
'screen' => 1,
|
5857 |
-
'css' => ['{{element}} .pagelayer-icon-name span' => 'display: none;'],
|
5858 |
-
),
|
5859 |
-
'name_typo' => array(
|
5860 |
-
'type' => 'typography',
|
5861 |
-
'label' => __pl('quote_content_typo'),
|
5862 |
-
'default' => ',15,,,,,solid,,,,',
|
5863 |
-
'screen' => 1,
|
5864 |
-
'css' => ['{{element}} .pagelayer-icon-name' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
5865 |
-
),
|
5866 |
-
],
|
5867 |
-
'styles' => [
|
5868 |
-
'layout_style' => __pl('layout_style'),
|
5869 |
-
'icon_style' => __pl('icon_style'),
|
5870 |
-
'label_style' => __pl('label_style'),
|
5871 |
-
]
|
5872 |
-
)
|
5873 |
-
);
|
5874 |
-
|
5875 |
-
// Social Share Button
|
5876 |
-
pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_share', array(
|
5877 |
-
'name' => __pl('icon'),
|
5878 |
-
'group' => 'button',
|
5879 |
-
'not_visible' => 1,
|
5880 |
-
'html' => '
|
5881 |
-
<a class="pagelayer-ele-link" title="{{icon}}" href="{{social_url}}" target="_blank">
|
5882 |
-
<div class="pagelayer-share-content">
|
5883 |
-
<div class="pagelayer-icon-holder pagelayer-share-buttons">
|
5884 |
-
<i class="pagelayer-social-fa {{icon}}"></i>
|
5885 |
-
</div>
|
5886 |
-
<div class="pagelayer-icon-name">
|
5887 |
-
<span class="pagelayer-icon-name-span">{{icon_label}}</span>
|
5888 |
-
</div>
|
5889 |
-
</div>
|
5890 |
-
</a>',
|
5891 |
-
'params' => array(
|
5892 |
-
'icon' => array(
|
5893 |
-
'type' => 'icon',
|
5894 |
-
'label' => __pl('list_icon_label'),
|
5895 |
-
'default' => 'fab fa-facebook-square',
|
5896 |
-
'addAttr' => ['{{element}} .pagelayer-share-content' => 'data-icon="{{icon}}"'],
|
5897 |
-
'list' => ['facebook', 'facebook-f', 'facebook-square', 'facebook-messenger', 'twitter', 'twitter-square', 'google-plus', 'google-plus-square', 'google-plus-g', 'instagram', 'linkedin', 'linkedin-in', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'skype', 'stumbleupon', 'stumbleupon-circle', 'telegram', 'telegram-plane', 'tumblr', 'tumblr-square', 'vk', 'weibo', 'whatsapp', 'whatsapp-square', 'wordpress', 'wordpress-simple', 'xing', 'xing-square', 'delicious', 'dribbble', 'dribbble-square', 'snapchat-ghost'],
|
5898 |
-
),
|
5899 |
-
'text' => array(
|
5900 |
-
'type' => 'text',
|
5901 |
-
'label' => __pl('custom_label_text'),
|
5902 |
-
'edit' => '.pagelayer-icon-name-span'
|
5903 |
-
),
|
5904 |
-
'target' => array(
|
5905 |
-
'label' => __pl('open_link_in_new_window'),
|
5906 |
-
'type' => 'checkbox',
|
5907 |
-
'addAttr' => ['{{element}} a' => 'target="_blank"'],
|
5908 |
-
),
|
5909 |
-
)
|
5910 |
-
)
|
5911 |
-
);
|
5912 |
-
|
5913 |
-
|
5914 |
-
|
5915 |
-
// Animated heading
|
5916 |
-
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anim_heading', array(
|
5917 |
-
'name' => __pl('animated_heading'),
|
5918 |
-
'group' => 'text',
|
5919 |
-
'innerHTML' => 'text',
|
5920 |
-
'html' => '<a if-ext="{{link}}" href="{{link}}">
|
5921 |
-
<div class="pagelayer-aheading-holder {{rotate_req}}{{animations}}">
|
5922 |
-
<p if="{{text}}" class="pagelayer-animated-heading pagelayer-animated-title">{{text}} </p>{{rotate_html}}
|
5923 |
-
<p if="{{after_text}}" class="pagelayer-animated-heading">{{after_text}}</p>
|
5924 |
-
<div class="pagelayer-blobs_1"></div><div class="pagelayer-blobs_2"></div><div class="pagelayer-blobs_3"></div><div class="pagelayer-blobs_4"></div><div class="pagelayer-blobs_5"></div><div class="pagelayer-blobs_6"></div><div class="pagelayer-blobs_7"></div>
|
5925 |
-
</div>
|
5926 |
-
</a>',
|
5927 |
-
'params' => array(
|
5928 |
-
'type' => array(
|
5929 |
-
'type' => 'select',
|
5930 |
-
'label' => __pl('type'),
|
5931 |
-
'default' => 'effects',
|
5932 |
-
'addClass' => 'pagelayer-heading-{{val}}',
|
5933 |
-
'list' => array(
|
5934 |
-
'effects' => __pl('effects'),
|
5935 |
-
'rotating' => __pl('rotating'),
|
5936 |
-
),
|
5937 |
-
),
|
5938 |
-
'effects' => array(
|
5939 |
-
'type' => 'select',
|
5940 |
-
'label' => __pl('effects'),
|
5941 |
-
'default' => 'blobs',
|
5942 |
-
'addClass' => 'pagelayer-hEffect-{{val}}',
|
5943 |
-
'list' => array(
|
5944 |
-
'none' => __pl('none'),
|
5945 |
-
'blobs' => __pl('blobs'),
|
5946 |
-
'stroke' => __pl('stroke'),
|
5947 |
-
'shadow' => __pl('shadow'),
|
5948 |
-
),
|
5949 |
-
'req' => [ 'type' => 'effects' ]
|
5950 |
-
),
|
5951 |
-
'animations' => array(
|
5952 |
-
'type' => 'select',
|
5953 |
-
'label' => __pl('effects'),
|
5954 |
-
'default' => 'pagelayer-aheading-rotate1',
|
5955 |
-
'list' => array(
|
5956 |
-
'pagelayer-aheading-rotate1' => __pl('rotate-1'),
|
5957 |
-
'pagelayer-aheading-rotate2' => __pl('rotate-2'),
|
5958 |
-
'pagelayer-aheading-rotate3' => __pl('rotate-3'),
|
5959 |
-
'pagelayer-aheading-loading-bar' => __pl('loading-bar'),
|
5960 |
-
'pagelayer-aheading-slide' => __pl('slide'),
|
5961 |
-
'pagelayer-aheading-clip' => __pl('clip'),
|
5962 |
-
'pagelayer-aheading-zoom' => __pl('zoom'),
|
5963 |
-
'pagelayer-aheading-scale' => __pl('scale'),
|
5964 |
-
'pagelayer-aheading-push' => __pl('push'),
|
5965 |
-
),
|
5966 |
-
'req' => [ 'type' => 'rotating' ]
|
5967 |
-
),
|
5968 |
-
'align' => array(
|
5969 |
-
'type' => 'radio',
|
5970 |
-
'label' => __pl('alignment'),
|
5971 |
-
'default' => 'center',
|
5972 |
-
'screen' => 1,
|
5973 |
-
'css' => 'text-align: {{val}};',
|
5974 |
-
'list' => array(
|
5975 |
-
'left' => __pl('left'),
|
5976 |
-
'center' => __pl('center'),
|
5977 |
-
'right' => __pl('right'),
|
5978 |
-
)
|
5979 |
-
),
|
5980 |
-
),
|
5981 |
-
'title_style' => [
|
5982 |
-
'text' => array(
|
5983 |
-
'type' => 'text',
|
5984 |
-
'label' => __pl('title'),
|
5985 |
-
'default' => __pl('animated_heading'),
|
5986 |
-
'edit' => '.pagelayer-animated-title',
|
5987 |
-
),
|
5988 |
-
'rotate_text' => array(
|
5989 |
-
'type' => 'textarea',
|
5990 |
-
'label' => __pl('rotate_text'),
|
5991 |
-
'default' => __pl('rotate_default'),
|
5992 |
-
'req' => [ 'type' => 'rotating' ]
|
5993 |
-
),
|
5994 |
-
'after_text' => array(
|
5995 |
-
'type' => 'text',
|
5996 |
-
'label' => __pl('after_text'),
|
5997 |
-
'req' => [ 'type' => 'rotating' ]
|
5998 |
-
),
|
5999 |
-
'typo' => array(
|
6000 |
-
'type' => 'typography',
|
6001 |
-
'label' => __pl('typography'),
|
6002 |
-
'screen' => 1,
|
6003 |
-
'default' => ',40,,700,,,solid,,,,',
|
6004 |
-
'css' => ['{{element}} .pagelayer-animated-heading' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
|
6005 |
-
),
|
6006 |
-
'color_type' => array(
|
6007 |
-
'type' => 'radio',
|
6008 |
-
'label' => __pl(''),
|
6009 |
-
'default' => 'color',
|
6010 |
-
'list' => array(
|
6011 |
-
'color' => __pl('color'),
|
6012 |
-
'gradient' => __pl('gradient'),
|
6013 |
-
),
|
6014 |
-
),
|
6015 |
-
'color' => array(
|
6016 |
-
'type' => 'color',
|
6017 |
-
'label' => __pl('color'),
|
6018 |
-
'default' => '#A236FA',
|
6019 |
-
'css' => [
|
6020 |
-
'{{element}} .pagelayer-animated-heading' => 'background:{{val}}; -webkit-background-clip: text;',
|
6021 |
-
'{{element}}.pagelayer-hEffect-shadow .pagelayer-animated-heading' => 'color:{{val}};',
|
6022 |
-
'{{element}} .pagelayer-rotating-text *' => 'background:{{val}}; -webkit-background-clip: text;',
|
6023 |
-
'{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background:{{val}};',
|
6024 |
-
'{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background:{{val}};'
|
6025 |
-
],
|
6026 |
-
'req' => ['color_type' => 'color']
|
6027 |
-
),
|
6028 |
-
'gradient' => array(
|
6029 |
-
'type' => 'gradient',
|
6030 |
-
'label' => '',
|
6031 |
-
'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
6032 |
-
'css' => [
|
6033 |
-
'{{element}} .pagelayer-animated-heading' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%); -webkit-background-clip: text;',
|
6034 |
-
'{{element}} .pagelayer-rotating-text *' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%); -webkit-background-clip: text;',
|
6035 |
-
'{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);',
|
6036 |
-
'{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'
|
6037 |
-
],
|
6038 |
-
'req' => [
|
6039 |
-
'color_type' => 'gradient',
|
6040 |
-
'!effects' => 'shadow'
|
6041 |
-
]
|
6042 |
-
),
|
6043 |
-
],
|
6044 |
-
'misc_style' => [
|
6045 |
-
'blob_1' => array(
|
6046 |
-
'type' => 'color',
|
6047 |
-
'label' => __pl('blob_1_color'),
|
6048 |
-
'default' => '#ff1493',
|
6049 |
-
'css' => ['{{element}} .pagelayer-blobs_1' => 'background:{{val}}'],
|
6050 |
-
'req' => [
|
6051 |
-
'effects' => 'blobs',
|
6052 |
-
'type' => 'effects'
|
6053 |
-
]
|
6054 |
-
),
|
6055 |
-
'blob_2' => array(
|
6056 |
-
'type' => 'color',
|
6057 |
-
'label' => __pl('blob_2_color'),
|
6058 |
-
'default' => '#ff4500',
|
6059 |
-
'css' => ['{{element}} .pagelayer-blobs_2' => 'background:{{val}}'],
|
6060 |
-
'req' => [
|
6061 |
-
'effects' => 'blobs',
|
6062 |
-
'type' => 'effects'
|
6063 |
-
]
|
6064 |
-
),
|
6065 |
-
'blob_3' => array(
|
6066 |
-
'type' => 'color',
|
6067 |
-
'label' => __pl('blob_3_color'),
|
6068 |
-
'default' => '#00ff00',
|
6069 |
-
'css' => ['{{element}} .pagelayer-blobs_3' => 'background:{{val}}'],
|
6070 |
-
'req' => [
|
6071 |
-
'effects' => 'blobs',
|
6072 |
-
'type' => 'effects'
|
6073 |
-
]
|
6074 |
-
),
|
6075 |
-
'blob_4' => array(
|
6076 |
-
'type' => 'color',
|
6077 |
-
'label' => __pl('blob_4_color'),
|
6078 |
-
'default' => '#ff0000',
|
6079 |
-
'css' => ['{{element}} .pagelayer-blobs_4' => 'background:{{val}}'],
|
6080 |
-
'req' => [
|
6081 |
-
'effects' => 'blobs',
|
6082 |
-
'type' => 'effects'
|
6083 |
-
]
|
6084 |
-
),
|
6085 |
-
'blob_5' => array(
|
6086 |
-
'type' => 'color',
|
6087 |
-
'label' => __pl('blob_5_color'),
|
6088 |
-
'default' => '#ffff00',
|
6089 |
-
'css' => ['{{element}} .pagelayer-blobs_5' => 'background:{{val}}'],
|
6090 |
-
'req' => [
|
6091 |
-
'effects' => 'blobs',
|
6092 |
-
'type' => 'effects'
|
6093 |
-
]
|
6094 |
-
),
|
6095 |
-
'blob_6' => array(
|
6096 |
-
'type' => 'color',
|
6097 |
-
'label' => __pl('blob_6_color'),
|
6098 |
-
'default' => '#00ffff',
|
6099 |
-
'css' => ['{{element}} .pagelayer-blobs_6' => 'background:{{val}}'],
|
6100 |
-
'req' => [
|
6101 |
-
'effects' => 'blobs',
|
6102 |
-
'type' => 'effects'
|
6103 |
-
]
|
6104 |
-
),
|
6105 |
-
'blob_7' => array(
|
6106 |
-
'type' => 'color',
|
6107 |
-
'label' => __pl('blob_7_color'),
|
6108 |
-
'default' => '#ff8c00',
|
6109 |
-
'css' => ['{{element}} .pagelayer-blobs_7' => 'background:{{val}}'],
|
6110 |
-
'req' => [
|
6111 |
-
'effects' => 'blobs',
|
6112 |
-
'type' => 'effects'
|
6113 |
-
]
|
6114 |
-
),
|
6115 |
-
'stroke' => array(
|
6116 |
-
'type' => 'slider',
|
6117 |
-
'label' => __pl('stroke_thickness'),
|
6118 |
-
'min' => 1,
|
6119 |
-
'step' => 1,
|
6120 |
-
'max' => 50,
|
6121 |
-
'default' => 5,
|
6122 |
-
'screen' => 1,
|
6123 |
-
'css' => ['{{element}} .pagelayer-animated-heading' => '-webkit-text-stroke: {{val}}px transparent;'],
|
6124 |
-
'req' => [ 'effects' => 'stroke' ]
|
6125 |
-
),
|
6126 |
-
'stroke_color' => array(
|
6127 |
-
'type' => 'color',
|
6128 |
-
'label' => __pl('stroke_color'),
|
6129 |
-
'default' => '#ffffff',
|
6130 |
-
'css' => ['{{element}} .pagelayer-animated-heading' => 'color:{{val}}'],
|
6131 |
-
'req' => [ 'effects' => 'stroke' ]
|
6132 |
-
),
|
6133 |
-
'shadow_color' => array(
|
6134 |
-
'type' => 'shadow',
|
6135 |
-
'label' => __pl('shadow'),
|
6136 |
-
'default' => '2,2,,#999999',
|
6137 |
-
'screen' => 1,
|
6138 |
-
'css' => ['{{element}} .pagelayer-animated-heading' => 'text-shadow: {{val[0]}}px {{val[1]}}px #fff, calc({{val[0]}}px * 2) calc({{val[1]}}px * 2) {{val[3]}};'],
|
6139 |
-
'req' => [ 'type' => 'effects', 'effects' => 'shadow' ]
|
6140 |
-
),
|
6141 |
-
'rotate_color' => array(
|
6142 |
-
'type' => 'color',
|
6143 |
-
'label' => __pl('rotate_color'),
|
6144 |
-
'css' => [
|
6145 |
-
'{{element}} .pagelayer-rotating-text *' => 'background:{{val}}; -webkit-background-clip: text;',
|
6146 |
-
'{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background:{{val}};',
|
6147 |
-
'{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background:{{val}};'
|
6148 |
-
],
|
6149 |
-
'req' => ['type' => 'rotating']
|
6150 |
-
),
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/freemium_functions.php
DELETED
@@ -1,831 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
//////////////////////////////////////////////////////////////
|
4 |
-
//===========================================================
|
5 |
-
// freemium_functions.php
|
6 |
-
//===========================================================
|
7 |
-
// PAGELAYER
|
8 |
-
// Inspired by the DESIRE to be the BEST OF ALL
|
9 |
-
// ----------------------------------------------------------
|
10 |
-
// Started by: Pulkit Gupta
|
11 |
-
// Date: 23rd Jan 2017
|
12 |
-
// Time: 23:00 hrs
|
13 |
-
// Site: http://pagelayer.com/wordpress (PAGELAYER)
|
14 |
-
// ----------------------------------------------------------
|
15 |
-
// Please Read the Terms of use at http://pagelayer.com/tos
|
16 |
-
// ----------------------------------------------------------
|
17 |
-
//===========================================================
|
18 |
-
// (c)Pagelayer Team
|
19 |
-
//===========================================================
|
20 |
-
//////////////////////////////////////////////////////////////
|
21 |
-
|
22 |
-
// Are we being accessed directly ?
|
23 |
-
if(!defined('PAGELAYER_VERSION')) {
|
24 |
-
exit('Hacking Attempt !');
|
25 |
-
}
|
26 |
-
|
27 |
-
// Get page title - 2C
|
28 |
-
function pagelayer_get_the_title( $including_context = false ) {
|
29 |
-
$title = '';
|
30 |
-
|
31 |
-
if(pagelayer_is_live() || wp_doing_ajax()){
|
32 |
-
return 'Title';
|
33 |
-
}
|
34 |
-
|
35 |
-
if ( is_singular() ) {
|
36 |
-
$title = get_the_title();
|
37 |
-
|
38 |
-
if ( $including_context ) {
|
39 |
-
$post_type_obj = get_post_type_object( get_post_type() );
|
40 |
-
$title = sprintf( '%s: %s', $post_type_obj->labels->singular_name, $title );
|
41 |
-
}
|
42 |
-
} elseif ( is_search() ) {
|
43 |
-
$title = sprintf( __( 'Search Results for: %s'), get_search_query() );
|
44 |
-
|
45 |
-
if ( get_query_var( 'paged' ) ) {
|
46 |
-
$title .= sprintf( __( ' – Page %s' ), get_query_var( 'paged' ) );
|
47 |
-
}
|
48 |
-
} elseif ( is_category() ) {
|
49 |
-
$title = single_cat_title( '', false );
|
50 |
-
|
51 |
-
if ( $including_context ) {
|
52 |
-
$title = sprintf( __( 'Category Archives: %s' ), $title );
|
53 |
-
}
|
54 |
-
} elseif ( is_tag() ) {
|
55 |
-
$title = single_tag_title( '', false );
|
56 |
-
if ( $including_context ) {
|
57 |
-
$title = sprintf( __( 'Tag Archives: %s' ), $title );
|
58 |
-
}
|
59 |
-
} elseif ( is_author() ) {
|
60 |
-
$title = get_the_author() ;
|
61 |
-
|
62 |
-
if ( $including_context ) {
|
63 |
-
$title = sprintf( __( 'Author Archives: %s' ), $title );
|
64 |
-
}
|
65 |
-
} elseif ( is_year() ) {
|
66 |
-
$title = get_the_date( _x( 'Y', 'yearly archives date format' ) );
|
67 |
-
|
68 |
-
if ( $including_context ) {
|
69 |
-
$title = sprintf( __( 'Yearly Archives: %s' ), $title );
|
70 |
-
}
|
71 |
-
} elseif ( is_month() ) {
|
72 |
-
$title = get_the_date( _x( 'F Y', 'monthly archives date format' ) );
|
73 |
-
|
74 |
-
if ( $including_context ) {
|
75 |
-
$title = sprintf( __( 'Monthly Archives: %s' ), $title );
|
76 |
-
}
|
77 |
-
} elseif ( is_day() ) {
|
78 |
-
$title = get_the_date( _x( 'F j, Y', 'daily archives date format' ) );
|
79 |
-
|
80 |
-
if ( $including_context ) {
|
81 |
-
$title = sprintf( __( 'Daily Archives: %s' ), $title );
|
82 |
-
}
|
83 |
-
} elseif ( is_tax( 'post_format' ) ) {
|
84 |
-
if ( is_tax( 'post_format', 'post-format-aside' ) ) {
|
85 |
-
$title = _x( 'Asides', 'post format archive title' );
|
86 |
-
} elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) {
|
87 |
-
$title = _x( 'Galleries', 'post format archive title' );
|
88 |
-
} elseif ( is_tax( 'post_format', 'post-format-image' ) ) {
|
89 |
-
$title = _x( 'Images', 'post format archive title' );
|
90 |
-
} elseif ( is_tax( 'post_format', 'post-format-video' ) ) {
|
91 |
-
$title = _x( 'Videos', 'post format archive title' );
|
92 |
-
} elseif ( is_tax( 'post_format', 'post-format-quote' ) ) {
|
93 |
-
$title = _x( 'Quotes', 'post format archive title' );
|
94 |
-
} elseif ( is_tax( 'post_format', 'post-format-link' ) ) {
|
95 |
-
$title = _x( 'Links', 'post format archive title' );
|
96 |
-
} elseif ( is_tax( 'post_format', 'post-format-status' ) ) {
|
97 |
-
$title = _x( 'Statuses', 'post format archive title' );
|
98 |
-
} elseif ( is_tax( 'post_format', 'post-format-audio' ) ) {
|
99 |
-
$title = _x( 'Audio', 'post format archive title' );
|
100 |
-
} elseif ( is_tax( 'post_format', 'post-format-chat' ) ) {
|
101 |
-
$title = _x( 'Chats', 'post format archive title' );
|
102 |
-
}
|
103 |
-
} elseif ( is_post_type_archive() ) {
|
104 |
-
$title = post_type_archive_title( '', false );
|
105 |
-
|
106 |
-
if ( $including_context ) {
|
107 |
-
$title = sprintf( __( 'Archives: %s' ), $title );
|
108 |
-
}
|
109 |
-
} elseif ( is_tax() ) {
|
110 |
-
$title = single_term_title( '', false );
|
111 |
-
|
112 |
-
if ( $including_context ) {
|
113 |
-
$tax = get_taxonomy( get_queried_object()->taxonomy );
|
114 |
-
$title = sprintf( __( '%1$s: %2$s' ), $tax->labels->singular_name, $title );
|
115 |
-
}
|
116 |
-
} elseif ( is_404() ) {
|
117 |
-
$title = __( 'Page Not Found' );
|
118 |
-
} elseif ( is_archive() ) {
|
119 |
-
$title = get_the_archive_title();
|
120 |
-
} elseif ( is_home() ) {
|
121 |
-
$title = single_post_title('', false);
|
122 |
-
}
|
123 |
-
|
124 |
-
return $title;
|
125 |
-
}
|
126 |
-
|
127 |
-
// Get Taxonomies
|
128 |
-
function pagelayer_tax_list($item = '', $page = false){
|
129 |
-
|
130 |
-
// Get types
|
131 |
-
$types = pagelayer_post_types($page);
|
132 |
-
|
133 |
-
// Loop thru
|
134 |
-
foreach($types as $slug => $label){
|
135 |
-
|
136 |
-
// Get the items
|
137 |
-
$items = get_object_taxonomies($slug, 'objects');
|
138 |
-
|
139 |
-
foreach($items as $name => $v) {
|
140 |
-
if(!isset($taxonomies[$name])){
|
141 |
-
$taxonomies[$name] = array('label' => $v->labels->singular_name, 'posttypes' => array($label));
|
142 |
-
}else{
|
143 |
-
$taxonomies[$name]['posttypes'][] = $label;
|
144 |
-
}
|
145 |
-
}
|
146 |
-
}
|
147 |
-
|
148 |
-
// Make it simple
|
149 |
-
foreach($taxonomies as $k => $v){
|
150 |
-
$taxonomies[$k] = $v['label'].' ('.implode(', ', $v['posttypes']).')';
|
151 |
-
}
|
152 |
-
|
153 |
-
$pos = array_search($item, array_keys($taxonomies));
|
154 |
-
if(!empty($pos)) {
|
155 |
-
$cut = array_splice($taxonomies, $pos, 1);
|
156 |
-
$taxonomies = $cut + $taxonomies;
|
157 |
-
}
|
158 |
-
|
159 |
-
return $taxonomies;
|
160 |
-
}
|
161 |
-
|
162 |
-
/////////////////////////////////////
|
163 |
-
// Miscellaneous Shortcode Functions
|
164 |
-
/////////////////////////////////////
|
165 |
-
|
166 |
-
// The types of Posts
|
167 |
-
function pagelayer_post_types($page = false){
|
168 |
-
|
169 |
-
// Get the types
|
170 |
-
$args = array('public' => TRUE);
|
171 |
-
$types = get_post_types($args, 'objects');
|
172 |
-
|
173 |
-
// Unset Page if not required
|
174 |
-
if($page == false){
|
175 |
-
unset($types['page']);
|
176 |
-
}
|
177 |
-
|
178 |
-
// Remove Attachment types !
|
179 |
-
unset($types['attachment']);
|
180 |
-
|
181 |
-
foreach($types as $name => $type){
|
182 |
-
$return[$name] = $type->labels->singular_name;
|
183 |
-
}
|
184 |
-
|
185 |
-
return $return;
|
186 |
-
}
|
187 |
-
|
188 |
-
// Get all posts and pages list
|
189 |
-
function pagelayer_get_posts($args = array()){
|
190 |
-
|
191 |
-
if(empty($args)){
|
192 |
-
$args = array_keys(pagelayer_post_types(true));
|
193 |
-
}
|
194 |
-
|
195 |
-
$posts_list = array();
|
196 |
-
|
197 |
-
// Get type
|
198 |
-
foreach($args as $p){
|
199 |
-
|
200 |
-
// Create post list
|
201 |
-
foreach(get_posts(['post_type' => $p]) as $post){
|
202 |
-
$posts_list[$post->ID] = $post->post_title;
|
203 |
-
}
|
204 |
-
}
|
205 |
-
|
206 |
-
return $posts_list;
|
207 |
-
}
|
208 |
-
|
209 |
-
// Get Menu List()
|
210 |
-
function pagelayer_get_menu_list($return_def = false){
|
211 |
-
|
212 |
-
$menus = wp_get_nav_menus();
|
213 |
-
$nav_menu = array();
|
214 |
-
|
215 |
-
$default = $menus[0]->term_id;
|
216 |
-
|
217 |
-
foreach ( $menus as $menu ) {
|
218 |
-
$nav_menu[$menu->term_id] = $menu->name;
|
219 |
-
|
220 |
-
if($default > $menu->term_id){
|
221 |
-
$default = $menu->term_id;
|
222 |
-
}
|
223 |
-
}
|
224 |
-
|
225 |
-
if($return_def){
|
226 |
-
return $default;
|
227 |
-
}
|
228 |
-
|
229 |
-
return $nav_menu;
|
230 |
-
|
231 |
-
}
|
232 |
-
|
233 |
-
// Animated Heading
|
234 |
-
function pagelayer_sc_anim_heading(&$el){
|
235 |
-
|
236 |
-
$el['atts']['rotate_html'] = '';
|
237 |
-
|
238 |
-
//Creates html for rotating text
|
239 |
-
if(!empty($el['atts']['rotate_text'])){
|
240 |
-
|
241 |
-
$rotate_text = '';
|
242 |
-
$rotate_text = explode(',', $el['atts']['rotate_text']);
|
243 |
-
|
244 |
-
$el['atts']['rotate_html'] .= '<p class="pagelayer-animated-heading pagelayer-rotating-text pagelayer-words-wrapper">';
|
245 |
-
//print_r($rotate_text);
|
246 |
-
foreach($rotate_text as $key => $val){
|
247 |
-
//print_r($key);
|
248 |
-
$el['atts']['rotate_html'] .= '<span';
|
249 |
-
if( $key == 0){
|
250 |
-
$el['atts']['rotate_html'] .= ' class="pagelayer-is-visible"';
|
251 |
-
}
|
252 |
-
$el['atts']['rotate_html'] .= '>' . $rotate_text[$key] . '</span>';
|
253 |
-
}
|
254 |
-
|
255 |
-
$el['atts']['rotate_html'] .= '</p>';
|
256 |
-
|
257 |
-
}
|
258 |
-
|
259 |
-
//Required classes for particular rotate
|
260 |
-
$el['atts']['rotate_req'] = '';
|
261 |
-
$letters = ['pagelayer-aheading-rotate2', 'pagelayer-aheading-rotate3', 'pagelayer-aheading-scale'];
|
262 |
-
|
263 |
-
if(!empty($el['atts']['animations'])){
|
264 |
-
if(in_array($el['atts']['animations'], $letters)){
|
265 |
-
$el['atts']['rotate_req'] = 'letters ';
|
266 |
-
}
|
267 |
-
|
268 |
-
if($el['atts']['animations'] == 'clip'){
|
269 |
-
$el['atts']['rotate_req'] = 'is-full-width ';
|
270 |
-
}
|
271 |
-
}
|
272 |
-
|
273 |
-
}
|
274 |
-
|
275 |
-
// Contact Form
|
276 |
-
function pagelayer_sc_contact(&$el){
|
277 |
-
$el['atts']['grecaptcha'] = get_option('pagelayer_google_captcha');
|
278 |
-
|
279 |
-
if(!empty($el['atts']['captcha'])){
|
280 |
-
if(!wp_script_is('pagelayer_cap_script', 'registered')){
|
281 |
-
$pagelayer_cap_lang = get_option('pagelayer_google_captcha_lang');
|
282 |
-
$lang = empty($pagelayer_cap_lang) ? '' : '&hl='.$pagelayer_cap_lang;
|
283 |
-
wp_register_script('pagelayer_cap_script', "https://www.google.com/recaptcha/api.js?render=explicit$lang", array(), PAGELAYER_VERSION, true);
|
284 |
-
}
|
285 |
-
|
286 |
-
wp_enqueue_script('pagelayer_cap_script');
|
287 |
-
}
|
288 |
-
}
|
289 |
-
|
290 |
-
// Contact Form Item
|
291 |
-
function pagelayer_sc_contact_item(&$el){
|
292 |
-
$html = '';
|
293 |
-
$options = array();
|
294 |
-
$placeholder = '';
|
295 |
-
$required = '';
|
296 |
-
|
297 |
-
if(!empty($el['atts']['required'])){
|
298 |
-
$required = 'required';
|
299 |
-
}
|
300 |
-
|
301 |
-
if(!empty($el['atts']['label_name']) && empty($el['atts']['label_as_holder'])){
|
302 |
-
$html = '<label for="'.$el['atts']['field_name'].'"><span class="pagelayer-form-label">'.$el['atts']['label_name'].'</span>';
|
303 |
-
|
304 |
-
if(!empty($required)){
|
305 |
-
$html .= ' *';
|
306 |
-
}
|
307 |
-
|
308 |
-
$html .= '</label>';
|
309 |
-
}
|
310 |
-
|
311 |
-
if(!empty($el['atts']['label_as_holder'])){
|
312 |
-
$placeholder = $el['atts']['label_name'];
|
313 |
-
}else{
|
314 |
-
if(!empty($el['atts']['placeholder'])) $placeholder = $el['atts']['placeholder'];
|
315 |
-
}
|
316 |
-
|
317 |
-
// File accept
|
318 |
-
$file_accept = '.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.odt,.avi,.ogg,.m4a,.mov,.mp3,.mp4,.mpg,.wav,.wmv';
|
319 |
-
|
320 |
-
if(!empty($el['atts']['accept_file'])){
|
321 |
-
$file_accept = $el['atts']['accept_file'];
|
322 |
-
}
|
323 |
-
|
324 |
-
if($el['atts']['field_type'] == 'select'){
|
325 |
-
|
326 |
-
$html .= '<select name="'.$el['atts']['field_name'].'" '.$required.'>';
|
327 |
-
|
328 |
-
if(!empty($el['atts']['label_name']) && !empty($el['atts']['label_as_holder'])){
|
329 |
-
$html .= '<option value="" disabled selected>'.$el['atts']['label_name'].'</option>';
|
330 |
-
}else{
|
331 |
-
$html .= '<option value="" disabled selected>---</option>';
|
332 |
-
}
|
333 |
-
|
334 |
-
if(!empty($el['atts']['values'])){
|
335 |
-
$options = explode("\n", $el['atts']['values']);
|
336 |
-
for($x = 0; $x < sizeof($options); $x++){
|
337 |
-
$html .= '<option value="'.trim($options[$x]).'" >'.trim($options[$x]).'</option>';
|
338 |
-
}
|
339 |
-
}
|
340 |
-
$html .= '</select>';
|
341 |
-
}elseif($el['atts']['field_type'] == 'checkbox'){
|
342 |
-
$html .= '<div class="pagelayer-radcheck-holder">';
|
343 |
-
if(!empty($el['atts']['values'])){
|
344 |
-
$options = explode("\n", $el['atts']['values']);
|
345 |
-
for($x = 0; $x < sizeof($options); $x++){
|
346 |
-
$html .= '<div><input type="checkbox" id="'.trim($options[$x]).'" name="'.$el['atts']['field_name'].'" '.$required.' value="'.trim($options[$x]).'"/><label for="'.trim($options[$x]).'" class="pagelayer-form-label">'.trim($options[$x]).'</label></div>';
|
347 |
-
}
|
348 |
-
}
|
349 |
-
$html .= '</div>';
|
350 |
-
}elseif($el['atts']['field_type'] == 'radio'){
|
351 |
-
$html .= '<div class="pagelayer-radcheck-holder">';
|
352 |
-
if(!empty($el['atts']['values'])){
|
353 |
-
$options = explode("\n", $el['atts']['values']);
|
354 |
-
for($x = 0; $x < sizeof($options); $x++){
|
355 |
-
$html .= '<div><input type="radio" name="'.$el['atts']['field_name'].'"'.$required.' value="'.trim($options[$x]).'"/><span>
|
356 |
-
'.trim($options[$x]).'</span></div>';
|
357 |
-
}
|
358 |
-
}
|
359 |
-
$html .= '</div>';
|
360 |
-
}elseif($el['atts']['field_type'] == 'textarea'){
|
361 |
-
$html .= '<textarea name="'.$el['atts']['field_name'].'" rows="'.$el['atts']['textarea_rows'].'" '.$required.' placeholder="'.$placeholder.'"></textarea>';
|
362 |
-
}elseif($el['atts']['field_type'] == 'file'){
|
363 |
-
$html .= '<input type="'.$el['atts']['field_type'].'" '.$required.' name="'.$el['atts']['field_name'].'" accept="'.$file_accept.'" />';
|
364 |
-
}else{
|
365 |
-
$html .= '<input type="'.$el['atts']['field_type'].'" '.$required.' placeholder="'.$placeholder.'" name="'.$el['atts']['field_name'].'" />';
|
366 |
-
}
|
367 |
-
|
368 |
-
$el['atts']['fieldhtml'] = $html;
|
369 |
-
}
|
370 |
-
|
371 |
-
// Featured Image Handler
|
372 |
-
function pagelayer_sc_featured_img(&$el){
|
373 |
-
|
374 |
-
// Image size
|
375 |
-
if(!empty($el['atts']['size'])){
|
376 |
-
$size = $el['atts']['size'];
|
377 |
-
}
|
378 |
-
|
379 |
-
if($size){
|
380 |
-
$src = get_the_post_thumbnail_url(null, $size);
|
381 |
-
}else{
|
382 |
-
$src = get_the_post_thumbnail_url();
|
383 |
-
}
|
384 |
-
|
385 |
-
if(empty($src)){
|
386 |
-
$src = !empty($el['tmp']['img-'.$size.'-url']) ? @$el['tmp']['img-'.$size.'-url'] : @$el['tmp']['img-url'];
|
387 |
-
}
|
388 |
-
|
389 |
-
$el['atts']['img_html'] = '';
|
390 |
-
|
391 |
-
if(!empty($src)){
|
392 |
-
$el['atts']['img_html'] = '<img class="pagelayer-img" src="'.$src.'" />';
|
393 |
-
}elseif(pagelayer_is_live_template()){
|
394 |
-
$el['atts']['img_html'] = '<img class="pagelayer-img" src="'.PAGELAYER_URL.'/images/default-image.png" />';
|
395 |
-
}
|
396 |
-
|
397 |
-
// What is the link ?
|
398 |
-
if(!empty($el['atts']['link_type'])){
|
399 |
-
|
400 |
-
// Custom url
|
401 |
-
if($el['atts']['link_type'] == 'custom_url'){
|
402 |
-
$el['atts']['func_link'] = $el['tmp']['link'];
|
403 |
-
}
|
404 |
-
|
405 |
-
// Link to the media file itself
|
406 |
-
if($el['atts']['link_type'] == 'media_file' || $el['atts']['link_type'] == 'lightbox'){
|
407 |
-
$el['atts']['func_link'] = $src;
|
408 |
-
}
|
409 |
-
|
410 |
-
}
|
411 |
-
|
412 |
-
}
|
413 |
-
|
414 |
-
// Site Title Handler
|
415 |
-
function pagelayer_sc_wp_title(&$el){
|
416 |
-
|
417 |
-
// Decide the image URL
|
418 |
-
$el['atts']['func_image'] = @$el['tmp']['id-'.$el['atts']['id-size'].'-url'];
|
419 |
-
$el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['id-url'] : $el['atts']['func_id'];
|
420 |
-
|
421 |
-
// Default Logo
|
422 |
-
if(empty($el['atts']['logo_img_type'])){
|
423 |
-
|
424 |
-
// Load it
|
425 |
-
$logo = pagelayer_site_logo();
|
426 |
-
|
427 |
-
// Only if we get it
|
428 |
-
if(!empty($logo)){
|
429 |
-
|
430 |
-
$el['atts']['func_image'] = @$logo[$el['atts']['logo_img_size'].'-url'];
|
431 |
-
$el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$logo['url'] : $el['atts']['func_image'];
|
432 |
-
|
433 |
-
}
|
434 |
-
|
435 |
-
// Custom logo
|
436 |
-
}else{
|
437 |
-
|
438 |
-
$el['atts']['func_image'] = @$el['tmp']['logo_img-'.$el['atts']['logo_img_size'].'-url'];
|
439 |
-
$el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['logo_img-url'] : $el['atts']['func_image'];
|
440 |
-
|
441 |
-
}
|
442 |
-
}
|
443 |
-
|
444 |
-
// Primary menu Handler
|
445 |
-
function pagelayer_sc_wp_menu(&$el){
|
446 |
-
|
447 |
-
$el['atts']['nav_menu'] = wp_nav_menu( array(
|
448 |
-
'menu' => wp_get_nav_menu_object(@$el['atts']['nav_list']),
|
449 |
-
'menu_id' => @$el['atts']['nav_list'],
|
450 |
-
'menu_class' => 'pagelayer-wp_menu-ul',
|
451 |
-
//'theme_location' => 'primary',
|
452 |
-
'echo' => false,
|
453 |
-
) );
|
454 |
-
}
|
455 |
-
|
456 |
-
// Post Navigation Handler
|
457 |
-
function pagelayer_sc_post_nav(&$el){
|
458 |
-
|
459 |
-
$in_same_term = false;
|
460 |
-
$taxonomies = 'category';
|
461 |
-
$title = '';
|
462 |
-
$arrows_list = $el['atts']['arrows_list'];
|
463 |
-
|
464 |
-
if(!empty($el['atts']['in_same_term'])){
|
465 |
-
$in_same_term = true;
|
466 |
-
$taxonomies = $el['atts']['taxonomies'];
|
467 |
-
}
|
468 |
-
|
469 |
-
if(!empty($el['atts']['post_title'])){
|
470 |
-
$title = '<span class="pagelayer-post-nav-title">%title</span>';
|
471 |
-
}
|
472 |
-
|
473 |
-
$next_label = '<span class="pagelayer-next-holder">
|
474 |
-
<span class="pagelayer-post-nav-link"> '.$el["atts"]["next_label"].'</span>'.$title.'
|
475 |
-
</span>
|
476 |
-
<span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-right"></span>';
|
477 |
-
|
478 |
-
$prev_label = '<span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-left"></span>
|
479 |
-
<span class="pagelayer-next-holder">
|
480 |
-
<span class="pagelayer-post-nav-link"> '.$el["atts"]["prev_label"].'</span>'.$title.'
|
481 |
-
</span>';
|
482 |
-
|
483 |
-
$el['atts']['next_link'] = get_next_post_link('%link', $next_label, $in_same_term, '', $taxonomies);
|
484 |
-
|
485 |
-
$el['atts']['prev_link'] = get_previous_post_link('%link', $prev_label, $in_same_term, '', $taxonomies );
|
486 |
-
}
|
487 |
-
|
488 |
-
// Comments Handler
|
489 |
-
function pagelayer_sc_post_comment(&$el){
|
490 |
-
global $post;
|
491 |
-
|
492 |
-
// Is it custom ?
|
493 |
-
if($el['atts']['post_type'] == 'custom' && !empty($el['atts']['post_id'])){
|
494 |
-
$orig_post = $post;
|
495 |
-
$post = get_post($el['atts']['post_id']);
|
496 |
-
}
|
497 |
-
|
498 |
-
$post_id = $post->ID;
|
499 |
-
//echo $post_id.' - '.$el['atts']['post_id'];
|
500 |
-
|
501 |
-
if ( comments_open($post_id) || get_comments_number($post_id) ) {
|
502 |
-
|
503 |
-
// Handel comments template echo
|
504 |
-
ob_start();
|
505 |
-
comments_template();
|
506 |
-
|
507 |
-
$el['atts']['post_comment'] = '<div class="pagelayer-comments-template">'.ob_get_clean().'</div>';
|
508 |
-
|
509 |
-
// Comments are now closed
|
510 |
-
if(!comments_open($post_id)){
|
511 |
-
$el['atts']['post_comment'] = '<div class="pagelayer-comments-close">
|
512 |
-
<h2>Comments are closed!</h2>
|
513 |
-
</div>';
|
514 |
-
}
|
515 |
-
|
516 |
-
}else{
|
517 |
-
$el['atts']['post_comment'] = '';
|
518 |
-
}
|
519 |
-
|
520 |
-
if(pagelayer_is_live_template() || $post->post_type == 'pagelayer-template'){
|
521 |
-
$el['atts']['post_comment'] = '<div class="pagelayer-comments-close">
|
522 |
-
<center><h4>Comments section !</h4></center>
|
523 |
-
</div>';
|
524 |
-
}
|
525 |
-
|
526 |
-
if(!empty($orig_post)){
|
527 |
-
$post = $orig_post;
|
528 |
-
}
|
529 |
-
|
530 |
-
}
|
531 |
-
|
532 |
-
// post navigation Handler
|
533 |
-
function pagelayer_sc_post_info_list(&$el){
|
534 |
-
|
535 |
-
$el['atts']['post_info_content'] ='';
|
536 |
-
|
537 |
-
switch($el['atts']['type']){
|
538 |
-
case 'author':
|
539 |
-
|
540 |
-
$author_id = get_the_author_meta( 'ID' ) ? get_the_author_meta( 'ID' ) : $GLOBALS['post']->post_author;
|
541 |
-
|
542 |
-
$el['atts']['link'] = get_author_posts_url( $author_id );
|
543 |
-
$el['atts']['avatar_url'] = get_avatar_url( $author_id, 96 );
|
544 |
-
$el['atts']['post_info_content'] = get_the_author_meta( 'display_name', $author_id );
|
545 |
-
break;
|
546 |
-
|
547 |
-
case 'date':
|
548 |
-
|
549 |
-
$format = [
|
550 |
-
'default' => 'F j, Y',
|
551 |
-
'0' => 'F j, Y',
|
552 |
-
'1' => 'Y-m-d',
|
553 |
-
'2' => 'm/d/Y',
|
554 |
-
'3' => 'd/m/Y',
|
555 |
-
'custom' => empty( $el['atts']['date_format_custom'] ) ? 'F j, Y' : $el['atts']['date_format_custom'],
|
556 |
-
];
|
557 |
-
|
558 |
-
$el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['date_format'] ] );
|
559 |
-
$el['atts']['link'] = get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) );
|
560 |
-
|
561 |
-
break;
|
562 |
-
|
563 |
-
case 'time':
|
564 |
-
|
565 |
-
$format = [
|
566 |
-
'default' => 'g:i a',
|
567 |
-
'0' => 'g:i a',
|
568 |
-
'1' => 'g:i A',
|
569 |
-
'2' => 'H:i',
|
570 |
-
'custom' => empty( $el['atts']['time_format_custom'] ) ? 'F j, Y' : $el['atts']['time_format_custom'],
|
571 |
-
];
|
572 |
-
$el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['time_format'] ] );
|
573 |
-
|
574 |
-
break;
|
575 |
-
|
576 |
-
case 'comments':
|
577 |
-
|
578 |
-
$el['atts']['post_info_content'] = (int) get_comments_number();
|
579 |
-
$el['atts']['link'] = get_comments_link();
|
580 |
-
|
581 |
-
break;
|
582 |
-
|
583 |
-
case 'terms':
|
584 |
-
|
585 |
-
$taxonomy = $el['atts']['taxonomy'];
|
586 |
-
$terms = wp_get_post_terms( get_the_ID(), $taxonomy );
|
587 |
-
foreach ( $terms as $term ) {
|
588 |
-
$el['atts']['post_info_content'] .= ' <a href="'. get_term_link( $term ) .'"> '. $term->name .' </a>';
|
589 |
-
}
|
590 |
-
|
591 |
-
if(pagelayer_is_live_template() || $GLOBALS['post']->post_type == 'pagelayer-template'){
|
592 |
-
$el['atts']['post_info_content'] .= 'Dummy '.ucfirst(str_replace('_', ' ', $el['atts']['taxonomy']));
|
593 |
-
}
|
594 |
-
|
595 |
-
$el['atts']['info_link'] = '';
|
596 |
-
break;
|
597 |
-
|
598 |
-
case 'custom':
|
599 |
-
|
600 |
-
$el['atts']['post_info_content'] = $el['atts']['type_custom'];
|
601 |
-
$el['atts']['link'] = $el['atts']['info_custom_link'];
|
602 |
-
|
603 |
-
break;
|
604 |
-
}
|
605 |
-
|
606 |
-
|
607 |
-
}
|
608 |
-
|
609 |
-
// Post Content Handler - 2C
|
610 |
-
function pagelayer_sc_post_content(&$el){
|
611 |
-
static $did_posts = [];
|
612 |
-
|
613 |
-
global $pagelayer;
|
614 |
-
|
615 |
-
$post_obj = get_post();
|
616 |
-
|
617 |
-
if(empty( $post_obj )){
|
618 |
-
return false;
|
619 |
-
}
|
620 |
-
|
621 |
-
if ( post_password_required( $post_obj->ID ) ) {
|
622 |
-
return get_the_password_form( $post_obj->ID );
|
623 |
-
}
|
624 |
-
|
625 |
-
// Avoid recursion
|
626 |
-
if ( isset( $did_posts[$post_obj->ID] ) || pagelayer_is_live_template($post_obj) ) {
|
627 |
-
$el['atts']['post_content'] = '<div style="min-height:20px;background-color:#e3e3e3;text-align:center">Post Content Holder</div>';
|
628 |
-
return;
|
629 |
-
}
|
630 |
-
|
631 |
-
// Is it an attachment
|
632 |
-
if(is_attachment()){
|
633 |
-
$el['atts']['post_content'] = '<center>'.wp_get_attachment_image( get_the_ID(), 'full' ).'</center>';
|
634 |
-
return;
|
635 |
-
}
|
636 |
-
|
637 |
-
// To prevent recursion, set it to True
|
638 |
-
$did_posts[$post_obj->ID] = true;
|
639 |
-
|
640 |
-
$content = $post_obj->post_content;
|
641 |
-
//$content = do_shortcode($content);
|
642 |
-
|
643 |
-
// If we are rendering a template and this post content is being edited live, then dont_make_editable is set true in pagelayer_get_post_content. Hence we need to set it as false and revert it after rendering the posts content !
|
644 |
-
if(!empty($pagelayer->dont_make_editable)){
|
645 |
-
$reset = $pagelayer->dont_make_editable;
|
646 |
-
$pagelayer->dont_make_editable = false;
|
647 |
-
}
|
648 |
-
|
649 |
-
$content = apply_filters( 'the_content', $content );
|
650 |
-
|
651 |
-
if(!empty($reset)){
|
652 |
-
$pagelayer->dont_make_editable = $reset;
|
653 |
-
}
|
654 |
-
|
655 |
-
$el['atts']['post_content'] = $content;
|
656 |
-
}
|
657 |
-
|
658 |
-
// Archive Posts shows the posts as per the QUERY of the current page
|
659 |
-
function pagelayer_sc_archive_posts(&$el){
|
660 |
-
global $wp_query;
|
661 |
-
|
662 |
-
$query_args = $wp_query->query_vars;
|
663 |
-
|
664 |
-
if(pagelayer_is_live() || (wp_doing_ajax() && @$_REQUEST['action'] == 'pagelayer_archive_posts_data')){
|
665 |
-
$query_args = ['post_type' => 'post'];
|
666 |
-
$dummy_pagination = 10;
|
667 |
-
}
|
668 |
-
|
669 |
-
$allow_param = array('show_thumb', 'thumb_size', 'show_content', 'show_title', 'more', 'btn_type', 'size', 'icon_position', 'icon', 'show_more', 'meta_sep', 'exc_length' );
|
670 |
-
|
671 |
-
$param = array();
|
672 |
-
|
673 |
-
foreach($allow_param as $val){
|
674 |
-
$param[$val] = !empty($el['atts'][$val]) ? $el['atts'][$val] : '';
|
675 |
-
}
|
676 |
-
|
677 |
-
if($el['atts']['meta']){
|
678 |
-
|
679 |
-
$meta_arr = explode(',',$el['atts']['meta']);
|
680 |
-
//pagelayer_print($el['atts']['meta']);
|
681 |
-
foreach($meta_arr as $arr){
|
682 |
-
$param[$arr] = $arr;
|
683 |
-
}
|
684 |
-
|
685 |
-
}
|
686 |
-
|
687 |
-
$el['atts']['pagelayer_pagination_top'] = '';
|
688 |
-
$el['atts']['pagelayer_pagination_bottom'] = '';
|
689 |
-
|
690 |
-
if(!empty($el['atts']['pagination'])){
|
691 |
-
// Create array for pagination
|
692 |
-
$pagination = array(
|
693 |
-
'prev_next' => $el['atts']['pagination'] == 'number' ? false : true,
|
694 |
-
'prev_text' => __( @$el['atts']['pagi_prev_text'] ),
|
695 |
-
'next_text' => __( @$el['atts']['pagi_next_text'] ),
|
696 |
-
'end_size' => $el['atts']['pagi_end_size'],
|
697 |
-
'mid_size' => $el['atts']['pagi_mid_size'],
|
698 |
-
'before_page_number' => @$el['atts']['before_page_number'],
|
699 |
-
'after_page_number' => @$el['atts']['after_page_number'],
|
700 |
-
);
|
701 |
-
|
702 |
-
if(!empty($dummy_pagination)){
|
703 |
-
$pagination['total'] = 10;
|
704 |
-
}
|
705 |
-
|
706 |
-
if( @$el['atts']['pagination_on'] == 'top'){
|
707 |
-
$el['atts']['pagelayer_pagination_top'] = '<div class="pagelayer-pagination">'.paginate_links($pagination).'</div>';
|
708 |
-
}else{
|
709 |
-
$el['atts']['pagelayer_pagination_bottom'] = '<div class="pagelayer-pagination">'.paginate_links($pagination).'</div>';
|
710 |
-
}
|
711 |
-
}
|
712 |
-
|
713 |
-
//pagelayer_print($param);
|
714 |
-
$el['atts']['pagelayer_archive_posts'] = pagelayer_posts($param, $query_args);
|
715 |
-
}
|
716 |
-
|
717 |
-
// Flipbox handler
|
718 |
-
function pagelayer_sc_flipbox(&$el){
|
719 |
-
|
720 |
-
// Flipbox front heading image
|
721 |
-
if(!empty($el['atts']['heading_image'])){
|
722 |
-
$el['atts']['func_image'] = @$el['tmp']['heading_image-'.$el['atts']['heading_image_size'].'-url'];
|
723 |
-
$el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['heading_image-url'] : $el['atts']['func_image'];
|
724 |
-
}
|
725 |
-
}
|
726 |
-
|
727 |
-
// Social Share Handler
|
728 |
-
function pagelayer_sc_share(&$el){
|
729 |
-
|
730 |
-
if(empty($el['atts']['icon'])){
|
731 |
-
return;
|
732 |
-
}
|
733 |
-
|
734 |
-
$icon_splited = explode(' fa-', $el['atts']['icon']);
|
735 |
-
$el['classes'][] = ['.pagelayer-share-content' => 'pagelayer-'.$icon_splited[1]];
|
736 |
-
|
737 |
-
$icon = $icon_splited[1];
|
738 |
-
|
739 |
-
$labelList = array(
|
740 |
-
'Facebook' => array(
|
741 |
-
'icons' => array('facebook', 'facebook-f', 'facebook-messenger', 'facebook-square', 'facebook-official'),
|
742 |
-
'url' => 'https://www.facebook.com/sharer/sharer.php?u='
|
743 |
-
),
|
744 |
-
'Twitter' => array(
|
745 |
-
'icons' => array('twitter', 'twitter-square'),
|
746 |
-
'url' => 'https://twitter.com/share?url='
|
747 |
-
),
|
748 |
-
'Google+' => array(
|
749 |
-
'icons' => array('google-plus', 'google-plus-square', 'google-plus-g'),
|
750 |
-
'url' => 'https://plus.google.com/share?url='
|
751 |
-
),
|
752 |
-
'Instagram' => array(
|
753 |
-
'icons' => array('instagram'),
|
754 |
-
'url' => ''
|
755 |
-
),
|
756 |
-
'Linkedin' => array(
|
757 |
-
'icons' => array('linkedin', 'linkedin-in', 'linkedin-square'),
|
758 |
-
'url' => 'https://www.linkedin.com/shareArticle?url='
|
759 |
-
),
|
760 |
-
'pinterest' => array(
|
761 |
-
'icons' => array('pinterest', 'pinterest-p', 'pinterest-square'),
|
762 |
-
'url' => '//www.pinterest.com/pin/create/button/?url='
|
763 |
-
),
|
764 |
-
'Reddit' => array(
|
765 |
-
'icons' => array('reddit-alien', 'reddit-square', 'reddit'),
|
766 |
-
'url' => 'https://reddit.com/submit?url='
|
767 |
-
),
|
768 |
-
'Skype' => array(
|
769 |
-
'icons' => array('skype'),
|
770 |
-
'url' => ''
|
771 |
-
),
|
772 |
-
'Stumbleupon' => array(
|
773 |
-
'icons' => array('stumbleupon', 'stumbleupon-circle'),
|
774 |
-
'url' => 'https://www.stumbleupon.com/submit?url='
|
775 |
-
),
|
776 |
-
'Telegram' => array(
|
777 |
-
'icons' => array('telegram', 'telegram-plane'),
|
778 |
-
'url' => 'https://t.me/share/url?url='
|
779 |
-
),
|
780 |
-
'Tumblr' => array(
|
781 |
-
'icons' => array('tumblr', 'tumblr-square'),
|
782 |
-
'url' => 'https://www.tumblr.com/share/link?url='
|
783 |
-
),
|
784 |
-
'VK' => array(
|
785 |
-
'icons' => array('vk'),
|
786 |
-
'url' => 'http://vk.com/share.php?url='
|
787 |
-
),
|
788 |
-
'Weibo' => array(
|
789 |
-
'icons' => array('weibo'),
|
790 |
-
'url' => 'http://service.weibo.com/share/share.php?url='
|
791 |
-
),
|
792 |
-
'WhatsApp' => array(
|
793 |
-
'icons' => array('whatsapp', 'whatsapp-square'),
|
794 |
-
'url' => 'whatsapp://send?text='
|
795 |
-
),
|
796 |
-
'WordPress' => array(
|
797 |
-
'icons' => array('wordpress', 'wordpress-simple'),
|
798 |
-
'url' => 'https://wordpress.com/press-this.php?u='
|
799 |
-
),
|
800 |
-
'Xing' => array(
|
801 |
-
'icons' => array('xing', 'xing-square'),
|
802 |
-
'url' => 'https://www.xing.com/spi/shares/new?url='
|
803 |
-
),
|
804 |
-
'Delicious' => array(
|
805 |
-
'icons' => array('delicious'),
|
806 |
-
'url' => 'https://delicious.com/save?v=5&noui&jump=close&url='
|
807 |
-
),
|
808 |
-
'Dribbble' => array(
|
809 |
-
'icons' => array('dribbble', 'dribbble-square'),
|
810 |
-
'url' => ''
|
811 |
-
)
|
812 |
-
);
|
813 |
-
|
814 |
-
if(!empty($el['atts']['text'])){
|
815 |
-
$el['atts']['icon_label'] = $el['atts']['text'];
|
816 |
-
}else{
|
817 |
-
foreach($labelList as $key => $val){
|
818 |
-
if(in_array($icon, $val['icons'])){
|
819 |
-
$el['atts']['icon_label'] = $key;
|
820 |
-
break;
|
821 |
-
}
|
822 |
-
}
|
823 |
-
}
|
824 |
-
|
825 |
-
foreach($labelList as $key => $val){
|
826 |
-
if(in_array($icon, $val['icons'])){
|
827 |
-
$el['atts']['social_url'] = $val['url'].$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
828 |
-
break;
|
829 |
-
}
|
830 |
-
}
|
831 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/functions.php
CHANGED
@@ -571,6 +571,13 @@ function pagelayer_memory_limit($mb){
|
|
571 |
|
572 |
}
|
573 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
// Loads the shortcodes
|
575 |
function pagelayer_load_shortcodes(){
|
576 |
global $pagelayer;
|
@@ -604,6 +611,9 @@ function pagelayer_load_shortcodes(){
|
|
604 |
// Apply filter to load custom widgets
|
605 |
do_action('pagelayer_load_custom_widgets');
|
606 |
|
|
|
|
|
|
|
607 |
// Add global widget data
|
608 |
if(defined('PAGELAYER_PREMIUM')){
|
609 |
|
@@ -632,16 +642,7 @@ function pagelayer_load_shortcodes(){
|
|
632 |
$global_data = [];
|
633 |
$global_data['post_id'] = $template->ID;
|
634 |
$global_data['title'] = $template->post_title;
|
635 |
-
|
636 |
-
$tag = '';
|
637 |
-
|
638 |
-
// Get content
|
639 |
-
if (preg_match_all( '/' . get_shortcode_regex() . '/s', $template->post_content, $matches, PREG_SET_ORDER ) ) {
|
640 |
-
$tag = $matches[0][2];
|
641 |
-
}
|
642 |
-
|
643 |
-
$global_data['tag'] = $tag;
|
644 |
-
$global_data['$'] = do_shortcode($template->post_content);
|
645 |
$global_widgets[$pagelayer_template_type][$template->ID] = $global_data;
|
646 |
|
647 |
}
|
@@ -1596,9 +1597,9 @@ function pagelayer_posts($params, $args = []){
|
|
1596 |
if(!empty($params['show_content'])){
|
1597 |
$data .= '<div class="pagelayer-wposts-excerpt">';
|
1598 |
if($params['show_content'] == 'excerpt'){
|
1599 |
-
$data .=
|
1600 |
}elseif($params['show_content'] == 'full'){
|
1601 |
-
$data .=
|
1602 |
}
|
1603 |
$data .= '</div>';
|
1604 |
}
|
@@ -1727,7 +1728,7 @@ function pagelayer_posts_slider($params){
|
|
1727 |
if($params['post']['show_excerpt'] == "true"){
|
1728 |
if(has_excerpt()){
|
1729 |
$excerpt = get_the_excerpt();
|
1730 |
-
$data .=
|
1731 |
}
|
1732 |
}
|
1733 |
$data .= '</div>';
|
@@ -1923,6 +1924,8 @@ function pagelayer_export_content($content){
|
|
1923 |
$theme_url = preg_replace('/http(s?):\/\//is', '', get_stylesheet_directory_uri());
|
1924 |
|
1925 |
$content = preg_replace('/http(s?):\/\/'.preg_quote($theme_url, '/').'/is', '{{theme_url}}', $content);
|
|
|
|
|
1926 |
|
1927 |
// Export the media as well
|
1928 |
$content = pagelayer_export_media($content);
|
@@ -2020,6 +2023,11 @@ function pagelayer_insert_content($post, &$ret){
|
|
2020 |
$post['post_content'] = str_replace($key, $val, $post['post_content']);
|
2021 |
}
|
2022 |
|
|
|
|
|
|
|
|
|
|
|
2023 |
//pagelayer_print($post);die();
|
2024 |
|
2025 |
// Add slashes for safe insert
|
571 |
|
572 |
}
|
573 |
|
574 |
+
// Pagelayer the content
|
575 |
+
function pagelayer_the_content($content){
|
576 |
+
$content = do_blocks( $content );
|
577 |
+
$content = do_shortcode( $content );
|
578 |
+
return $content;
|
579 |
+
}
|
580 |
+
|
581 |
// Loads the shortcodes
|
582 |
function pagelayer_load_shortcodes(){
|
583 |
global $pagelayer;
|
611 |
// Apply filter to load custom widgets
|
612 |
do_action('pagelayer_load_custom_widgets');
|
613 |
|
614 |
+
// Render Pagelayer element by blocks
|
615 |
+
add_action('pre_render_block', 'pagelayer_render_blocks', 10, 2);
|
616 |
+
|
617 |
// Add global widget data
|
618 |
if(defined('PAGELAYER_PREMIUM')){
|
619 |
|
642 |
$global_data = [];
|
643 |
$global_data['post_id'] = $template->ID;
|
644 |
$global_data['title'] = $template->post_title;
|
645 |
+
$global_data['$'] = pagelayer_the_content($template->post_content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
$global_widgets[$pagelayer_template_type][$template->ID] = $global_data;
|
647 |
|
648 |
}
|
1597 |
if(!empty($params['show_content'])){
|
1598 |
$data .= '<div class="pagelayer-wposts-excerpt">';
|
1599 |
if($params['show_content'] == 'excerpt'){
|
1600 |
+
$data .= pagelayer_the_content(get_the_excerpt());
|
1601 |
}elseif($params['show_content'] == 'full'){
|
1602 |
+
$data .= pagelayer_the_content(get_the_content());
|
1603 |
}
|
1604 |
$data .= '</div>';
|
1605 |
}
|
1728 |
if($params['post']['show_excerpt'] == "true"){
|
1729 |
if(has_excerpt()){
|
1730 |
$excerpt = get_the_excerpt();
|
1731 |
+
$data .= pagelayer_the_content($excerpt);
|
1732 |
}
|
1733 |
}
|
1734 |
$data .= '</div>';
|
1924 |
$theme_url = preg_replace('/http(s?):\/\//is', '', get_stylesheet_directory_uri());
|
1925 |
|
1926 |
$content = preg_replace('/http(s?):\/\/'.preg_quote($theme_url, '/').'/is', '{{theme_url}}', $content);
|
1927 |
+
$content = str_replace('<!-- wp:pagelayer', '<!-- sp:pagelayer', $content);
|
1928 |
+
$content = str_replace('<!-- /wp:pagelayer', '<!-- /sp:pagelayer', $content);
|
1929 |
|
1930 |
// Export the media as well
|
1931 |
$content = pagelayer_export_media($content);
|
2023 |
$post['post_content'] = str_replace($key, $val, $post['post_content']);
|
2024 |
}
|
2025 |
|
2026 |
+
if(defined(PAGELAYER_BLOCK_PREFIX) && PAGELAYER_BLOCK_PREFIX == 'wp'){
|
2027 |
+
$post['post_content'] = str_replace('<!-- sp:pagelayer', '<!-- wp:pagelayer', $post['post_content']);
|
2028 |
+
$post['post_content'] = str_replace('<!-- /sp:pagelayer', '<!-- /wp:pagelayer', $post['post_content']);
|
2029 |
+
}
|
2030 |
+
|
2031 |
//pagelayer_print($post);die();
|
2032 |
|
2033 |
// Add slashes for safe insert
|
main/live-body.php
CHANGED
@@ -58,6 +58,9 @@ width: '. $pagelayer->settings['tablet_breakpoint'] .'px;
|
|
58 |
.pagelayer-screen-mobile{
|
59 |
width: '. $pagelayer->settings['mobile_breakpoint'] .'px;
|
60 |
}
|
|
|
|
|
|
|
61 |
</style>
|
62 |
</head>
|
63 |
|
@@ -71,7 +74,7 @@ width: '. $pagelayer->settings['mobile_breakpoint'] .'px;
|
|
71 |
<div class="pagelayer-errorBox-resolve">
|
72 |
<p>'.__pl('error_submitting').'</p>
|
73 |
<button type="button" class="pagelayer-errorBox-copy" onclick="pagelayer_copy_error(event)">'.__pl('copy').'</button>
|
74 |
-
<
|
75 |
</div>
|
76 |
</div>
|
77 |
<div id="pagelayer-loader-wrapper">
|
58 |
.pagelayer-screen-mobile{
|
59 |
width: '. $pagelayer->settings['mobile_breakpoint'] .'px;
|
60 |
}
|
61 |
+
.pagelayer-errorBox-support{
|
62 |
+
text-decoration:none;
|
63 |
+
}
|
64 |
</style>
|
65 |
</head>
|
66 |
|
74 |
<div class="pagelayer-errorBox-resolve">
|
75 |
<p>'.__pl('error_submitting').'</p>
|
76 |
<button type="button" class="pagelayer-errorBox-copy" onclick="pagelayer_copy_error(event)">'.__pl('copy').'</button>
|
77 |
+
<a type="button" class="pagelayer-errorBox-support" href="'. (defined('SITEPAD') ? 'http://sitepad.deskuss.com' : 'http://pagelayer.deskuss.com' ) .'" target="_bank">'.__pl('support').'</a>
|
78 |
</div>
|
79 |
</div>
|
80 |
<div id="pagelayer-loader-wrapper">
|
main/live.php
CHANGED
@@ -112,6 +112,7 @@ class PageLayer_LiveEditor{
|
|
112 |
echo '
|
113 |
<script type="text/javascript">
|
114 |
pagelayer_ver = "'.PAGELAYER_VERSION.'";
|
|
|
115 |
pagelayer_pro = '.(int)defined('PAGELAYER_PREMIUM').';
|
116 |
pagelayer_pro_url = "'.PAGELAYER_PRO_URL.'";
|
117 |
pagelayer_pro_txt = "'.addslashes('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>. You will need purchase <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a> to use this feature.').'";
|
112 |
echo '
|
113 |
<script type="text/javascript">
|
114 |
pagelayer_ver = "'.PAGELAYER_VERSION.'";
|
115 |
+
pagelayer_block_prefix = "'.PAGELAYER_BLOCK_PREFIX.'";
|
116 |
pagelayer_pro = '.(int)defined('PAGELAYER_PREMIUM').';
|
117 |
pagelayer_pro_url = "'.PAGELAYER_PRO_URL.'";
|
118 |
pagelayer_pro_txt = "'.addslashes('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>. You will need purchase <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a> to use this feature.').'";
|
main/shortcode_functions.php
CHANGED
@@ -24,11 +24,48 @@ if(!defined('PAGELAYER_VERSION')) {
|
|
24 |
exit('Hacking Attempt !');
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
// Is there a tag ?
|
28 |
-
function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
29 |
|
30 |
global $pagelayer;
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
$_tag = $class = $tag;
|
33 |
$final_tag = $tag;
|
34 |
|
@@ -305,14 +342,14 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
|
305 |
$ender = '}';
|
306 |
}
|
307 |
|
308 |
-
if(!empty($selector)){
|
309 |
// Make the CSS
|
310 |
-
|
|
|
311 |
}else{
|
312 |
-
$el['css'][] = pagelayer_parse_el_vars($el['atts'][$M_prop],$el);
|
313 |
}
|
314 |
}
|
315 |
-
|
316 |
}
|
317 |
|
318 |
}
|
@@ -362,7 +399,7 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
|
362 |
|
363 |
// Create the default atts and tmp atts
|
364 |
if(pagelayer_is_live()){
|
365 |
-
pagelayer_create_sc($el);
|
366 |
}
|
367 |
|
368 |
$div = '<div pagelayer-id="'.$el['id'].'">
|
@@ -541,9 +578,15 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
|
541 |
$style = '';
|
542 |
if(!empty($el['css'])){
|
543 |
|
544 |
-
$style = '<style pagelayer-style-id="'.$el['id'].'">
|
545 |
-
|
546 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
547 |
|
548 |
if(!empty($pagelayer->shortcodes[$tag]['overide_css_selector'])){
|
549 |
$style = str_replace($el['selector'], $pagelayer->shortcodes[$tag]['overide_css_selector'], $style);
|
@@ -557,7 +600,17 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
|
557 |
|
558 |
// Is there an inner content which requires a SHORTCODE ?
|
559 |
if(!empty($do_shortcode)){
|
560 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
561 |
}
|
562 |
|
563 |
// Sanitize the content
|
@@ -585,7 +638,7 @@ function pagelayer_change_id($content){
|
|
585 |
}
|
586 |
|
587 |
// Creates the shortcode and returns a base64 encoded files
|
588 |
-
function pagelayer_create_sc(&$el){
|
589 |
|
590 |
$a = $tmp = array();
|
591 |
|
@@ -593,6 +646,9 @@ function pagelayer_create_sc(&$el){
|
|
593 |
|
594 |
foreach($el['oAtts'] as $k => $v){
|
595 |
$v = str_replace('&', '&', $v);
|
|
|
|
|
|
|
596 |
$el['attr'][] = 'pagelayer-a-'.$k.'="'.$v.'"';
|
597 |
}
|
598 |
|
@@ -603,6 +659,9 @@ function pagelayer_create_sc(&$el){
|
|
603 |
|
604 |
foreach($el['tmp'] as $k => $v){
|
605 |
$v = str_replace('&', '&', $v);
|
|
|
|
|
|
|
606 |
$el['attr'][] = 'pagelayer-tmp-'.$k.'="'.$v.'"';
|
607 |
}
|
608 |
|
@@ -1133,7 +1192,7 @@ function pagelayer_sc_video(&$el){
|
|
1133 |
function pagelayer_sc_shortcodes(&$el){
|
1134 |
$is_live = pagelayer_is_live();
|
1135 |
if(empty($is_live)){
|
1136 |
-
$el['tmp']['shortcode'] =
|
1137 |
}
|
1138 |
}
|
1139 |
|
24 |
exit('Hacking Attempt !');
|
25 |
}
|
26 |
|
27 |
+
// Is there a block ?
|
28 |
+
function pagelayer_render_blocks($pre_render, $parsed_block){
|
29 |
+
|
30 |
+
global $pagelayer;
|
31 |
+
|
32 |
+
if(empty($parsed_block)){
|
33 |
+
return $pre_render;
|
34 |
+
}
|
35 |
+
|
36 |
+
$block_name = $parsed_block['blockName'];
|
37 |
+
$tag = '';
|
38 |
+
$content = $parsed_block['innerHTML'];
|
39 |
+
$inner_blocks = $parsed_block['innerBlocks'];
|
40 |
+
$atts = $parsed_block['attrs'];
|
41 |
+
$atts['is_not_sc'] = 1;
|
42 |
+
|
43 |
+
if ( is_string( $block_name ) && 0 === strpos( $block_name, 'pagelayer/' ) ) {
|
44 |
+
$tag = substr( $block_name, 10 );
|
45 |
+
}
|
46 |
+
|
47 |
+
$allowed_tags = ['pl_inner_row', 'pl_inner_col'];
|
48 |
+
|
49 |
+
if( (empty($tag) || !array_key_exists($tag, $pagelayer->shortcodes) ) && ! in_array( $tag, $allowed_tags) ){
|
50 |
+
return $pre_render;
|
51 |
+
}
|
52 |
+
|
53 |
+
return pagelayer_render_shortcode($atts, $content, $tag, $inner_blocks);
|
54 |
+
}
|
55 |
+
|
56 |
// Is there a tag ?
|
57 |
+
function pagelayer_render_shortcode($atts, $content = '', $tag = '', $inner_blocks = array()){
|
58 |
|
59 |
global $pagelayer;
|
60 |
|
61 |
+
$is_block = 0;
|
62 |
+
|
63 |
+
// Is block ?
|
64 |
+
if(!empty($atts['is_not_sc'])){
|
65 |
+
$is_block = 1;
|
66 |
+
unset($atts['is_not_sc']);
|
67 |
+
}
|
68 |
+
|
69 |
$_tag = $class = $tag;
|
70 |
$final_tag = $tag;
|
71 |
|
342 |
$ender = '}';
|
343 |
}
|
344 |
|
|
|
345 |
// Make the CSS
|
346 |
+
if(!empty($selector)){
|
347 |
+
$el['css'][$selector.'{|pl|}'.$ender][] = rtrim( trim( pagelayer_css_render($v, $el['atts'][$M_prop], @$param['sep']) ), ';' );
|
348 |
}else{
|
349 |
+
$el['css'][][] = pagelayer_parse_el_vars($el['atts'][$M_prop],$el);
|
350 |
}
|
351 |
}
|
352 |
+
|
353 |
}
|
354 |
|
355 |
}
|
399 |
|
400 |
// Create the default atts and tmp atts
|
401 |
if(pagelayer_is_live()){
|
402 |
+
pagelayer_create_sc($el, $is_block);
|
403 |
}
|
404 |
|
405 |
$div = '<div pagelayer-id="'.$el['id'].'">
|
578 |
$style = '';
|
579 |
if(!empty($el['css'])){
|
580 |
|
581 |
+
$style = '<style pagelayer-style-id="'.$el['id'].'">';
|
582 |
+
foreach($el['css'] as $ck => $cv){
|
583 |
+
$tck = explode('|pl|', $ck);
|
584 |
+
$csel = !empty($tck[0]) ? $tck[0]: '';
|
585 |
+
$cend = !empty($tck[1]) ? $tck[1]: '';
|
586 |
+
$style .= $csel.implode(';', $cv).$cend."\n";
|
587 |
+
}
|
588 |
+
$style .= '</style>';
|
589 |
+
$style = pagelayer_parse_vars($style, $el);
|
590 |
|
591 |
if(!empty($pagelayer->shortcodes[$tag]['overide_css_selector'])){
|
592 |
$style = str_replace($el['selector'], $pagelayer->shortcodes[$tag]['overide_css_selector'], $style);
|
600 |
|
601 |
// Is there an inner content which requires a SHORTCODE ?
|
602 |
if(!empty($do_shortcode)){
|
603 |
+
|
604 |
+
$inner_content = '';
|
605 |
+
if( !empty($inner_blocks) ){
|
606 |
+
foreach($inner_blocks as $inner_block){
|
607 |
+
$inner_content .= render_block($inner_block);
|
608 |
+
}
|
609 |
+
}else{
|
610 |
+
$inner_content .= do_shortcode($el['content']);
|
611 |
+
}
|
612 |
+
|
613 |
+
$div = str_replace('{{pagelayer_do_shortcode}}', $inner_content, $div);
|
614 |
}
|
615 |
|
616 |
// Sanitize the content
|
638 |
}
|
639 |
|
640 |
// Creates the shortcode and returns a base64 encoded files
|
641 |
+
function pagelayer_create_sc(&$el, $is_block = 0){
|
642 |
|
643 |
$a = $tmp = array();
|
644 |
|
646 |
|
647 |
foreach($el['oAtts'] as $k => $v){
|
648 |
$v = str_replace('&', '&', $v);
|
649 |
+
if($is_block){
|
650 |
+
$v = pagelayer_escapeHTML($v);
|
651 |
+
}
|
652 |
$el['attr'][] = 'pagelayer-a-'.$k.'="'.$v.'"';
|
653 |
}
|
654 |
|
659 |
|
660 |
foreach($el['tmp'] as $k => $v){
|
661 |
$v = str_replace('&', '&', $v);
|
662 |
+
if($is_block){
|
663 |
+
$v = pagelayer_escapeHTML($v);
|
664 |
+
}
|
665 |
$el['attr'][] = 'pagelayer-tmp-'.$k.'="'.$v.'"';
|
666 |
}
|
667 |
|
1192 |
function pagelayer_sc_shortcodes(&$el){
|
1193 |
$is_live = pagelayer_is_live();
|
1194 |
if(empty($is_live)){
|
1195 |
+
$el['tmp']['shortcode'] = pagelayer_the_content($el['atts']['data']);
|
1196 |
}
|
1197 |
}
|
1198 |
|
main/template.php
CHANGED
@@ -978,7 +978,7 @@ function pagelayer_template_render($template){
|
|
978 |
if(is_numeric($template)){
|
979 |
echo pagelayer_get_post_content($template);
|
980 |
}else{
|
981 |
-
echo
|
982 |
}
|
983 |
}
|
984 |
|
978 |
if(is_numeric($template)){
|
979 |
echo pagelayer_get_post_content($template);
|
980 |
}else{
|
981 |
+
echo pagelayer_the_content(file_get_contents(get_stylesheet_directory().'/'.$template.'.pgl'));
|
982 |
}
|
983 |
}
|
984 |
|
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.2.
|
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.2.8
|
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.5
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 1.2.
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
@@ -109,6 +109,14 @@ Do you have questions related to PageLayer ? Use the following links :
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= 1.2.7 (September 15, 2020) =
|
113 |
* [Improvement] Description added in Phone, Email, Address, Copyright widgets.
|
114 |
* [Improvement] For the Modal Widget, clicking on the grey background will close the Modal box.
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.2.8
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.2.8 (September 18, 2020) =
|
113 |
+
* [Task] Adding support for block formats in Pagelayer. This is complete but due to compatibility, we are still storing in shortcodes which will change over the next few versions.
|
114 |
+
* [Improvement] The CSS rendering method has been further improved and will reduce your page size.
|
115 |
+
* [Bug-Fix] While applying the page/post revisions, the revision content was not rendering properly. This is fixed.
|
116 |
+
* [Bug-Fix] In the Image Hotspot widget "Tooltip Display" was not working properly. This is fixed.
|
117 |
+
* [Bug-Fix] If the animation heading widget contains the <p> tag then it was not rendering properly. This is fixed.
|
118 |
+
|
119 |
+
|
120 |
= 1.2.7 (September 15, 2020) =
|
121 |
* [Improvement] Description added in Phone, Email, Address, Copyright widgets.
|
122 |
* [Improvement] For the Modal Widget, clicking on the grey background will close the Modal box.
|