PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
easy-pricing-tables
/
assets
/
blocks
/
layout2
function fca_ept_set_layout2_attributes(t){t.setAttributes({selectedLayout:"layout2"}),t.setAttributes({layoutBGColor:"#f2f2f2"}),t.setAttributes({layoutFontColor:"#333333"}),t.setAttributes({layoutFontColor1:"#6236ff"}),t.setAttributes({buttonColor:"#6236ff"}),t.setAttributes({buttonFontColor:"#ffffff"}),t.setAttributes({accentColor:"#6236ff"}),t.setAttributes({fontFamily:"sans-serif"}),t.setAttributes({popularFontSize:"70%"}),t.setAttributes({planFontSize:"225%"}),t.setAttributes({planSubtextFontSize:"90%"}),t.setAttributes({priceFontSize:"300%"}),t.setAttributes({pricePeriodFontSize:"90%"}),t.setAttributes({featuresFontSize:"90%"}),t.setAttributes({buttonFontSize:"100%"}),t.setAttributes({toggleFontSize:"112.5%"})}function fca_ept_layout2_block_edit(t){var e=JSON.parse(t.attributes.columnSettings);return fca_ept_additional_styles(t),el("div",{style:{fontFamily:t.attributes.fontFamily+", sans-serif"},id:"fca-ept-table-"+t.attributes.tableID,className:"fca-ept-main"},fcaEptEditorData.toggle_integration?fca_ept_render_toggle(t):null,el("div",{style:{textDecoration:"none"},className:"fca-ept-layout2"},Array.from(e,function(a,o){return el("div",{key:o,style:{backgroundColor:t.attributes.layoutBGColor,border:e[o].columnPopular?"2px solid "+t.attributes.accentColor:"0px solid"},className:fca_ept_column_class_name(t,o),onClick:function(){t.setAttributes({selectedCol:o})}},el("div",{style:{display:e[o].columnPopular?"block":"none",borderColor:t.attributes.accentColor},className:"fca-ept-popular-div"},el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.popularFontSize,color:t.attributes.buttonFontColor,backgroundColor:t.attributes.accentColor},allowedFormats:fca_ept_allowed_formats,className:"fca-ept-popular-text",placeholder:"Most Popular",type:"text",tagName:"span",value:e[o].popularText,onClick:function(){fca_ept_update_ui_state(t,"popular")},onChange:function(e){fca_ept_update_populartext(t,e)}})),el("div",{style:{display:t.attributes.showImagesToggle?"block":"none"},className:fca_ept_has_woo_image(t,o)?"fca-ept-plan-image fca-ept-woo-image":"fca-ept-plan-image",onClick:function(){document.querySelectorAll(".fca-ept-mediaOpen")[0].click()}},el("img",{src:fca_ept_get_planImage(t,o)})),el("div",{className:"fca-ept-plan-div"},el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.planFontSize,color:t.attributes.layoutFontColor1},allowedFormats:fca_ept_allowed_formats,className:"fca-ept-plan",placeholder:"Plan name",type:"text",tagName:"span",value:fca_ept_get_plantext(t,o),onClick:function(){fca_ept_update_ui_state(t,"plan")},onChange:function(e){fca_ept_update_plantext(t,e)}}),el(wp.blockEditor.RichText,{style:{display:t.attributes.showPlanSubtextToggle?"block":"none",color:t.attributes.layoutFontColor,fontSize:t.attributes.planSubtextFontSize},allowedFormats:fca_ept_allowed_formats,className:"fca-ept-plan-subtext",placeholder:"To get started",type:"text",tagName:"span",value:e[o].planSubText,onClick:function(){fca_ept_update_ui_state(t,"planSubtext")},onChange:function(e){var a=JSON.parse(t.attributes.columnSettings);a[t.attributes.selectedCol].planSubText=e,t.setAttributes({columnSettings:JSON.stringify(a)})}})),el("div",{className:"fca-ept-price-div"},el("div",{className:"fca-ept-price-container"},el(wp.blockEditor.RichText,{className:"fca-ept-price",style:{fontSize:t.attributes.priceFontSize,color:t.attributes.layoutFontColor},allowedFormats:fca_ept_allowed_formats,placeholder:"$29",type:"text",tagName:"span",value:fca_ept_get_pricetext(t,o),onClick:function(){fca_ept_update_ui_state(t,"price")},onChange:function(e){fca_ept_update_pricetext(t,e)}}),el("div",{style:{display:t.attributes.showPriceSubtextToggle?"block":"none"},className:"fca-ept-price-subtext"},el("svg",{className:"fca-ept-price-svg",style:{backgroundColor:t.attributes.buttonColor}}),el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.pricePeriodFontSize,color:t.attributes.layoutFontColor},allowedFormats:fca_ept_allowed_formats,className:"fca-ept-price-period",placeholder:"per month",type:"text",tagName:"span",value:t.attributes.togglePeriod?e[o].pricePeriod2:e[o].pricePeriod1,onClick:function(){fca_ept_update_ui_state(t,"pricePeriod")},onChange:function(e){fca_ept_update_priceperiod(t,e)}})))),el("div",{className:"fca-ept-features-div"},el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.featuresFontSize,color:t.attributes.layoutFontColor},allowedFormats:fca_ept_allowed_formats,className:"fca-ept-features",tagName:"ul",multiline:"li",placeholder:"features offered",type:"text",value:e[o].featuresText,onClick:function(){fca_ept_update_ui_state(t,"features")},onChange:function(e){fca_ept_update_featurestext(t,e)}})),el("div",{className:"fca-ept-button-div",onClick:function(){fca_ept_handle_cta_button_click(t)}},fca_ept_button_content(t,e,o)))})))}var wp=window.wp,el=wp.element.createElement;
[-] fca-ept-layout2.min.js
[edit]
[+]
..
[-] fca-ept-layout2.css
[edit]
[-] fca-ept-layout2.js
[edit]
[-] fca-ept-layout2-block.php
[edit]
[-] fca-ept-layout2.min.css
[edit]