Created
June 23, 2020 00:06
-
-
Save mpaccione/35908d4b792e72772ff4f4cfa08db08f to your computer and use it in GitHub Desktop.
Modal part of appliance_repeater.php
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
<!-- The Modal --> | |
<div id="myModal" class="modal"> | |
<!-- Modal content --> | |
<div class="modal-content"> | |
<span class="close">×</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