A mix of CSS-Tricks and CSS Guidelines
- Compass
- Two (2) space indentation, not tabs
/** | |
* 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 |
A mix of CSS-Tricks and CSS Guidelines
<?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 |
<?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; |
A simple mixin to help with adding breakpoints to your SCSS.
A Pen by Erik Uunila on CodePen.