Plugin Directory

Changeset 2617547


Ignore:
Timestamp:
10/21/2021 04:49:10 AM (4 years ago)
Author:
flippy101
Message:

Easy Pricing Tables 3.1.2

Location:
easy-pricing-tables/trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • easy-pricing-tables/trunk/assets/blocks/editor/fca-ept-editor.js

    r2574480 r2617547  
    22var el = wp.element.createElement
    33var $ = window.jQuery
     4var customBlock = 1
    45
    56var fca_ept_allowed_formats = [
     
    583584    var currentPost = wp.data.select( 'core/editor' ).getCurrentPost()
    584585
    585     if( currentPost.type === 'wp_block' && currentPost.content.split( '<!--' )[1].includes( 'wp:fatcatapps/easy-pricing-table' ) ) {
     586    if( customBlock && currentPost.type === 'wp_block' && currentPost.content.split( '<!--' )[1].includes( 'wp:fatcatapps/easy-pricing-table' ) ) {
    586587
    587588        var eptBlock = wp.data.select( 'core/block-editor' ).getBlocks().filter( function( block ){
     
    637638                wp.data.dispatch( 'core/block-editor' ).selectBlock( eptBlock[0].clientId )
    638639            }
    639 
    640             // on click anywhere but post title, select block
    641             $( document ).on( 'click', function( event ) {
    642                 if( event.target.className !== 'editor-post-title__input' ){
    643                     wp.data.dispatch( 'core/block-editor' ).selectBlock( eptBlock[0].clientId )
    644                 }
    645             })
    646640
    647641            $( '.components-button.edit-post-header-toolbar__inserter-toggle.is-primary.has-icon' ).css( 'display', 'none' )
     
    671665        })
    672666
     667        customBlock = 0
     668
    673669    }
    674670
     
    703699    var columnSettings = JSON.parse( props.attributes.columnSettings )
    704700    var selectedCol = parseInt( props.attributes.selectedCol )
     701    var tableID = props.attributes.tableID
    705702
    706703    columnSettings.filter( function ( col, i ){
     
    712709                props.setAttributes ( { popularToolbarIcon: 'star-empty' } )
    713710                setTimeout( function(){
    714                     $( '.fca-ept-column' )[selectedCol].classList.add( 'fca-ept-selected-column' )
     711                    $( '#fca-ept-table-' + tableID + ' .fca-ept-column' )[selectedCol].classList.add( 'fca-ept-selected-column' )
    715712                }, 30 )
    716713            } else {
     
    719716                props.setAttributes ( { popularToolbarIcon: 'star-filled' } )
    720717                setTimeout( function(){
    721                     $( '.fca-ept-column' )[selectedCol].classList.add( 'fca-ept-selected-column' )
     718                    $( '#fca-ept-table-' + tableID + ' .fca-ept-column' )[selectedCol].classList.add( 'fca-ept-selected-column' )
    722719                }, 30 )
    723720            }
     
    733730
    734731    var selectedLayout = props.attributes.selectedLayout
     732    var tableID = props.attributes.tableID
    735733
    736734    wp.data.subscribe(function () {
     
    739737
    740738        if( previewDisplay === 'Mobile' || previewDisplay === 'Tablet' ){
    741             $( '.fca-ept-table-container div.fca-ept-toggle-period-container' ).css( 'paddingRight', '0' )
    742             $( 'div.fca-ept-' + selectedLayout ).css( 'display', 'block' )
    743             $( 'div.fca-ept-' + selectedLayout ).css( 'fontSize', '75%' )
    744             $( 'div.fca-ept-' + selectedLayout ).css( 'paddingRight', '0' )
    745             $( 'div.fca-ept-' + selectedLayout + ' div.fca-ept-column' ).css( 'marginTop', '15px' )
     739            $( '#fca-ept-table-' + tableID + ' .fca-ept-table-container div.fca-ept-toggle-period-container' ).css( 'paddingRight', '0' )
     740            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout ).css( 'display', 'block' )
     741            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout ).css( 'fontSize', '75%' )
     742            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout ).css( 'paddingRight', '0' )
     743            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout + ' div.fca-ept-column' ).css( 'marginTop', '15px' )
    746744            if( selectedLayout === 'layout1' ){
    747                 $( 'div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular' ).css( 'marginTop', '70px' )
     745                $( '#fca-ept-table-' + tableID + ' div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular' ).css( 'marginTop', '70px' )
    748746            }   
    749747        } else {
    750             $( '.fca-ept-table-container div.fca-ept-toggle-period-container' ).css( 'paddingRight', '20px' )
    751             $( 'div.fca-ept-' + selectedLayout ).css( 'display', 'flex' )
    752             $( 'div.fca-ept-' + selectedLayout ).css( 'fontSize', '16px' )
    753             $( 'div.fca-ept-' + selectedLayout ).css( 'paddingRight', '20px' )
    754             $( 'div.fca-ept-' + selectedLayout + ' div.fca-ept-column' ).css( 'marginTop', '10px' )
     748            $( '#fca-ept-table-' + tableID + ' .fca-ept-table-container div.fca-ept-toggle-period-container' ).css( 'paddingRight', '20px' )
     749            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout ).css( 'display', 'flex' )
     750            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout ).css( 'fontSize', '16px' )
     751            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout ).css( 'paddingRight', '20px' )
     752            $( '#fca-ept-table-' + tableID + ' div.fca-ept-' + selectedLayout + ' div.fca-ept-column' ).css( 'marginTop', '10px' )
    755753            if( selectedLayout === 'layout1' ){
    756                 $( 'div.fca-ept-layout1 div.fca-ept-column' ).css( 'marginTop', '54px' )
     754                $( '#fca-ept-table-' + tableID + ' div.fca-ept-layout1 div.fca-ept-column' ).css( 'marginTop', '54px' )
    757755            }
    758756           
     
    766764
    767765    var columnSettings = JSON.parse( props.attributes.columnSettings )
     766    var tableID = props.attributes.tableID
    768767
    769768    props.setAttributes ( { selectedCol: id } )
     
    775774    }
    776775
    777     $( '.fca-ept-column' ).filter( function( i, column ){
     776    $( '#fca-ept-table-' + tableID + ' .fca-ept-column' ).filter( function( i, column ){
    778777        if( column.classList.contains( 'fca-ept-selected-column' ) ){
    779778            if( i === id ){
  • easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1-block.php

    r2574480 r2617547  
    22
    33function fca_ept_render_layout1( $attributes ){
     4
     5    // enqueue frontend style
     6    wp_enqueue_style( 'fca-ept-layout1-style' );
    47
    58    $tableID = empty( $attributes['tableID'] ) ? 0 : empty( $attributes['tableID'] );
     
    7073                </div>
    7174
    72                 <div style="font-size: <?php echo $priceFontSize ?>; color: <?php echo $layoutFontColor ?>; background-color: <?php echo $layoutBGTint2 ?>" class="fca-ept-price"><?php echo $priceText1 ?></div>
     75                <div style="background-color: <?php echo $layoutBGTint2 ?>;" class="fca-ept-price-div">
    7376
     77                    <span style="font-size: <?php echo $priceFontSize ?>; color: <?php echo $layoutFontColor ?>;" class="fca-ept-price"><?php echo $priceText1 ?></span>
     78
     79                </div>
     80               
    7481                <div style="font-size: <?php echo $featuresFontSize ?>; color: <?php echo $layoutFontColor ?>; background-color: <?php echo $layoutBGColor ?>" class="fca-ept-features-div">
    7582
  • easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1.css

    r2574480 r2617547  
    5555}
    5656
    57 div.fca-ept-layout1 div.fca-ept-price{
     57div.fca-ept-layout1 div.fca-ept-price-div{
    5858    font-family: inherit;
    5959    text-align: center;
     
    6161    font-weight: normal;
    6262    font-size: 1.25em;
     63}
     64
     65div.fca-ept-layout1 div.fca-ept-price-div .fca-ept-price{
     66    line-height: 1.5;
    6367}
    6468
  • easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1.js

    r2574480 r2617547  
    166166                        el( 'div', {
    167167                            style: { backgroundColor: props.attributes.layoutBGTint2 },
    168                             className: 'fca-ept-price'
     168                            className: 'fca-ept-price-div'
    169169                            },
    170170                            el( wp.blockEditor.RichText, {
     
    174174                                },
    175175                                allowedFormats: fca_ept_allowed_formats,
     176                                className: 'fca-ept-price',
    176177                                placeholder: '$29',
    177178                                type: "text",
     
    283284    $( 'body' ).append(
    284285        "<style id='" + id + "'>" +
    285             "div.fca-ept-layout1 div.fca-ept-column a.fca-ept-button:hover { background-color: " + props.attributes.buttonBorderColor + " !important;}" +
    286             "div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular a.fca-ept-button:hover { background-color: " + props.attributes.buttonBorderColorPop + " !important;}" +
    287             "div.fca-ept-layout1 div.fca-ept-column div.fca-ept-features li { border-bottom: dotted 1px " + props.attributes.layoutBGTint3 + ";}" +
     286            "#fca-ept-table-" + id + " div.fca-ept-column a.fca-ept-button:hover { background-color: " + props.attributes.buttonBorderColor + " !important;}" +
     287            "#fca-ept-table-" + id + " div.fca-ept-column.fca-ept-most-popular a.fca-ept-button:hover { background-color: " + props.attributes.buttonBorderColorPop + " !important;}" +
     288            "#fca-ept-table-" + id + " div.fca-ept-column div.fca-ept-features li { border-bottom: dotted 1px " + props.attributes.layoutBGTint3 + ";}" +
    288289        "</style>"
    289290    )
  • easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1.min.css

    r2574480 r2617547  
    1 div.fca-ept-layout1{font-size:16px;margin:0 auto;display:flex;font-family:inherit}div.fca-ept-layout1 div.fca-ept-column{font-family:inherit;margin-right:20px;margin-top:54px;vertical-align:top;white-space:normal;width:100%;border:#ddd solid 1px;border-radius:4px;display:grid;grid-template-rows:auto auto 1fr auto}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular{grid-template-rows:auto auto auto 1fr auto}div.fca-ept-layout1 div.fca-ept-popular{font-family:inherit;display:none;padding:.3em;text-align:center;font-weight:700;margin-bottom:2px;margin-top:-54px;border-radius:4px}div.fca-ept-layout1 div.fca-ept-popular.fca-ept-most-popular{display:block}div.fca-ept-layout1 div.fca-ept-plan-div{font-family:inherit;border-top-left-radius:4px;border-top-right-radius:4px;word-break:break-word;text-align:center;padding:15px 20px;font-weight:700;font-size:1em}div.fca-ept-layout1 div.fca-ept-plan-div .fca-ept-plan img{display:block;margin:auto}div.fca-ept-layout1 div.fca-ept-price{font-family:inherit;text-align:center;padding:.9375em 1.25em;font-weight:400;font-size:1.25em}div.fca-ept-layout1 div.fca-ept-features-div{text-align:center;font-size:.875em;font-weight:400}div.fca-ept-layout1 div.fca-ept-features-div ul{font-family:inherit;list-style:none;padding:0;margin:0}div.fca-ept-layout1 div.fca-ept-features-div li{font-family:inherit;padding:.9375em .5em .9375em .5em;border-bottom:dotted 1px #ddd}div.fca-ept-layout1 div.fca-ept-features-div li span{font-size:inherit!important}div.fca-ept-layout1 div.fca-ept-button-div{font-family:inherit;text-align:center;padding-top:1.25em;padding-bottom:1.25em;border-bottom-left-radius:4px;border-bottom-right-radius:4px}div.fca-ept-layout1 a.fca-ept-button{cursor:pointer;position:relative;font-weight:700;padding:16px 10px 10px 10px;width:75%;display:inline-block;white-space:normal;text-align:center;align-self:self-end;text-decoration:none!important;-webkit-appearance:unset;font-size:1em;border-top:0;border-left:0;border-right:0;border-radius:4px;-webkit-transition:background-color .3s ease-out;-moz-transition:background-color .3s ease-out;transition:background-color .3s ease-out}div.fca-ept-layout1 a.fca-ept-button span{cursor:pointer}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular.fca-ept-selected-column,div.fca-ept-layout1 div.fca-ept-column.fca-ept-selected-column{box-shadow:rgba(0,0,0,.5) 0 10px 25px 0;border:0 solid;padding:1px}@media only screen and (max-width:765px){div.fca-ept-layout1{display:block}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular{margin-top:100px}}
     1div.fca-ept-layout1{font-size:16px;margin:0 auto;display:flex;font-family:inherit}div.fca-ept-layout1 div.fca-ept-column{font-family:inherit;margin-right:20px;margin-top:54px;vertical-align:top;white-space:normal;width:100%;border:#ddd solid 1px;border-radius:4px;display:grid;grid-template-rows:auto auto 1fr auto}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular{grid-template-rows:auto auto auto 1fr auto}div.fca-ept-layout1 div.fca-ept-popular{font-family:inherit;display:none;padding:.3em;text-align:center;font-weight:700;margin-bottom:2px;margin-top:-54px;border-radius:4px}div.fca-ept-layout1 div.fca-ept-popular.fca-ept-most-popular{display:block}div.fca-ept-layout1 div.fca-ept-plan-div{font-family:inherit;border-top-left-radius:4px;border-top-right-radius:4px;word-break:break-word;text-align:center;padding:15px 20px;font-weight:700;font-size:1em}div.fca-ept-layout1 div.fca-ept-plan-div .fca-ept-plan img{display:block;margin:auto}div.fca-ept-layout1 div.fca-ept-price-div{font-family:inherit;text-align:center;padding:.9375em 1.25em;font-weight:400;font-size:1.25em}div.fca-ept-layout1 div.fca-ept-price-div .fca-ept-price{line-height:1.5}div.fca-ept-layout1 div.fca-ept-features-div{text-align:center;font-size:.875em;font-weight:400}div.fca-ept-layout1 div.fca-ept-features-div ul{font-family:inherit;list-style:none;padding:0;margin:0}div.fca-ept-layout1 div.fca-ept-features-div li{font-family:inherit;padding:.9375em .5em .9375em .5em;border-bottom:dotted 1px #ddd}div.fca-ept-layout1 div.fca-ept-features-div li span{font-size:inherit!important}div.fca-ept-layout1 div.fca-ept-button-div{font-family:inherit;text-align:center;padding-top:1.25em;padding-bottom:1.25em;border-bottom-left-radius:4px;border-bottom-right-radius:4px}div.fca-ept-layout1 a.fca-ept-button{cursor:pointer;position:relative;font-weight:700;padding:16px 10px 10px 10px;width:75%;display:inline-block;white-space:normal;text-align:center;align-self:self-end;text-decoration:none!important;-webkit-appearance:unset;font-size:1em;border-top:0;border-left:0;border-right:0;border-radius:4px;-webkit-transition:background-color .3s ease-out;-moz-transition:background-color .3s ease-out;transition:background-color .3s ease-out}div.fca-ept-layout1 a.fca-ept-button span{cursor:pointer}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular.fca-ept-selected-column,div.fca-ept-layout1 div.fca-ept-column.fca-ept-selected-column{box-shadow:rgba(0,0,0,.5) 0 10px 25px 0;border:0 solid;padding:1px}@media only screen and (max-width:765px){div.fca-ept-layout1{display:block}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular{margin-top:100px}}
  • easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1.min.js

    r2574480 r2617547  
    1 function fca_ept_set_layout1_attributes(t){t.setAttributes({align:"wide"}),t.setAttributes({selectedLayout:"layout1"}),t.attributes.columnSettings||t.setAttributes({columnSettings:JSON.stringify(fca_ept_defaultColumnSettings)}),t.setAttributes({columnHeight:"auto"}),t.setAttributes({columnHeightToggle:!0}),t.setAttributes({layoutBGColor:"#fff"}),t.setAttributes({layoutBGTint2:"#eeeeee"}),t.setAttributes({layoutBGTint3:"#dddddd"}),t.setAttributes({layoutBGTint4:"#7f8c8d"}),t.setAttributes({layoutFontColor:"#333333"}),t.setAttributes({buttonColor:"#3498db"}),t.setAttributes({buttonFontColor:"#fff"}),t.setAttributes({buttonBorderColor:"#2980b9"}),t.setAttributes({buttonBorderColorPop:"#c0392b"}),t.setAttributes({accentColor:"#e74c3c"}),t.setAttributes({fontFamily:"Hoefler Text"}),t.setAttributes({popularFontSize:"125%"}),t.setAttributes({planFontSize:"137.5%"}),t.setAttributes({priceFontSize:"175%"}),t.setAttributes({featuresFontSize:"125%"}),t.setAttributes({buttonFontSize:"137.5%"})}function fca_ept_layout1_block_edit(t){var e=JSON.parse(t.attributes.columnSettings),o=t.attributes.selectedLayout;return fca_ept_layout1_additional_styles(t),fca_ept_custom_reusable_block(),fca_ept_get_preview_settings(t),el(wp.element.Fragment,{},fca_ept_toolbar_controls(t),fca_ept_sidebar_settings(t),el("div",{style:{fontFamily:t.attributes.fontFamily+", sans serif"},id:"fca-ept-table-"+t.attributes.tableID,className:t.attributes.togglePeriod?"fca-ept-table-container toggle-active":"fca-ept-table-container"},el("div",{style:{alignItems:"auto"===t.attributes.columnHeight?"stretch":"flex-end"},className:"fca-ept-"+o},Array.from(e,function(o,a){return el("div",{key:a,className:e[a].columnPopular?"fca-ept-column fca-ept-most-popular":"fca-ept-column",style:{backgroundColor:t.attributes.layoutBGTint2},onClick:function(){fca_ept_select_column(t,a)}},el("div",{style:{backgroundColor:t.attributes.layoutBGTint4,color:t.attributes.buttonFontColor},className:e[a].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,placeholder:"Most Popular",type:"text",tagName:"span",value:t.attributes.popularText,onClick:function(){t.setAttributes({selectedSection:"popular"}),t.setAttributes({showURLPopover:"none"})},onChange:function(e){t.setAttributes({popularText:e})}})),el("div",{style:{backgroundColor:t.attributes.layoutBGTint3},className:"fca-ept-plan-div"},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:e[a].planText1,onClick:function(){t.setAttributes({selectedSection:"plan"}),t.setAttributes({showURLPopover:"none"})},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"plan");else{var l=Array.from(e);l[t.attributes.selectedCol].planText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),el("div",{style:{backgroundColor:t.attributes.layoutBGTint2},className:"fca-ept-price"},el(wp.blockEditor.RichText,{style:{fontSize:t.attributes.priceFontSize,color:t.attributes.layoutFontColor},allowedFormats:fca_ept_allowed_formats,placeholder:"$29",type:"text",tagName:"span",value:e[a].priceText1,onClick:function(e){t.setAttributes({selectedSection:"price"}),t.setAttributes({showURLPopover:"none"})},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"price");else{var l=Array.from(e);l[t.attributes.selectedCol].priceText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),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[a].featuresText,onClick:function(){t.setAttributes({selectedSection:"features"}),t.setAttributes({showURLPopover:"none"})},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"features");else{var l=Array.from(e);l[t.attributes.selectedCol].featuresText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),el("div",{style:{display:t.attributes.showButtons,backgroundColor:t.attributes.layoutBGTint2},className:"fca-ept-button-div"},el("a",{style:{fontSize:t.attributes.buttonFontSize,backgroundColor:e[a].columnPopular?t.attributes.accentColor:t.attributes.buttonColor,color:t.attributes.buttonFontColor,borderBottom:e[a].columnPopular?t.attributes.buttonBorderColorPop+" 2px solid":t.attributes.buttonBorderColor+" 2px solid"},className:"fca-ept-button",onClick:function(){t.setAttributes({selectedSection:"button"}),t.setAttributes({showURLPopover:"block"})}},el(wp.blockEditor.RichText,{allowedFormats:fca_ept_allowed_formats,placeholder:"Add to Cart",type:"text",tagName:"span",value:e[a].buttonText,onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"button");else{var l=Array.from(e);l[t.attributes.selectedCol].buttonText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}}))))}))))}function fca_ept_layout1_additional_styles(t){var e=t.attributes.tableID;$("#"+e).remove(),$("body").append("<style id='"+e+"'>div.fca-ept-layout1 div.fca-ept-column a.fca-ept-button:hover { background-color: "+t.attributes.buttonBorderColor+" !important;}div.fca-ept-layout1 div.fca-ept-column.fca-ept-most-popular a.fca-ept-button:hover { background-color: "+t.attributes.buttonBorderColorPop+" !important;}div.fca-ept-layout1 div.fca-ept-column div.fca-ept-features li { border-bottom: dotted 1px "+t.attributes.layoutBGTint3+";}</style>")}var wp=window.wp,el=wp.element.createElement,$=window.jQuery,fca_ept_layout1_presetColors=[{name:"White",slug:"fca-white",color:"#fff"},{name:"Black",slug:"fca-black",color:"#333333"},{name:"Blue",slug:"fca-blue",color:"#3498db"},{name:"Red",slug:"fca-red",color:"#e74c3c"},{name:"Deep Red",slug:"fca-deepred",color:"#c0392b"}];
     1function fca_ept_set_layout1_attributes(t){t.setAttributes({align:"wide"}),t.setAttributes({selectedLayout:"layout1"}),t.attributes.columnSettings||t.setAttributes({columnSettings:JSON.stringify(fca_ept_defaultColumnSettings)}),t.setAttributes({columnHeight:"auto"}),t.setAttributes({columnHeightToggle:!0}),t.setAttributes({layoutBGColor:"#fff"}),t.setAttributes({layoutBGTint2:"#eeeeee"}),t.setAttributes({layoutBGTint3:"#dddddd"}),t.setAttributes({layoutBGTint4:"#7f8c8d"}),t.setAttributes({layoutFontColor:"#333333"}),t.setAttributes({buttonColor:"#3498db"}),t.setAttributes({buttonFontColor:"#fff"}),t.setAttributes({buttonBorderColor:"#2980b9"}),t.setAttributes({buttonBorderColorPop:"#c0392b"}),t.setAttributes({accentColor:"#e74c3c"}),t.setAttributes({fontFamily:"Hoefler Text"}),t.setAttributes({popularFontSize:"125%"}),t.setAttributes({planFontSize:"137.5%"}),t.setAttributes({priceFontSize:"175%"}),t.setAttributes({featuresFontSize:"125%"}),t.setAttributes({buttonFontSize:"137.5%"})}function fca_ept_layout1_block_edit(t){var e=JSON.parse(t.attributes.columnSettings),o=t.attributes.selectedLayout;return fca_ept_layout1_additional_styles(t),fca_ept_custom_reusable_block(),fca_ept_get_preview_settings(t),el(wp.element.Fragment,{},fca_ept_toolbar_controls(t),fca_ept_sidebar_settings(t),el("div",{style:{fontFamily:t.attributes.fontFamily+", sans serif"},id:"fca-ept-table-"+t.attributes.tableID,className:t.attributes.togglePeriod?"fca-ept-table-container toggle-active":"fca-ept-table-container"},el("div",{style:{alignItems:"auto"===t.attributes.columnHeight?"stretch":"flex-end"},className:"fca-ept-"+o},Array.from(e,function(o,a){return el("div",{key:a,className:e[a].columnPopular?"fca-ept-column fca-ept-most-popular":"fca-ept-column",style:{backgroundColor:t.attributes.layoutBGTint2},onClick:function(){fca_ept_select_column(t,a)}},el("div",{style:{backgroundColor:t.attributes.layoutBGTint4,color:t.attributes.buttonFontColor},className:e[a].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,placeholder:"Most Popular",type:"text",tagName:"span",value:t.attributes.popularText,onClick:function(){t.setAttributes({selectedSection:"popular"}),t.setAttributes({showURLPopover:"none"})},onChange:function(e){t.setAttributes({popularText:e})}})),el("div",{style:{backgroundColor:t.attributes.layoutBGTint3},className:"fca-ept-plan-div"},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:e[a].planText1,onClick:function(){t.setAttributes({selectedSection:"plan"}),t.setAttributes({showURLPopover:"none"})},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"plan");else{var l=Array.from(e);l[t.attributes.selectedCol].planText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),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:e[a].priceText1,onClick:function(e){t.setAttributes({selectedSection:"price"}),t.setAttributes({showURLPopover:"none"})},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"price");else{var l=Array.from(e);l[t.attributes.selectedCol].priceText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),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[a].featuresText,onClick:function(){t.setAttributes({selectedSection:"features"}),t.setAttributes({showURLPopover:"none"})},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"features");else{var l=Array.from(e);l[t.attributes.selectedCol].featuresText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),el("div",{style:{display:t.attributes.showButtons,backgroundColor:t.attributes.layoutBGTint2},className:"fca-ept-button-div"},el("a",{style:{fontSize:t.attributes.buttonFontSize,backgroundColor:e[a].columnPopular?t.attributes.accentColor:t.attributes.buttonColor,color:t.attributes.buttonFontColor,borderBottom:e[a].columnPopular?t.attributes.buttonBorderColorPop+" 2px solid":t.attributes.buttonBorderColor+" 2px solid"},className:"fca-ept-button",onClick:function(){t.setAttributes({selectedSection:"button"}),t.setAttributes({showURLPopover:"block"})}},el(wp.blockEditor.RichText,{allowedFormats:fca_ept_allowed_formats,placeholder:"Add to Cart",type:"text",tagName:"span",value:e[a].buttonText,onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"button");else{var l=Array.from(e);l[t.attributes.selectedCol].buttonText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}}))))}))))}function fca_ept_layout1_additional_styles(t){var e=t.attributes.tableID;$("#"+e).remove(),$("body").append("<style 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+";}</style>")}var wp=window.wp,el=wp.element.createElement,$=window.jQuery,fca_ept_layout1_presetColors=[{name:"White",slug:"fca-white",color:"#fff"},{name:"Black",slug:"fca-black",color:"#333333"},{name:"Blue",slug:"fca-blue",color:"#3498db"},{name:"Red",slug:"fca-red",color:"#e74c3c"},{name:"Deep Red",slug:"fca-deepred",color:"#c0392b"}];
  • easy-pricing-tables/trunk/assets/blocks/layout2/fca-ept-layout2-block.php

    r2574480 r2617547  
    33function fca_ept_render_layout2( $attributes ){
    44   
     5    // enqueue frontend style
     6    wp_enqueue_style( 'fca-ept-layout2-style' );
     7
    58    $tableID = empty( $attributes['tableID'] ) ? 0 : empty( $attributes['tableID'] );
    69
  • easy-pricing-tables/trunk/assets/blocks/layout2/fca-ept-layout2.js

    r2574480 r2617547  
    341341    $( 'body' ).append(
    342342        "<style id='" + id + "'>" +
    343             "div.fca-ept-toggle-period-container .fca-ept-slider { background-color: " + props.attributes.buttonColor + " }" +
     343            "#fca-ept-table-" + id + " div.fca-ept-toggle-period-container .fca-ept-slider { background-color: " + props.attributes.buttonColor + " }" +
    344344        "</style>"
    345345    )
  • easy-pricing-tables/trunk/assets/blocks/layout2/fca-ept-layout2.min.js

    r2574480 r2617547  
    1 function fca_ept_set_layout2_attributes(t){t.setAttributes({align:"wide"}),t.setAttributes({selectedLayout:"layout2"}),t.attributes.columnSettings||t.setAttributes({columnSettings:JSON.stringify(fca_ept_defaultColumnSettings)}),t.setAttributes({columnHeight:"auto"}),t.setAttributes({columnHeightToggle:!0}),t.setAttributes({layoutBGColor:"#f2f2f2"}),t.setAttributes({layoutFontColor:"#000"}),t.setAttributes({layoutFontColor1:"#6236ff"}),t.setAttributes({buttonColor:"#6236ff"}),t.setAttributes({buttonFontColor:"#fff"}),t.setAttributes({accentColor:"#6236ff"}),t.setAttributes({fontFamily:"sans-serif"}),t.setAttributes({popularFontSize:"75%"}),t.setAttributes({planFontSize:"300%"}),t.setAttributes({planSubtextFontSize:"100%"}),t.setAttributes({priceFontSize:"400%"}),t.setAttributes({pricePeriodFontSize:"100%"}),t.setAttributes({featuresFontSize:"125%"}),t.setAttributes({buttonFontSize:"150%"})}function fca_ept_layout2_block_edit(t){var e=JSON.parse(t.attributes.columnSettings),o=t.attributes.selectedLayout;return fca_ept_layout2_additional_styles(t),fca_ept_custom_reusable_block(),fca_ept_get_preview_settings(t),el(wp.element.Fragment,{},fca_ept_toolbar_controls(t),fca_ept_sidebar_settings(t),el("div",{style:{fontFamily:t.attributes.fontFamily+", sans-serif"},id:"fca-ept-table-"+t.attributes.tableID,className:t.attributes.togglePeriod?"fca-ept-table-container toggle-active":"fca-ept-table-container"},el("div",{style:{textDecoration:"none",alignItems:"auto"===t.attributes.columnHeight?"stretch":"flex-end"},className:"fca-ept-"+o},Array.from(e,function(o,a){return el("div",{key:a,style:{backgroundColor:t.attributes.layoutBGColor,paddingTop:e[a].columnPopular?"30px":"45px",paddingBottom:"block"===t.attributes.showButtons?"30px":"0px",marginTop:e[a].columnPopular?"0px":"10px",border:e[a].columnPopular?"2px solid "+t.attributes.accentColor:"0px solid"},className:e[a].columnPopular?"fca-ept-column fca-ept-most-popular":"fca-ept-column",onClick:function(){fca_ept_select_column(t,a)}},el("div",{style:{display:e[a].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:t.attributes.popularText,onClick:function(){fca_ept_update_section(t,"popular")},onChange:function(e){t.setAttributes({popularText:e})}})),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:e[a].planText1,onClick:function(){fca_ept_update_section(t,"plan")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"plan");else{var l=Array.from(e);l[t.attributes.selectedCol].planText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}}),el(wp.blockEditor.RichText,{style:{display:t.attributes.showPlanSubtext,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[a].planSubText,onClick:function(){fca_ept_update_section(t,"planSubtext")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"planSubtext");else{var l=Array.from(e);l[t.attributes.selectedCol].planSubText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),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:e[a].priceText1,onClick:function(e){fca_ept_update_section(t,"price")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"price");else{var l=Array.from(e);l[t.attributes.selectedCol].priceText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}}),el("div",{style:{display:e.length>1?"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:e[a].pricePeriod1,onClick:function(){fca_ept_update_section(t,"pricePeriod")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"pricePeriod");else{var l=Array.from(e);l[t.attributes.selectedCol].pricePeriod1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})))),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[a].featuresText,onClick:function(){fca_ept_update_section(t,"features")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"features");else{var l=Array.from(e);l[t.attributes.selectedCol].featuresText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),el("a",{style:{display:t.attributes.showButtons,fontSize:t.attributes.buttonFontSize,color:t.attributes.buttonFontColor,backgroundColor:t.attributes.buttonColor},className:"fca-ept-button",onClick:function(){fca_ept_update_section(t,"button")}},el(wp.blockEditor.RichText,{allowedFormats:fca_ept_allowed_formats,placeholder:"Add to Cart",type:"text",tagName:"span",value:e[a].buttonText,onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"button");else{var l=Array.from(e);l[t.attributes.selectedCol].buttonText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})))}))))}function fca_ept_layout2_additional_styles(t){var e=t.attributes.tableID;$("#"+e).remove(),$("body").append("<style id='"+e+"'>div.fca-ept-toggle-period-container .fca-ept-slider { background-color: "+t.attributes.buttonColor+" }</style>")}var wp=window.wp,el=wp.element.createElement,$=window.jQuery,fca_ept_layout2_presetColors=[{name:"Black",slug:"black",color:"#000"},{name:"white",slug:"fca-white",color:"#fff"},{name:"Purple",slug:"fca-purple",color:"#6236ff"},{name:"Red",slug:"fca-red",color:"#ea2027"},{name:"Grey",slug:"fca-grey",color:"#f2f2f2"}];
     1function fca_ept_set_layout2_attributes(t){t.setAttributes({align:"wide"}),t.setAttributes({selectedLayout:"layout2"}),t.attributes.columnSettings||t.setAttributes({columnSettings:JSON.stringify(fca_ept_defaultColumnSettings)}),t.setAttributes({columnHeight:"auto"}),t.setAttributes({columnHeightToggle:!0}),t.setAttributes({layoutBGColor:"#f2f2f2"}),t.setAttributes({layoutFontColor:"#000"}),t.setAttributes({layoutFontColor1:"#6236ff"}),t.setAttributes({buttonColor:"#6236ff"}),t.setAttributes({buttonFontColor:"#fff"}),t.setAttributes({accentColor:"#6236ff"}),t.setAttributes({fontFamily:"sans-serif"}),t.setAttributes({popularFontSize:"75%"}),t.setAttributes({planFontSize:"300%"}),t.setAttributes({planSubtextFontSize:"100%"}),t.setAttributes({priceFontSize:"400%"}),t.setAttributes({pricePeriodFontSize:"100%"}),t.setAttributes({featuresFontSize:"125%"}),t.setAttributes({buttonFontSize:"150%"})}function fca_ept_layout2_block_edit(t){var e=JSON.parse(t.attributes.columnSettings),o=t.attributes.selectedLayout;return fca_ept_layout2_additional_styles(t),fca_ept_custom_reusable_block(),fca_ept_get_preview_settings(t),el(wp.element.Fragment,{},fca_ept_toolbar_controls(t),fca_ept_sidebar_settings(t),el("div",{style:{fontFamily:t.attributes.fontFamily+", sans-serif"},id:"fca-ept-table-"+t.attributes.tableID,className:t.attributes.togglePeriod?"fca-ept-table-container toggle-active":"fca-ept-table-container"},el("div",{style:{textDecoration:"none",alignItems:"auto"===t.attributes.columnHeight?"stretch":"flex-end"},className:"fca-ept-"+o},Array.from(e,function(o,a){return el("div",{key:a,style:{backgroundColor:t.attributes.layoutBGColor,paddingTop:e[a].columnPopular?"30px":"45px",paddingBottom:"block"===t.attributes.showButtons?"30px":"0px",marginTop:e[a].columnPopular?"0px":"10px",border:e[a].columnPopular?"2px solid "+t.attributes.accentColor:"0px solid"},className:e[a].columnPopular?"fca-ept-column fca-ept-most-popular":"fca-ept-column",onClick:function(){fca_ept_select_column(t,a)}},el("div",{style:{display:e[a].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:t.attributes.popularText,onClick:function(){fca_ept_update_section(t,"popular")},onChange:function(e){t.setAttributes({popularText:e})}})),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:e[a].planText1,onClick:function(){fca_ept_update_section(t,"plan")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"plan");else{var l=Array.from(e);l[t.attributes.selectedCol].planText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}}),el(wp.blockEditor.RichText,{style:{display:t.attributes.showPlanSubtext,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[a].planSubText,onClick:function(){fca_ept_update_section(t,"planSubtext")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"planSubtext");else{var l=Array.from(e);l[t.attributes.selectedCol].planSubText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),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:e[a].priceText1,onClick:function(e){fca_ept_update_section(t,"price")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"price");else{var l=Array.from(e);l[t.attributes.selectedCol].priceText1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}}),el("div",{style:{display:e.length>1?"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:e[a].pricePeriod1,onClick:function(){fca_ept_update_section(t,"pricePeriod")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"pricePeriod");else{var l=Array.from(e);l[t.attributes.selectedCol].pricePeriod1=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})))),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[a].featuresText,onClick:function(){fca_ept_update_section(t,"features")},onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"features");else{var l=Array.from(e);l[t.attributes.selectedCol].featuresText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})),el("a",{style:{display:t.attributes.showButtons,fontSize:t.attributes.buttonFontSize,color:t.attributes.buttonFontColor,backgroundColor:t.attributes.buttonColor},className:"fca-ept-button",onClick:function(){fca_ept_update_section(t,"button")}},el(wp.blockEditor.RichText,{allowedFormats:fca_ept_allowed_formats,placeholder:"Add to Cart",type:"text",tagName:"span",value:e[a].buttonText,onChange:function(o){if(t.attributes.selectedCol!==a)fca_ept_select_column(t,a),fca_ept_update_section(t,"button");else{var l=Array.from(e);l[t.attributes.selectedCol].buttonText=o,t.setAttributes({columnSettings:JSON.stringify(l)})}}})))}))))}function fca_ept_layout2_additional_styles(t){var e=t.attributes.tableID;$("#"+e).remove(),$("body").append("<style id='"+e+"'>#fca-ept-table-"+e+" div.fca-ept-toggle-period-container .fca-ept-slider { background-color: "+t.attributes.buttonColor+" }</style>")}var wp=window.wp,el=wp.element.createElement,$=window.jQuery,fca_ept_layout2_presetColors=[{name:"Black",slug:"black",color:"#000"},{name:"white",slug:"fca-white",color:"#fff"},{name:"Purple",slug:"fca-purple",color:"#6236ff"},{name:"Red",slug:"fca-red",color:"#ea2027"},{name:"Grey",slug:"fca-grey",color:"#f2f2f2"}];
  • easy-pricing-tables/trunk/includes/block.js

    r2547205 r2617547  
    33
    44    var createElement  = element.createElement
    5     var BlockControls = editor.BlockControls
     5    var BlockControls = wp.blockEditor.BlockControls
    66    var SelectControl = wp.components.SelectControl
    77    var Toolbar = wp.components.Toolbar
     
    1919                        BlockControls,
    2020                        {
    21                             key: 'controls'
     21                            key: 'ptp-controls'
    2222                        },     
    2323                        createElement(
     
    5151                    ),
    5252
    53                     createElement( wp.components.ServerSideRender, {
     53                    createElement( wp.serverSideRender, {
     54                        key: 'ptp-ssr',
    5455                        block: 'easy-pricing-tables/gutenblock',
    5556                        attributes:  props.attributes,
  • easy-pricing-tables/trunk/includes/ept-block.php

    r2574480 r2617547  
    2020    wp_register_style( 'fca-ept-layout2-style', PTP_PLUGIN_URL . '/assets/blocks/layout2/fca-ept-layout2.min.css', PTP_PLUGIN_VER );
    2121
    22     // enqueue styles for both frontend & editor
    23     wp_enqueue_style( 'fca-ept-layout1-style' );
    24     wp_enqueue_style( 'fca-ept-layout2-style' );
    25 
    2622    if ( function_exists( 'register_block_type' ) ) {
    2723        register_block_type( 'fatcatapps/easy-pricing-tables', array( 'render_callback' => 'fca_ept_render' ) );
     
    3733    // enqueue editor style
    3834    wp_enqueue_style( 'fca-ept-editor-style' );
     35    wp_enqueue_style( 'fca-ept-layout1-style' );
     36    wp_enqueue_style( 'fca-ept-layout2-style' );
    3937
    4038    // enqueue layout scripts for editor
  • easy-pricing-tables/trunk/includes/metaboxes/banner-metabox.php

    r1436068 r2617547  
    55   
    66    <ul>
    7                     <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Ten Gorgeous Designs', 'easy-pricing-tables' ); ?></li>
    8                     <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Fully Customizable (Colors, etc...)', 'easy-pricing-tables' ); ?></li>
     7                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Six Gorgeous Designs', 'easy-pricing-tables' ); ?></li>
     8                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Fully Customizable (Colors, Fontsize, etc...)', 'easy-pricing-tables' ); ?></li>
    99                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Priority Email Support', 'easy-pricing-tables' ); ?></li>
     10                    <li><div class="dashicons dashicons-yes"></div> <?php _e( '700+ Icons To Add To Your Tables', 'easy-pricing-tables' ); ?></li>
    1011                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Tooltips', 'easy-pricing-tables' ); ?></li>
    1112                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Google Analytics Integration', 'easy-pricing-tables' ); ?></li>
     
    1415                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Stripe Extension', 'easy-pricing-tables' ); ?></li>
    1516                    <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Easy Digital Downloads Extension', 'easy-pricing-tables' ); ?></li>
    16 
    1717    </ul>
    1818   
  • easy-pricing-tables/trunk/includes/upgrade.php

    r2574480 r2617547  
    4242add_action( 'admin_footer', 'dh_ptp_upgrade_to_premium_menu_js');
    4343
    44 
    4544?>
  • easy-pricing-tables/trunk/pricing-table-plugin.php

    r2574480 r2617547  
    77    Domain Path: /languages
    88    Author: Fatcat Apps
    9     Version: 3.1.0
     9    Version: 3.1.2
    1010    Author URI: https://fatcatapps.com
    1111*/
     
    2222        define( 'PTP_PLUGIN_VER', '3.1.' . time() );
    2323    } else {
    24         define( 'PTP_PLUGIN_VER', '3.1.0' );
     24        define( 'PTP_PLUGIN_VER', '3.1.2' );
    2525    }
    2626
  • easy-pricing-tables/trunk/readme.txt

    r2574480 r2617547  
    77Requires at least: 3.6
    88Tested up to: 5.8
    9 Stable tag: 3.1.0
     9Stable tag: 3.1.2
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134== Changelog ==
    135135
     136= Easy Pricing Tables 3.1.2 =
     137* Improved table builder performance on Gutenberg editor
     138* Prevent unused layout files from being loaded in frontend
     139* Update some code to get rid of console warnings
     140* Cleaned up layout 1 structure
     141
     142= Easy Pricing Tables 3.1.1 =
     143* Fixes for Easy Pricing Tables Premium
     144
    136145= Easy Pricing Tables 3.1.0 =
    137146* Clean up frontend render page
Note: See TracChangeset for help on using the changeset viewer.