Last active
January 29, 2024 10:05
-
-
Save johnmccole/2efa062838038ab3be6b882b7fdcf8eb to your computer and use it in GitHub Desktop.
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> | |
</div> | |
<div class="col-12 col-lg-6 d-flex align-items-center"> | |
<div class="d-flex flex-column align-items-start entry-content mx-auto"> | |
<h2 class="section-title text-uppercase"><?= the_title() ?></h2> | |
<?php if( have_rows('sectors_page_builder', $id) ): | |
while( have_rows('sectors_page_builder', $id) ): the_row(); | |
if( get_row_layout() == 'intro_section' ): | |
$content = get_sub_field('content'); ?> | |
<div class="fw-light"> | |
<?= $content ?> | |
</div> | |
<?php endif; ?> | |
<?php endwhile; endif; ?> | |
<a class="btn has-blue-background-color has-white-color text-uppercase" href="<?= the_permalink() ?>">view more</a> | |
</div> | |
</div> | |
</div> | |
</article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment