This file contains 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 | |
namespace YourPlugin\Blocks; | |
abstract class Block{ | |
/** | |
* Block title | |
* | |
* @var string |
This file contains 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
.wp-block-embed{ | |
position: relative; | |
.entry-content-asset{ | |
width: 100%; | |
height: 0; | |
padding-top: 56.25%; | |
position: relative; | |
} |
This file contains 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
const { __ } = wp.i18n; | |
const { InnerBlocks } = wp.editor; | |
const { registerBlockType } = wp.blocks; | |
registerBlockType( | |
'kit/container', | |
{ | |
title: __('Container'), | |
description: __('Add a container for blocks'), | |
category: 'common', |
This file contains 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
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam et tellus risus. Pellentesque finibus augue sed dictum luctus. Donec aliquet nibh bibendum, congue metus porta, interdum odio. Sed tempus sollicitudin augue, vel tristique leo rutrum id. Quisque vitae elementum nunc. Donec sit amet nisi at diam imperdiet consequat. Aenean efficitur magna nec odio vulputate, id porttitor felis blandit</p> | |
<hr> | |
<strong>Strong text</strong> | |
<b>Alternate strong text</b> | |
<hr> | |
<i>Italic text</i> |
This file contains 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
const Twitter = require('twitter'); | |
const config = require('./config.js'); | |
const T = new Twitter(config); | |
//add week number support: | |
Date.prototype.getWeekNumber = function(){ | |
var d = new Date(Date.UTC(this.getFullYear(), this.getMonth(), this.getDate())); | |
var dayNum = d.getUTCDay() || 7; | |
d.setUTCDate(d.getUTCDate() + 4 - dayNum); | |
var yearStart = new Date(Date.UTC(d.getUTCFullYear(),0,1)); |
This file contains 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
const $ = require('jquery'); | |
class RadioTabs { | |
constructor($component) { | |
this.$component = $component; | |
this.attachEventHandlers(); | |
this.selectTabBasedOnRadioValue(); | |
} |
This file contains 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
/** Sections: **/ | |
add_filter( 'chef_sections_column_template_base', function(){ | |
return 'elements/columns/'; | |
}); | |
| |
add_filter( 'chef_sections_block_template_base', function(){ | |
return 'elements/block/'; | |
}); | |
| |
add_filter( 'chef_sections_section_template_base', function(){ |
This file contains 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
//IE9 flexbox grid fixes: | |
.no-flexbox, .no-flexboxlegacy{ | |
.column-row{ | |
&.half-half .column{ | |
@include span-columns( 6 ); | |
} | |
&.sidebar-left .column, &.sidebar-right .column{ | |
@include span-columns( 8 ); |
This file contains 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
John Hughes: | |
Breakfast Club | |
Ferris buellers day off | |
weird science | |
planes trains & automobiles | |
Quintin Tarantino (two weeks) |
This file contains 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
flex-flow:column-reverse wrap-reverse; | |
justify-content:center; | |
align-content:space-between; |
NewerOlder