PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
easy-pricing-tables
/
assets
/
blocks
/
layout1
function fca_ept_set_layout1_attributes(t){t.setAttributes({selectedLayout:"layout1"}),t.setAttributes({layoutBGColor:"#ffffff"}),t.setAttributes({layoutBGTint2:"#eeeeee"}),t.setAttributes({layoutBGTint3:"#dddddd"}),t.setAttributes({layoutBGTint4:"#7f8c8d"}),t.setAttributes({layoutFontColor:"#333333"}),t.setAttributes({buttonColor:"#3498db"}),t.setAttributes({buttonFontColor:"#ffffff"}),t.setAttributes({buttonBorderColor:"#2980b9"}),t.setAttributes({buttonBorderColorPop:"#c0392b"}),t.setAttributes({accentColor:"#dd4632"}),t.setAttributes({fontFamily:"Free"===fcaEptEditorData.edition?"sans-serif":"Montserrat"}),t.setAttributes({popularFontSize:"125%"}),t.setAttributes({planFontSize:"137.5%"}),t.setAttributes({priceFontSize:"175%"}),t.setAttributes({featuresFontSize:"125%"}),t.setAttributes({buttonFontSize:"112.5%"}),t.setAttributes({toggleFontSize:"112.5%"})}function fca_ept_layout1_block_edit(t){var e=JSON.parse(t.attributes.columnSettings);return fca_ept_layout1_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",{className:"fca-ept-layout1"},Array.from(e,function(a,o){return el("div",{key:o,className:fca_ept_column_class_name(t,o),style:{backgroundColor:t.attributes.layoutBGTint2},onClick:function(){t.setAttributes({selectedCol:o})}},el("div",{style:{backgroundColor:t.attributes.layoutBGTint4,color:t.attributes.buttonFontColor},className:e[o].columnPopular?"fca-ept-popular fca-ept-most-popular":"fca-ept-popular"},el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.popularFontSize},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:{backgroundColor:t.attributes.layoutBGTint3},className:"fca-ept-plan-div"},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(wp.blockEditor.RichText,{style:{fontSize:t.attributes.planFontSize,color:t.attributes.layoutFontColor},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("div",{style:{backgroundColor:t.attributes.layoutBGTint2},className:"fca-ept-price-div"},el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.priceFontSize,color:t.attributes.layoutFontColor},allowedFormats:fca_ept_allowed_formats,className:"fca-ept-price",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:{backgroundColor:t.attributes.layoutBGColor},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)))})))}function fca_ept_layout1_additional_styles(t){var e=t.attributes.tableID;$("#"+e).remove(),$("body").append("<style class='fca-ept-extra-styles' id='"+e+"'>#fca-ept-table-"+e+" div.fca-ept-column a.fca-ept-button:hover { background-color: "+t.attributes.buttonBorderColor+" !important;}#fca-ept-table-"+e+" div.fca-ept-column.fca-ept-most-popular a.fca-ept-button:hover { background-color: "+t.attributes.buttonBorderColorPop+" !important;}#fca-ept-table-"+e+" div.fca-ept-column div.fca-ept-features li { border-bottom: dotted 1px "+t.attributes.layoutBGTint3+";}"+t.attributes.customCSS+"</style>")}var wp=window.wp,el=wp.element.createElement;
[-] fca-ept-layout1.min.css
[edit]
[-] fca-ept-layout1.css
[edit]
[+]
..
[-] fca-ept-layout1-block.php
[edit]
[-] fca-ept-layout1.js
[edit]
[-] fca-ept-layout1.min.js
[edit]