-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-homepage.php
122 lines (111 loc) · 2.99 KB
/
page-homepage.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
get_header();
?>
<div class="container-dark container-top">
<div class="container">
<div class="row">
<div class="col-md-4 container-logo">
<a class="logo" href="<?php echo site_url() ?>"><img src="<?php echo get_template_directory_uri() ?>/img/lincoln-lug-logo.svg" alt="Lincoln LUG"></a>
<span class="sr-only">Lincoln Linux User Group</span>
</div>
<div class="col-md-7 col-md-offset-1">
<?php
// About Lincoln LUG
iewp_content_snippet( 13 );
?>
</div>
</div>
</div>
</div>
<div class="container-light">
<div class="container">
<?php
// Show latest meeting
$args = array (
'post_type' => 'lug_meeting',
'post_status' => 'publish',
'posts_per_page' => 1,
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="row">
<div class="col-md-6">
<h2><i class="fa fa-calendar"></i> Next Meeting</h2>
<?php
// Post meta
$meta = iewp_lug_meeting_get_post_meta( $post->ID );
echo '<h2><a href="' . get_the_permalink() . '">' . date( 'l jS F g:i A', $meta['startdate_timestamp'] ) . '</a></h2>';
the_content();
echo '<p><strong>Venue:</strong><br>';
if( $meta['venue_website'] != '' )
{
echo '<a href="' . $meta['venue_website'] . '" target="_blank">' . $meta['venue_name'] . '</a><br>';
}
else
{
echo $meta['venue_name'] . '<br>';
}
echo $meta['venue_address_street'] . ', ' . $meta['venue_address_city'] . '<br>';
echo $meta['venue_address_postcode'] . '</p>';
// Structured data
echo iewp_lug_meeting_structured_data( $post->ID );
?>
</div>
<div class="col-md-5 col-md-offset-1">
<h2><i class="fa fa-map"></i> Location</h2>
<a class="attachment" href="https://maps.google.com/maps?q=<?php echo $meta['venue_address_postcode'] ?>" target="_blank">
<img src="https://maps.google.com/maps/api/staticmap?center=<?php echo $meta['venue_address_postcode'] ?>&zoom=12&size=600x300&maptype=roadmap&markers=color:ORANGE|label:A|<?php echo $meta['venue_address_postcode'] ?>&scale=2&sensor=false " alt="Lincoln LUG meeting location">
</a>
</div>
</div>
<?php
}
}
// Reset the loop
wp_reset_postdata();
?>
</div>
</div>
<div class="container-dark">
<div class="container">
<div class="row">
<div class="col-md-6">
<?php
// IRC info
iewp_content_snippet( 14 );
?>
</div>
<div class="col-md-6">
<?php
// Mailing List
iewp_content_snippet( 74 );
?>
</div>
</div>
</div>
</div>
<div class="container-light">
<div class="container">
<div class="row">
<div class="col-md-7">
<?php
// FAQs
iewp_content_snippet( 16 );
?>
</div>
<div class="col-md-4 col-md-offset-1">
<?php
// Social info
iewp_content_snippet( 76 );
iewp_content_snippet( 18 );
?>
</div>
</div>
</div>
</div>
<?php
get_footer();
?>