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
$positions: ( | |
static: 'static', | |
relative: 'relative', | |
absolute: 'absolute', | |
fixed: 'fixed', | |
stick: 'sticky' | |
); | |
$grid-breakpoints: ( | |
xs: 0, |
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
// include Lenis script where appropriate (e.g. enqueued in setup.php). | |
// https://unpkg.com/[email protected]/dist/lenis.min.js | |
// Lenis settings | |
const lenis = new Lenis({ | |
duration: 1.2, | |
easing: (t) => (t === 1 ? 1 : 1 - Math.pow(2, -10 * t)), | |
direction: "vertical", | |
gestureDirection: "vertical", | |
smooth: true, |
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 $count = $query->found_posts; ?> |
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 | |
$id = get_the_ID(); | |
?> | |
<article class="<?= get_post_type() ?>-entry cpt-entry"> | |
<div class="d-flex"> | |
<div class="col-12 col-lg-6"> | |
<div class="img-holder p-5 h-100" style="background: url(<?= get_the_post_thumbnail_url() ?>) no-repeat center / cover;"></div> |
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
// Populate Form Fields | |
// ID | |
add_filter( 'gform_field_value_ID', 'populate_ID' ); | |
function populate_ID( $value ) { | |
$id = get_the_ID(); | |
return $id; | |
} | |
// Job Title | |
add_filter( 'gform_field_value_jobTitle', 'populate_jobTitle' ); | |
function populate_jobTitle( $value ) { |
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
<a class="-inline-block" href="#" data-bs-toggle="modal" data-bs-target="#imageModal"> | |
<img class="img-fluid animate__animated fadeIn animate__slow" onclick="showModal()" src="{!! $img['url'] !!}" alt="{!! $img['alt'] !!}" data-bs-target="#imageCarousel" data-bs-slide-to="{!! $loop->index !!}"/> | |
</a> |
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 | |
/** | |
* We use WordPress's init hook to make sure | |
* our blocks are registered early in the loading | |
* process. | |
* | |
* @link https://developer.wordpress.org/reference/hooks/init/ | |
*/ | |
function register_acf_blocks() { | |
/** |
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 { | |
width: 100%; | |
max-width: 960px; | |
.slick-list { | |
overflow: visible; | |
.slick-slide { | |
opacity: 0.2; | |
transition: opacity 400ms ease-out; |
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
// Custom search form | |
add_filter('get_search_form', function () { | |
$form = ''; | |
echo template('partials.search'); | |
return $form; | |
}); |
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 | |
// Get current post ID. | |
$id = get_the_ID(); | |
// Get Relationship from post using it's ID | |
$posts = get_field('posts', $id); | |
$post_ids = array(); | |
$post_types = array(); |
NewerOlder