]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
switch bookmark CSS classes to use dash instead of underscore
authorEvan Prodromou <evan@status.net>
Fri, 31 Dec 2010 00:54:01 +0000 (16:54 -0800)
committerEvan Prodromou <evan@status.net>
Fri, 31 Dec 2010 00:54:01 +0000 (16:54 -0800)
plugins/Bookmark/BookmarkPlugin.php
plugins/Bookmark/bookmark.css

index e6590bce34965500b05ea579d50295ca7915ab64..faddf5aafa279c38e88a10c64d6b41f1c303674f 100644 (file)
@@ -251,14 +251,15 @@ class BookmarkPlugin extends Plugin
             } else {
                 $out->elementStart('h3');
                 $out->element('a',
-                              array('href' => $att->url),
+                              array('href' => $att->url,
+                                    'class' => 'bookmark-title entry-title'),
                               $nb->title);
                 $out->elementEnd('h3');
 
                 $countUrl = common_local_url('noticebyurl',
                                              array('id' => $att->id));
 
-                $out->element('a', array('class' => 'bookmark_notice_count',
+                $out->element('a', array('class' => 'bookmark-notice-count',
                                          'href' => $countUrl),
                               $att->noticeCount());
             }
@@ -270,7 +271,7 @@ class BookmarkPlugin extends Plugin
 
             if (!empty($replies) || !empty($tags)) {
 
-                $out->elementStart('ul', array('class' => 'bookmark_tags'));
+                $out->elementStart('ul', array('class' => 'bookmark-tags'));
             
                 foreach ($replies as $reply) {
                     $other = Profile::staticGet('id', $reply);
@@ -298,7 +299,7 @@ class BookmarkPlugin extends Plugin
 
             if (!empty($nb->description)) {
                 $out->element('p',
-                              array('class' => 'bookmark_description'),
+                              array('class' => 'bookmark-description'),
                               $nb->description);
             }
 
@@ -317,7 +318,7 @@ class BookmarkPlugin extends Plugin
                 }
             }
 
-            $out->elementStart('p', array('class' => 'bookmark_info'));
+            $out->elementStart('p', array('class' => 'bookmark-info'));
 
             $avatar = $profile->getAvatar(AVATAR_MINI_SIZE);
 
@@ -325,7 +326,7 @@ class BookmarkPlugin extends Plugin
                           array('src' => ($avatar) ?
                                 $avatar->displayUrl() :
                                 Avatar::defaultImage(AVATAR_MINI_SIZE),
-                                'class' => 'avatar photo bookmark_avatar',
+                                'class' => 'avatar photo bookmark-avatar',
                                 'width' => AVATAR_MINI_SIZE,
                                 'height' => AVATAR_MINI_SIZE,
                                 'alt' => $profile->getBestName()));
index 22e7f99ce4e76b776fbd085f717c065f938055aa..6743622d2f29b99010bef9e7a0bc7b1402eb1154 100644 (file)
@@ -1,5 +1,6 @@
-.bookmark_tags li { display: inline; }
-.bookmark_mentions li { display: inline; }
-.bookmark_avatar { float: left }
-.bookmark_notice_count { float: right }
-.bookmark_info { float: left }
+.bookmark-tags li { display: inline; }
+.bookmark-mentions li { display: inline; }
+.bookmark-avatar { float: left; }
+.bookmark-notice-count { float: right; }
+.bookmark-info { float: left; }
+.bookmark-title { margin-left: 0px }