A Pen by Erik Uunila on CodePen.
A simple mixin to help with adding breakpoints to your SCSS.
A Pen by Erik Uunila on CodePen.
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 | |
function isValidTimestamp($timestamp) { | |
return ((string) (int) $timestamp === $timestamp) | |
&& ($timestamp <= PHP_INT_MAX) | |
&& ($timestamp >= ~PHP_INT_MAX); | |
} | |
function get_date_range($startDate, $endDate) { | |
$output = ''; | |
$diff = false; |
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 | |
/** | |
* Change the title of the Featured Image box | |
* | |
* @package emu | |
* @subpackage filters+hooks | |
* | |
*/ | |
function emu_change_featured_image_title() { | |
// Replace post_type with the post type you want to have a required Featured Image |
A mix of CSS-Tricks and CSS Guidelines
- Compass
- Two (2) space indentation, not tabs
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
/** | |
* Search for an asterisk (*) in a string and wrap it with an element | |
* | |
* @example echo findAndWrap($module->get('title'), 'alternate-text') | |
* | |
* @package Erik's Functions | |
* @subpackage utility | |
* | |
* @param string $haystack | String to search |