-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
90 lines (74 loc) · 2.84 KB
/
index.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
<?php get_header(); ?>
<div class="announcement">
<h2>A limited number of Early Bird tickets are available now! Get them while they last.</h2>
</div>
<a href="#" class="buyNowButton l-fullWidth l-buyNow">
<div class="condensed">Buy Now</div>
</a>
<div class="centerText l-centerText">
<h3 class="centerText__title">Festival Passes</h3>
<p class="centerText__subtitle">3 Day Pass — All Venues.</p>
</div>
<div class="passOptions">
<ul>
<?php if ( have_posts() ) :
// Change Query to post_type of tickets rather than post (default)
$args = array(
'post_type'=> 'ticket',
'meta_key' => 'start_date',
'orderby' => 'meta_value',
'order' => 'ASC',
);
query_posts($args);
// Start the loop.
while ( have_posts() ) : the_post();
?>
<?php if (get_field('status') == "Discounted"): ?>
<li class="passOption passOption--forSale">
<?php elseif (get_field('status') == "Sold Out"): ?>
<li class="passOption passOption--soldOut">
<?php else: ?>
<li class="passOption">
<?php endif ?>
<small class="passOption__date">
<?php echo get_field('start_date');
if ( !empty(get_field('end_date')) ){
echo " – ".get_field('end_date');
} ?>
</small>
<a href="#"><h3 class="passOption__title">
<?php the_title(); ?> — <?php echo '$'.get_field('price')?>
<?php if ( !empty(get_the_content()) ):?>
<span class="passOption__note"><?php the_content() ?></span>
<?php endif ?>
</h3></a>
</li>
<?php
endwhile;
endif;
wp_reset_postdata();
?>
</ul>
</div>
<div class="clearFloat">
</div>
</div>
<div class="starDivider l-starDivider"></div>
<div class="outerContainer">
<div class="centerText l-centerText">
<h3 class="centerText__title">Advance Single-Day Passes</h3>
<p class="centerText__subtitle">All Venues</p>
<p class="centerText__body">Will go live later in the summer, coinciding with the day-schedule announcement.</p>
</div>
</div>
<div class="starDivider l-starDivider"></div>
<div class="outerContainer">
<div class="centerText l-centerText">
<h3 class="centerText__title">Specialty Passes</h3>
<p class="centerText__subtitle">3 day pass — All Venues</p>
<p class="centerText__body">Featuring perks designed to enhance your Lincoln Calling experience, these will go live on May 4, coinciding with first-round lineup announcement.</p>
</div>
<a href="#" class="buyNowButton l-fullWidth l-buyNow">
<div class="condensed">Buy Now</div>
</a>
<?php get_footer(); ?>