]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticelist.php
Fix a UI typo which appear when using $config['site']['indent'] = null
[quix0rs-gnu-social.git] / lib / noticelist.php
index c6f964662fe73285793d0b782e9f7359b2db512b..86b0b896046f136c75bbcac56a741128556a9f77 100644 (file)
@@ -263,11 +263,12 @@ class NoticeListItem extends Widget
 
     function showStart()
     {
-        // XXX: RDFa
-        // TODO: add notice_type class e.g., notice_video, notice_image
-        $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id;
-        $this->out->elementStart('li', array('class' => 'hentry notice',
-                                             'id' => 'notice-' . $id));
+        if (Event::handle('StartOpenNoticeListItemElement', array($this))) {
+            $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id;
+            $this->out->elementStart('li', array('class' => 'hentry notice',
+                                                 'id' => 'notice-' . $id));
+            Event::handle('EndOpenNoticeListItemElement', array($this));
+        }
     }
 
     /**
@@ -616,6 +617,7 @@ class NoticeListItem extends Widget
             $this->out->elementStart('span', 'repeat vcard');
 
             $this->out->raw(_('Repeated by'));
+            $this->out->raw(' ');
 
             $this->out->elementStart('a', $attrs);
             $this->out->element('span', 'fn nickname', $repeater->nickname);
@@ -706,6 +708,9 @@ class NoticeListItem extends Widget
 
     function showEnd()
     {
-        $this->out->elementEnd('li');
+        if (Event::handle('StartCloseNoticeListItemElement', array($this))) {
+            $this->out->elementEnd('li');
+            Event::handle('EndCloseNoticeListItemElement', array($this));
+        }
     }
 }