Skip to content

Instantly share code, notes, and snippets.

// The keys correspond with columns in the `facetwp_index` table
$dateparams = array(
'facet_name' => 'keydate'
);
//change the way the date works for key date on calendar page
function my_facetwp_calendar_row( $dateparams, $class ) {
if ( 'keydate' == $dateparams['facet_name'] ) {
$raw_value = $dateparams['facet_value'];
$dateparams['facet_display_value'] = date( 'm/j/Y', strtotime( $raw_value ) );
@mixin bp($point) {
@if $point == phone {
@media only screen and (min-width:320px) and (max-width:479px) { @content; }
}
@else if $point == small_tablet {
@media only screen and (min-width:480px) and (max-width:767px) { @content; }
}
@else if $point == mobi_and_tab {
@media only screen and (max-width:767px) { @content; }
}