This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="input-control color-input"> | |
| <input :value="value" | |
| :id="id" | |
| class="jscolor-input {hash:true,styleElement:'',onFineChange:'jsColorOnFineChange(this)'}" | |
| @change="onChange($event.target)" | |
| @input="onChange($event.target)" | |
| @focus="showColorPicker" | |
| @onFineChange="onFineChange" | |
| ref="color_input" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Eliminate All Blocks from Editor | |
| wp.data.dispatch( 'core/block-editor' ).resetBlocks([]); | |
| How to Use WordPress Block Builder to Create Custom Page Layouts Easily | |
| https://www.webfactoryltd.com/blog/how-to-use-wordpress-block-builder-to-create-custom-page-layouts-easily/ | |
| How to Extend or Create Variations for WordPress Blocks | |
| https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/ | |
| How to disable and lock Gutenberg blocks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fabric.Canvas.prototype.getItem = function(id) { | |
| var object = null, | |
| objects = this.getObjects(); | |
| for (var i = 0, len = this.size(); i < len; i++) { | |
| if (objects[i].id && objects[i].id === id) { | |
| object = objects[i]; | |
| break; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function deleteFromImgur() { | |
| $.ajax({ | |
| url: "https://api.imgur.com/3/image/{id}", | |
| type: "DELETE", | |
| headers: { | |
| "Authorization": "Client-ID YOUR-CLIEND-ID-GOES-HERE" | |
| }, | |
| success: function(response) { | |
| //console.log(response); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Adding First and Last Name to Checkout Form | |
| */ | |
| //add the fields to the form | |
| function my_pmpro_checkout_after_password() | |
| { | |
| if(!empty($_REQUEST['firstname'])) | |
| $firstname = $_REQUEST['firstname']; |