This file contains hidden or 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
//Create a slug | |
function createSlug($text) { | |
// Convert the string to lowercase | |
$lowercaseText = strtolower($text); | |
// Replace spaces with hyphens | |
$slug = preg_replace('/[^a-zA-Z0-9]/', '-', $lowercaseText); | |
return $slug; | |
} |
This file contains hidden or 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
//Create a slug | |
function createSlug($text) { | |
// Convert the string to lowercase | |
$lowercaseText = strtolower($text); | |
// Replace non-number/letters with hyphens | |
$slug = preg_replace('/[^a-zA-Z0-9]/', '-', $lowercaseText); | |
return $slug; | |
} |
This file contains hidden or 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
<div class="outer-wrapper bg-image" style = "background-image: url('<?php echo $sectionOne['image']['url']; ?>');" role = "img" aria-label = "<?php echo $sectionOne['image']['alt']; ?>"></div><!-- .outer-wrapper --> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder