-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsingle-cc_chevent.php
74 lines (72 loc) · 3.16 KB
/
single-cc_chevent.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
<?php
/**
* The template for displaying all single posts and attachments
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
get_header();
the_post();
global $post;
?>
<section class="main-content">
<div class="main-content-area">
<header class="entry-header">
<div class="grid-columns">
<div class="use-12-columns align-center">
<h1 class="entry-title"><?php the_title() ?></h1>
</div>
</div>
</header>
<section class="entry-main-content">
<div class="grid-columns">
<aside class="use-3-columns grid-sidebar left">
<div class="entry-date-container no-thumb">
<div class="entry-date ">
<span class="weekday"><?php echo mysql2date( 'l', $post->event_dtstart_date ); ?></span>
<span class="day"><?php echo mysql2date( 'd', $post->event_dtstart_date ); ?></span>
<span class="month"><?php echo mysql2date( 'F', $post->event_dtstart_date ); ?></span>
</div>
</div>
<div class="entry-meta event-meta">
<?php if (!empty($post->event_location)): ?>
<div class="item-meta">
<strong>Location</strong>
<span class="meta-data"><?php echo $post->event_location; ?></span>
</div>
<?php endif; ?>
<?php if (!empty($post->event_dtstart_time)): ?>
<div class="item-meta">
<strong>From</strong>
<span class="meta-data"><?php echo mysql2date('g:ia',$post->event_dtstart_time); ?></span>
</div>
<?php endif; ?>
<?php if (!empty($post->event_dtend_time)): ?>
<div class="item-meta">
<strong>To</strong>
<span class="meta-data"><?php echo mysql2date('g:ia',$post->event_dtend_time); ?></span>
</div>
<?php endif; ?>
<?php if (!empty($post->event_signups)): ?>
<div class="item-meta align-center">
<a href="<?php echo $post->event_signups ?>" class="button secondary">Sign up event</a>
</div>
<?php endif; ?>
<?php if (!empty($post->event_url)): ?>
<div class="item-meta align-center">
<a href="<?php echo $post->event_url ?>" class="button secondary">More info</a>
</div>
<?php endif; ?>
</div>
</aside>
<div class="use-9-columns">
<div class="entry-post-content">
<?php the_content(); ?>
</div>
</div>
</div>
</section>
</div>
</section>
<?php get_footer(); ?>