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
@mixin arrow($direction: 'up', $size: 5px, $color: black) { | |
width: 0; | |
height: 0; | |
@if ($direction == 'up') { | |
border-left: $size solid transparent; | |
border-right: $size solid transparent; | |
border-bottom: $size solid $color; | |
} @else if ($direction == 'down') { | |
border-left: $size solid transparent; |
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 | |
$knownBestFits = []; | |
/** | |
* Find the smallest image to use in a given space with the minimal dimensions provided | |
* If width is the main decider, leave the height set at 0, and vice versa if the height is the main decider | |
* You may use both if a minimum height/width is needed | |
* | |
* @param $imageObj WP Image Object | |
* @param int $minWidth Minimum width the image needs to be |
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 implode_aa( $glue, $array, $key ) { | |
$keep = array(); | |
foreach ( $array as $firstKey ) { | |
foreach ( $firstKey as $k => $v ) { | |
if ( $k === $key ) { | |
$keep[] = $v; | |
} |
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
/*scss/SCSS-Mixins-Functions/_mixin-vertical-flow.scss*/ | |
// @function explode() -- split a string into a list of strings | |
// {string} $string: the string to be split | |
// {string} $delimiter: the boundary string | |
// @return {list} the result list | |
@function explode($string, $delimiter) { | |
$result: (); | |
@if $delimiter == "" { | |
@for $i from 1 through str-length($string) { |
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 | |
$paged = (int) ( get_query_var( 'result-page' ) ?: 1 ); | |
$postsPerPage = get_option('posts_per_page'); | |
$args = array( | |
'post_type' => 'news', | |
'posts_per_page' => $postsPerPage, | |
'paged' => $paged, | |
'orderby' => receive( 'news_orderby', 'date' ), |
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
$breakpoints: ( | |
'xs': 0px, | |
'sm': 768px, | |
'md': 992px, | |
'lg': 1200px, | |
); | |
$gutters: ( | |
'no': 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
@function px2em($px, $unit: 'em'){ | |
@return #{$px / $baseFontSize}#{$unit}; | |
} | |
@function first($list) { | |
@if type-of($list) == 'list' { | |
@return nth($list, 1); | |
} @else { | |
@return $list; | |
} |