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
<?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
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
//<h2 class="divider">HEADER</h2> | |
.divider { | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-webkit-box-align: center; | |
-ms-flex-align: center; | |
align-items: center; | |
width: 100%; |
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
<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 $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
<?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 --> |
NewerOlder