Beispiel #1
0
?>

<h2>All Events</h2>
<?php 
foreach ($all_events as $evt) {
    echo '<li><a href="' . $evt->get_url() . '">' . zest::render_image($evt->media, array('width' => 100, 'height' => 100)) . $evt->get_date('d m y') . ' - ' . $evt->title . '</a></li>';
}
echo $all_pagination;
?>

<h2>Future Events</h2>
<?php 
foreach ($future_events as $evt) {
    echo '<li><a href="' . $evt->get_url() . '">' . zest::render_image($evt->media, array('width' => 100, 'height' => 100)) . $evt->get_date('d m y') . ' - ' . $evt->title . '</a></li>';
}
echo $future_pagination;
?>

<h2>Past Events</h2>
<?php 
foreach ($past_events as $evt) {
    echo '<li><a href="' . $evt->get_url() . '">' . zest::render_image($evt->media, array('width' => 100, 'height' => 100)) . $evt->get_date('d m y') . ' - ' . $evt->title . '</a></li>';
}
echo $past_pagination;
?>


<?php 
if (isset($footer)) {
    echo $footer;
}



<p>Venue: <?php 
echo $event->venue;
?>
</p>


<h2>Attendees (<?php 
echo count($attendees);
?>
)</h2>
<?php 
foreach ($attendees as $person) {
    echo '<li>' . $person->get_full_name() . '</li>';
}
?>

<?php 
foreach ($event->medias as $m) {
    echo zest::render_image($m, array('width' => 50, 'height' => 50, 'thickbox' => true));
}
?>


<?php 
if (isset($footer)) {
    echo $footer;
}