1 <div class="gigs-calendar"> |
|
2 <table class="gigs calendar <?php echo $upcoming ? 'upcoming' : 'archive' ?>"> |
|
3 <?php if ( !empty($caption) ) : ?> |
|
4 <caption><?php echo $caption; ?></caption> |
|
5 <?php endif; ?> |
|
6 <?php if ( $options['list-headers'] ) : ?> |
|
7 <thead><tr> |
|
8 <?php foreach ( $show_fields as $field ) : ?> |
|
9 <th><?php echo $listFields[$field]; ?></th> |
|
10 <?php endforeach; ?> |
|
11 </tr></thead> |
|
12 <?php endif; ?> |
|
13 <tbody> |
|
14 <?php foreach ( $gigs as $gkey => $g ) : ?> |
|
15 <?php foreach ( $g->performances as $key => $p ) : ?> |
|
16 <tr id="performance-<?php echo $p->id; ?>" class="<?php echo ($gkey % 2) ? 'even' : 'odd'; ?> <?php echo $key == 0 ? 'gig' : 'performance'; ?> gig-<?php echo $g->id; ?> <?php echo dtcGigs::get_gig_css_classes($g) ?>"> |
|
17 <?php |
|
18 if ( $key == 0 ) { |
|
19 $fields = array( |
|
20 'city' => '<td class="city" valign="top">{' . $g->cityState . '}</td>', |
|
21 'country' => '<td class="country" valign="top">{' . $g->country . '}</td>', |
|
22 'venue' => '<td class="venue" valign="top">{' . $g->name . '}</td>', |
|
23 'eventName' => '<td class="eventName" valign="top">{' . $g->eventName . '}</td>', |
|
24 'date' => '<td class="date" valign="top">{' . $g->date . '}</td>', |
|
25 'time' => '<td class="time" valign="top">{' . $p->time . '}</td>', |
|
26 'shortNotes' => '<td class="shortNotes" valign="top">{' . $p->shortNotes . '}</td>', |
|
27 'tickets' => ( $upcoming ? '<td class="tickets icon" valign="top">' . ( !empty($p->link) ? '<a target="_blank" href="' . $p->link . '"><img alt="' . __('Buy Tickets', $gcd) . '" title="' . __('Buy Tickets', $gcd) . '" class="clickable tickets" src="' . $folder . 'images/money_dollar.png" /></a>' : '') . '</td>' : '' ), |
|
28 'map' => '<td class="map icon" valign="top">' . ($g->mapLink ? '<a target="_blank" href="' . $g->mapLink . '"><img alt="' . __('Map', $gcd) . '" title="' . __('Map', $gcd) . '" class="clickable map" src="' . $folder . 'images/world.png" /></a>' : '') . '</td>', |
|
29 ); |
|
30 } else { |
|
31 $fields = array( |
|
32 'city' => '<td class="city" valign="top"></td>', |
|
33 'country' => '<td class="country" valign="top"></td>', |
|
34 'venue' => '<td class="venue" valign="top"></td>', |
|
35 'eventName' => '<td class="eventName" valign="top"></td>', |
|
36 'date' => '<td class="date" valign="top"></td>', |
|
37 'time' => '<td class="time" valign="top">{' . $p->time . '}</td>', |
|
38 'shortNotes' => '<td class="shortNotes" valign="top">{' . $p->shortNotes . '}</td>', |
|
39 'tickets' => ( $upcoming ? '<td class="tickets icon" valign="top">' . ( !empty($p->link) ? '<a target="_blank" href="' . $p->link . '"><img alt="' . __('Buy Tickets', $gcd) . '" title="' . __('Buy Tickets', $gcd) . '" class="clickable tickets" src="' . $folder . 'images/money_dollar.png" /></a>' : '') . '</td>' : '' ), |
|
40 'map' => '<td class="map icon" valign="top"></td>', |
|
41 ); |
|
42 } |
|
43 echo dtcGigs::selectFields($fields, $g); |
|
44 ?> |
|
45 </tr> |
|
46 <?php endforeach; ?> |
|
47 <?php endforeach; ?> |
|
48 </tbody> |
|
49 </table> |
|
50 <?php if ( empty($gigs) && $upcoming ) : ?> |
|
51 <div class="no-gigs"><?php echo $options['no-upcoming']; ?></div> |
|
52 <?php elseif ( empty($gigs) ) : ?> |
|
53 <div class="no-gigs"><?php echo $options['no-past']; ?></div> |
|
54 <?php endif; ?> |
|
55 </div> |
|