]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
showAuthor() minor update. Using a single anchor to wrap both avatar and
authorsarven <csarven@plantard.controlezvous.ca>
Thu, 15 Jan 2009 00:03:06 +0000 (00:03 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Thu, 15 Jan 2009 00:03:06 +0000 (00:03 +0000)
nickname instead of two anchors.

lib/noticelist.php

index 71db067d08e0e7cf842180f23aa7f885b5ca92d2..45d4abb2933ace410e7e1007afea9d8c60551d3a 100644 (file)
@@ -191,7 +191,8 @@ class NoticeListItem
     function showStart()
     {
         // XXX: RDFa
-        common_element_start('li', array('class' => 'notice_single hentry',
+        // TODO: add notice_type class e.g., notice_video, notice_image
+        common_element_start('li', array('class' => 'hentry notice',
                                          'id' => 'notice-' . $this->notice->id));
     }
 
@@ -224,8 +225,11 @@ class NoticeListItem
     function showAuthor()
     {
         common_element_start('span', 'vcard author');
+        common_element_start('a', array('href' => $this->profile->profileurl),
+                                        'class' => 'url');
         $this->showAvatar();
         $this->showNickname();
+        common_element_end('a');
         common_element_end('span');
     }
 
@@ -241,18 +245,17 @@ class NoticeListItem
     function showAvatar()
     {
         $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
-        common_element_start('a', array('href' => $this->profile->profileurl));
+
         common_element('img', array('src' => ($avatar) ?
                                     common_avatar_display_url($avatar) :
                                     common_default_avatar(AVATAR_STREAM_SIZE),
-                                    'class' => 'avatar stream photo',
+                                    'class' => 'avatar photo',
                                     'width' => AVATAR_STREAM_SIZE,
                                     'height' => AVATAR_STREAM_SIZE,
                                     'alt' =>
                                     ($this->profile->fullname) ?
                                     $this->profile->fullname :
                                     $this->profile->nickname));
-        common_element_end('a');
     }
 
     /**
@@ -265,8 +268,7 @@ class NoticeListItem
 
     function showNickname()
     {
-        common_element('a', array('href' => $this->profile->profileurl,
-                                  'class' => 'nickname fn url'),
+        common_element('span', array('class' => 'nickname fn'),
                        $this->profile->nickname);
     }