-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-about.php
81 lines (66 loc) · 1.91 KB
/
page-about.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Fandomonium
*/
get_header();
?>
<main id="primary" class="site-main">
<section class=site-hero>
<div class="hero-no-img">
<?php the_title('<h1 class="page-title">', '</h1>'); ?>
<?php fandomonium_post_thumbnail(); ?>
</div>
</section>
<section class="about-content">
<?php
while ( have_posts() ) :
the_post(); ?>
<?php
if ( function_exists ( 'get_field' ) ) {
if ( get_field( 'about_the_organization' ) ) { ?>
<article>
<h2>About the organization</h2>
<p><?php the_field( 'about_the_organization' )?></p>
</article>
<?php
}
if ( get_field( 'convention_purpose' ) ) { ?>
<article>
<h2>Convention purpose/statement</h2>
<p><?php the_field( 'convention_purpose' )?></p>
</article>
<?php
}
} ?>
<section class="about-grid">
<article>
<h2>Location</h2>
<?php
$location = get_field('map');
if( $location ): ?>
<div class="acf-map" data-zoom="16">
<div class="marker" data-lat="<?php echo esc_attr($location['lat']); ?>" data-lng="<?php echo esc_attr($location['lng']); ?>"></div>
</div>
<?php endif; ?>
<p><em><?php echo esc_html( $location['address'] ); ?></em></p>
</article>
<section class="contact-form">
<h2>Contact Form</h2>
<?php echo do_shortcode('[contact-form-7 id="9" title="Contact form 1"]'); ?>
</section>
<?php endwhile; // End of the loop. ?>
</section>
</section>
<?php get_template_part('template-parts/page', 'bottom'); ?>
</main><!-- #main -->
<?php
get_footer();