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
/// map-sort | |
/// Sort map by keys | |
/// @param $map - A SASS map | |
/// @returns A SASS map sorted by keys | |
/// @requires function list-sort | |
/// @author Jake Wilson <jake.e.wilson@gmail.com> | |
@function map-sort($map) { | |
$keys: list-sort(map-keys($map)); | |
$sortedMap: (); | |
@each $key in $keys { |
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 | |
/** | |
* Adds custom classes to the array of body classes. | |
* | |
* @param array $classes Classes for the body element. | |
* @return array (Maybe) filtered body classes. | |
*/ | |
function wpcampus_body_classes( $classes ) { | |
// Adds a class of no-sidebar to custom no-sidebar page template. | |
if ( is_page_template('page-no-sidebar.php') ) { |
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
@function mapReverse ($map) { | |
$result: null; | |
@if type-of($map) == "map" { | |
$keys: map-keys($map); | |
$map-reversed: (); | |
@for $i from length($keys) through 1 { | |
$map-reversed: map-merge( | |
$map-reversed, |
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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="description" content="DESCRIPTION" /> | |
<title>SITE NAME - SITE DESCRIPTION</title> | |
<link rel="stylesheet" href="RESET_STYLESHEET_URL" media="screen" /> | |
<link rel="stylesheet" href="STYLESHEET_URI" media="screen" /> | |
</head> |