Version Description
/ 15.09.2020 * Add support WP 5.5
Download this release
Release Info
Developer | supsystic.com |
Plugin | Pricing Table by Supsystic |
Version | 1.8.7 |
Comparing to | |
See all releases |
Code changes from version 1.8.6 to 1.8.7
- classes/frame.php +1 -1
- classes/html.php +19 -19
- config.php +1 -1
- js/admin.options.js +18 -19
- js/common.js +5 -5
- js/core.js +8 -8
- js/table.min.js +7 -7
- js/wp.tabs.js +2 -2
- modules/tables/js/admin.imex.js +1 -1
- modules/tables/js/admin.tables.edit.js +4 -4
- modules/tables/js/admin.tables.js +1 -1
- modules/tables/js/frontend.tables.editor.blocks.base.js +18 -18
- modules/tables/js/frontend.tables.editor.blocks.js +12 -12
- modules/tables/js/frontend.tables.editor.elements.base.js +4 -4
- modules/tables/js/frontend.tables.editor.elements.js +10 -10
- modules/tables/js/frontend.tables.editor.elements.menu.js +5 -5
- modules/tables/js/frontend.tables.editor.utils.js +3 -3
- modules/tables/js/frontend.tables.js +3 -3
- pts.php +1 -1
- readme.txt +4 -1
classes/frame.php
CHANGED
@@ -347,7 +347,7 @@ class framePts {
|
|
347 |
'src' => $src,
|
348 |
'deps' => $deps,
|
349 |
'ver' => $ver,
|
350 |
-
'in_footer' =>
|
351 |
'vars' => $vars
|
352 |
);
|
353 |
}
|
347 |
'src' => $src,
|
348 |
'deps' => $deps,
|
349 |
'ver' => $ver,
|
350 |
+
'in_footer' => true,
|
351 |
'vars' => $vars
|
352 |
);
|
353 |
}
|
classes/html.php
CHANGED
@@ -129,7 +129,7 @@ class htmlPts {
|
|
129 |
if($params['usetable']) $out .= '</tr></table>';
|
130 |
}
|
131 |
return $out;
|
132 |
-
}
|
133 |
static public function timepicker($name, $params = array('attrs' => '', 'value' => '')) {
|
134 |
if(isset($params['id']) && !empty($params['id']))
|
135 |
$id = $params['id'];
|
@@ -198,7 +198,7 @@ class htmlPts {
|
|
198 |
}
|
199 |
static public function selectlist($name, $params = array('attrs'=>'', 'size'=> 5, 'options' => array(), 'value' => '')) {
|
200 |
$out = '';
|
201 |
-
if(!strpos($name, '[]'))
|
202 |
$name .= '[]';
|
203 |
if (!isset($params['size']) || !is_numeric($params['size']) || $params['size'] == '') {
|
204 |
$params['size'] = 5;
|
@@ -213,7 +213,7 @@ class htmlPts {
|
|
213 |
}
|
214 |
}
|
215 |
$out .= '</select>';
|
216 |
-
return $out;
|
217 |
}
|
218 |
static public function file($name, $params = array()) {
|
219 |
$params['type'] = 'file';
|
@@ -231,9 +231,9 @@ class htmlPts {
|
|
231 |
$out .= '<span class="delete_option" id="delete_'.$name.'" '.$display.'></span>';
|
232 |
$out .= '<script type="text/javascript">// <!--
|
233 |
jQuery(document).ready(function(){
|
234 |
-
new AjaxUpload("#toeUploadbut_'.$name.'", {
|
235 |
-
action: "'.$params['url'].'",
|
236 |
-
name: "'. $name. '" '.
|
237 |
(empty($params['data']) ? '' : ', data: '. $params['data']. '').
|
238 |
(empty($params['autoPtsmit']) ? '' : ', autoPtsmit: "'. $params['autoPtsmit']. '"').
|
239 |
(empty($params['responseType']) ? '' : ', responseType: "'. $params['responseType']. '"').
|
@@ -324,7 +324,7 @@ class htmlPts {
|
|
324 |
$params['action'] = isset($params['action']) ? $params['action'] : '';
|
325 |
$params['method'] = isset($params['method']) ? $params['method'] : 'GET';
|
326 |
if(isset($params['hideMethodInside']) && $params['hideMethodInside']) {
|
327 |
-
return '<form name="'. $name. '" action="'. $params['action']. '" method="'. $params['method']. '" '. $params['attrs']. '>'.
|
328 |
self::hidden('method', array('value' => $params['method']));
|
329 |
} else {
|
330 |
return '<form name="'. $name. '" action="'. $params['action']. '" method="'. $params['method']. '" '. $params['attrs']. '>';
|
@@ -336,10 +336,10 @@ class htmlPts {
|
|
336 |
static public function statesInput($name, $params = array('value' => '', 'attrs' => '', 'notSelected' => true, 'id' => '', 'selectHtml' => '')) {
|
337 |
if(empty($params['selectHtml']) || !method_exists(html, $params['selectHtml']))
|
338 |
return false;
|
339 |
-
|
340 |
$params['notSelected'] = isset($params['notSelected']) ? $params['notSelected'] : true;
|
341 |
$states = fieldAdapterPts::getStates($params['notSelected']);
|
342 |
-
|
343 |
foreach($states as $sid => $s) {
|
344 |
$params['options'][$sid] = $s['name'];
|
345 |
}
|
@@ -416,7 +416,7 @@ class htmlPts {
|
|
416 |
$countOptions = count($params['options']);
|
417 |
$remove = '<a href="#" onclick="toeRemoveTextFieldsDynamicTable(this); return false;">remove</a>';
|
418 |
$add = '<a href="#" onclick="toeAddTextFieldsDynamicTable(this, '. $countOptions. '); return false;">add</a>';
|
419 |
-
|
420 |
$res = '<div class="toeTextFieldsDynamicTable">';
|
421 |
if(empty($params['value']))
|
422 |
$params['value'] = array();
|
@@ -430,7 +430,7 @@ class htmlPts {
|
|
430 |
foreach($params['options'] as $key => $p) {
|
431 |
switch($countOptions) {
|
432 |
case 1:
|
433 |
-
if(isset($params['value'][$i]))
|
434 |
$value = is_array($params['value'][$i]) ? $params['value'][$i][$key] : $params['value'][$i];
|
435 |
else
|
436 |
$value = '';
|
@@ -520,15 +520,15 @@ class htmlPts {
|
|
520 |
}
|
521 |
$paramsStr = implode(', ', $paramsArr);
|
522 |
}
|
523 |
-
|
524 |
$res = '<div id="toeSliderDisplay_'. $id. '">'. (empty($params['value']) ? '' : $params['value']). '</div>';
|
525 |
$res .= '<div id="'. $id. '"></div>';
|
526 |
$params['attrs'] = 'id="toeSliderInput_'. $id. '"';
|
527 |
$res .= self::hidden($name, $params);
|
528 |
-
$res .= '<script type="text/javascript"><!--
|
529 |
-
jQuery(function(){
|
530 |
-
jQuery("#'. $id. '").slider({'. $paramsStr. '});
|
531 |
-
});
|
532 |
--></script>';
|
533 |
return $res;
|
534 |
}
|
@@ -580,7 +580,7 @@ class htmlPts {
|
|
580 |
}
|
581 |
static public function fontsList($name, $params = array('value' => '')) {
|
582 |
static $options = array();
|
583 |
-
|
584 |
if(empty($options)) { // Fill them only one time per loading
|
585 |
foreach(array_merge(utilsPts::getFontsList(), utilsPts::getStandardFontsList()) as $font)
|
586 |
$options[ $font ] = $font;
|
@@ -612,7 +612,7 @@ class htmlPts {
|
|
612 |
$out .= '<script type="text/javascript">//<!--
|
613 |
jQuery(function(){
|
614 |
jQuery("#'. $checkId. '").change(function(){
|
615 |
-
jQuery("#'. $hideId. '").val( (jQuery(this).
|
616 |
});
|
617 |
});
|
618 |
//--></script>';
|
@@ -629,7 +629,7 @@ class htmlPts {
|
|
629 |
$params['checked'] = isset($params['checked']) ? (int) $params['checked'] : 0;
|
630 |
$params['attrs'] = isset($params['attrs']) && !empty($params['attrs']) ? $params['attrs'] : '';
|
631 |
$params['attrs'] .= ' id="'. $params['id']. '"';
|
632 |
-
|
633 |
return '<a class="toeSlideShellPts" href="#"'. $params['attrs']. '>
|
634 |
<span class="toeSlideButtPts"></span>
|
635 |
<span class="toeSlideOnPts">'. __('ON'). '</span>
|
129 |
if($params['usetable']) $out .= '</tr></table>';
|
130 |
}
|
131 |
return $out;
|
132 |
+
}
|
133 |
static public function timepicker($name, $params = array('attrs' => '', 'value' => '')) {
|
134 |
if(isset($params['id']) && !empty($params['id']))
|
135 |
$id = $params['id'];
|
198 |
}
|
199 |
static public function selectlist($name, $params = array('attrs'=>'', 'size'=> 5, 'options' => array(), 'value' => '')) {
|
200 |
$out = '';
|
201 |
+
if(!strpos($name, '[]'))
|
202 |
$name .= '[]';
|
203 |
if (!isset($params['size']) || !is_numeric($params['size']) || $params['size'] == '') {
|
204 |
$params['size'] = 5;
|
213 |
}
|
214 |
}
|
215 |
$out .= '</select>';
|
216 |
+
return $out;
|
217 |
}
|
218 |
static public function file($name, $params = array()) {
|
219 |
$params['type'] = 'file';
|
231 |
$out .= '<span class="delete_option" id="delete_'.$name.'" '.$display.'></span>';
|
232 |
$out .= '<script type="text/javascript">// <!--
|
233 |
jQuery(document).ready(function(){
|
234 |
+
new AjaxUpload("#toeUploadbut_'.$name.'", {
|
235 |
+
action: "'.$params['url'].'",
|
236 |
+
name: "'. $name. '" '.
|
237 |
(empty($params['data']) ? '' : ', data: '. $params['data']. '').
|
238 |
(empty($params['autoPtsmit']) ? '' : ', autoPtsmit: "'. $params['autoPtsmit']. '"').
|
239 |
(empty($params['responseType']) ? '' : ', responseType: "'. $params['responseType']. '"').
|
324 |
$params['action'] = isset($params['action']) ? $params['action'] : '';
|
325 |
$params['method'] = isset($params['method']) ? $params['method'] : 'GET';
|
326 |
if(isset($params['hideMethodInside']) && $params['hideMethodInside']) {
|
327 |
+
return '<form name="'. $name. '" action="'. $params['action']. '" method="'. $params['method']. '" '. $params['attrs']. '>'.
|
328 |
self::hidden('method', array('value' => $params['method']));
|
329 |
} else {
|
330 |
return '<form name="'. $name. '" action="'. $params['action']. '" method="'. $params['method']. '" '. $params['attrs']. '>';
|
336 |
static public function statesInput($name, $params = array('value' => '', 'attrs' => '', 'notSelected' => true, 'id' => '', 'selectHtml' => '')) {
|
337 |
if(empty($params['selectHtml']) || !method_exists(html, $params['selectHtml']))
|
338 |
return false;
|
339 |
+
|
340 |
$params['notSelected'] = isset($params['notSelected']) ? $params['notSelected'] : true;
|
341 |
$states = fieldAdapterPts::getStates($params['notSelected']);
|
342 |
+
|
343 |
foreach($states as $sid => $s) {
|
344 |
$params['options'][$sid] = $s['name'];
|
345 |
}
|
416 |
$countOptions = count($params['options']);
|
417 |
$remove = '<a href="#" onclick="toeRemoveTextFieldsDynamicTable(this); return false;">remove</a>';
|
418 |
$add = '<a href="#" onclick="toeAddTextFieldsDynamicTable(this, '. $countOptions. '); return false;">add</a>';
|
419 |
+
|
420 |
$res = '<div class="toeTextFieldsDynamicTable">';
|
421 |
if(empty($params['value']))
|
422 |
$params['value'] = array();
|
430 |
foreach($params['options'] as $key => $p) {
|
431 |
switch($countOptions) {
|
432 |
case 1:
|
433 |
+
if(isset($params['value'][$i]))
|
434 |
$value = is_array($params['value'][$i]) ? $params['value'][$i][$key] : $params['value'][$i];
|
435 |
else
|
436 |
$value = '';
|
520 |
}
|
521 |
$paramsStr = implode(', ', $paramsArr);
|
522 |
}
|
523 |
+
|
524 |
$res = '<div id="toeSliderDisplay_'. $id. '">'. (empty($params['value']) ? '' : $params['value']). '</div>';
|
525 |
$res .= '<div id="'. $id. '"></div>';
|
526 |
$params['attrs'] = 'id="toeSliderInput_'. $id. '"';
|
527 |
$res .= self::hidden($name, $params);
|
528 |
+
$res .= '<script type="text/javascript"><!--
|
529 |
+
jQuery(function(){
|
530 |
+
jQuery("#'. $id. '").slider({'. $paramsStr. '});
|
531 |
+
});
|
532 |
--></script>';
|
533 |
return $res;
|
534 |
}
|
580 |
}
|
581 |
static public function fontsList($name, $params = array('value' => '')) {
|
582 |
static $options = array();
|
583 |
+
|
584 |
if(empty($options)) { // Fill them only one time per loading
|
585 |
foreach(array_merge(utilsPts::getFontsList(), utilsPts::getStandardFontsList()) as $font)
|
586 |
$options[ $font ] = $font;
|
612 |
$out .= '<script type="text/javascript">//<!--
|
613 |
jQuery(function(){
|
614 |
jQuery("#'. $checkId. '").change(function(){
|
615 |
+
jQuery("#'. $hideId. '").val( (jQuery(this).prop("checked") ? 1 : 0) );
|
616 |
});
|
617 |
});
|
618 |
//--></script>';
|
629 |
$params['checked'] = isset($params['checked']) ? (int) $params['checked'] : 0;
|
630 |
$params['attrs'] = isset($params['attrs']) && !empty($params['attrs']) ? $params['attrs'] : '';
|
631 |
$params['attrs'] .= ' id="'. $params['id']. '"';
|
632 |
+
|
633 |
return '<a class="toeSlideShellPts" href="#"'. $params['attrs']. '>
|
634 |
<span class="toeSlideButtPts"></span>
|
635 |
<span class="toeSlideOnPts">'. __('ON'). '</span>
|
config.php
CHANGED
@@ -47,7 +47,7 @@
|
|
47 |
define('PTS_EOL', "\n");
|
48 |
|
49 |
define('PTS_PLUGIN_INSTALLED', true);
|
50 |
-
define('PTS_VERSION', '1.8.
|
51 |
define('PTS_USER', 'user');
|
52 |
|
53 |
define('PTS_CLASS_PREFIX', 'ptsc');
|
47 |
define('PTS_EOL', "\n");
|
48 |
|
49 |
define('PTS_PLUGIN_INSTALLED', true);
|
50 |
+
define('PTS_VERSION', '1.8.7');
|
51 |
define('PTS_USER', 'user');
|
52 |
|
53 |
define('PTS_CLASS_PREFIX', 'ptsc');
|
js/admin.options.js
CHANGED
@@ -9,12 +9,12 @@ jQuery(document).ready(function(){
|
|
9 |
if(typeof(ptsActiveTab) != 'undefined' && ptsActiveTab != 'main_page' && jQuery('#toplevel_page_tables-supsystic').hasClass('wp-has-current-submenu')) {
|
10 |
var subMenus = jQuery('#toplevel_page_tables-supsystic').find('.wp-submenu li');
|
11 |
subMenus.removeClass('current').each(function(){
|
12 |
-
if(jQuery(this).find('a[href$="&tab='+ ptsActiveTab+ '"]').
|
13 |
jQuery(this).addClass('current');
|
14 |
}
|
15 |
});
|
16 |
}
|
17 |
-
|
18 |
// Timeout - is to count only user changes, because some changes can be done auto when form is loaded
|
19 |
setTimeout(function() {
|
20 |
// If some changes was made in those forms and they were not saved - show message for confirnation before page reload
|
@@ -34,11 +34,11 @@ jQuery(document).ready(function(){
|
|
34 |
}
|
35 |
}, 1000);
|
36 |
|
37 |
-
if(jQuery('.ptsInputsWithDescrForm').
|
38 |
jQuery('.ptsInputsWithDescrForm').find('input[type=checkbox][data-optkey]').change(function(){
|
39 |
var optKey = jQuery(this).data('optkey')
|
40 |
, descShell = jQuery('#ptsFormOptDetails_'+ optKey);
|
41 |
-
if(descShell.
|
42 |
if(jQuery(this).attr('checked')) {
|
43 |
descShell.slideDown( 300 );
|
44 |
} else {
|
@@ -50,7 +50,7 @@ jQuery(document).ready(function(){
|
|
50 |
ptsInitStickyItem();
|
51 |
ptsInitCustomCheckRadio();
|
52 |
//ptsInitCustomSelect();
|
53 |
-
|
54 |
jQuery('.ptsFieldsetToggled').each(function(){
|
55 |
var self = this;
|
56 |
jQuery(self).find('.ptsFieldsetContent').hide();
|
@@ -71,7 +71,7 @@ jQuery(document).ready(function(){
|
|
71 |
});
|
72 |
});
|
73 |
// Go to Top button init
|
74 |
-
if(jQuery('#ptsPopupGoToTopBtn').
|
75 |
jQuery('#ptsPopupGoToTopBtn').click(function(){
|
76 |
jQuery('html, body').animate({
|
77 |
scrollTop: 0
|
@@ -81,7 +81,7 @@ jQuery(document).ready(function(){
|
|
81 |
});
|
82 |
}
|
83 |
ptsInitTooltips();
|
84 |
-
if(jQuery('.ptsCopyTextCode').
|
85 |
var cloneWidthElement = jQuery('<span class="sup-shortcode" />').appendTo('.supsystic-plugin');
|
86 |
jQuery('.ptsCopyTextCode').attr('readonly', 'readonly').click(function(){
|
87 |
this.setSelectionRange(0, this.value.length);
|
@@ -116,7 +116,7 @@ function ptsInitTooltips( selector ) {
|
|
116 |
for(var k in findPos) {
|
117 |
if(typeof(k) === 'string') {
|
118 |
var $tips = $findIn ? $findIn.find( k ) : jQuery( k ).not('.sup-no-init');
|
119 |
-
if($tips && $tips.
|
120 |
tooltipsterSettings.position = findPos[ k ];
|
121 |
// Fallback for case if library was not loaded
|
122 |
if(!$tips.tooltipster) continue;
|
@@ -168,17 +168,17 @@ function ptsInitStickyItem() {
|
|
168 |
, wpTollbarHeight = 32
|
169 |
, wndScrollTop = jQuery(window).scrollTop() + wpTollbarHeight
|
170 |
, footer = jQuery('.ptsAdminFooterShell')
|
171 |
-
, footerHeight = footer && footer.
|
172 |
, docHeight = jQuery(document).height()
|
173 |
, wasSticking = false
|
174 |
, wasUnSticking = false;
|
175 |
-
/*if(jQuery('#wpbody-content .update-nag').
|
176 |
wpTollbarHeight += parseInt(jQuery('#wpbody-content .update-nag').outerHeight());
|
177 |
}*/
|
178 |
for(var i = 0; i < stickiItemsSelectors.length; i++) {
|
179 |
jQuery(stickiItemsSelectors[ i ]).each(function(){
|
180 |
var element = jQuery(this);
|
181 |
-
if(element && element.
|
182 |
var scrollMinPos = element.offset().top
|
183 |
, prevScrollMinPos = parseInt(element.data('scrollMinPos'))
|
184 |
, useNextElementPadding = toeInArray(stickiItemsSelectors[ i ], elementsUsePaddingNext) !== -1 || element.hasClass('sticky-padd-next')
|
@@ -200,7 +200,7 @@ function ptsInitStickyItem() {
|
|
200 |
if(useNextElementPadding) {
|
201 |
//element.addClass('supsystic-sticky-active-bordered');
|
202 |
var nextElement = element.next();
|
203 |
-
if(nextElement && nextElement.
|
204 |
nextElement.data('prevPaddingTop', nextElement.css('padding-top'));
|
205 |
var addToNextPadding = parseInt(element.data('next-padding-add'));
|
206 |
addToNextPadding = addToNextPadding ? addToNextPadding : 0;
|
@@ -224,7 +224,7 @@ function ptsInitStickyItem() {
|
|
224 |
if(useNextElementPadding) {
|
225 |
//element.removeClass('supsystic-sticky-active-bordered');
|
226 |
var nextElement = element.next();
|
227 |
-
if(nextElement && nextElement.
|
228 |
var nextPrevPaddingTop = parseInt(nextElement.data('prevPaddingTop'));
|
229 |
if(isNaN(nextPrevPaddingTop))
|
230 |
nextPrevPaddingTop = 0;
|
@@ -259,10 +259,10 @@ function ptsInitStickyItem() {
|
|
259 |
});
|
260 |
}
|
261 |
if(wasSticking) {
|
262 |
-
if(jQuery('#ptsPopupGoToTop').
|
263 |
jQuery('#ptsPopupGoToTop').show();
|
264 |
} else if(wasUnSticking) {
|
265 |
-
if(jQuery('#ptsPopupGoToTop').
|
266 |
jQuery('#ptsPopupGoToTop').hide();
|
267 |
}
|
268 |
});
|
@@ -344,7 +344,7 @@ function getGridRowId(id, gridSelectorId) {
|
|
344 |
function prepareToPlotDate(data) {
|
345 |
if(typeof(data) === 'string') {
|
346 |
if(data) {
|
347 |
-
|
348 |
data = str_replace(data, '/', '-');
|
349 |
console.log(data, new Date(data));
|
350 |
return (new Date(data)).getTime();
|
@@ -354,7 +354,7 @@ function prepareToPlotDate(data) {
|
|
354 |
}
|
355 |
function ptsInitPlugNotices() {
|
356 |
var $notices = jQuery('.supsystic-admin-notice');
|
357 |
-
if($notices && $notices.
|
358 |
$notices.each(function(){
|
359 |
jQuery(this).find('.notice-dismiss').click(function(){
|
360 |
var $notice = jQuery(this).parents('.supsystic-admin-notice');
|
@@ -412,7 +412,7 @@ function ptsInitMainPromoPopup() {
|
|
412 |
}
|
413 |
if (isRadio) {
|
414 |
jQuery('input[name="' + jQuery(this).attr('name') + '"]:first').parents('label:first').click();
|
415 |
-
if (jQuery(this).parents('.iradio_minimal:first').
|
416 |
var self = this;
|
417 |
setTimeout(function () {
|
418 |
jQuery(self).parents('.iradio_minimal:first').removeClass('checked');
|
@@ -424,4 +424,3 @@ function ptsInitMainPromoPopup() {
|
|
424 |
});
|
425 |
}
|
426 |
}
|
427 |
-
|
9 |
if(typeof(ptsActiveTab) != 'undefined' && ptsActiveTab != 'main_page' && jQuery('#toplevel_page_tables-supsystic').hasClass('wp-has-current-submenu')) {
|
10 |
var subMenus = jQuery('#toplevel_page_tables-supsystic').find('.wp-submenu li');
|
11 |
subMenus.removeClass('current').each(function(){
|
12 |
+
if(jQuery(this).find('a[href$="&tab='+ ptsActiveTab+ '"]').length) {
|
13 |
jQuery(this).addClass('current');
|
14 |
}
|
15 |
});
|
16 |
}
|
17 |
+
|
18 |
// Timeout - is to count only user changes, because some changes can be done auto when form is loaded
|
19 |
setTimeout(function() {
|
20 |
// If some changes was made in those forms and they were not saved - show message for confirnation before page reload
|
34 |
}
|
35 |
}, 1000);
|
36 |
|
37 |
+
if(jQuery('.ptsInputsWithDescrForm').length) {
|
38 |
jQuery('.ptsInputsWithDescrForm').find('input[type=checkbox][data-optkey]').change(function(){
|
39 |
var optKey = jQuery(this).data('optkey')
|
40 |
, descShell = jQuery('#ptsFormOptDetails_'+ optKey);
|
41 |
+
if(descShell.length) {
|
42 |
if(jQuery(this).attr('checked')) {
|
43 |
descShell.slideDown( 300 );
|
44 |
} else {
|
50 |
ptsInitStickyItem();
|
51 |
ptsInitCustomCheckRadio();
|
52 |
//ptsInitCustomSelect();
|
53 |
+
|
54 |
jQuery('.ptsFieldsetToggled').each(function(){
|
55 |
var self = this;
|
56 |
jQuery(self).find('.ptsFieldsetContent').hide();
|
71 |
});
|
72 |
});
|
73 |
// Go to Top button init
|
74 |
+
if(jQuery('#ptsPopupGoToTopBtn').length) {
|
75 |
jQuery('#ptsPopupGoToTopBtn').click(function(){
|
76 |
jQuery('html, body').animate({
|
77 |
scrollTop: 0
|
81 |
});
|
82 |
}
|
83 |
ptsInitTooltips();
|
84 |
+
if(jQuery('.ptsCopyTextCode').length) {
|
85 |
var cloneWidthElement = jQuery('<span class="sup-shortcode" />').appendTo('.supsystic-plugin');
|
86 |
jQuery('.ptsCopyTextCode').attr('readonly', 'readonly').click(function(){
|
87 |
this.setSelectionRange(0, this.value.length);
|
116 |
for(var k in findPos) {
|
117 |
if(typeof(k) === 'string') {
|
118 |
var $tips = $findIn ? $findIn.find( k ) : jQuery( k ).not('.sup-no-init');
|
119 |
+
if($tips && $tips.length) {
|
120 |
tooltipsterSettings.position = findPos[ k ];
|
121 |
// Fallback for case if library was not loaded
|
122 |
if(!$tips.tooltipster) continue;
|
168 |
, wpTollbarHeight = 32
|
169 |
, wndScrollTop = jQuery(window).scrollTop() + wpTollbarHeight
|
170 |
, footer = jQuery('.ptsAdminFooterShell')
|
171 |
+
, footerHeight = footer && footer.length ? footer.height() : 0
|
172 |
, docHeight = jQuery(document).height()
|
173 |
, wasSticking = false
|
174 |
, wasUnSticking = false;
|
175 |
+
/*if(jQuery('#wpbody-content .update-nag').length) { // Not used for now
|
176 |
wpTollbarHeight += parseInt(jQuery('#wpbody-content .update-nag').outerHeight());
|
177 |
}*/
|
178 |
for(var i = 0; i < stickiItemsSelectors.length; i++) {
|
179 |
jQuery(stickiItemsSelectors[ i ]).each(function(){
|
180 |
var element = jQuery(this);
|
181 |
+
if(element && element.length && !element.hasClass('sticky-ignore')) {
|
182 |
var scrollMinPos = element.offset().top
|
183 |
, prevScrollMinPos = parseInt(element.data('scrollMinPos'))
|
184 |
, useNextElementPadding = toeInArray(stickiItemsSelectors[ i ], elementsUsePaddingNext) !== -1 || element.hasClass('sticky-padd-next')
|
200 |
if(useNextElementPadding) {
|
201 |
//element.addClass('supsystic-sticky-active-bordered');
|
202 |
var nextElement = element.next();
|
203 |
+
if(nextElement && nextElement.length) {
|
204 |
nextElement.data('prevPaddingTop', nextElement.css('padding-top'));
|
205 |
var addToNextPadding = parseInt(element.data('next-padding-add'));
|
206 |
addToNextPadding = addToNextPadding ? addToNextPadding : 0;
|
224 |
if(useNextElementPadding) {
|
225 |
//element.removeClass('supsystic-sticky-active-bordered');
|
226 |
var nextElement = element.next();
|
227 |
+
if(nextElement && nextElement.length) {
|
228 |
var nextPrevPaddingTop = parseInt(nextElement.data('prevPaddingTop'));
|
229 |
if(isNaN(nextPrevPaddingTop))
|
230 |
nextPrevPaddingTop = 0;
|
259 |
});
|
260 |
}
|
261 |
if(wasSticking) {
|
262 |
+
if(jQuery('#ptsPopupGoToTop').length)
|
263 |
jQuery('#ptsPopupGoToTop').show();
|
264 |
} else if(wasUnSticking) {
|
265 |
+
if(jQuery('#ptsPopupGoToTop').length)
|
266 |
jQuery('#ptsPopupGoToTop').hide();
|
267 |
}
|
268 |
});
|
344 |
function prepareToPlotDate(data) {
|
345 |
if(typeof(data) === 'string') {
|
346 |
if(data) {
|
347 |
+
|
348 |
data = str_replace(data, '/', '-');
|
349 |
console.log(data, new Date(data));
|
350 |
return (new Date(data)).getTime();
|
354 |
}
|
355 |
function ptsInitPlugNotices() {
|
356 |
var $notices = jQuery('.supsystic-admin-notice');
|
357 |
+
if($notices && $notices.length) {
|
358 |
$notices.each(function(){
|
359 |
jQuery(this).find('.notice-dismiss').click(function(){
|
360 |
var $notice = jQuery(this).parents('.supsystic-admin-notice');
|
412 |
}
|
413 |
if (isRadio) {
|
414 |
jQuery('input[name="' + jQuery(this).attr('name') + '"]:first').parents('label:first').click();
|
415 |
+
if (jQuery(this).parents('.iradio_minimal:first').length) {
|
416 |
var self = this;
|
417 |
setTimeout(function () {
|
418 |
jQuery(self).parents('.iradio_minimal:first').removeClass('checked');
|
424 |
});
|
425 |
}
|
426 |
}
|
|
js/common.js
CHANGED
@@ -27,7 +27,7 @@ jQuery.fn.tagName = function() {
|
|
27 |
return this.get(0).tagName;
|
28 |
}
|
29 |
jQuery.fn.exists = function(){
|
30 |
-
return (jQuery(this).
|
31 |
}
|
32 |
function isNumber(val) {
|
33 |
return /^\d+/.test(val);
|
@@ -273,7 +273,7 @@ function toeReload(url) {
|
|
273 |
}
|
274 |
jQuery.fn.toeRebuildSelect = function(data, useIdAsValue, val) {
|
275 |
if(jQuery(this).tagName() == 'SELECT' && typeof(data) == 'object') {
|
276 |
-
if(jQuery(data).
|
277 |
if(typeof(val) == 'undefined')
|
278 |
val = false;
|
279 |
if(jQuery(this).children('option').length) {
|
@@ -473,7 +473,7 @@ function toeListablePts(params) {
|
|
473 |
var newRow = exampleRow.clone();
|
474 |
for(var key in list[i]) {
|
475 |
var element = newRow.find('.'+ key);
|
476 |
-
if(element.
|
477 |
var valueTo = element.attr('valueTo');
|
478 |
if(valueTo) {
|
479 |
var newValue = list[i][key];
|
@@ -742,13 +742,13 @@ function ptsInitCustomCheckRadio(selector) {
|
|
742 |
jQuery(this).trigger('change');
|
743 |
if(jQuery(this).hasClass('cbox')) {
|
744 |
var parentRow = jQuery(this).parents('.jqgrow:first');
|
745 |
-
if(parentRow && parentRow.
|
746 |
jQuery(this).parents('td:first').trigger('click');
|
747 |
} else {
|
748 |
var checkId = jQuery(this).attr('id');
|
749 |
if(checkId && checkId != '' && strpos(checkId, 'cb_') === 0) {
|
750 |
var parentTblId = str_replace(checkId, 'cb_', '');
|
751 |
-
if(parentTblId && parentTblId != '' && jQuery('#'+ parentTblId).
|
752 |
jQuery('#'+ parentTblId).find('input[type=checkbox]').iCheck('update');
|
753 |
}
|
754 |
}
|
27 |
return this.get(0).tagName;
|
28 |
}
|
29 |
jQuery.fn.exists = function(){
|
30 |
+
return (jQuery(this).length > 0 ? true : false);
|
31 |
}
|
32 |
function isNumber(val) {
|
33 |
return /^\d+/.test(val);
|
273 |
}
|
274 |
jQuery.fn.toeRebuildSelect = function(data, useIdAsValue, val) {
|
275 |
if(jQuery(this).tagName() == 'SELECT' && typeof(data) == 'object') {
|
276 |
+
if(jQuery(data).length > 0) {
|
277 |
if(typeof(val) == 'undefined')
|
278 |
val = false;
|
279 |
if(jQuery(this).children('option').length) {
|
473 |
var newRow = exampleRow.clone();
|
474 |
for(var key in list[i]) {
|
475 |
var element = newRow.find('.'+ key);
|
476 |
+
if(element.length) {
|
477 |
var valueTo = element.attr('valueTo');
|
478 |
if(valueTo) {
|
479 |
var newValue = list[i][key];
|
742 |
jQuery(this).trigger('change');
|
743 |
if(jQuery(this).hasClass('cbox')) {
|
744 |
var parentRow = jQuery(this).parents('.jqgrow:first');
|
745 |
+
if(parentRow && parentRow.length) {
|
746 |
jQuery(this).parents('td:first').trigger('click');
|
747 |
} else {
|
748 |
var checkId = jQuery(this).attr('id');
|
749 |
if(checkId && checkId != '' && strpos(checkId, 'cb_') === 0) {
|
750 |
var parentTblId = str_replace(checkId, 'cb_', '');
|
751 |
+
if(parentTblId && parentTblId != '' && jQuery('#'+ parentTblId).length) {
|
752 |
jQuery('#'+ parentTblId).find('input[type=checkbox]').iCheck('update');
|
753 |
}
|
754 |
}
|
js/core.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
if(typeof(PTS_DATA) == 'undefined')
|
2 |
var PTS_DATA = {};
|
3 |
-
if(isNumber(PTS_DATA.animationSpeed))
|
4 |
PTS_DATA.animationSpeed = parseInt(PTS_DATA.animationSpeed);
|
5 |
else if(jQuery.inArray(PTS_DATA.animationSpeed, ['fast', 'slow']) == -1)
|
6 |
PTS_DATA.animationSpeed = 'fast';
|
@@ -43,7 +43,7 @@ jQuery.fn.sendFormPts = function(params) {
|
|
43 |
form = jQuery('#'+ fid);
|
44 |
else
|
45 |
form = jQuery(this);
|
46 |
-
|
47 |
/* This method can be used not only from form data sending, it can be used just to send some data and fill in response msg or errors*/
|
48 |
var sentFromForm = (jQuery(form).tagName() == 'FORM');
|
49 |
var data = new Array();
|
@@ -51,10 +51,10 @@ jQuery.fn.sendFormPts = function(params) {
|
|
51 |
data = params.data;
|
52 |
else if(sentFromForm)
|
53 |
data = jQuery(form).serialize();
|
54 |
-
|
55 |
params.errorClass = 'ptsErrorMsg'+ (params.errorClass ? ' '+ params.errorClass : '');
|
56 |
params.successClass = 'ptsSuccessMsg'+ (params.successClass ? ' '+ params.successClass : '');
|
57 |
-
|
58 |
if(params.appendData) {
|
59 |
var dataIsString = typeof(data) == 'string';
|
60 |
var addStrData = [];
|
@@ -97,8 +97,8 @@ jQuery.fn.sendFormPts = function(params) {
|
|
97 |
var btnWasDisabled = jQuery(params.btn).attr('disabled') ? true : false;
|
98 |
jQuery(params.btn).attr('disabled', 'disabled');
|
99 |
// Font awesome usage
|
100 |
-
params.btnIconElement = jQuery(params.btn).find('.fa').
|
101 |
-
if(jQuery(params.btn).find('.fa').
|
102 |
if(!btnWasDisabled) {
|
103 |
params.btnIconElement
|
104 |
.data('prev-class', params.btnIconElement.attr('class'));
|
@@ -114,7 +114,7 @@ jQuery.fn.sendFormPts = function(params) {
|
|
114 |
url = PTS_DATA.ajaxurl;
|
115 |
else
|
116 |
url = ajaxurl;
|
117 |
-
|
118 |
jQuery('.ptsErrorForField').hide(PTS_DATA.animationSpeed);
|
119 |
var dataType = params.dataType ? params.dataType : 'json';
|
120 |
// Set plugin orientation
|
@@ -282,7 +282,7 @@ function toeOptTimeoutHideDescriptionPts() {
|
|
282 |
*/
|
283 |
function toeOptShowDescriptionPts(description, x, y, moveToLeft) {
|
284 |
if(typeof(description) != 'undefined' && description != '') {
|
285 |
-
if(!jQuery('#ptsOptDescription').
|
286 |
jQuery('body').append('<div id="ptsOptDescription"></div>');
|
287 |
}
|
288 |
if(moveToLeft)
|
1 |
if(typeof(PTS_DATA) == 'undefined')
|
2 |
var PTS_DATA = {};
|
3 |
+
if(isNumber(PTS_DATA.animationSpeed))
|
4 |
PTS_DATA.animationSpeed = parseInt(PTS_DATA.animationSpeed);
|
5 |
else if(jQuery.inArray(PTS_DATA.animationSpeed, ['fast', 'slow']) == -1)
|
6 |
PTS_DATA.animationSpeed = 'fast';
|
43 |
form = jQuery('#'+ fid);
|
44 |
else
|
45 |
form = jQuery(this);
|
46 |
+
|
47 |
/* This method can be used not only from form data sending, it can be used just to send some data and fill in response msg or errors*/
|
48 |
var sentFromForm = (jQuery(form).tagName() == 'FORM');
|
49 |
var data = new Array();
|
51 |
data = params.data;
|
52 |
else if(sentFromForm)
|
53 |
data = jQuery(form).serialize();
|
54 |
+
|
55 |
params.errorClass = 'ptsErrorMsg'+ (params.errorClass ? ' '+ params.errorClass : '');
|
56 |
params.successClass = 'ptsSuccessMsg'+ (params.successClass ? ' '+ params.successClass : '');
|
57 |
+
|
58 |
if(params.appendData) {
|
59 |
var dataIsString = typeof(data) == 'string';
|
60 |
var addStrData = [];
|
97 |
var btnWasDisabled = jQuery(params.btn).attr('disabled') ? true : false;
|
98 |
jQuery(params.btn).attr('disabled', 'disabled');
|
99 |
// Font awesome usage
|
100 |
+
params.btnIconElement = jQuery(params.btn).find('.fa').length ? jQuery(params.btn).find('.fa') : jQuery(params.btn);
|
101 |
+
if(jQuery(params.btn).find('.fa').length) {
|
102 |
if(!btnWasDisabled) {
|
103 |
params.btnIconElement
|
104 |
.data('prev-class', params.btnIconElement.attr('class'));
|
114 |
url = PTS_DATA.ajaxurl;
|
115 |
else
|
116 |
url = ajaxurl;
|
117 |
+
|
118 |
jQuery('.ptsErrorForField').hide(PTS_DATA.animationSpeed);
|
119 |
var dataType = params.dataType ? params.dataType : 'json';
|
120 |
// Set plugin orientation
|
282 |
*/
|
283 |
function toeOptShowDescriptionPts(description, x, y, moveToLeft) {
|
284 |
if(typeof(description) != 'undefined' && description != '') {
|
285 |
+
if(!jQuery('#ptsOptDescription').length) {
|
286 |
jQuery('body').append('<div id="ptsOptDescription"></div>');
|
287 |
}
|
288 |
if(moveToLeft)
|
js/table.min.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
function ptsBlockFabric(){this._blocks=[],this._isSorting=!1,this._animationSpeed=g_ptsAnimationSpeed}function ptsBlockBase(blockData){this._data=blockData,this._$=null,this._original$=null,this._id=0,this._iter=0,this._elements=[],this._animationSpeed=300,this._disableContentChange=!1}function ptsBlock_price_table(blockData){this._increaseHoverFontPerc=20,this._$lastHoveredCol=null,this._refreshColsBinded=!1,this._onloadHandle=!1,this._isAlreadyShowed=!1,this._isResponsiveDescInit=!1,ptsBlock_price_table.superclass.constructor.apply(this,arguments)}function ptsElementBase(jqueryHtml,block){if(this._iterNum=0,this._id="el_"+mtRand(1,999999),this._animationSpeed=g_ptsAnimationSpeed,this._$=jqueryHtml,this._block=block,"undefined"==typeof this._menuOriginalId&&(this._menuOriginalId=""),this._innerImgsCount=0,this._innerImgsLoaded=0,this._menu=null,this._menuClbs={},"undefined"==typeof this._menuClass&&(this._menuClass="ptsElementMenu"),this._menuOnBottom=!1,this._code="base",this._initedComplete=!1,this._editArea=null,"undefined"==typeof this._isMovable&&(this._isMovable=!1),this._moveHandler=null,this._sortInProgress=!1,"undefined"==typeof this._showMenuEvent&&(this._showMenuEvent="click"),"undefined"==typeof this._changeable&&(this._changeable=!1),g_ptsEdit){this._init(),this._initMenuClbs(),this._initMenu();var images=this._$.find("img");if(images&&(this._innerImgsCount=images.
|
2 |
ptsBlockBase.prototype.setParam=function(key,value){
|
3 |
this._data.params[key]||(this._data.params[key]={}),
|
4 |
this._data.params[key].val=value}
|
5 |
-
,ptsBlockBase.prototype.getRaw=function(){return this._$},ptsBlockBase.prototype.$=function(){return this.getRaw()},ptsBlockBase.prototype.setRaw=function(jqueryHtml){this._$=jqueryHtml,this._resetElements(),this._initHtml(),this.getParam("font_family")&&this._setFont(this.getParam("font_family"))},ptsBlockBase.prototype._initElements=function(){this._initElementsForArea(this._$)},ptsBlockBase.prototype._initElementsForArea=function(area){var block=this,addedElements=[],initElement=function(htmlEl){var elementCode=jQuery(htmlEl).data("el"),elementClass=window["ptsElement_"+elementCode];if(elementClass){var newElement=new elementClass(jQuery(htmlEl),block);newElement._setCode(elementCode);var newIterNum=block._elements.push(newElement);addedElements.push(newElement),newElement.setIterNum(newIterNum-1)}else g_ptsEdit&&console.log("Undefined Element ["+elementCode+"] !!!")};return jQuery(area).find(".ptsEl").each(function(){initElement(this)}),jQuery(area).hasClass("ptsEl")&&initElement(area),this._afterInitElements(),addedElements},ptsBlockBase.prototype._afterInitElements=function(){},ptsBlockBase.prototype._resetElements=function(){this._clearElements(),this._initElements()},ptsBlockBase.prototype._clearElements=function(){if(this._elements&&this._elements.length){for(var i=0;i<this._elements.length;i++)this._elements[i].destroy();this._elements=[]}},ptsBlockBase.prototype.getElements=function(){return this._elements},ptsBlockBase.prototype._initHtml=function(){},ptsBlockBase.prototype.setIter=function(iter){this._iter=iter},ptsBlockBase.prototype.showLoader=function(txt){var loaderHtml=jQuery("#ptsBlockLoader");txt=txt?txt:loaderHtml.data("base-txt"),loaderHtml.find(".ptsBlockLoaderTxt").html(txt),loaderHtml.css({height:this._$.height(),top:this._$.offset().top}).addClass("active")},ptsBlockBase.prototype.hideLoader=function(){var loaderHtml=jQuery("#ptsBlockLoader");loaderHtml.removeClass("active")},ptsBlockBase.prototype._setFont=function(fontFamily){var $fontLink=this._getFontLink();toeInArrayPts(fontFamily,ptsBuildConst.standardFonts)===!1&&$fontLink.attr({href:"https://fonts.googleapis.com/css?family="+encodeURIComponent(fontFamily)}),this._$.css({"font-family":fontFamily}),this.setParam("font_family",fontFamily)},ptsBlockBase.prototype._getFontLink=function(){var $link=this._$.find("link.ptsFont");return $link.
|
6 |
var $tooltipstedCells=this._$.find(".ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]");
|
7 |
-
if("1"!=this.getParam("disable_custom_tooltip_style")&&$tooltipstedCells&&$tooltipstedCells.
|
8 |
var tooltipsterSettings={contentAsHTML:!0,interactive:!0,speed:250,delay:0,animation:"swing",maxWidth:450,position:"top"};
|
9 |
$tooltipstedCells.tooltipster(tooltipsterSettings)
|
10 |
}
|
11 |
-
var self=this,PTS_VISIBLE_SET_HEIGHT_KEY="PTS-VISIBLE-SET-HEIGHT-KEY";this._fixResponsive(),jQuery(window).resize(function(){self._$.is(":visible")?(self._fixResponsive(),self._refreshCellsHeight()):self._$.data(PTS_VISIBLE_SET_HEIGHT_KEY,!1)}),jQuery(function(){var isEnableLazyLoad=function(){return self._$.find("img[data-lazy-src]:not(.lazyloaded)").
|
12 |
|
13 |
ptsBlock_price_table.prototype._increaseHoverFont=function($col){
|
14 |
var self=this;
|
@@ -38,7 +38,7 @@ var self=this,PTS_VISIBLE_SET_HEIGHT_KEY="PTS-VISIBLE-SET-HEIGHT-KEY";this._fixR
|
|
38 |
|
39 |
}
|
40 |
|
41 |
-
$col.addClass("hover"),_ptsIsEditMode()&&setTimeout(function(){var colElement=self.getElementByIterNum($col.data("iter-num"));colElement&&colElement.repositeMenu()},g_ptsHoverAnim)}},ptsBlock_price_table.prototype._backHoverFont=function($col){if(!_ptsIsEditMode()){$col.removeClass("hover");var $descCell=$col.find(".ptsColDesc");$descCell.find("span").each(function(){var prevFontSize=jQuery(this).data("prev-font-size");prevFontSize&&jQuery(this).css("font-size",prevFontSize)}),setTimeout(function(){$descCell.outerHeight($descCell.data("prev-height"))},300)}},ptsBlock_price_table.prototype._disableHoverEffect=function($cols){this.setParam("enb_hover_animation",0),_ptsIsEditMode()||($cols=$cols?$cols:this._getCols(),$cols.unbind("hover.animation"))},ptsBlock_price_table.prototype.getColSelectors=function(){return{header:{sel:".ptsColHeader"},desc:{sel:".ptsColDesc"},rows:{sel:".ptsRows"},cells:{sel:".ptsCell"},footer:{sel:".ptsColFooter"}}},ptsBlock_price_table.prototype.getMaxColsSizes=function(widthDesc){var $cols=this._getCols(widthDesc),sizes=this.getColSelectors();return $cols.each(function(){for(var key in sizes)if("rows"!=key){var $entity=jQuery(this).find(sizes[key].sel);if($entity&&$entity.
|
42 |
|
43 |
ptsBlock_price_table.prototype.setColsWidth=function(width,perc){var thatObj=this;if("1"!=thatObj.getParam("is_horisontal_row_type")){if("1"===this.getParam("dsbl_responsive")){var tableWidth=this._$.width(),fixedValueTableWidth=this._$.width(),$cols=this._getCols(!0),notSettedColumnWidthArr=new Array;if($cols.each(function(){var col1=jQuery(this);if(col1.length>0&&col1[0].style&&col1[0].style.width){var colWidthObj=thatObj.getColumnWithInfo(col1[0].style.width);if(colWidthObj&&"num"in colWidthObj&&"isPerc"in colWidthObj){var calcColWidth=0;calcColWidth=colWidthObj.isPerc?fixedValueTableWidth*colWidthObj.num/100:colWidthObj.num;var colPdL=parseFloat(col1.css("padding-left")),colPdR=parseFloat(col1.css("padding-right")),colMgL=parseFloat(col1.css("margin-left")),colMgR=parseFloat(col1.css("margin-right")),colSumMarginPadding=0;isNaN(colPdL)||(colSumMarginPadding+=colPdL),isNaN(colPdR)||(colSumMarginPadding+=colPdR),isNaN(colMgL)||(colSumMarginPadding+=colMgL),isNaN(colMgR)||(colSumMarginPadding+=colMgR),tableWidth-=calcColWidth,calcColWidth=Math.floor(calcColWidth-colSumMarginPadding),calcColWidth<0&&(calcColWidth=0),col1.width(calcColWidth)}else notSettedColumnWidthArr[notSettedColumnWidthArr.length]=col1}else notSettedColumnWidthArr[notSettedColumnWidthArr.length]=col1}),tableWidth>0&¬SettedColumnWidthArr.length>0){var calcWidthForNsCol=Math.round(tableWidth/notSettedColumnWidthArr.length);for(var oneNsColumn in notSettedColumnWidthArr)notSettedColumnWidthArr[oneNsColumn].width(calcWidthForNsCol)}}else if(width=parseFloat(width)){perc||this.setParam("col_width",width);var $cols=this._getCols(!0);width+=perc?"%":"px",$cols.css({width:width})}}else this.columnChidrensWidthCalc()},
|
44 |
ptsBlock_price_table.prototype.columnChidrensWidthCalc=function(){
|
@@ -64,12 +64,12 @@ var self=this,PTS_VISIBLE_SET_HEIGHT_KEY="PTS-VISIBLE-SET-HEIGHT-KEY";this._fixR
|
|
64 |
|
65 |
|
66 |
}
|
67 |
-
},ptsBlock_price_table.prototype.checkColWidthPerc=function(){"table"===this.getParam("calc_width")&&this.setColWidthPerc()},ptsBlock_price_table.prototype.setColWidthPerc=function(){var $cols=this._getCols(parseInt(this.getParam("enb_desc_col")));this.setColsWidth(100/$cols.
|
68 |
this._$.addClass("ptsBlockMobile")
|
69 |
var $tooltipstedCells=this._$.find(".ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]")
|
70 |
var tooltipsterSettings={contentAsHTML:!0,interactive:!0,speed:250,delay:0,animation:"swing",maxWidth:450,position:"top"}
|
71 |
$tooltipstedCells.tooltipster(tooltipsterSettings)
|
72 |
-
,this.setParam("went_to_responsive",1)}else this.getParam("went_to_responsive")&&(this.setColWidthPerc(),this.setParam("went_to_responsive",0));break;case"px":actualTblWidth>parentWidth?(this.setParam("went_to_responsive",this.getParam("table_width")),this.setTableWidth(100,"%"),this._fixResponsive()):this.getParam("went_to_responsive")&&(this.setTableWidth(this.getParam("went_to_responsive"),"px"),this.setParam("went_to_responsive",0))}break;case"col":var colsNum=$cols.
|
73 |
|
74 |
ptsBlock_price_table.prototype.setTableVertPadding = function(padding, measure) {
|
75 |
if(padding && parseInt(padding)) {
|
1 |
+
function ptsBlockFabric(){this._blocks=[],this._isSorting=!1,this._animationSpeed=g_ptsAnimationSpeed}function ptsBlockBase(blockData){this._data=blockData,this._$=null,this._original$=null,this._id=0,this._iter=0,this._elements=[],this._animationSpeed=300,this._disableContentChange=!1}function ptsBlock_price_table(blockData){this._increaseHoverFontPerc=20,this._$lastHoveredCol=null,this._refreshColsBinded=!1,this._onloadHandle=!1,this._isAlreadyShowed=!1,this._isResponsiveDescInit=!1,ptsBlock_price_table.superclass.constructor.apply(this,arguments)}function ptsElementBase(jqueryHtml,block){if(this._iterNum=0,this._id="el_"+mtRand(1,999999),this._animationSpeed=g_ptsAnimationSpeed,this._$=jqueryHtml,this._block=block,"undefined"==typeof this._menuOriginalId&&(this._menuOriginalId=""),this._innerImgsCount=0,this._innerImgsLoaded=0,this._menu=null,this._menuClbs={},"undefined"==typeof this._menuClass&&(this._menuClass="ptsElementMenu"),this._menuOnBottom=!1,this._code="base",this._initedComplete=!1,this._editArea=null,"undefined"==typeof this._isMovable&&(this._isMovable=!1),this._moveHandler=null,this._sortInProgress=!1,"undefined"==typeof this._showMenuEvent&&(this._showMenuEvent="click"),"undefined"==typeof this._changeable&&(this._changeable=!1),g_ptsEdit){this._init(),this._initMenuClbs(),this._initMenu();var images=this._$.find("img");if(images&&(this._innerImgsCount=images.length)){this._innerImgsLoaded=0;var self=this;images.load(function(){self._innerImgsLoaded++,self._$.find("img").length==self._innerImgsLoaded&&self._afterFullContentLoad()})}}this._onlyFirstHtmlInit(),this._initedComplete=!0}function ptsElement_btn(jqueryHtml,block){"undefined"==typeof this._menuOriginalId&&(this._menuOriginalId="ptsElMenuBtnExl"),this._menuClass="ptsElementMenu_btn",this._haveAdditionBgEl=null,this._changeable=!0,this.includePostLinks=!0,ptsElement_btn.superclass.constructor.apply(this,arguments)}function ptsElement_table_col(jqueryHtml,block){"undefined"==typeof this._menuOriginalId&&(this._menuOriginalId="ptsElMenuTableColExl"),"undefined"==typeof this._menuClass&&(this._menuClass="ptsElementMenu_table_col"),"undefined"==typeof this._isMovable&&(this._isMovable=!0),this._showMenuEvent="hover",this._colNum=0,ptsElement_table_col.superclass.constructor.apply(this,arguments)}function ptsElement_table_col_desc(jqueryHtml,block){this._isMovable=!1,ptsElement_table_col_desc.superclass.constructor.apply(this,arguments)}function ptsElement_table_cell_txt(jqueryHtml,block){block.getParam("responsive_text")&&jqueryHtml.find("span, p").responsiveText({minFontSize:14}),this.includePostLinks=!0,ptsElement_table_cell_txt.superclass.constructor.apply(this,arguments)}!function($){$.fn.responsiveText=function(options){var settings=$.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},options);return this.each(function(){var $this=$(this),text=$this.get(0);if(text){$this.data("original-font-size",parseFloat(window.getComputedStyle(text).fontSize),10);var resizer=function(){var ratio=null,originalWidth=window.screen.availWidth,currentWidth=window.innerWidth,size=$this.data("original-font-size");originalWidth!=currentWidth&&size&&(currentWidth!=originalWidth&&(ratio=originalWidth/currentWidth),currentWidth>originalWidth?size*=ratio:size/=ratio,size=Math.max(Math.min(size,settings.maxFontSize),settings.minFontSize),$this.css("font-size",size+"px"))};resizer(),$(window).on("resize.responsiveText orientationchange.responsiveText",resizer)}})}}(jQuery),ptsBlockFabric.prototype.addFromHtml=function(blockData,jqueryHtml){var block=this.add(blockData);block.setRaw(jqueryHtml)},ptsBlockFabric.prototype.add=function(blockData){var blockData=jQuery.extend({},blockData);blockData.original_id||(blockData.original_id=blockData.id,blockData.id=0);var blockClass=window["ptsBlock_"+blockData.cat_code];if(blockClass){var block=new blockClass(blockData),blockIter=this._blocks.push(block);return block.setIter(blockIter-1),block}console.log("Block Class For "+blockData.cat_code+" Not Found!!!")},ptsBlockFabric.prototype.getByViewId=function(viewId){if(this._blocks&&this._blocks.length)for(var i=0;i<this._blocks.length;i++)if(this._blocks[i].get("view_id")==viewId)return this._blocks[i];return!1},ptsBlockBase.prototype.get=function(key){return this._data[key]},ptsBlockBase.prototype.getParam=function(key){return!!this._data.params[key]&&this._data.params[key].val},
|
2 |
ptsBlockBase.prototype.setParam=function(key,value){
|
3 |
this._data.params[key]||(this._data.params[key]={}),
|
4 |
this._data.params[key].val=value}
|
5 |
+
,ptsBlockBase.prototype.getRaw=function(){return this._$},ptsBlockBase.prototype.$=function(){return this.getRaw()},ptsBlockBase.prototype.setRaw=function(jqueryHtml){this._$=jqueryHtml,this._resetElements(),this._initHtml(),this.getParam("font_family")&&this._setFont(this.getParam("font_family"))},ptsBlockBase.prototype._initElements=function(){this._initElementsForArea(this._$)},ptsBlockBase.prototype._initElementsForArea=function(area){var block=this,addedElements=[],initElement=function(htmlEl){var elementCode=jQuery(htmlEl).data("el"),elementClass=window["ptsElement_"+elementCode];if(elementClass){var newElement=new elementClass(jQuery(htmlEl),block);newElement._setCode(elementCode);var newIterNum=block._elements.push(newElement);addedElements.push(newElement),newElement.setIterNum(newIterNum-1)}else g_ptsEdit&&console.log("Undefined Element ["+elementCode+"] !!!")};return jQuery(area).find(".ptsEl").each(function(){initElement(this)}),jQuery(area).hasClass("ptsEl")&&initElement(area),this._afterInitElements(),addedElements},ptsBlockBase.prototype._afterInitElements=function(){},ptsBlockBase.prototype._resetElements=function(){this._clearElements(),this._initElements()},ptsBlockBase.prototype._clearElements=function(){if(this._elements&&this._elements.length){for(var i=0;i<this._elements.length;i++)this._elements[i].destroy();this._elements=[]}},ptsBlockBase.prototype.getElements=function(){return this._elements},ptsBlockBase.prototype._initHtml=function(){},ptsBlockBase.prototype.setIter=function(iter){this._iter=iter},ptsBlockBase.prototype.showLoader=function(txt){var loaderHtml=jQuery("#ptsBlockLoader");txt=txt?txt:loaderHtml.data("base-txt"),loaderHtml.find(".ptsBlockLoaderTxt").html(txt),loaderHtml.css({height:this._$.height(),top:this._$.offset().top}).addClass("active")},ptsBlockBase.prototype.hideLoader=function(){var loaderHtml=jQuery("#ptsBlockLoader");loaderHtml.removeClass("active")},ptsBlockBase.prototype._setFont=function(fontFamily){var $fontLink=this._getFontLink();toeInArrayPts(fontFamily,ptsBuildConst.standardFonts)===!1&&$fontLink.attr({href:"https://fonts.googleapis.com/css?family="+encodeURIComponent(fontFamily)}),this._$.css({"font-family":fontFamily}),this.setParam("font_family",fontFamily)},ptsBlockBase.prototype._getFontLink=function(){var $link=this._$.find("link.ptsFont");return $link.length||($link=jQuery('<link class="ptsFont" rel="stylesheet" type="text/css"/>').appendTo(this._$)),$link},extendPts(ptsBlock_price_table,ptsBlockBase),ptsBlock_price_table.prototype._getColsContainer=function(){return this._$.find(".ptsColsWrapper:first")},ptsBlock_price_table.prototype._getCols=function(includeDescCol){return this._getColsContainer().find(".ptsCol"+(includeDescCol?"":":not(.ptsTableDescCol)"))},ptsBlock_price_table.prototype._afterInitElements=function(){if(ptsBlock_price_table.superclass._afterInitElements.apply(this,arguments),parseInt(this.getParam("enb_hover_animation"))&&this._initHoverEffect(),this.getParam("table_align")&&this._$.addClass("ptsTableAlign_"+this.getParam("table_align")),this.getParam("text_align")&&this._$.addClass("ptsAlign_"+this.getParam("text_align")),this._disableContentChange||this._refreshCellsHeight(),this._refreshColsBinded||(this._$.bind("ptsBlockContentChanged",jQuery.proxy(function(){this._refreshCellsHeight()},this)),this._refreshColsBinded=!0),_ptsIsEditMode())this.columnChidrensWidthCalc();else{
|
6 |
var $tooltipstedCells=this._$.find(".ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]");
|
7 |
+
if("1"!=this.getParam("disable_custom_tooltip_style")&&$tooltipstedCells&&$tooltipstedCells.length){
|
8 |
var tooltipsterSettings={contentAsHTML:!0,interactive:!0,speed:250,delay:0,animation:"swing",maxWidth:450,position:"top"};
|
9 |
$tooltipstedCells.tooltipster(tooltipsterSettings)
|
10 |
}
|
11 |
+
var self=this,PTS_VISIBLE_SET_HEIGHT_KEY="PTS-VISIBLE-SET-HEIGHT-KEY";this._fixResponsive(),jQuery(window).resize(function(){self._$.is(":visible")?(self._fixResponsive(),self._refreshCellsHeight()):self._$.data(PTS_VISIBLE_SET_HEIGHT_KEY,!1)}),jQuery(function(){var isEnableLazyLoad=function(){return self._$.find("img[data-lazy-src]:not(.lazyloaded)").length>0},checkedLazyLoadLib=!1;isEnableLazyLoad()&&(checkedLazyLoadLib=!0),document.body.addEventListener("DOMSubtreeModified",function(e){if(checkedLazyLoadLib&&1==e.target.nodeType&&"IMG"==e.target.nodeName&&jQuery.contains(self._$.get(0),e.target)){var isLoadedImages=!0;self._$.find("img[data-lazy-src]").each(function(){var $this=jQuery(this);$this.hasClass("lazyloaded")||$this.hasClass("lazyload")||(isLoadedImages=!1)}),isLoadedImages&&(checkedLazyLoadLib=!1,self._$.find("img[data-lazy-src]").on("load",function(){self._fixResponsive(),self._refreshCellsHeight()}))}!self._isAlreadyShowed&&self._$&&self._$.visible()&&(self._isAlreadyShowed=!0,self._fixResponsive(),self._refreshCellsHeight())},!1),self.setCalcWidth()})}var self=this;this._onloadHandle||(this._onloadHandle=!0,jQuery(window).load(function(){self._refreshCellsHeight()}))},ptsBlock_price_table.prototype._initHoverEffect=function(){if(_ptsIsEditMode())return void this.setParam("enb_hover_animation",1);var $cols=this._getCols(),self=this;this._disableHoverEffect($cols),$cols.bind("hover.animation",function(e){switch(e.type){case"mouseenter":case"mousein":self._increaseHoverFont(jQuery(this));break;case"mouseleave":case"mouseout":self._backHoverFont(jQuery(this))}}),this.setParam("enb_hover_animation",1)},
|
12 |
|
13 |
ptsBlock_price_table.prototype._increaseHoverFont=function($col){
|
14 |
var self=this;
|
38 |
|
39 |
}
|
40 |
|
41 |
+
$col.addClass("hover"),_ptsIsEditMode()&&setTimeout(function(){var colElement=self.getElementByIterNum($col.data("iter-num"));colElement&&colElement.repositeMenu()},g_ptsHoverAnim)}},ptsBlock_price_table.prototype._backHoverFont=function($col){if(!_ptsIsEditMode()){$col.removeClass("hover");var $descCell=$col.find(".ptsColDesc");$descCell.find("span").each(function(){var prevFontSize=jQuery(this).data("prev-font-size");prevFontSize&&jQuery(this).css("font-size",prevFontSize)}),setTimeout(function(){$descCell.outerHeight($descCell.data("prev-height"))},300)}},ptsBlock_price_table.prototype._disableHoverEffect=function($cols){this.setParam("enb_hover_animation",0),_ptsIsEditMode()||($cols=$cols?$cols:this._getCols(),$cols.unbind("hover.animation"))},ptsBlock_price_table.prototype.getColSelectors=function(){return{header:{sel:".ptsColHeader"},desc:{sel:".ptsColDesc"},rows:{sel:".ptsRows"},cells:{sel:".ptsCell"},footer:{sel:".ptsColFooter"}}},ptsBlock_price_table.prototype.getMaxColsSizes=function(widthDesc){var $cols=this._getCols(widthDesc),sizes=this.getColSelectors();return $cols.each(function(){for(var key in sizes)if("rows"!=key){var $entity=jQuery(this).find(sizes[key].sel);if($entity&&$entity.length)if("cells"==key){sizes[key].height||(sizes[key].height=[]);var cellNum=0;$entity.each(function(){var prevHeight=jQuery(this).outerHeight();jQuery(this).css("height","auto");var height=jQuery(this).outerHeight();(!sizes[key].height[cellNum]||sizes[key].height[cellNum]<height)&&(sizes[key].height[cellNum]=height),jQuery(this).outerHeight(prevHeight),cellNum++})}else{var prevHeight=$entity.outerHeight();$entity.css("height","auto");var height=$entity.outerHeight();(!sizes[key].height||sizes[key].height<height)&&(sizes[key].height=height),$entity.outerHeight(prevHeight)}}}),sizes},ptsBlock_price_table.prototype.getColumnWithInfo=function(strWidthAttr){var trimAttr=strWidthAttr.trim(),number=trimAttr.match("\\d+"),isPerc=trimAttr.match("%"),isPx=trimAttr.match("\\d+");return null===number||null===isPerc&&null===isPx?null:new Object({num:number.length&&number.length>0&&!isNaN(parseInt(number[0]))?parseInt(number[0]):null,isPerc:null!==isPerc})},
|
42 |
|
43 |
ptsBlock_price_table.prototype.setColsWidth=function(width,perc){var thatObj=this;if("1"!=thatObj.getParam("is_horisontal_row_type")){if("1"===this.getParam("dsbl_responsive")){var tableWidth=this._$.width(),fixedValueTableWidth=this._$.width(),$cols=this._getCols(!0),notSettedColumnWidthArr=new Array;if($cols.each(function(){var col1=jQuery(this);if(col1.length>0&&col1[0].style&&col1[0].style.width){var colWidthObj=thatObj.getColumnWithInfo(col1[0].style.width);if(colWidthObj&&"num"in colWidthObj&&"isPerc"in colWidthObj){var calcColWidth=0;calcColWidth=colWidthObj.isPerc?fixedValueTableWidth*colWidthObj.num/100:colWidthObj.num;var colPdL=parseFloat(col1.css("padding-left")),colPdR=parseFloat(col1.css("padding-right")),colMgL=parseFloat(col1.css("margin-left")),colMgR=parseFloat(col1.css("margin-right")),colSumMarginPadding=0;isNaN(colPdL)||(colSumMarginPadding+=colPdL),isNaN(colPdR)||(colSumMarginPadding+=colPdR),isNaN(colMgL)||(colSumMarginPadding+=colMgL),isNaN(colMgR)||(colSumMarginPadding+=colMgR),tableWidth-=calcColWidth,calcColWidth=Math.floor(calcColWidth-colSumMarginPadding),calcColWidth<0&&(calcColWidth=0),col1.width(calcColWidth)}else notSettedColumnWidthArr[notSettedColumnWidthArr.length]=col1}else notSettedColumnWidthArr[notSettedColumnWidthArr.length]=col1}),tableWidth>0&¬SettedColumnWidthArr.length>0){var calcWidthForNsCol=Math.round(tableWidth/notSettedColumnWidthArr.length);for(var oneNsColumn in notSettedColumnWidthArr)notSettedColumnWidthArr[oneNsColumn].width(calcWidthForNsCol)}}else if(width=parseFloat(width)){perc||this.setParam("col_width",width);var $cols=this._getCols(!0);width+=perc?"%":"px",$cols.css({width:width})}}else this.columnChidrensWidthCalc()},
|
44 |
ptsBlock_price_table.prototype.columnChidrensWidthCalc=function(){
|
64 |
|
65 |
|
66 |
}
|
67 |
+
},ptsBlock_price_table.prototype.checkColWidthPerc=function(){"table"===this.getParam("calc_width")&&this.setColWidthPerc()},ptsBlock_price_table.prototype.setColWidthPerc=function(){var $cols=this._getCols(parseInt(this.getParam("enb_desc_col")));this.setColsWidth(100/$cols.length,!0)},ptsBlock_price_table.prototype.setTableWidth=function(width,measure){width&&parseInt(width)?(width=parseInt(width),this.setParam("table_width",width)):width=this.getParam("table_width"),measure?this.setParam("table_width_measure",measure):measure=this.getParam("table_width_measure"),this._$.width(width+measure)},ptsBlock_price_table.prototype.setCalcWidth=function(type){switch(type?this.setParam("calc_width",type):type=this.getParam("calc_width"),type){case"table":this.setTableWidth(),this.setColWidthPerc();break;case"col":var enb_desc_col=0!=this.getParam("enb_desc_col");this._$.width(this._getCols(enb_desc_col).length*this.getParam("col_width")),this.setColsWidth(this.getParam("col_width"))}},ptsBlock_price_table.prototype._fixResponsive=function(){if("1"!=this.getParam("is_horisontal_row_type")){var $parent=this._$.parents(".ptsTableFrontedShell:first").parent(),parentWidth=$parent.width(),widthMeasure=this.getParam("table_width_measure"),calcWidth=this.getParam("calc_width"),includeDesc=parseInt(this.getParam("enb_desc_col")),$cols=this._getCols(includeDesc),actualTblWidth=this._$.width(),criticalColWidth=isNaN(parseInt(this.getParam("resp_min_col_width")))?150:parseInt(this.getParam("resp_min_col_width")),dsblResponsive=parseInt(this.getParam("dsbl_responsive"));switch(this._$.removeClass("ptsBlockMobile"),calcWidth){case"table":switch(widthMeasure){case"%":var self=this,removeOtherDescCol=function(){if(!dsblResponsive&&!_ptsIsEditMode()&&self._$.find(".ptsTableDescCol").length>1&&includeDesc){var $descCols=self._$.find(".ptsTableDescCol"),firstCol=!1;$descCols.each(function(){var $this=jQuery(this);return firstCol?void $this.remove():void(firstCol=!0)})}};removeOtherDescCol(),$cols=this._getCols(includeDesc);var colsNum=$cols.length,currWidth=actualTblWidth/colsNum;if(currWidth<=criticalColWidth&&!dsblResponsive){if($cols.css("width","100%"),!_ptsIsEditMode()&&includeDesc){var $descColumn=this._$.find(".ptsTableDescCol"),$columns=this._$.find(".ptsCol:not(.ptsTableDescCol)"),firstCol=!1;$columns.each(function(){var $this=jQuery(this);return firstCol?void $descColumn.clone().insertBefore($this):void(firstCol=!0)}),this._isResponsiveDescInit=!0,this._$.find(".ptsCol").css("width","50%")}
|
68 |
this._$.addClass("ptsBlockMobile")
|
69 |
var $tooltipstedCells=this._$.find(".ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]")
|
70 |
var tooltipsterSettings={contentAsHTML:!0,interactive:!0,speed:250,delay:0,animation:"swing",maxWidth:450,position:"top"}
|
71 |
$tooltipstedCells.tooltipster(tooltipsterSettings)
|
72 |
+
,this.setParam("went_to_responsive",1)}else this.getParam("went_to_responsive")&&(this.setColWidthPerc(),this.setParam("went_to_responsive",0));break;case"px":actualTblWidth>parentWidth?(this.setParam("went_to_responsive",this.getParam("table_width")),this.setTableWidth(100,"%"),this._fixResponsive()):this.getParam("went_to_responsive")&&(this.setTableWidth(this.getParam("went_to_responsive"),"px"),this.setParam("went_to_responsive",0))}break;case"col":var colsNum=$cols.length,currWidth=parseFloat(this.getParam("col_width"));currWidth*colsNum>=parentWidth?(this.setParam("went_to_responsive",currWidth),this.setParam("table_width",100),this.setParam("table_width_measure","%"),this.setCalcWidth("table"),this._fixResponsive()):this.getParam("went_to_responsive")&&(this.setCalcWidth("col"),this.setParam("col_width",this.getParam("went_to_responsive")),this.setParam("went_to_responsive",0))}}},ptsBlock_price_table.prototype._refreshCellsHeight=function(){var $cols=this._getCols(!0),self=this,sizes=this.getMaxColsSizes(!0);$cols.each(function(){for(var key in sizes){var $entity=jQuery(this).find(sizes[key].sel);if("1"==self.getParam("is_horisontal_row_type"))$entity.css({height:"auto"});else{if("rows"==key){$entity.css({height:"auto"});continue}if($entity&&$entity.length)if("cells"==key){var cellNum=0;$entity.each(function(){jQuery(this).css("height",sizes[key].height[cellNum]),cellNum++})}else $entity.outerHeight(sizes[key].height),$entity.outerHeight()!=sizes[key].height&&$entity.css("height",sizes[key].height)}}})},ptsElementBase.prototype.getId=function(){return this._id},ptsElementBase.prototype.getBlock=function(){return this._block},ptsElementBase.prototype._onlyFirstHtmlInit=function(){return!(!this._$||this._$.data("first-inited"))&&(this._$.data("first-inited",1),!0)},ptsElementBase.prototype.setIterNum=function(num){this._iterNum=num,this._$.data("iter-num",num)},ptsElementBase.prototype.getIterNum=function(){return this._iterNum},ptsElementBase.prototype.$=function(){return this._$},ptsElementBase.prototype.getCode=function(){return this._code},ptsElementBase.prototype._setCode=function(code){this._code=code},ptsElementBase.prototype._init=function(){this._beforeInit()},ptsElementBase.prototype._beforeInit=function(){},ptsElementBase.prototype.destroy=function(){},ptsElementBase.prototype.get=function(opt){return jQuery("<div/>").html(this._$.attr("data-"+opt)).text()},ptsElementBase.prototype.set=function(opt,val){this._$.attr("data-"+opt,jQuery("<div/>").text(val).html())},ptsElementBase.prototype._getEditArea=function(){return this._editArea||(this._editArea=this._$.children(".ptsElArea"),this._editArea.length||(this._editArea=this._$.find(".ptsInputShell"))),this._editArea},ptsElementBase.prototype._getOverlay=function(){return this._$.find(".ptsElOverlay")},extendPts(ptsElement_btn,ptsElementBase),ptsElement_btn.prototype._onlyFirstHtmlInit=function(){if(ptsElement_btn.superclass._onlyFirstHtmlInit.apply(this,arguments)&&this.get("customhover-clb")){var clbName=this.get("customhover-clb");if("function"==typeof this[clbName]){var self=this;this._getEditArea().hover(function(){self[clbName](!0,this)},function(){self[clbName](!1,this)})}}},ptsElement_btn.prototype._hoverChangeFontColor=function(hover,element){hover?jQuery(element).data("original-color",this._getEditArea().css("color")).css("color",jQuery(element).parents(".ptsEl:first").attr("data-bgcolor")):jQuery(element).css("color",jQuery(element).data("original-color"))},ptsElement_btn.prototype._hoverChangeBgColor=function(hover,element){var parentElement=jQuery(element).parents(".ptsEl:first");hover?parentElement.data("original-color",parentElement.css("background-color")).css("background-color",parentElement.attr("data-bgcolor")):parentElement.css("background-color",parentElement.data("original-color"))},ptsElement_btn.prototype._hoverBorderColor=function(hover,element){hover?jQuery(element).data("original-color",jQuery(element).css("border-color")).css("border-color",jQuery(element).parents(".ptsEl:first").attr("data-bgcolor")):jQuery(element).css("border-color",jQuery(element).data("original-color"))},extendPts(ptsElement_table_col,ptsElementBase),extendPts(ptsElement_table_col_desc,ptsElement_table_col),extendPts(ptsElement_table_cell_txt,ptsElementBase);
|
73 |
|
74 |
ptsBlock_price_table.prototype.setTableVertPadding = function(padding, measure) {
|
75 |
if(padding && parseInt(padding)) {
|
js/wp.tabs.js
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
var locationHash = document.location.hash;
|
20 |
if(locationHash && locationHash != '' && $this.find(locationHash)) {
|
21 |
$this.wpTabs('activate', locationHash);
|
22 |
-
if(jQuery(locationHash).
|
23 |
// Avoid scrolling to hashes
|
24 |
jQuery(window).load(function(){
|
25 |
setTimeout(function(){
|
@@ -38,7 +38,7 @@
|
|
38 |
, activate: function(selector) {
|
39 |
return this.each(function(){
|
40 |
var $this = jQuery(this);
|
41 |
-
if($this.find(selector).
|
42 |
var navigations = $this.find('.nav-tab-wrapper:first').find('a.nav-tab:not(.notTab)');
|
43 |
if(!this._firstInit) {
|
44 |
if(this._options.uniqId)
|
19 |
var locationHash = document.location.hash;
|
20 |
if(locationHash && locationHash != '' && $this.find(locationHash)) {
|
21 |
$this.wpTabs('activate', locationHash);
|
22 |
+
if(jQuery(locationHash).length) {
|
23 |
// Avoid scrolling to hashes
|
24 |
jQuery(window).load(function(){
|
25 |
setTimeout(function(){
|
38 |
, activate: function(selector) {
|
39 |
return this.each(function(){
|
40 |
var $this = jQuery(this);
|
41 |
+
if($this.find(selector).length) {
|
42 |
var navigations = $this.find('.nav-tab-wrapper:first').find('a.nav-tab:not(.notTab)');
|
43 |
if(!this._firstInit) {
|
44 |
if(this._options.uniqId)
|
modules/tables/js/admin.imex.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
, startPageSelector = $root.find('.supsystic-imex-tab-header-item.active').attr('data-to-page')
|
6 |
, $startPage = jQuery(startPageSelector);
|
7 |
|
8 |
-
if ($startPage.
|
9 |
$startPage.show();
|
10 |
|
11 |
$root.on('click', '.imex-page-nav[data-to-page]', function () {
|
5 |
, startPageSelector = $root.find('.supsystic-imex-tab-header-item.active').attr('data-to-page')
|
6 |
, $startPage = jQuery(startPageSelector);
|
7 |
|
8 |
+
if ($startPage.length)
|
9 |
$startPage.show();
|
10 |
|
11 |
$root.on('click', '.imex-page-nav[data-to-page]', function () {
|
modules/tables/js/admin.tables.edit.js
CHANGED
@@ -577,7 +577,7 @@ function _ptsCheckBgColorNotice() {
|
|
577 |
if(!noticeAboutBgColorShown) {
|
578 |
var $cols = _ptsGetTableBlock()._getCols( parseInt(_ptsGetTableBlock().getParam('enb_desc_col')) )
|
579 |
, haveColsWithoutFillColor = false;
|
580 |
-
if($cols && $cols.
|
581 |
$cols.each(function(){
|
582 |
var colEl = _ptsGetTableBlock().getElementByIterNum( jQuery(this).data('iter-num') );
|
583 |
if(colEl) {
|
@@ -662,11 +662,11 @@ function _ptsCheckOldTemplateHtml() {
|
|
662 |
var table = _ptsGetTableBlock()
|
663 |
, $tmpDiv = jQuery('<div style="display: none;" />').appendTo('body').html( oldHtml )
|
664 |
, $oldCols = $tmpDiv.find('.ptsCol:not(.ptsTableDescCol)')
|
665 |
-
, oldColsNum = $oldCols.
|
666 |
, $cols = table._getCols()
|
667 |
-
, colsNum = $cols.
|
668 |
, $oldFirstCol = $oldCols.first()
|
669 |
-
, oldRowsNum = $oldFirstCol.find('.ptsRows .ptsCell').
|
670 |
, rowsNum = table.getRowsNum();
|
671 |
if(oldColsNum != colsNum) {
|
672 |
var i = oldColsNum - colsNum
|
577 |
if(!noticeAboutBgColorShown) {
|
578 |
var $cols = _ptsGetTableBlock()._getCols( parseInt(_ptsGetTableBlock().getParam('enb_desc_col')) )
|
579 |
, haveColsWithoutFillColor = false;
|
580 |
+
if($cols && $cols.length) {
|
581 |
$cols.each(function(){
|
582 |
var colEl = _ptsGetTableBlock().getElementByIterNum( jQuery(this).data('iter-num') );
|
583 |
if(colEl) {
|
662 |
var table = _ptsGetTableBlock()
|
663 |
, $tmpDiv = jQuery('<div style="display: none;" />').appendTo('body').html( oldHtml )
|
664 |
, $oldCols = $tmpDiv.find('.ptsCol:not(.ptsTableDescCol)')
|
665 |
+
, oldColsNum = $oldCols.length
|
666 |
, $cols = table._getCols()
|
667 |
+
, colsNum = $cols.length
|
668 |
, $oldFirstCol = $oldCols.first()
|
669 |
+
, oldRowsNum = $oldFirstCol.find('.ptsRows .ptsCell').length
|
670 |
, rowsNum = table.getRowsNum();
|
671 |
if(oldColsNum != colsNum) {
|
672 |
var i = oldColsNum - colsNum
|
modules/tables/js/admin.tables.js
CHANGED
@@ -16,7 +16,7 @@ jQuery(document).ready(function(){
|
|
16 |
} else { // Creating new table
|
17 |
ptsInitCreateTableDialog();
|
18 |
}
|
19 |
-
if(jQuery('.ptsTplPrevImg').
|
20 |
ptsAdjustPreviewSize();
|
21 |
jQuery(window).resize(function(){
|
22 |
ptsAdjustPreviewSize();
|
16 |
} else { // Creating new table
|
17 |
ptsInitCreateTableDialog();
|
18 |
}
|
19 |
+
if(jQuery('.ptsTplPrevImg').length) { // If on creation page
|
20 |
ptsAdjustPreviewSize();
|
21 |
jQuery(window).resize(function(){
|
22 |
ptsAdjustPreviewSize();
|
modules/tables/js/frontend.tables.editor.blocks.base.js
CHANGED
@@ -126,7 +126,7 @@ ptsBlockBase.prototype._setFont = function(fontFamily) {
|
|
126 |
};
|
127 |
ptsBlockBase.prototype._getFontLink = function() {
|
128 |
var $link = this._$.find('link.ptsFont');
|
129 |
-
if(!$link.
|
130 |
$link = jQuery('<link class="ptsFont" rel="stylesheet" type="text/css"/>').appendTo( this._$ );
|
131 |
}
|
132 |
return $link;
|
@@ -167,7 +167,7 @@ ptsBlock_price_table.prototype._getCols = function(includeDescCol) {
|
|
167 |
ptsBlock_price_table.prototype._initTooltipsForCells = function() {
|
168 |
if(this.getParam('disable_custom_tooltip_style') != '1') {
|
169 |
var $tooltipstedCells = this._$.find('.ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]');
|
170 |
-
if($tooltipstedCells && $tooltipstedCells.
|
171 |
// TODO: Move this to Options and make this part more flexible
|
172 |
var tooltipsterSettings = {
|
173 |
contentAsHTML: true
|
@@ -179,7 +179,7 @@ ptsBlock_price_table.prototype._initTooltipsForCells = function() {
|
|
179 |
, position: 'top'
|
180 |
};
|
181 |
$tooltipstedCells.tooltipster( tooltipsterSettings );
|
182 |
-
|
183 |
$tooltipstedCells.each(function() {
|
184 |
var el = jQuery(this);
|
185 |
el.attr('data-title', el.attr('title')).removeAttr('title');
|
@@ -210,7 +210,7 @@ ptsBlock_price_table.prototype._afterInitElements = function() {
|
|
210 |
/*var $tooltipstedCells = this._$.find('.ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]');
|
211 |
|
212 |
if(this.getParam('disable_custom_tooltip_style') != '1') {
|
213 |
-
if($tooltipstedCells && $tooltipstedCells.
|
214 |
// TODO: Move this to Options and make this part more flexible
|
215 |
var tooltipsterSettings = {
|
216 |
contentAsHTML: true
|
@@ -221,7 +221,7 @@ ptsBlock_price_table.prototype._afterInitElements = function() {
|
|
221 |
, maxWidth: 450
|
222 |
, position: 'top'
|
223 |
};
|
224 |
-
$tooltipstedCells.tooltipster( tooltipsterSettings );
|
225 |
}
|
226 |
}*/
|
227 |
var self = this
|
@@ -246,17 +246,17 @@ ptsBlock_price_table.prototype._afterInitElements = function() {
|
|
246 |
self._refreshCellsHeight();
|
247 |
});
|
248 |
jQuery(function () {
|
249 |
-
var isEnableLazyLoad = function () {
|
250 |
-
return self._$.find('img[data-lazy-src]:not(.lazyloaded)').
|
251 |
}, checkedLazyLoadLib = false;
|
252 |
|
253 |
if (isEnableLazyLoad())
|
254 |
checkedLazyLoadLib = true;
|
255 |
|
256 |
document.body.addEventListener("DOMSubtreeModified", function (e) {
|
257 |
-
if (checkedLazyLoadLib
|
258 |
-
&& e.target.nodeType == 1
|
259 |
-
&& e.target.nodeName == "IMG"
|
260 |
&& jQuery.contains(self._$.get(0), e.target)
|
261 |
) {
|
262 |
var isLoadedImages = true;
|
@@ -297,7 +297,7 @@ ptsBlock_price_table.prototype._afterInitElements = function() {
|
|
297 |
|
298 |
if (! this._onloadHandle) {
|
299 |
this._onloadHandle = true;
|
300 |
-
jQuery(window).load
|
301 |
self._refreshCellsHeight();
|
302 |
});
|
303 |
}
|
@@ -409,7 +409,7 @@ ptsBlock_price_table.prototype.getMaxColsSizes = function( widthDesc ) {
|
|
409 |
for(var key in sizes) {
|
410 |
if(key == 'rows') continue;
|
411 |
var $entity = jQuery(this).find(sizes[ key ].sel);
|
412 |
-
if($entity && $entity.
|
413 |
if(key == 'cells') {
|
414 |
if(!sizes[ key ].height)
|
415 |
sizes[ key ].height = [];
|
@@ -572,7 +572,7 @@ ptsBlock_price_table.prototype.checkColWidthPerc = function() {
|
|
572 |
};
|
573 |
ptsBlock_price_table.prototype.setColWidthPerc = function() {
|
574 |
var $cols = this._getCols( parseInt(this.getParam('enb_desc_col')) );
|
575 |
-
this.setColsWidth( 100 / $cols.
|
576 |
};
|
577 |
ptsBlock_price_table.prototype.setTableWidth = function(width, measure) {
|
578 |
if(width && parseInt(width)) {
|
@@ -616,7 +616,7 @@ ptsBlock_price_table.prototype.setCalcWidth = function(type) {
|
|
616 |
break;
|
617 |
case 'col':
|
618 |
var enb_desc_col = this.getParam('enb_desc_col') != 0 ? true : false;
|
619 |
-
this._$.width(this._getCols(enb_desc_col).
|
620 |
this.setColsWidth( this.getParam('col_width') );
|
621 |
break;
|
622 |
}
|
@@ -651,7 +651,7 @@ ptsBlock_price_table.prototype._fixResponsive = function() {
|
|
651 |
, removeOtherDescCol = function () {
|
652 |
if (!dsblResponsive
|
653 |
&& !_ptsIsEditMode()
|
654 |
-
&& self._$.find('.ptsTableDescCol').
|
655 |
&& includeDesc
|
656 |
) {
|
657 |
var $descCols = self._$.find('.ptsTableDescCol')
|
@@ -733,7 +733,7 @@ ptsBlock_price_table.prototype._fixResponsive = function() {
|
|
733 |
}
|
734 |
break;
|
735 |
case 'col':
|
736 |
-
var colsNum = $cols.
|
737 |
, currWidth = parseFloat(this.getParam('col_width'));
|
738 |
if(currWidth * colsNum >= parentWidth) {
|
739 |
this.setParam('went_to_responsive', currWidth);
|
@@ -766,7 +766,7 @@ ptsBlock_price_table.prototype._refreshCellsHeight = function() {
|
|
766 |
$entity.css({'height': 'auto'});
|
767 |
continue;
|
768 |
}
|
769 |
-
if($entity && $entity.
|
770 |
if(key == 'cells') {
|
771 |
var cellNum = 0;
|
772 |
$entity.each(function(){
|
@@ -784,4 +784,4 @@ ptsBlock_price_table.prototype._refreshCellsHeight = function() {
|
|
784 |
}
|
785 |
}
|
786 |
});
|
787 |
-
};
|
126 |
};
|
127 |
ptsBlockBase.prototype._getFontLink = function() {
|
128 |
var $link = this._$.find('link.ptsFont');
|
129 |
+
if(!$link.length) {
|
130 |
$link = jQuery('<link class="ptsFont" rel="stylesheet" type="text/css"/>').appendTo( this._$ );
|
131 |
}
|
132 |
return $link;
|
167 |
ptsBlock_price_table.prototype._initTooltipsForCells = function() {
|
168 |
if(this.getParam('disable_custom_tooltip_style') != '1') {
|
169 |
var $tooltipstedCells = this._$.find('.ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]');
|
170 |
+
if($tooltipstedCells && $tooltipstedCells.length) {
|
171 |
// TODO: Move this to Options and make this part more flexible
|
172 |
var tooltipsterSettings = {
|
173 |
contentAsHTML: true
|
179 |
, position: 'top'
|
180 |
};
|
181 |
$tooltipstedCells.tooltipster( tooltipsterSettings );
|
182 |
+
|
183 |
$tooltipstedCells.each(function() {
|
184 |
var el = jQuery(this);
|
185 |
el.attr('data-title', el.attr('title')).removeAttr('title');
|
210 |
/*var $tooltipstedCells = this._$.find('.ptsCell[title], .ptsColFooter[title], .ptsColHeader[title], .ptsColDesc[title]');
|
211 |
|
212 |
if(this.getParam('disable_custom_tooltip_style') != '1') {
|
213 |
+
if($tooltipstedCells && $tooltipstedCells.length) {
|
214 |
// TODO: Move this to Options and make this part more flexible
|
215 |
var tooltipsterSettings = {
|
216 |
contentAsHTML: true
|
221 |
, maxWidth: 450
|
222 |
, position: 'top'
|
223 |
};
|
224 |
+
$tooltipstedCells.tooltipster( tooltipsterSettings );
|
225 |
}
|
226 |
}*/
|
227 |
var self = this
|
246 |
self._refreshCellsHeight();
|
247 |
});
|
248 |
jQuery(function () {
|
249 |
+
var isEnableLazyLoad = function () {
|
250 |
+
return self._$.find('img[data-lazy-src]:not(.lazyloaded)').length > 0;
|
251 |
}, checkedLazyLoadLib = false;
|
252 |
|
253 |
if (isEnableLazyLoad())
|
254 |
checkedLazyLoadLib = true;
|
255 |
|
256 |
document.body.addEventListener("DOMSubtreeModified", function (e) {
|
257 |
+
if (checkedLazyLoadLib
|
258 |
+
&& e.target.nodeType == 1
|
259 |
+
&& e.target.nodeName == "IMG"
|
260 |
&& jQuery.contains(self._$.get(0), e.target)
|
261 |
) {
|
262 |
var isLoadedImages = true;
|
297 |
|
298 |
if (! this._onloadHandle) {
|
299 |
this._onloadHandle = true;
|
300 |
+
jQuery(window).on("load", function() {
|
301 |
self._refreshCellsHeight();
|
302 |
});
|
303 |
}
|
409 |
for(var key in sizes) {
|
410 |
if(key == 'rows') continue;
|
411 |
var $entity = jQuery(this).find(sizes[ key ].sel);
|
412 |
+
if($entity && $entity.length) {
|
413 |
if(key == 'cells') {
|
414 |
if(!sizes[ key ].height)
|
415 |
sizes[ key ].height = [];
|
572 |
};
|
573 |
ptsBlock_price_table.prototype.setColWidthPerc = function() {
|
574 |
var $cols = this._getCols( parseInt(this.getParam('enb_desc_col')) );
|
575 |
+
this.setColsWidth( 100 / $cols.length, true );
|
576 |
};
|
577 |
ptsBlock_price_table.prototype.setTableWidth = function(width, measure) {
|
578 |
if(width && parseInt(width)) {
|
616 |
break;
|
617 |
case 'col':
|
618 |
var enb_desc_col = this.getParam('enb_desc_col') != 0 ? true : false;
|
619 |
+
this._$.width(this._getCols(enb_desc_col).length * this.getParam('col_width') );
|
620 |
this.setColsWidth( this.getParam('col_width') );
|
621 |
break;
|
622 |
}
|
651 |
, removeOtherDescCol = function () {
|
652 |
if (!dsblResponsive
|
653 |
&& !_ptsIsEditMode()
|
654 |
+
&& self._$.find('.ptsTableDescCol').length > 1
|
655 |
&& includeDesc
|
656 |
) {
|
657 |
var $descCols = self._$.find('.ptsTableDescCol')
|
733 |
}
|
734 |
break;
|
735 |
case 'col':
|
736 |
+
var colsNum = $cols.length
|
737 |
, currWidth = parseFloat(this.getParam('col_width'));
|
738 |
if(currWidth * colsNum >= parentWidth) {
|
739 |
this.setParam('went_to_responsive', currWidth);
|
766 |
$entity.css({'height': 'auto'});
|
767 |
continue;
|
768 |
}
|
769 |
+
if($entity && $entity.length) {
|
770 |
if(key == 'cells') {
|
771 |
var cellNum = 0;
|
772 |
$entity.each(function(){
|
784 |
}
|
785 |
}
|
786 |
});
|
787 |
+
};
|
modules/tables/js/frontend.tables.editor.blocks.js
CHANGED
@@ -276,7 +276,7 @@ ptsBlockBase.prototype.replaceElement = function(element, toParamCode, type) {
|
|
276 |
var existsBtnHTML = null;
|
277 |
|
278 |
for (var i in this._elements) {
|
279 |
-
if (this._elements[i] instanceof ptsElement_btn && this._elements[i]._$.
|
280 |
existsBtnHTML = this._elements[i]._$.get(0).outerHTML;
|
281 |
|
282 |
break;
|
@@ -333,7 +333,7 @@ ptsBlock_price_table.prototype.addColumn = function() {
|
|
333 |
, $cols = this._getCols()
|
334 |
, $col = null
|
335 |
, self = this;
|
336 |
-
if($cols.
|
337 |
var $lastCol = $cols.last();
|
338 |
this.mapElementsFromHtml($lastCol, 'beforeSave');
|
339 |
$col = $cols.last().clone();
|
@@ -377,7 +377,7 @@ ptsBlock_price_table.prototype._initCellsEdit = function( $cell ) {
|
|
377 |
|
378 |
// Append cell buttons
|
379 |
var $btnsShell = jQuery(this).find('.ptsCellEditBtnsShell');
|
380 |
-
if($btnsShell.
|
381 |
$btnsShell.html('');
|
382 |
} else {
|
383 |
$btnsShell = jQuery('<div class="ptsCellEditBtnsShell ptsShowSmooth" />').appendTo( this );
|
@@ -533,7 +533,7 @@ ptsBlock_price_table.prototype._destroyCellsEdit = function( $cell ) {
|
|
533 |
this._$.find('.ptsCellEditBtnsShell').remove();
|
534 |
};
|
535 |
ptsBlock_price_table.prototype.getColsNum = function() {
|
536 |
-
return this._getCols().
|
537 |
};
|
538 |
ptsBlock_price_table.prototype.addPtsEl = function(parent) {
|
539 |
var $cellAppend = jQuery(this.getParam('new_cell_html'));
|
@@ -655,7 +655,7 @@ ptsBlock_price_table.prototype.removeRow = function( $cell ) {
|
|
655 |
, cellIndex = $cell && typeof($cell) === 'object' ? $cell.index() : false
|
656 |
, $cols = this._getCols( true );
|
657 |
if(cellIndex === false) {
|
658 |
-
cellIndex = typeof($cell) === 'number' ? $cell : $cols.last().find('.ptsCell').
|
659 |
}
|
660 |
if(block._data && block._data.params && block._data.params.is_horisontal_row_type && block._data.params.is_horisontal_row_type.val && block._data.params.is_horisontal_row_type.val == 1) {
|
661 |
setTimeout(function(){
|
@@ -665,7 +665,7 @@ ptsBlock_price_table.prototype.removeRow = function( $cell ) {
|
|
665 |
$cols.each(function(){
|
666 |
var $rowsWrap = jQuery(this).find('.ptsRows')
|
667 |
, $removeCell = $rowsWrap.find('.ptsCell:eq('+ cellIndex+ ')');
|
668 |
-
if($removeCell && $removeCell.
|
669 |
var $elements = $removeCell.find('.ptsEl');
|
670 |
$elements.each(function(){
|
671 |
block.removeElementByIterNum( jQuery(this).data('iter-num') );
|
@@ -682,7 +682,7 @@ ptsBlock_price_table.prototype.removeRow = function( $cell ) {
|
|
682 |
};
|
683 |
ptsBlock_price_table.prototype.removeCol = function( $col ) {
|
684 |
var $cols = this._getCols();
|
685 |
-
if($cols.
|
686 |
var $removeCol = null;
|
687 |
if(typeof($col) === 'object') { // Colum jquery obj specified
|
688 |
$removeCol = $col;
|
@@ -701,7 +701,7 @@ ptsBlock_price_table.prototype.removeCol = function( $col ) {
|
|
701 |
}
|
702 |
};
|
703 |
ptsBlock_price_table.prototype.getRowsNum = function() {
|
704 |
-
return this._getCols().first().find('.ptsRows').find('.ptsCell').
|
705 |
};
|
706 |
ptsBlock_price_table.prototype._initHtml = function() {
|
707 |
ptsBlock_price_table.superclass._initHtml.apply(this, arguments);
|
@@ -844,7 +844,7 @@ ptsBlock_price_table.prototype._switchHeadRow = function(params) {
|
|
844 |
}
|
845 |
params.$cols.each(function(){
|
846 |
var $cell = jQuery(this).find('.ptsColHeader');
|
847 |
-
if($cell && $cell.
|
848 |
params.state
|
849 |
? $cell.show()
|
850 |
: $cell.hide();
|
@@ -863,7 +863,7 @@ ptsBlock_price_table.prototype._switchDescRow = function(params) {
|
|
863 |
}
|
864 |
params.$cols.each(function(){
|
865 |
var $cell = jQuery(this).find('.ptsColDesc');
|
866 |
-
if($cell && $cell.
|
867 |
params.state
|
868 |
? $cell.show()
|
869 |
: $cell.hide();
|
@@ -882,7 +882,7 @@ ptsBlock_price_table.prototype._switchFootRow = function(params) {
|
|
882 |
}
|
883 |
params.$cols.each(function(){
|
884 |
var $cell = jQuery(this).find('.ptsColFooter');
|
885 |
-
if($cell && $cell.
|
886 |
params.state
|
887 |
? $cell.show()
|
888 |
: $cell.hide();
|
@@ -892,7 +892,7 @@ ptsBlock_price_table.prototype._switchFootRow = function(params) {
|
|
892 |
ptsBlock_price_table.prototype.beforeSave = function() {
|
893 |
ptsBlock_price_table.superclass.beforeSave.apply(this, arguments);
|
894 |
var $hoveredCol = this._getCols().filter('.hover');
|
895 |
-
if($hoveredCol && $hoveredCol.
|
896 |
this._backHoverFont( $hoveredCol );
|
897 |
this._$lastHoveredCol = $hoveredCol;
|
898 |
}
|
276 |
var existsBtnHTML = null;
|
277 |
|
278 |
for (var i in this._elements) {
|
279 |
+
if (this._elements[i] instanceof ptsElement_btn && this._elements[i]._$.length) {
|
280 |
existsBtnHTML = this._elements[i]._$.get(0).outerHTML;
|
281 |
|
282 |
break;
|
333 |
, $cols = this._getCols()
|
334 |
, $col = null
|
335 |
, self = this;
|
336 |
+
if($cols.length) {
|
337 |
var $lastCol = $cols.last();
|
338 |
this.mapElementsFromHtml($lastCol, 'beforeSave');
|
339 |
$col = $cols.last().clone();
|
377 |
|
378 |
// Append cell buttons
|
379 |
var $btnsShell = jQuery(this).find('.ptsCellEditBtnsShell');
|
380 |
+
if($btnsShell.length) {
|
381 |
$btnsShell.html('');
|
382 |
} else {
|
383 |
$btnsShell = jQuery('<div class="ptsCellEditBtnsShell ptsShowSmooth" />').appendTo( this );
|
533 |
this._$.find('.ptsCellEditBtnsShell').remove();
|
534 |
};
|
535 |
ptsBlock_price_table.prototype.getColsNum = function() {
|
536 |
+
return this._getCols().length;
|
537 |
};
|
538 |
ptsBlock_price_table.prototype.addPtsEl = function(parent) {
|
539 |
var $cellAppend = jQuery(this.getParam('new_cell_html'));
|
655 |
, cellIndex = $cell && typeof($cell) === 'object' ? $cell.index() : false
|
656 |
, $cols = this._getCols( true );
|
657 |
if(cellIndex === false) {
|
658 |
+
cellIndex = typeof($cell) === 'number' ? $cell : $cols.last().find('.ptsCell').length - 1;
|
659 |
}
|
660 |
if(block._data && block._data.params && block._data.params.is_horisontal_row_type && block._data.params.is_horisontal_row_type.val && block._data.params.is_horisontal_row_type.val == 1) {
|
661 |
setTimeout(function(){
|
665 |
$cols.each(function(){
|
666 |
var $rowsWrap = jQuery(this).find('.ptsRows')
|
667 |
, $removeCell = $rowsWrap.find('.ptsCell:eq('+ cellIndex+ ')');
|
668 |
+
if($removeCell && $removeCell.length) {
|
669 |
var $elements = $removeCell.find('.ptsEl');
|
670 |
$elements.each(function(){
|
671 |
block.removeElementByIterNum( jQuery(this).data('iter-num') );
|
682 |
};
|
683 |
ptsBlock_price_table.prototype.removeCol = function( $col ) {
|
684 |
var $cols = this._getCols();
|
685 |
+
if($cols.length) {
|
686 |
var $removeCol = null;
|
687 |
if(typeof($col) === 'object') { // Colum jquery obj specified
|
688 |
$removeCol = $col;
|
701 |
}
|
702 |
};
|
703 |
ptsBlock_price_table.prototype.getRowsNum = function() {
|
704 |
+
return this._getCols().first().find('.ptsRows').find('.ptsCell').length;
|
705 |
};
|
706 |
ptsBlock_price_table.prototype._initHtml = function() {
|
707 |
ptsBlock_price_table.superclass._initHtml.apply(this, arguments);
|
844 |
}
|
845 |
params.$cols.each(function(){
|
846 |
var $cell = jQuery(this).find('.ptsColHeader');
|
847 |
+
if($cell && $cell.length) {
|
848 |
params.state
|
849 |
? $cell.show()
|
850 |
: $cell.hide();
|
863 |
}
|
864 |
params.$cols.each(function(){
|
865 |
var $cell = jQuery(this).find('.ptsColDesc');
|
866 |
+
if($cell && $cell.length) {
|
867 |
params.state
|
868 |
? $cell.show()
|
869 |
: $cell.hide();
|
882 |
}
|
883 |
params.$cols.each(function(){
|
884 |
var $cell = jQuery(this).find('.ptsColFooter');
|
885 |
+
if($cell && $cell.length) {
|
886 |
params.state
|
887 |
? $cell.show()
|
888 |
: $cell.hide();
|
892 |
ptsBlock_price_table.prototype.beforeSave = function() {
|
893 |
ptsBlock_price_table.superclass.beforeSave.apply(this, arguments);
|
894 |
var $hoveredCol = this._getCols().filter('.hover');
|
895 |
+
if($hoveredCol && $hoveredCol.length) {
|
896 |
this._backHoverFont( $hoveredCol );
|
897 |
this._$lastHoveredCol = $hoveredCol;
|
898 |
}
|
modules/tables/js/frontend.tables.editor.elements.base.js
CHANGED
@@ -37,12 +37,12 @@ function ptsElementBase(jqueryHtml, block) {
|
|
37 |
this._initMenu();
|
38 |
|
39 |
var images = this._$.find('img');
|
40 |
-
if(images && (this._innerImgsCount = images.
|
41 |
this._innerImgsLoaded = 0;
|
42 |
var self = this;
|
43 |
images.load(function(){
|
44 |
self._innerImgsLoaded++;
|
45 |
-
if(self._$.find('img').
|
46 |
self._afterFullContentLoad();
|
47 |
}
|
48 |
});
|
@@ -98,7 +98,7 @@ ptsElementBase.prototype.set = function(opt, val) {
|
|
98 |
ptsElementBase.prototype._getEditArea = function() {
|
99 |
if(!this._editArea || this._$.attr('data-reset') == '1') {
|
100 |
this._editArea = this._$.children('.ptsElArea');
|
101 |
-
if(!this._editArea.
|
102 |
this._editArea = this._$.find('.ptsInputShell');
|
103 |
this._$.removeAttr('data-reset');
|
104 |
}
|
@@ -213,7 +213,7 @@ extendPts(ptsElement_table_col_desc, ptsElement_table_col);
|
|
213 |
var sizes = this.getBlock().getMaxColsSizes();
|
214 |
for(var key in sizes) {
|
215 |
var $entity = this._$.find(sizes[ key ].sel);
|
216 |
-
if($entity && $entity.
|
217 |
if(key == 'cells' && sizes[ key ].height) {
|
218 |
var cellNum = 0;
|
219 |
$entity.each(function(){
|
37 |
this._initMenu();
|
38 |
|
39 |
var images = this._$.find('img');
|
40 |
+
if(images && (this._innerImgsCount = images.length)) {
|
41 |
this._innerImgsLoaded = 0;
|
42 |
var self = this;
|
43 |
images.load(function(){
|
44 |
self._innerImgsLoaded++;
|
45 |
+
if(self._$.find('img').length == self._innerImgsLoaded) {
|
46 |
self._afterFullContentLoad();
|
47 |
}
|
48 |
});
|
98 |
ptsElementBase.prototype._getEditArea = function() {
|
99 |
if(!this._editArea || this._$.attr('data-reset') == '1') {
|
100 |
this._editArea = this._$.children('.ptsElArea');
|
101 |
+
if(!this._editArea.length) {
|
102 |
this._editArea = this._$.find('.ptsInputShell');
|
103 |
this._$.removeAttr('data-reset');
|
104 |
}
|
213 |
var sizes = this.getBlock().getMaxColsSizes();
|
214 |
for(var key in sizes) {
|
215 |
var $entity = this._$.find(sizes[ key ].sel);
|
216 |
+
if($entity && $entity.length) {
|
217 |
if(key == 'cells' && sizes[ key ].height) {
|
218 |
var cellNum = 0;
|
219 |
$entity.each(function(){
|
modules/tables/js/frontend.tables.editor.elements.js
CHANGED
@@ -38,7 +38,7 @@ ptsElementBase.prototype._remove = function() {
|
|
38 |
};
|
39 |
ptsElementBase.prototype._getChildElements = function() {
|
40 |
var allFoundHtml = this._$.find('.ptsEl');
|
41 |
-
if(allFoundHtml && allFoundHtml.
|
42 |
var foundElements = []
|
43 |
, selfBlock = this.getBlock();
|
44 |
allFoundHtml.each(function(){
|
@@ -124,7 +124,7 @@ ptsElementBase.prototype.initPostLinks = function($menu) {
|
|
124 |
$field = jQuery(fieldSelector);
|
125 |
}
|
126 |
|
127 |
-
if (! $field.
|
128 |
|
129 |
this.showPostsLinks($linkTab);
|
130 |
|
@@ -206,7 +206,7 @@ ptsElementBase.prototype.escapeString = function (str) {
|
|
206 |
return jQuery('<div/>').text(str).html();
|
207 |
}
|
208 |
ptsElementBase.prototype.showPostsLinks = function($tab) {
|
209 |
-
if (! $tab.find('ul').
|
210 |
$tab.html('<ul></ul>');
|
211 |
}
|
212 |
|
@@ -224,7 +224,7 @@ ptsElementBase.prototype.showPostsLinks = function($tab) {
|
|
224 |
ptsElementBase.prototype._closeMenuOnDocClick = function(e, element) {
|
225 |
if(!this._menu.isVisible()) return;
|
226 |
var $target = jQuery(e.target);
|
227 |
-
if(!this.$().find( $target ).
|
228 |
this.hideMenu();
|
229 |
}
|
230 |
};
|
@@ -427,7 +427,7 @@ ptsElement_txt.prototype._init = function() {
|
|
427 |
|
428 |
var $fieldWp = jQuery('#' + self._$.attr('id') + 'ptsPostLinkList');
|
429 |
|
430 |
-
if ($fieldWp.
|
431 |
ed.theme.panel.off('click', handler);
|
432 |
|
433 |
self.initPostLinks($fieldWp.parents('.mce-container'));
|
@@ -543,7 +543,7 @@ ptsElement_img.prototype._buildVideo = function(url) {
|
|
543 |
ptsElement_img.prototype._getVideoFrame = function( editArea ) {
|
544 |
editArea = editArea ? editArea : this._getEditArea();
|
545 |
var videoFrame = editArea.find('iframe.ptsVideo');
|
546 |
-
if(!videoFrame.
|
547 |
videoFrame = jQuery('<iframe class="ptsVideo" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen />').appendTo( editArea );
|
548 |
}
|
549 |
return videoFrame;
|
@@ -565,7 +565,7 @@ ptsElement_img.prototype._initMenu = function() {
|
|
565 |
};
|
566 |
ptsElement_img.prototype._getLink = function() {
|
567 |
var $link = this._$.find('a.ptsLink');
|
568 |
-
return $link.
|
569 |
};
|
570 |
ptsElement_img.prototype._setLinkAttr = function(attr, val) {
|
571 |
switch(attr) {
|
@@ -827,7 +827,7 @@ ptsElement_btn.prototype._setColor = function(color) {
|
|
827 |
}
|
828 |
if(this._haveAdditionBgEl === null) {
|
829 |
this._haveAdditionBgEl = this._$.find('.ptsAddBgEl');
|
830 |
-
if(!this._haveAdditionBgEl.
|
831 |
this._haveAdditionBgEl = false;
|
832 |
}
|
833 |
}
|
@@ -861,7 +861,7 @@ ptsElement_icon.prototype._setColor = function(color) {
|
|
861 |
};
|
862 |
ptsElement_icon.prototype._getLink = function() {
|
863 |
var $link = this._$.find('a.ptsLink');
|
864 |
-
return $link.
|
865 |
};
|
866 |
ptsElement_icon.prototype._setLinkAttr = function(attr, val) {
|
867 |
switch(attr) {
|
@@ -988,7 +988,7 @@ ptsElement_table_col.prototype._getBadgeData = function() {
|
|
988 |
};
|
989 |
ptsElement_table_col.prototype._getBadgeHtml = function() {
|
990 |
var $badge = this._$.find('.ptsColBadge');
|
991 |
-
if(!$badge.
|
992 |
$badge = jQuery('<div class="ptsColBadge"><div class="ptsColBadgeContent"></div></div>').appendTo( this._getEditArea() );
|
993 |
}
|
994 |
return $badge;
|
38 |
};
|
39 |
ptsElementBase.prototype._getChildElements = function() {
|
40 |
var allFoundHtml = this._$.find('.ptsEl');
|
41 |
+
if(allFoundHtml && allFoundHtml.length) {
|
42 |
var foundElements = []
|
43 |
, selfBlock = this.getBlock();
|
44 |
allFoundHtml.each(function(){
|
124 |
$field = jQuery(fieldSelector);
|
125 |
}
|
126 |
|
127 |
+
if (! $field.length) return;
|
128 |
|
129 |
this.showPostsLinks($linkTab);
|
130 |
|
206 |
return jQuery('<div/>').text(str).html();
|
207 |
}
|
208 |
ptsElementBase.prototype.showPostsLinks = function($tab) {
|
209 |
+
if (! $tab.find('ul').length) {
|
210 |
$tab.html('<ul></ul>');
|
211 |
}
|
212 |
|
224 |
ptsElementBase.prototype._closeMenuOnDocClick = function(e, element) {
|
225 |
if(!this._menu.isVisible()) return;
|
226 |
var $target = jQuery(e.target);
|
227 |
+
if(!this.$().find( $target ).length && !this.getMenu().$().find($target).length) {
|
228 |
this.hideMenu();
|
229 |
}
|
230 |
};
|
427 |
|
428 |
var $fieldWp = jQuery('#' + self._$.attr('id') + 'ptsPostLinkList');
|
429 |
|
430 |
+
if ($fieldWp.length) {
|
431 |
ed.theme.panel.off('click', handler);
|
432 |
|
433 |
self.initPostLinks($fieldWp.parents('.mce-container'));
|
543 |
ptsElement_img.prototype._getVideoFrame = function( editArea ) {
|
544 |
editArea = editArea ? editArea : this._getEditArea();
|
545 |
var videoFrame = editArea.find('iframe.ptsVideo');
|
546 |
+
if(!videoFrame.length) {
|
547 |
videoFrame = jQuery('<iframe class="ptsVideo" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen />').appendTo( editArea );
|
548 |
}
|
549 |
return videoFrame;
|
565 |
};
|
566 |
ptsElement_img.prototype._getLink = function() {
|
567 |
var $link = this._$.find('a.ptsLink');
|
568 |
+
return $link.length ? $link : false;
|
569 |
};
|
570 |
ptsElement_img.prototype._setLinkAttr = function(attr, val) {
|
571 |
switch(attr) {
|
827 |
}
|
828 |
if(this._haveAdditionBgEl === null) {
|
829 |
this._haveAdditionBgEl = this._$.find('.ptsAddBgEl');
|
830 |
+
if(!this._haveAdditionBgEl.length) {
|
831 |
this._haveAdditionBgEl = false;
|
832 |
}
|
833 |
}
|
861 |
};
|
862 |
ptsElement_icon.prototype._getLink = function() {
|
863 |
var $link = this._$.find('a.ptsLink');
|
864 |
+
return $link.length ? $link : false;
|
865 |
};
|
866 |
ptsElement_icon.prototype._setLinkAttr = function(attr, val) {
|
867 |
switch(attr) {
|
988 |
};
|
989 |
ptsElement_table_col.prototype._getBadgeHtml = function() {
|
990 |
var $badge = this._$.find('.ptsColBadge');
|
991 |
+
if(!$badge.length) {
|
992 |
$badge = jQuery('<div class="ptsColBadge"><div class="ptsColBadgeContent"></div></div>').appendTo( this._getEditArea() );
|
993 |
}
|
994 |
return $badge;
|
modules/tables/js/frontend.tables.editor.elements.menu.js
CHANGED
@@ -59,7 +59,7 @@ ptsElementMenu.prototype.init = function() {
|
|
59 |
|
60 |
if(this._btnsClb) {
|
61 |
for(var selector in this._btnsClb) {
|
62 |
-
if(this._$.find( selector ).
|
63 |
this._$.find( selector ).click(function(){
|
64 |
self._btnsClb[ jQuery(this).data('click-clb-selector') ]();
|
65 |
return false;
|
@@ -75,7 +75,7 @@ ptsElementMenu.prototype._initAddHtmlAttributes = function() {
|
|
75 |
};
|
76 |
ptsElementMenu.prototype._fixClickOnRadio = function() {
|
77 |
this._$.find('.ptsElMenuBtn').each(function(){
|
78 |
-
if(jQuery(this).find('[type=radio]').
|
79 |
jQuery(this).find('[type=radio]').click(function(){
|
80 |
jQuery(this).parents('.ptsElMenuBtn:first').click();
|
81 |
});
|
@@ -110,7 +110,7 @@ ptsElementMenu.prototype._hideSubMenus = function() {
|
|
110 |
};
|
111 |
ptsElementMenu.prototype._initSubMenus = function() {
|
112 |
var self = this;
|
113 |
-
if(this._$.find('.ptsElMenuBtn[data-sub-panel-show]').
|
114 |
this._$.find('.ptsElMenuBtn').click(function(){
|
115 |
self._hideSubMenus();
|
116 |
});
|
@@ -313,7 +313,7 @@ ptsElementMenu_icon.prototype._afterAppendToElement = function() {
|
|
313 |
}
|
314 |
, $icon = this._element._$.find('.fa');
|
315 |
|
316 |
-
if ($icon.
|
317 |
var iconClasses = $icon.attr("class").split(' ').reverse()
|
318 |
, currentIconSize = undefined;
|
319 |
|
@@ -332,7 +332,7 @@ ptsElementMenu_icon.prototype._afterAppendToElement = function() {
|
|
332 |
var classSize = jQuery(this).attr('data-size')
|
333 |
, $icon = self._element._$.find('.fa');
|
334 |
|
335 |
-
if (! $icon.
|
336 |
|
337 |
$icon.removeClass(iconSizeID.join(' '));
|
338 |
$icon.addClass(classSize);
|
59 |
|
60 |
if(this._btnsClb) {
|
61 |
for(var selector in this._btnsClb) {
|
62 |
+
if(this._$.find( selector ).length) {
|
63 |
this._$.find( selector ).click(function(){
|
64 |
self._btnsClb[ jQuery(this).data('click-clb-selector') ]();
|
65 |
return false;
|
75 |
};
|
76 |
ptsElementMenu.prototype._fixClickOnRadio = function() {
|
77 |
this._$.find('.ptsElMenuBtn').each(function(){
|
78 |
+
if(jQuery(this).find('[type=radio]').length) {
|
79 |
jQuery(this).find('[type=radio]').click(function(){
|
80 |
jQuery(this).parents('.ptsElMenuBtn:first').click();
|
81 |
});
|
110 |
};
|
111 |
ptsElementMenu.prototype._initSubMenus = function() {
|
112 |
var self = this;
|
113 |
+
if(this._$.find('.ptsElMenuBtn[data-sub-panel-show]').length) {
|
114 |
this._$.find('.ptsElMenuBtn').click(function(){
|
115 |
self._hideSubMenus();
|
116 |
});
|
313 |
}
|
314 |
, $icon = this._element._$.find('.fa');
|
315 |
|
316 |
+
if ($icon.length) {
|
317 |
var iconClasses = $icon.attr("class").split(' ').reverse()
|
318 |
, currentIconSize = undefined;
|
319 |
|
332 |
var classSize = jQuery(this).attr('data-size')
|
333 |
, $icon = self._element._$.find('.fa');
|
334 |
|
335 |
+
if (! $icon.length || ! classSize) return;
|
336 |
|
337 |
$icon.removeClass(iconSizeID.join(' '));
|
338 |
$icon.addClass(classSize);
|
modules/tables/js/frontend.tables.editor.utils.js
CHANGED
@@ -52,7 +52,7 @@ var ptsUtils = {
|
|
52 |
var listPrev = this.slidesEditWnd.find('.ptsSlidesListPrev');
|
53 |
listPrev.find('*:not(.ptsSlideManageAddBtn)').remove();
|
54 |
var slides = block.getSlides();
|
55 |
-
if(slides && slides.
|
56 |
slides.each(function(){
|
57 |
var newItem = jQuery('#ptsSlideManageItemExl').clone().removeAttr('id');
|
58 |
newItem.find('img:first').attr('src', jQuery(this).find('.ptsSlideImg').attr('src'));
|
@@ -95,13 +95,13 @@ var ptsUtils = {
|
|
95 |
if(value && value != '') {
|
96 |
var keys = jQuery(this).val().split(' ')
|
97 |
, allFoundIcons = self._getEllIconsLibHtml()
|
98 |
-
, initialSize = allFoundIcons.
|
99 |
allFoundIcons.show();
|
100 |
for(var i = 0; i < keys.length; i++) {
|
101 |
allFoundIcons = allFoundIcons.not('[data-icon*="'+ keys[i]+ '"]');
|
102 |
}
|
103 |
allFoundIcons.hide();
|
104 |
-
if(initialSize == allFoundIcons.
|
105 |
self._showNothingFoundIconsLib( value );
|
106 |
}
|
107 |
} else {
|
52 |
var listPrev = this.slidesEditWnd.find('.ptsSlidesListPrev');
|
53 |
listPrev.find('*:not(.ptsSlideManageAddBtn)').remove();
|
54 |
var slides = block.getSlides();
|
55 |
+
if(slides && slides.length) {
|
56 |
slides.each(function(){
|
57 |
var newItem = jQuery('#ptsSlideManageItemExl').clone().removeAttr('id');
|
58 |
newItem.find('img:first').attr('src', jQuery(this).find('.ptsSlideImg').attr('src'));
|
95 |
if(value && value != '') {
|
96 |
var keys = jQuery(this).val().split(' ')
|
97 |
, allFoundIcons = self._getEllIconsLibHtml()
|
98 |
+
, initialSize = allFoundIcons.length;
|
99 |
allFoundIcons.show();
|
100 |
for(var i = 0; i < keys.length; i++) {
|
101 |
allFoundIcons = allFoundIcons.not('[data-icon*="'+ keys[i]+ '"]');
|
102 |
}
|
103 |
allFoundIcons.hide();
|
104 |
+
if(initialSize == allFoundIcons.length) { // Anything was found
|
105 |
self._showNothingFoundIconsLib( value );
|
106 |
}
|
107 |
} else {
|
modules/tables/js/frontend.tables.js
CHANGED
@@ -12,7 +12,7 @@ jQuery(document).ready(function(){
|
|
12 |
if(typeof(ptsTables) !== 'undefined' && ptsTables && ptsTables.length) {
|
13 |
for(var i = 0; i < ptsTables.length; i++) {
|
14 |
g_ptsBlockFabric.addFromHtml(ptsTables[ i ], jQuery('#'+ ptsTables[ i ].view_id));
|
15 |
-
|
16 |
jQuery('body').trigger('set_default_position');
|
17 |
//for fix horizontal element size bugs frontend.pro.tables.js
|
18 |
if(ptsTables[i].unique_id === "7m6k5X0i"){
|
@@ -42,7 +42,7 @@ jQuery(document).ready(function(){
|
|
42 |
});
|
43 |
}
|
44 |
});
|
45 |
-
jQuery(window).load
|
46 |
setTimeout(function() { jQuery('body').trigger('resize'); }, 500);
|
47 |
});
|
48 |
//in case images are loading dynamically
|
@@ -57,4 +57,4 @@ function ptsGetFabric() {
|
|
57 |
}
|
58 |
function _ptsIsEditMode() {
|
59 |
return (typeof(g_ptsEditMode) !== 'undefined' && g_ptsEditMode);
|
60 |
-
}
|
12 |
if(typeof(ptsTables) !== 'undefined' && ptsTables && ptsTables.length) {
|
13 |
for(var i = 0; i < ptsTables.length; i++) {
|
14 |
g_ptsBlockFabric.addFromHtml(ptsTables[ i ], jQuery('#'+ ptsTables[ i ].view_id));
|
15 |
+
|
16 |
jQuery('body').trigger('set_default_position');
|
17 |
//for fix horizontal element size bugs frontend.pro.tables.js
|
18 |
if(ptsTables[i].unique_id === "7m6k5X0i"){
|
42 |
});
|
43 |
}
|
44 |
});
|
45 |
+
jQuery(window).on("load", function() {
|
46 |
setTimeout(function() { jQuery('body').trigger('resize'); }, 500);
|
47 |
});
|
48 |
//in case images are loading dynamically
|
57 |
}
|
58 |
function _ptsIsEditMode() {
|
59 |
return (typeof(g_ptsEditMode) !== 'undefined' && g_ptsEditMode);
|
60 |
+
}
|
pts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Pricing Table by Supsystic
|
4 |
* Plugin URI: https://supsystic.com/plugins/pricing-table/
|
5 |
* Description: Pricing Table generator by Supsystic allow you to create responsive pricing tables or comparison table without any programming skills
|
6 |
-
* Version: 1.8.
|
7 |
* Author: supsystic.com
|
8 |
* Author URI: http://supsystic.com/
|
9 |
* Text Domain: pricing-table-by-supsystic
|
3 |
* Plugin Name: Pricing Table by Supsystic
|
4 |
* Plugin URI: https://supsystic.com/plugins/pricing-table/
|
5 |
* Description: Pricing Table generator by Supsystic allow you to create responsive pricing tables or comparison table without any programming skills
|
6 |
+
* Version: 1.8.7
|
7 |
* Author: supsystic.com
|
8 |
* Author URI: http://supsystic.com/
|
9 |
* Text Domain: pricing-table-by-supsystic
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: supsystic.com
|
|
3 |
Donate link: https://supsystic.com/plugins/pricing-table
|
4 |
Tags: price table, pricing table, price, pricing, table, comparison table, css table, comparison, price gird, pricing gird, pricing box, price chart, price plan, chart, plan
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 1.8.
|
7 |
|
8 |
Pricing Table generator by Supsystic allows you to create responsive pricing tables or comparison table without any programming skills
|
9 |
|
@@ -159,6 +159,9 @@ Responsiveness is one of the standard practice if you want to create a good cust
|
|
159 |
Our Pricing Table plugin is a mobile-ready, means that it will render on the devices with different screen size. The [responsive mode](https://supsystic.com/feature/fully-responsive-pricing-table?utm_source=wordpress&utm_medium=responsive&utm_campaign=pricingtable "Responsive mode") is turn on by default, but you can switch off it anytime. Also, plugin provides an opportunity to set a minimum column size.
|
160 |
|
161 |
== Changelog ==
|
|
|
|
|
|
|
162 |
= 1.8.6 / 13.08.2020
|
163 |
* Add fix for XSS
|
164 |
|
3 |
Donate link: https://supsystic.com/plugins/pricing-table
|
4 |
Tags: price table, pricing table, price, pricing, table, comparison table, css table, comparison, price gird, pricing gird, pricing box, price chart, price plan, chart, plan
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 1.8.7
|
7 |
|
8 |
Pricing Table generator by Supsystic allows you to create responsive pricing tables or comparison table without any programming skills
|
9 |
|
159 |
Our Pricing Table plugin is a mobile-ready, means that it will render on the devices with different screen size. The [responsive mode](https://supsystic.com/feature/fully-responsive-pricing-table?utm_source=wordpress&utm_medium=responsive&utm_campaign=pricingtable "Responsive mode") is turn on by default, but you can switch off it anytime. Also, plugin provides an opportunity to set a minimum column size.
|
160 |
|
161 |
== Changelog ==
|
162 |
+
= 1.8.7 / 15.09.2020
|
163 |
+
* Add support WP 5.5
|
164 |
+
|
165 |
= 1.8.6 / 13.08.2020
|
166 |
* Add fix for XSS
|
167 |
|