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
$("form > input").keyup(function () { | |
var e = !1; | |
$("form > input").each(function () { | |
"" == $(this).val() && (e = !0); | |
}), | |
e ? $("#submit").attr("disabled", "disabled") : $("#submit").removeAttr("disabled"); | |
}); |
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
.slick-list { | |
padding: 0 20% 0 0 !important; | |
} |
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 | |
the_terms( get_the_ID(), 'event-type', '<ul class="event-types"><li>', '</li><li>', '</li></ul>' ); | |
?> | |
<?php | |
//save them to a variable | |
<?php $terms = wp_get_post_terms(get_the_ID(), 'event-type'); | |
//echo them out | |
if ( ! empty( $event_terms ) && ! is_wp_error( $event_terms ) ) : |
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
mklink /J "C:\Websites\Pixelstrike Creative\Peak Season Workforce\wp-content\themes\psc-starter\node_modules" C:\Websites\node_modules |
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
$('.page-template-about .dropdown-menu a').click(function(event) { | |
//don't reload the page and jump to that section | |
event.preventDefault(); | |
//get the section to jump to | |
var hash = this.hash.substr(1); | |
//offset the nav height for fixed nav | |
var navHeight = $('#wrapper-navbar').outerHeight(); | |
var sectionOffset = $('#' + hash).offset().top; | |
//jump to the section programatically | |
$('html, body').animate({ |
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
if (window.location.href.indexOf("requirements") > -1 && window.location.href.indexOf("#") > -1) { | |
//get the text after the # | |
var tab = window.location.href.split('#')[1]; | |
//if text is highResidency | |
if (tab == 'highResidency') { | |
$('#collapse-content-0').show(); | |
} else { | |
$('#collapse-content-1').show(); | |
} | |
} |
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 show_upcoming_events( $query ) { | |
if( is_admin() ) { | |
return $query; | |
} | |
if ( ( isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == 'event' ) ) { | |
$today = date('Y-m-d H:i:s', strtotime("-1 days")); | |
$meta_query = array( |
NewerOlder