-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-about.php
More file actions
53 lines (48 loc) · 1.35 KB
/
page-about.php
File metadata and controls
53 lines (48 loc) · 1.35 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The template for displaying the About page
*
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package lucien
*/
get_header();
?>
<div class="page-container">
<?php get_sidebar(); ?>
<main id="about" class="single-page">
<?php while ( have_posts() ) : the_post();
$about_image_1 = get_field('about_image_1');
$about_image_2 = get_field('about_image_2');
$about_image_3 = get_field('about_image_3');
$about_image_4 = get_field('about_image_4');
$size = "full";
?>
<div class="about-text">
<?php the_content(); ?>
</div>
<div class="about-images">
<figure class="img">
<?php echo wp_get_attachment_image( $about_image_1, $size ) ?>
</figure>
<?php if($about_image_2): ?>
<figure class="img">
<?php echo wp_get_attachment_image( $about_image_2, $size ) ?>
</figure>
<?php endif; ?>
<?php if($about_image_3): ?>
<figure class="img">
<?php echo wp_get_attachment_image( $about_image_3, $size ) ?>
</figure>
<?php endif; ?>
<?php if($about_image_4): ?>
<figure class="img">
<?php echo wp_get_attachment_image( $about_image_4, $size ) ?>
</figure>
<?php endif; ?>
</div>
<?php endwhile; // End of the loop. ?>
</main><!-- #main -->
</div>
<?php get_footer(); ?>