Skip to content

Commit

Permalink
Removes end date from center column, formats date to keep on two lines
Browse files Browse the repository at this point in the history
Moves up event title to just below image
Removes end date from right column
Moves down and adds 'Presented by' to organization name in right column
  • Loading branch information
bronius committed Jun 13, 2014
1 parent 2e3aa22 commit 70471b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions program-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<?php foreach($events as $index => $event) {
$id = $index;
$filename = $event['Image'];
$datetime = $event['Start Date'] . (isset($event['Start Time']) ? ' ' . $event['Start Time'] . '<br/>' : '');
$datetime .= isset($event['End Date']) ? 'until<br/>' . $event['End Date'] . '<br/>' . $event['End Time'] : '';
$datetime = $event['Start Date'] . (isset($event['Start Time']) ? '<br/>' . $event['Start Time'] . '<br/>' : '');
// $datetime .= isset($event['End Date']) ? 'until<br/>' . $event['End Date'] . '<br/>' . $event['End Time'] : '';
print "<a href=\"#event-$id\" name=\"time-$id\">$datetime</a>\n";
}
?>
Expand All @@ -50,17 +50,17 @@
$description = $event['Description'];
$location = $event['Location'];
$datetime = $event['Start Date'] . (isset($event['Start Time']) ? ' ' . $event['Start Time'] . '' : '');
$datetime .= isset($event['End Date']) ? ' - ' . $event['End Date'] . ' ' . $event['End Time'] : '';
// $datetime .= isset($event['End Date']) ? ' - ' . $event['End Date'] . ' ' . $event['End Time'] : '';
?>
<a href="#event-<?php echo $id; ?>" name="info-<?php echo $id; ?>">
<img src="images/380x245/<?php echo $filename; ?>?<?php echo $id; ?>" />
<div class="text">
<div class="organization"><?php echo $organization; ?>:</div>
<h2><?php echo $eventname; ?></h2>
<?php echo $datetime; ?><br/>
<?php echo $eventname; ?><br/>
<?php echo $location; ?><br/>
<div class="description">
<?php echo $description; ?>
<p class="organization"><?php echo ($organization) ? "Presented by $organization" : ""; ?></p>
</div>
</div>
</a>
Expand Down

0 comments on commit 70471b9

Please sign in to comment.