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( |
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
#heroDots { | |
position: absolute; | |
width: 100%; | |
bottom: 50px; | |
left: 50%; | |
transform: translateX(-50%); | |
.slick-dots { | |
list-style: none; | |
padding-left: 0; | |
display: flex; |
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 $image = get_field('about_img'); | |
if( $image ) { | |
echo wp_get_attachment_image( $image, 'full', "", array( "class" => "img-fluid" ) ); | |
} ?> |
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
<p><?php echo wp_trim_words( get_field('content_english'), 20, '...<a href = "' . get_permalink() . '" class = "teal fw-bold">Read More</a></p>' ) . '</p>'; ?> |
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 if ($sectionTwo['video_type'] == 'file') { ?> | |
<?php $video = $sectionTwo['video_file']; ?> | |
<video class = "w-100" controls poster="<?php echo get_stylesheet_directory_uri() . '/img/poster.jpg'; ?>"> | |
<source src="<?php echo $sectionTwo['vide_file]; ?>" type="video/mp4"> | |
Your browser does not support the video tag. | |
</video> | |
<?php } else { ?> | |
<div class="embed-container"> | |
<?php echo $sectionTwo['youtube_video']; ?> | |
</div><!-- .embed-container --> |
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 $referrer = $_SERVER['HTTP_REFERER']; ?> | |
<?php if (str_contains($referrer, 'simplify-the-market-blog')) { | |
$href = "javascript:history.back()"; | |
else { | |
$href = "/simplify-the-market-blog"; | |
} ?> | |
<a href="<?php echo $href; ?>" class="btn"><i class="la la-angle-left"></i> Back</a> |
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
.facetwp-radio { | |
background-image: none; | |
background-color: gray; | |
padding: 5px; | |
display: inline-block; | |
margin: 5px; | |
} | |
.facetwp-radio.checked { | |
background-image: none; |
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 psc_image_editor_output_format( $formats ) { | |
$formats['image/png'] = 'image/webp'; | |
return $formats; | |
} | |
add_filter( 'image_editor_output_format', 'psc_image_editor_output_format' ); |
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
//HTML | |
<div class = "scrollToTopBtn"><img src="<?php echo get_stylesheet_directory_uri() . '/img/chevron.svg'; ?>" alt="jump to top of page">TOP</div><!-- #jumpScroll --> | |
//JS | |
var scrollToTopBtn = document.querySelector(".scrollToTopBtn") | |
var rootElement = document.documentElement | |
function handleScroll() { | |
// Do something on scroll | |
var scrollTotal = rootElement.scrollHeight - rootElement.clientHeight |
NewerOlder