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
git diff --name-status --color prod HEAD > changelog.txt |
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
<label class="toggle-button"> | |
<span class="screen-reader-text"><?php esc_html_e( 'Toggle between Yearly and Monthly Pricing.', 'maintainn' ); ?></span> | |
<input id="monthly-yearly-toggle" type="checkbox" checked /> | |
<label> | |
<div class="toggle-button-switch"></div> | |
</label> | |
</label> <!-- .toggle-button --> |
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
/* | |
Theme Name: Storefront Child Theme | |
Theme URI: | |
Template: storefront | |
Author: WebDevStudios | |
Author URI: https://webdevstudios.com | |
Description: A storefront child theme. | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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
{ | |
"name": "wd_s", | |
"version": "1.0.0", | |
"description": "A theme boilerplate for WebDevStudios.", | |
"main": "Gulpfile.js", | |
"dependencies": { | |
"babel-core": "^6.26.3", | |
"babel-preset-env": "^1.7.0", | |
"bourbon": "^4.3.4", | |
"bourbon-neat": "^1.9.0", |
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
// Require our dependencies | |
const autoprefixer = require( 'autoprefixer' ); | |
const babel = require( 'gulp-babel' ); | |
const bourbon = require( 'bourbon' ).includePaths; | |
const browserSync = require( 'browser-sync' ); | |
const cheerio = require( 'gulp-cheerio' ); | |
const concat = require( 'gulp-concat' ); | |
const cssnano = require( 'gulp-cssnano' ); | |
const del = require( 'del' ); | |
const eslint = require( 'gulp-eslint' ); |
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 { __, setLocaleData } = wp.i18n; | |
const { registerBlockType } = wp.blocks; | |
const blockStyle = { | |
backgroundColor: '#900', | |
color: '#fff', | |
padding: '20px', | |
}; | |
setLocaleData( window.gutenberg_examples_01_esnext.localeData, 'gutenberg-examples' ); |
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 | |
/** | |
* The template used for displaying a Hero block. | |
* | |
* @package _s | |
*/ | |
// Set up fields. | |
$title = get_field( 'title' ); | |
$text = get_field( 'text' ); |
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 | |
/** | |
* Enqueue Gutenberg scripts and styles to backend area. | |
*/ | |
function wds_gutenberg_assets() { | |
wp_enqueue_style( 'wds-gutenberg-admin', get_stylesheet_directory_uri() . '/gutenberg.css', array(), '1.0.0' ); | |
} | |
add_action( 'enqueue_block_assets', 'wds_gutenberg_assets' ); |
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
//*!-------------------------------------------------------------- | |
// Gutenberg Hero Block | |
//-------------------------------------------------------------- | |
$color-black: #000; | |
$color-white: #fff; | |
.wds-hero { | |
margin-bottom: 0; | |
overflow-y: hidden; |