View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View dabblet.css
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
View dabblet.css
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
View basic-custom-module-recipe.php
<?php | |
add_action( 'et_builder_ready', function () { | |
class MyCustomModule extends ET_Builder_Module { | |
function init() |
View interpolation-example.php
<?php | |
// Quick PHP interpolation example... | |
class Person { | |
public $name = ''; | |
public function getName() | |
{ |
View class-disable-comments.php
<?php | |
namespace PhilKurth\WP\Tools; | |
View implementation.php
<?php | |
include 'utility-class.php'; | |
include 'utility-functions.php'; | |
// using a static class method | |
$processed = UtilityClass::methodOne( 'some data' ); |
View generated-style.css
.Post{} | |
.Post__title{} | |
.Post__content{} | |
.Post--is-highlighted .Post__title{} // now we are using the cascade to override styling when that block is at a particular state |
View book-cpt-test.json
{ | |
"name": "books", | |
"relationship": { | |
"type": "post", | |
"post_type": "book" | |
}, | |
"columns": [ | |
{ | |
"name": "author", | |
"acf_field_name": "author" |
View MagnificPopupModal.vue
<template> | |
<div class="Modal mfp-hide" ref="modal"> | |
<div class="Modal__inner"> | |
<slot></slot> | |
</div> | |
</div> | |
</template> |
OlderNewer