no more stupid .karma class in css; also, removed some more commented-out shit

This commit is contained in:
Aleksei Miheev
2012-07-14 17:12:11 +03:00
parent ca9c2f3f97
commit 21da800c9f
3 changed files with 8 additions and 14 deletions

View File

@@ -318,17 +318,17 @@ function template_main()
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a class="karma" href="', $message['member']['href'], '">', $txt[27], '</a>';
<a class="gray" href="', $message['member']['href'], '">', $txt[27], '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo ' - <a class="karma" href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $txt['online4'], '</a>';
echo ' - <a class="gray" href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $txt['online4'], '</a>';
}
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1' AND $modSettings['karmadescmod'] == 1)
echo '
<br /><a href="',$scripturl,'?action=ownkarma;u=', $message['member']['id'],'" class="karma">', $modSettings['karmaLabel'], '</a> ';
<br /><a href="',$scripturl,'?action=ownkarma;u=', $message['member']['id'],'" class="gray">', $modSettings['karmaLabel'], '</a> ';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
@@ -350,9 +350,7 @@ function template_main()
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td align="left" valign="middle"><a class="karma" href="', $message['href'], '" title="Ссылка на это сообщение"><img style="vertical-align: middle;" src="', $settings['images_url'], '/' , $context['user']['language'] , '/link.png" alt="', $message['subject'], '" border="0" />', !($message['id'] == $context['topic_first_message']) ? ' #'.$message['counter'] : '','</a>';/*<td>-->
<td align="left" valign="middle">';
<b><a href="', $message['href'], '" class="nav">', $message['subject'], '</a></b>';*/
<td align="left" valign="middle"><a class="gray smalltext" href="', $message['href'], '" title="Ссылка на это сообщение"><img style="vertical-align: middle;" src="', $settings['images_url'], '/' , $context['user']['language'] , '/link.png" alt="', $message['subject'], '" border="0" />', !($message['id'] == $context['topic_first_message']) ? ' #'.$message['counter'] : '','</a>';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '

View File

@@ -10,9 +10,8 @@ a:hover
text-decoration: underline;
}
.karma, .karma:link, .karma:visited
.gray, .gray:link, .gray:visited
{
font-size: 11px;
color: #D2D2D2;
text-decoration: none;
}
@@ -31,7 +30,7 @@ a:hover
font-weight: bold;
text-decoration: none;
}
a.nav:hover, a.karma:hover
a.nav:hover, a.gray:hover
{
text-decoration: underline;
}
@@ -339,7 +338,6 @@ h2 {
margin-top: 0;
}
.buttons {
font-size: smaller;
height: 20px;
text-align: right;
}

View File

@@ -10,9 +10,8 @@ a:hover
text-decoration: underline;
}
.karma, .karma:link, .karma:visited
.gray, .gray:link, .gray:visited
{
font-size: 11px;
color: #D2D2D2;
text-decoration: none;
}
@@ -31,7 +30,7 @@ a:hover
font-weight: bold;
text-decoration: none;
}
a.nav:hover, a.karma:hover
a.nav:hover, a.gray:hover
{
text-decoration: underline;
}
@@ -330,7 +329,6 @@ h2 {
color: #D2D2D2;
}
.buttons {
font-size: smaller;
height: 20px;
text-align: right;
}