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
// A simple, single location local business JSON-LD Schema Boilerplate | |
// By @bavington, available on GitHub: http://bit.ly/Local_JSON | |
{ | |
"@context": "http://schema.org", | |
"@type": "Plumber", // Change to the most specific type (List of choices: https://goo.gl/tvMVHf) | |
"name": "Custom Heat", // *REQUIRED | |
"legalName": "Custom Heat Ltd", // The Registered Business Name | |
"vatID": "776796257", | |
"description": "Established in Rugby since 1980, Custom Heat are a family run central heating and plumbing business serving Rugby, Royal Leamington Spa and Warwick.", | |
"logo": "http://www.customheat.co.uk/wp-content/themes/custom-heat/images/custom-heat-logo.png", |
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
/** | |
* Like PHP's {@link https://www.php.net/manual/en/function.empty.php `empty`} function in vanilla JavaScript. | |
* | |
* @author Davey Jacobson <daveyjake21 [at] geemail [dot] com> | |
* @since 1.0.0 | |
* @since 1.0.1 Gist made public. | |
* | |
* @param {array|bool|number|object|string} value The value to check. | |
* @param {bool} [strict=false] Enable strict checking. Accepts true, false. | |
* |
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
/** | |
* Lodash version of PHP's `empty` function. | |
* | |
* @author Davey Jacobson <daveyjake21 [at] geemail [dot] com> | |
* @since 1.0.0 Initial private gist. | |
* @since 1.1.0 Gist made public. | |
* @since 1.1.1 Additional checks for 'null' and 'undefined' as strings. | |
* @since 1.1.2 Additional check for `NaN` and 'NaN' as a string. | |
* | |
* @param {array|bool|number|object|string} $value The value to check. |
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
$breakpoints: ( | |
sm: 0em, | |
md: 40em | |
); | |
$types: ( | |
m: margin, | |
p: padding | |
); |
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 | |
/** | |
* Widgets API: Widget Skeleton | |
* | |
* A generic skeleton template for widgets. | |
* | |
* @package Davey_Jacobson | |
* @subpackage Widget_Skeleton | |
*/ |
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 | |
/** | |
* Helper function that checks an array for string keys aka an associative array. | |
* | |
* @author Davey Jacobson <daveyjake21 [at] geemail [dot] com> | |
* | |
* @param array $array Array to check. | |
* | |
* @return bool True if associative. False if not. | |
*/ |
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
// Complete List of VSCode Defaults: https://vscode.readthedocs.io/en/latest/getstarted/settings | |
{ | |
// Most Commonly Used | |
// Controls auto save of dirty files. Accepted values: 'off', 'afterDelay', 'onFocusChange' (editor loses focus), 'onWindowChange' (window loses focus). If set to 'afterDelay', you can configure the delay in 'files.autoSaveDelay'. | |
"files.autoSave": "off", | |
// Controls the font size in pixels. | |
"editor.fontSize": 14, |
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 | |
/** | |
* Should ACF ever become disabled or deactivated for any reason | |
* these functions will ensure that nothing dies in the process. | |
* | |
* These functions were inspired by {@author Steve Grunwell} and | |
* {@author Bill Erickson}. Their work can be viewed, respectively, | |
* at {@link https://stevegrunwell.com} and | |
* {@link https://www.billerickson.net}. | |
* |
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 | |
/** | |
* Developer API: Snippets for common WordPress configuration setups. | |
* | |
* IMPORTANT: You MUST defined the `const` variables in this file before | |
* implementing it into your current project. | |
* | |
* @link https://codex.wordpress.org/Function_Reference/register_taxonomy | |
* @link https://codex.wordpress.org/Function_Reference/register_post_type | |
* |