diff options
author | Evan Prodromou <evan@status.net> | 2009-11-19 11:30:35 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-19 11:30:35 -0500 |
commit | 7e8ce8fe8dce936b678208716e007334abc43b62 (patch) | |
tree | 9b3de5b1a670dd00caf845f1d898b18e7d21aa7c | |
parent | 844a28aa9d29f6a5208948854fbc9af57ec148fd (diff) | |
parent | c721884b52b2d0caf34d0e445596362139af4fb1 (diff) |
Merge branch '0.9.x' into mapstraction
-rw-r--r-- | lib/noticelist.php | 11 | ||||
-rw-r--r-- | plugins/LinkbackPlugin.php | 2 | ||||
-rw-r--r-- | plugins/Realtime/RealtimePlugin.php | 2 |
3 files changed, 10 insertions, 5 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index bf12bb73c..3bad2cf7c 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -199,8 +199,8 @@ class NoticeListItem extends Widget { $this->out->elementStart('div', 'entry-content'); $this->showNoticeLink(); - $this->showNoticeLocation(); $this->showNoticeSource(); + $this->showNoticeLocation(); $this->showContext(); $this->out->elementEnd('div'); } @@ -399,13 +399,18 @@ class NoticeListItem extends Widget $url = $location->getUrl(); + // TODO: Output @title lat and lon on element @class geo + // e.g., class="geo" title="45.5088375;-73.587809" + $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'), $name); } else { - $this->out->element('a', array('class' => 'location', + $this->out->element('a', array('class' => 'geo', 'href' => $url), $name); } + $this->out->elementEnd('span'); } /** diff --git a/plugins/LinkbackPlugin.php b/plugins/LinkbackPlugin.php index 915d15c07..f220fff8f 100644 --- a/plugins/LinkbackPlugin.php +++ b/plugins/LinkbackPlugin.php @@ -59,7 +59,7 @@ class LinkbackPlugin extends Plugin parent::__construct(); } - function onEndNoticeSave($notice) + function onHandleQueuedNotice($notice) { if ($notice->is_local == 1) { // Try to avoid actually mucking with the diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 2cff03d6c..c5fb6de03 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -125,7 +125,7 @@ class RealtimePlugin extends Plugin return true; } - function onEndNoticeSave($notice) + function onHandleQueuedNotice($notice) { $paths = array(); |