<?php use traq\helpers\Atom; // Entries $entries = array(); foreach ($tickets as $ticket) { $entries[] = array('title' => $ticket->summary, 'id' => "tickets:{$ticket->ticket_id}", 'updated' => Time::date("c", $ticket->created_at), 'link' => "http://" . $_SERVER['HTTP_HOST'] . Request::base($ticket->href()), 'author' => array('name' => $ticket->user->name), 'content' => array('type' => "XHTML", 'data' => $ticket->body)); } // Make feed $feed = new Atom(array('title' => l('x_ticket_feed', $project->name), 'link' => "http://" . $_SERVER['HTTP_HOST'] . Request::base(), 'feed_link' => "http://" . $_SERVER['HTTP_HOST'] . Request::requestUri(), 'updated' => $entries[0]['updated'], 'entries' => $entries)); // Output feed header("Content-type: text/plain"); print $feed->build();
<div class="right w500"> <?php echo Message::render(); ?> <h3>Title: <?php echo $message->title; ?> </h3> <p>From: <?php echo $message->from->username; ?> </p> <p>Content: <?php echo $message->message; ?> </p> <p>Date: <?php echo Time::date($m->created); ?> </p> <p><?php echo html::anchor('message/delete/' . $message->id, 'Delete'); ?> </p> </div>
<p>You do not have a character yet, <?php echo html::anchor('character', 'create one?'); ?> .</p> <?php } ?> </div> <div class="right"> <h2>History</h2> <ul class="no-bullets history"> <?php foreach ($history as $h) { ?> <li><span><?php echo Time::date($h->time, NULL); ?> :</span> <?php echo $h->history; ?> </li> <?php } ?> </ul> </div>