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 | |
function maybePostLink( $field ) { | |
$loopObject = \Bricks\Query::get_loop_object(); | |
if ( ! is_array( $loopObject ) ) return false; | |
$post_id = $loopObject[$field] ?? ''; // actual field | |
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
jQuery(document).ready(function($) { | |
/* variables to customise */ | |
let animationDuration = 400; /* animation duration for scrolling */ | |
let animationTimeout = 400; /* how long to wait before scrolling the user, needs to be long enough for page to finish changing height */ | |
let scrollOffset = 100; /* the gap between the top of the viewport to the opened accordion item */ | |
$('.oxy-pro-accordion_header').on('click', function() { | |
let hash = '#' + $(this).attr('ID'); | |
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
jQuery(document).ready(function($) { | |
const player = document.querySelector('#%%ELEMENT_ID%% vime-player'); | |
player.addEventListener('mouseenter', () => { | |
player.play(); | |
}); | |
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 | |
$images = get_field('gallery'); | |
if( $images ): ?> | |
<?php foreach( $images as $image ): ?> | |
<div class="cell"> | |
<img src="<?php echo esc_url($image['sizes']['thumbnail']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" /> | |
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
%root% { | |
clip-path: inset( -100vw 0 -100vw -100vw ); | |
position: relative; | |
} | |
%root%::after { | |
content: ''; | |
border-top: 4px solid; | |
position: absolute; | |
bottom: calc(-1 * var(--space-xs)); |