Commit 55876f68 authored by webchick's avatar webchick

Issue #821702 by droplet, mgifford, eloiv: Fixed Replace Forum Icon Column with Topic Span.

parent 6522e7ee
......@@ -15,8 +15,7 @@
#forum td.pager {
white-space: nowrap;
}
#forum td.forum .icon {
#forum .icon{
background-image: url(../../misc/forum-icons.png);
background-repeat: no-repeat;
float: left; /* LTR */
......@@ -24,31 +23,25 @@
margin: 0 9px 0 0; /* LTR */
width: 24px;
}
#forum td.forum .forum-status-new {
background-position: -24px 0;
#forum .title {
overflow: hidden;
}
#forum div.indent {
margin-left: 20px;
}
#forum .icon div {
background-image: url(../../misc/forum-icons.png);
background-repeat: no-repeat;
width: 24px;
height: 24px;
}
#forum .icon .topic-status-new {
#forum .topic-status-new {
background-position: -24px 0;
}
#forum .icon .topic-status-hot {
#forum .topic-status-hot {
background-position: -48px 0;
}
#forum .icon .topic-status-hot-new {
#forum .topic-status-hot-new {
background-position: -72px 0;
}
#forum .icon .topic-status-sticky {
#forum .topic-status-sticky {
background-position: -96px 0;
}
#forum .icon .topic-status-closed {
#forum .topic-status-closed {
background-position: -120px 0;
}
......@@ -918,7 +918,6 @@ function forum_get_topics($tid, $sortby, $forum_per_page) {
global $user, $forum_topic_list_header;
$forum_topic_list_header = array(
NULL,
array('data' => t('Topic'), 'field' => 'f.title'),
array('data' => t('Replies'), 'field' => 'f.comment_count'),
array('data' => t('Last reply'), 'field' => 'f.last_comment_timestamp'),
......
......@@ -16,7 +16,7 @@
* @ingroup themeable
*/
?>
<div class="topic-status-<?php print $icon_class ?>" title="<?php print $icon_title ?>">
<div class="icon topic-status-<?php print $icon_class ?>" title="<?php print $icon_title ?>">
<?php if ($first_new): ?>
<a id="new"></a>
<?php endif; ?>
......
......@@ -44,14 +44,16 @@
<tbody>
<?php foreach ($topics as $topic): ?>
<tr class="<?php print $topic->zebra;?>">
<td class="icon"><?php print $topic->icon; ?></td>
<td class="title">
<td class="topic">
<?php print $topic->icon; ?>
<div class="title">
<div>
<?php print $topic->title; ?>
</div>
<div>
<?php print $topic->created; ?>
</div>
</div>
</td>
<?php if ($topic->moved): ?>
<td colspan="3"><?php print $topic->message; ?></td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment