]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ModPlus and some layouting issues regarding fixes
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 5 Jul 2014 23:37:31 +0000 (01:37 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 5 Jul 2014 23:37:31 +0000 (01:37 +0200)
lib/noticelistitem.php
lib/threadednoticelist.php
plugins/ModPlus/ModPlusPlugin.php
plugins/ModPlus/css/modplus.css

index 0527f0bf0c1ab6ee25e323f05effefe3f0dd82da..57207339a912d9ac0ae5fbe0f504db5cbb2a1e90 100644 (file)
@@ -200,10 +200,13 @@ class NoticeListItem extends Widget
                        'class' => 'h-card p-author',
                        'title' => $this->profile->getNickname());
 
-        $this->out->elementStart('a', $attrs);
-        $this->showAvatar($this->profile);
-        $this->out->text($this->profile->getStreamName());
-        $this->out->elementEnd('a');
+        if (Event::handle('StartShowNoticeItemAuthor', array($this->profile, $this->out, &$attrs))) {
+            $this->out->elementStart('a', $attrs);
+            $this->showAvatar($this->profile);
+            $this->out->text($this->profile->getStreamName());
+            $this->out->elementEnd('a');
+            Event::handle('EndShowNoticeItemAuthor', array($this->profile, $this->out));
+        }
     }
 
     function showAddressees()
index e2f9f0955fea5427c2c359b0a0e80413758106e0..15d286dbf97529c621e376461615881e243924d0 100644 (file)
@@ -371,6 +371,11 @@ class ThreadedNoticeListMoreItem extends NoticeListItem
         $this->out->elementStart('li', array('class' => 'notice-reply-comments'));
     }
 
+    function showEnd()
+    {
+        $this->out->elementEnd('li');
+    }
+
     function showMiniForm()
     {
         $id = $this->notice->conversation;
index 682545327d27bb5f1562148c6871f2da6955f306..945a649f304c11a814a5508ada031662844983c5 100644 (file)
@@ -83,9 +83,9 @@ class ModPlusPlugin extends Plugin
      * @param NoticeListItem $item
      * @return boolean hook value
      */
-    function onStartShowNoticeItem(NoticeListItem $item)
+    function onEndShowNoticeItemAuthor(Profile $profile, HTMLOutputter $out)
     {
-        $this->showProfileOptions($item->out, $item->profile);
+        $this->showProfileOptions($out, $profile);
         return true;
     }
 
index 1e3e15dbb88b2c384567f07de4279493aa1127a8..41132324848e5294d9919cb3c8f07fad6bed74c6 100644 (file)
@@ -5,7 +5,7 @@
     background: url(../../theme/base/images/icons/twotone/green/admin.gif) no-repeat 8px 8px white;
     border: solid 1px #c0c0c0;
 
-    margin-top: 56px;
+    margin-top: 32px;
 
     padding: 6px 16px;
     padding-left: 32px;