/**
* show the list of notices
*
- * "Uses up" the stream by looping through it. So, probably cannot
+ * "Uses up" the stream by looping through it. So, probably can't
* be called twice on the same list.
*
* @return int count of notices listed.
{
$this->out->elementStart('div', 'entry-content');
$this->showNoticeLink();
- $this->showNoticeLocation();
$this->showNoticeSource();
+ $this->showNoticeLocation();
$this->showContext();
$this->out->elementEnd('div');
}
* show the link to the main page for the notice
*
* Displays a link to the page for a notice, with "relative" time. Tries to
- * get remote notice URLs correct, but does not always succeed.
+ * get remote notice URLs correct, but doesn't always succeed.
*
* @return void
*/
return;
}
+ $lat = $this->notice->lat;
+ $lon = $this->notice->lon;
+ $latlon = (!empty($lat) && !empty($lon)) ? $lat.';'.$lon : '';
+
$url = $location->getUrl();
+ $this->out->elementStart('span', array('class' => 'location'));
+ $this->out->text(_('at'));
if (empty($url)) {
- $this->out->element('span', array('class' => 'location'), $name);
+ $this->out->element('span', array('class' => 'geo',
+ 'title' => $latlon),
+ $name);
} else {
- $this->out->element('a', array('class' => 'location',
+ $this->out->element('a', array('class' => 'geo',
+ 'title' => $latlon,
'href' => $url),
$name);
}
+ $this->out->elementEnd('span');
}
/**
* show a link to reply to the current notice
*
* Should either do the reply in the current notice form (if available), or
- * link out to the notice-posting form. A little flakey, does not always work.
+ * link out to the notice-posting form. A little flakey, doesn't always work.
*
* @return void
*/