Skip to content

Instantly share code, notes, and snippets.

@mpaccione
Created June 23, 2020 00:06
Show Gist options
  • Save mpaccione/35908d4b792e72772ff4f4cfa08db08f to your computer and use it in GitHub Desktop.
Save mpaccione/35908d4b792e72772ff4f4cfa08db08f to your computer and use it in GitHub Desktop.
Modal part of appliance_repeater.php
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">&times;</span>
<div class="modal-icon-wrap">
<div class="modal-icon">
<img class="modal-app-icon" src="" alt="Peak Icon">
</div>
<p class="modal-icon-name"></p>
<p class="intro-text">
<?php echo $modal_text; ?>
</p>
<?php if (have_rows('appliance_logos')){ ?>
<div class="modal-logos">
<?php while (have_rows('appliance_logos')) : the_row();
$logo = get_sub_field('logo');
?>
<img src="<?php echo $logo['url']; ?>" alt="<?php echo $logo['alt']; ?>" />
<?php endwhile; ?>
</div>
<?php } else { ?>
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/modal_brands.svg" alt="Peak Brands">
<?php } ?>
<p class="small-text">Don’t see your brand? No worries, contact us and we’ll see if we can service your appliance.</p>
<hr>
<a class="button" href="/schedule-service">Schedule Service</a>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment