]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Using the default abbr class pattern for geo microformats instead of
authorSarven Capadisli <csarven@status.net>
Tue, 23 Feb 2010 23:59:00 +0000 (00:59 +0100)
committerSarven Capadisli <csarven@status.net>
Tue, 23 Feb 2010 23:59:00 +0000 (00:59 +0100)
the shorthand that I've proposed at
http://microformats.org/wiki/geo-brainstorming#latitude_longitude_shorthand_and_geo_link

If anyone wants to pick up on where the discussion was left off or
get more implementation support by other sites and software, and be
recognized by parsers, I'd be happy to go back to the shorthand.
Because you know, it actually makes a lot of sense.

lib/noticelist.php

index 837cb90faa13bb29a9fdfe0f5734c569995c0650..dcf17be08c5423ab253a021f6fb48999beda5d95 100644 (file)
@@ -438,14 +438,15 @@ class NoticeListItem extends Widget
         $this->out->text(_('at'));
         $this->out->text(' ');
         if (empty($url)) {
-            $this->out->element('span', array('class' => 'geo',
+            $this->out->element('abbr', array('class' => 'geo',
                                               'title' => $latlon),
                                 $name);
         } else {
-            $this->out->element('a', array('class' => 'geo',
-                                           'title' => $latlon,
-                                           'href' => $url),
+            $this->out->elementStart('a', array('href' => $url));
+            $this->out->element('abbr', array('class' => 'geo',
+                                              'title' => $latlon),
                                 $name);
+            $this->out->elementEnd('a');
         }
         $this->out->elementEnd('span');
     }