web/wp-content/plugins/gigs-calendar/templates/basic/gig-post.php
branchwordpress
changeset 112 fb7cd02b9848
parent 111 6b96085291d7
child 123 561aa6d282f6
equal deleted inserted replaced
111:6b96085291d7 112:fb7cd02b9848
     1 <div class="gig-post <?php echo dtcGigs::get_gig_css_classes($g) ?>" id="gig-<?php echo $g->id ?>">
       
     2 	<table>
       
     3 		<tbody>
       
     4 			<?php if ( !empty($g->eventName) ) : ?>
       
     5 				<tr class="eventName">
       
     6 					<td class="bold" valign="top"><?php echo $options['eventName-label'] ?></td>
       
     7 					<td><div class="eventName"><?php echo $g->eventName ?></div></td>
       
     8 				</tr>
       
     9 			<?php endif; ?>
       
    10 			<tr class="when">
       
    11 				<td class="bold" valign="top"><?php _e('When', $gcd); ?></td>
       
    12 				<td>
       
    13 					<div class="date"><?php echo dtcGigs::dateFormat($g->date, 'long'); ?></div>
       
    14 					<?php while ( $p->fetch() ) : ?>
       
    15 						<div class="performance">
       
    16 							<span class="time"><?php echo dtcGigs::timeFormat($p->time); ?></span>
       
    17 							<?php if ( !empty($p->shortNotes) ) : ?>
       
    18 								<span class="separator shortNotes">-</span>
       
    19 								<span class="shortNotes"><?php echo $p->shortNotes; ?></span>
       
    20 							<?php endif; ?>
       
    21 							<span class="separator ages">-</span>
       
    22 							<span class="ages"><?php echo $p->ages; ?></span>
       
    23 							<?php if ( !empty($p->link) ) : ?>
       
    24 								<a href="<?php echo $p->link; ?>"><img class="buy" src="<?php echo $image_folder; ?>money_dollar.png" alt="<?php _e('Buy Tickets', $gcd); ?>" title="<?php _e('Buy Tickets', $gcd); ?>" /></a>
       
    25 							<?php endif; ?>
       
    26 						</div>
       
    27 					<?php endwhile; ?>
       
    28 				</td>
       
    29 			</tr>
       
    30 			<tr class="where">
       
    31 				<td class="bold" valign="top"><?php _e('Where', $gcd); ?></td>
       
    32 				<td class="venue">
       
    33 					<?php if ( $v->private ) : ?>
       
    34 						<div class="name"><?php _e('Private Venue', $gcd); ?></div>
       
    35 					<?php else : ?>
       
    36 						<div class="name">
       
    37 							<?php if ( !empty($v->link) ) : ?>
       
    38 								<a target="_blank" href="<?php echo $v->link; ?>"><?php echo $v->name; ?></a>
       
    39 							<?php else : ?>
       
    40 								<?php echo $v->name; ?>
       
    41 							<?php endif; ?>
       
    42 							(<a target="_blank" href="<?php echo $v->getMapLink(); ?>"><?php _e('map', $gcd); ?></a>)
       
    43 						</div>
       
    44 						<div class="address"><?php echo nl2br($v->getAddress()); ?></div>
       
    45 						<?php if ( !empty($v->notes) ) : ?>
       
    46 							<p class="notes"><?php echo nl2br($v->notes); ?></p>
       
    47 						<?php endif ?>
       
    48 					<?php endif; ?>
       
    49 				</td>
       
    50 			</tr>
       
    51 			<?php if ( !empty($g->notes) ) : ?>
       
    52 				<tr class="other"><td class="bold" valign="top"><?php _e('Other Info', $gcd); ?></td><td><div class="notes"><?php echo nl2br($g->notes); ?></div></td></tr>
       
    53 			<?php endif; ?>
       
    54 		</tbody>
       
    55 	</table>
       
    56 	<?php if ( !empty($options['parent']) ) : ?>
       
    57 		<p>&laquo; <a href="<?php echo get_permalink($options['parent']); ?>"><?php _e('Back to the calendar', $gcd); ?></a></p>
       
    58 	<?php endif; ?>
       
    59 </div>
       
    60 <?php return false; ?>