Changeset 2617547
- Timestamp:
- 10/21/2021 04:49:10 AM (4 years ago)
- Location:
- easy-pricing-tables/trunk
- Files:
-
- 15 edited
-
assets/blocks/editor/fca-ept-editor.js (modified) (11 diffs)
-
assets/blocks/layout1/fca-ept-layout1-block.php (modified) (2 diffs)
-
assets/blocks/layout1/fca-ept-layout1.css (modified) (2 diffs)
-
assets/blocks/layout1/fca-ept-layout1.js (modified) (3 diffs)
-
assets/blocks/layout1/fca-ept-layout1.min.css (modified) (1 diff)
-
assets/blocks/layout1/fca-ept-layout1.min.js (modified) (1 diff)
-
assets/blocks/layout2/fca-ept-layout2-block.php (modified) (1 diff)
-
assets/blocks/layout2/fca-ept-layout2.js (modified) (1 diff)
-
assets/blocks/layout2/fca-ept-layout2.min.js (modified) (1 diff)
-
includes/block.js (modified) (3 diffs)
-
includes/ept-block.php (modified) (2 diffs)
-
includes/metaboxes/banner-metabox.php (modified) (2 diffs)
-
includes/upgrade.php (modified) (1 diff)
-
pricing-table-plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-pricing-tables/trunk/assets/blocks/editor/fca-ept-editor.js
r2574480 r2617547 2 2 var el = wp.element.createElement 3 3 var $ = window.jQuery 4 var customBlock = 1 4 5 5 6 var fca_ept_allowed_formats = [ … … 583 584 var currentPost = wp.data.select( 'core/editor' ).getCurrentPost() 584 585 585 if( cu rrentPost.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' ) ) { 586 587 587 588 var eptBlock = wp.data.select( 'core/block-editor' ).getBlocks().filter( function( block ){ … … 637 638 wp.data.dispatch( 'core/block-editor' ).selectBlock( eptBlock[0].clientId ) 638 639 } 639 640 // on click anywhere but post title, select block641 $( 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 })646 640 647 641 $( '.components-button.edit-post-header-toolbar__inserter-toggle.is-primary.has-icon' ).css( 'display', 'none' ) … … 671 665 }) 672 666 667 customBlock = 0 668 673 669 } 674 670 … … 703 699 var columnSettings = JSON.parse( props.attributes.columnSettings ) 704 700 var selectedCol = parseInt( props.attributes.selectedCol ) 701 var tableID = props.attributes.tableID 705 702 706 703 columnSettings.filter( function ( col, i ){ … … 712 709 props.setAttributes ( { popularToolbarIcon: 'star-empty' } ) 713 710 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' ) 715 712 }, 30 ) 716 713 } else { … … 719 716 props.setAttributes ( { popularToolbarIcon: 'star-filled' } ) 720 717 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' ) 722 719 }, 30 ) 723 720 } … … 733 730 734 731 var selectedLayout = props.attributes.selectedLayout 732 var tableID = props.attributes.tableID 735 733 736 734 wp.data.subscribe(function () { … … 739 737 740 738 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' ) 746 744 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' ) 748 746 } 749 747 } 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' ) 755 753 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' ) 757 755 } 758 756 … … 766 764 767 765 var columnSettings = JSON.parse( props.attributes.columnSettings ) 766 var tableID = props.attributes.tableID 768 767 769 768 props.setAttributes ( { selectedCol: id } ) … … 775 774 } 776 775 777 $( ' .fca-ept-column' ).filter( function( i, column ){776 $( '#fca-ept-table-' + tableID + ' .fca-ept-column' ).filter( function( i, column ){ 778 777 if( column.classList.contains( 'fca-ept-selected-column' ) ){ 779 778 if( i === id ){ -
easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1-block.php
r2574480 r2617547 2 2 3 3 function fca_ept_render_layout1( $attributes ){ 4 5 // enqueue frontend style 6 wp_enqueue_style( 'fca-ept-layout1-style' ); 4 7 5 8 $tableID = empty( $attributes['tableID'] ) ? 0 : empty( $attributes['tableID'] ); … … 70 73 </div> 71 74 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"> 73 76 77 <span style="font-size: <?php echo $priceFontSize ?>; color: <?php echo $layoutFontColor ?>;" class="fca-ept-price"><?php echo $priceText1 ?></span> 78 79 </div> 80 74 81 <div style="font-size: <?php echo $featuresFontSize ?>; color: <?php echo $layoutFontColor ?>; background-color: <?php echo $layoutBGColor ?>" class="fca-ept-features-div"> 75 82 -
easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1.css
r2574480 r2617547 55 55 } 56 56 57 div.fca-ept-layout1 div.fca-ept-price {57 div.fca-ept-layout1 div.fca-ept-price-div{ 58 58 font-family: inherit; 59 59 text-align: center; … … 61 61 font-weight: normal; 62 62 font-size: 1.25em; 63 } 64 65 div.fca-ept-layout1 div.fca-ept-price-div .fca-ept-price{ 66 line-height: 1.5; 63 67 } 64 68 -
easy-pricing-tables/trunk/assets/blocks/layout1/fca-ept-layout1.js
r2574480 r2617547 166 166 el( 'div', { 167 167 style: { backgroundColor: props.attributes.layoutBGTint2 }, 168 className: 'fca-ept-price '168 className: 'fca-ept-price-div' 169 169 }, 170 170 el( wp.blockEditor.RichText, { … … 174 174 }, 175 175 allowedFormats: fca_ept_allowed_formats, 176 className: 'fca-ept-price', 176 177 placeholder: '$29', 177 178 type: "text", … … 283 284 $( 'body' ).append( 284 285 "<style id='" + id + "'>" + 285 " div.fca-ept-layout1div.fca-ept-column a.fca-ept-button:hover { background-color: " + props.attributes.buttonBorderColor + " !important;}" +286 " div.fca-ept-layout1div.fca-ept-column.fca-ept-most-popular a.fca-ept-button:hover { background-color: " + props.attributes.buttonBorderColorPop + " !important;}" +287 " div.fca-ept-layout1div.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 + ";}" + 288 289 "</style>" 289 290 ) -
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}}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-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-layout1div.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"}];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-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 3 3 function fca_ept_render_layout2( $attributes ){ 4 4 5 // enqueue frontend style 6 wp_enqueue_style( 'fca-ept-layout2-style' ); 7 5 8 $tableID = empty( $attributes['tableID'] ) ? 0 : empty( $attributes['tableID'] ); 6 9 -
easy-pricing-tables/trunk/assets/blocks/layout2/fca-ept-layout2.js
r2574480 r2617547 341 341 $( 'body' ).append( 342 342 "<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 + " }" + 344 344 "</style>" 345 345 ) -
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"}];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+"'>#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 3 3 4 4 var createElement = element.createElement 5 var BlockControls = editor.BlockControls5 var BlockControls = wp.blockEditor.BlockControls 6 6 var SelectControl = wp.components.SelectControl 7 7 var Toolbar = wp.components.Toolbar … … 19 19 BlockControls, 20 20 { 21 key: ' controls'21 key: 'ptp-controls' 22 22 }, 23 23 createElement( … … 51 51 ), 52 52 53 createElement( wp.components.ServerSideRender, { 53 createElement( wp.serverSideRender, { 54 key: 'ptp-ssr', 54 55 block: 'easy-pricing-tables/gutenblock', 55 56 attributes: props.attributes, -
easy-pricing-tables/trunk/includes/ept-block.php
r2574480 r2617547 20 20 wp_register_style( 'fca-ept-layout2-style', PTP_PLUGIN_URL . '/assets/blocks/layout2/fca-ept-layout2.min.css', PTP_PLUGIN_VER ); 21 21 22 // enqueue styles for both frontend & editor23 wp_enqueue_style( 'fca-ept-layout1-style' );24 wp_enqueue_style( 'fca-ept-layout2-style' );25 26 22 if ( function_exists( 'register_block_type' ) ) { 27 23 register_block_type( 'fatcatapps/easy-pricing-tables', array( 'render_callback' => 'fca_ept_render' ) ); … … 37 33 // enqueue editor style 38 34 wp_enqueue_style( 'fca-ept-editor-style' ); 35 wp_enqueue_style( 'fca-ept-layout1-style' ); 36 wp_enqueue_style( 'fca-ept-layout2-style' ); 39 37 40 38 // enqueue layout scripts for editor -
easy-pricing-tables/trunk/includes/metaboxes/banner-metabox.php
r1436068 r2617547 5 5 6 6 <ul> 7 <li><div class="dashicons dashicons-yes"></div> <?php _e( ' TenGorgeous 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> 9 9 <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> 10 11 <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Tooltips', 'easy-pricing-tables' ); ?></li> 11 12 <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Google Analytics Integration', 'easy-pricing-tables' ); ?></li> … … 14 15 <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Stripe Extension', 'easy-pricing-tables' ); ?></li> 15 16 <li><div class="dashicons dashicons-yes"></div> <?php _e( 'Easy Digital Downloads Extension', 'easy-pricing-tables' ); ?></li> 16 17 17 </ul> 18 18 -
easy-pricing-tables/trunk/includes/upgrade.php
r2574480 r2617547 42 42 add_action( 'admin_footer', 'dh_ptp_upgrade_to_premium_menu_js'); 43 43 44 45 44 ?> -
easy-pricing-tables/trunk/pricing-table-plugin.php
r2574480 r2617547 7 7 Domain Path: /languages 8 8 Author: Fatcat Apps 9 Version: 3.1. 09 Version: 3.1.2 10 10 Author URI: https://fatcatapps.com 11 11 */ … … 22 22 define( 'PTP_PLUGIN_VER', '3.1.' . time() ); 23 23 } else { 24 define( 'PTP_PLUGIN_VER', '3.1. 0' );24 define( 'PTP_PLUGIN_VER', '3.1.2' ); 25 25 } 26 26 -
easy-pricing-tables/trunk/readme.txt
r2574480 r2617547 7 7 Requires at least: 3.6 8 8 Tested up to: 5.8 9 Stable tag: 3.1. 09 Stable tag: 3.1.2 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 134 134 == Changelog == 135 135 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 136 145 = Easy Pricing Tables 3.1.0 = 137 146 * Clean up frontend render page
Note: See TracChangeset
for help on using the changeset viewer.