From: Evan Prodromou Date: Fri, 31 Dec 2010 00:54:01 +0000 (-0800) Subject: switch bookmark CSS classes to use dash instead of underscore X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d7f5212f0147a5d2b98fbeda9e97ede0a1cdfc6;p=quix0rs-gnu-social.git switch bookmark CSS classes to use dash instead of underscore --- diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index e6590bce34..faddf5aafa 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -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())); diff --git a/plugins/Bookmark/bookmark.css b/plugins/Bookmark/bookmark.css index 22e7f99ce4..6743622d2f 100644 --- a/plugins/Bookmark/bookmark.css +++ b/plugins/Bookmark/bookmark.css @@ -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 }