?> " title="Click to toggle visibility on live site">Hide</a> </span> </div> <div id="item_<?php print $events_item['id']; ?> _details" class="event-info"> <div class="brief"> <p class="dates"><?php print date("D M jS Y", strtotime($events_item['start_date'])); print $events_item['end_date'] == '0000-00-00' ? '' : ' – ' . date("D M jS Y", strtotime($events_item['end_date'])); ?> </p> <?php print DataDisplay::truncateText($events_item['description'], 25); ?> </div> </div> <p class="groups"><strong>Groups:</strong> <?php print $events_item['Event_groups'] ? implode(', ', Utils::extract('{n}.name', $events_item['Event_groups'])) : 'N/A'; ?> </p> </li> <?php } } else { ?> <li class="empty">No event entries available.</li> <?php }
<ul id="past-list" class="list-display"> <?php if ($past_news) { foreach ($past_news as $record) { ?> <li id="item_<?php print $record['id']; ?> _listing"> <div class="legend"> <a id="item_<?php print $record['id']; ?> " class="toggle-news open" href="#">Hide</a> <strong><?php print DataDisplay::truncateText($record['title'], 5); ?> </strong> <span class="icons"> <a class="edit" href="<?php print $this->xhtmlUrl('edit', array('id' => $record['id'])); ?> " title="Edit this News Item">Edit</a> <a class="delete confirm" href="<?php print $this->xhtmlUrl('delete', array('id' => $record['id'])); ?> " title="Are you sure you want to delete this news article?">Delete</a> <a href="#" id="vis_toggle_<?php print $record['id']; ?> " class="vis_toggle <?php