Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
55876f68
Commit
55876f68
authored
Nov 26, 2012
by
webchick
Browse files
Issue
#821702
by droplet, mgifford, eloiv: Fixed Replace Forum Icon Column with Topic Span.
parent
6522e7ee
Changes
4
Show whitespace changes
Inline
Side-by-side
core/modules/forum/forum.css
View file @
55876f68
...
...
@@ -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
;
}
core/modules/forum/forum.module
View file @
55876f68
...
...
@@ -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'
),
...
...
core/modules/forum/templates/forum-icon.tpl.php
View file @
55876f68
...
...
@@ -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
;
?>
...
...
core/modules/forum/templates/forum-topic-list.tpl.php
View file @
55876f68
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment