-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery-child.php
41 lines (23 loc) · 881 Bytes
/
gallery-child.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/*Template Name: Gallery Child Page*/
get_header();
?>
<?php
$gallery_images = get_field('gallery_images');
?>
<section class="u-textCenter gallery-navigation-div [ amberBorder ]" >
<h2 class="u-margin-t-flush [ page-title ]">Gallery: <span class="u-inlineBlock"><?php echo get_the_title(); ?></span></h2>
<?php include 'partials/loops/children-pages-loop.php'; ?>
</section>
<div class="gallery-div u-textCenter u-cf" id="js-gallery">
<?php if( $gallery_images ): ?>
<?php foreach( $gallery_images as $image ): ?>
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['sizes']['386x340']; ?>" alt="<?php echo $image['alt']; ?>">
</a>
<?php endforeach; ?>
<?php else: ?>
<p>No images at the moment for this section!</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>