Example: http://jsbin.com/iqegiw/3
- Works in IE8+
.headingDoubleLineBg (
@color, // the color of the lines
/*-------------------------------------------- */ | |
/** My Module 1 */ | |
/*-------------------------------------------- */ | |
... | |
/*-------------------------------------------- */ | |
/** My Module 2 */ | |
/*-------------------------------------------- */ |
Example: http://jsbin.com/iqegiw/3
.headingDoubleLineBg (
@color, // the color of the lines
// @example: http://jsbin.com/huharale/1/edit?html,css,output | |
.rising-underline(@color, @thickness, @distance: 3px) { | |
position: relative; | |
text-decoration: none; | |
&:after { | |
content: ""; | |
position: absolute; |
ko.bindingHandlers.templateFromChild = { | |
init: function (element, valueAccessor, allBindings) { | |
var selector = ko.unwrap(valueAccessor()), | |
tmpl; | |
// selector can either be an #ID or the string 'first' which just needs to save the first child as the template | |
if (selector === 'first') { | |
tmpl = ko.virtualElements.firstChild(element); | |
} else { | |
tmpl = document.getElementById(selector); |
Add the below to your apps/games info.plist file. | |
<key>UIRequiresFullScreen</key> | |
<true/> |
<?php | |
// add to your theme's functions.php file | |
// _post can be any custom post type as well. I.E. if you have a book post type it would be 'save_post_book' | |
add_action( 'save_post_post', function( $post_ID, $post, $update ) { | |
// if it is an update and not a new post, return early | |
if ( $update ) return; | |
// a new post was created, send an email out |
Create a virtual elevator that meets the following requirements:
<?php | |
use Handlebars\Loader; | |
class FractalMapLoader implements Loader { | |
/** | |
* An array of @handle => component path mappings | |
* @var array | |
*/ |
<?php | |
// https://fractal.build/ | |
the_post(); | |
get_header(); | |
// render is a global function exposed to render templates from Fractal. @article is the template handle in Fractal. The | |
// Handlebars rendering engine has been setup to load templates from a pattern-library directory that contains the Fractal install. | |
render( '@article', [ |