mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
[ticket/12431] Add has_poll icon to topiclists
PHPBB3-12431
This commit is contained in:
parent
1dd02b0a91
commit
d486ff6209
@ -748,6 +748,7 @@ $lang = array_merge($lang, array(
|
||||
1 => '%d private message in total',
|
||||
2 => '%d private messages in total',
|
||||
),
|
||||
'TOPIC_POLL' => 'Topic has a poll',
|
||||
'TOTAL_POSTS' => 'Total posts',
|
||||
'TOTAL_POSTS_COUNT' => array(
|
||||
2 => 'Total posts <strong>%d</strong>',
|
||||
|
@ -613,6 +613,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
'REPORTED_IMG' => $user->img('icon_topic_reported', 'TOPIC_REPORTED'),
|
||||
'UNAPPROVED_IMG' => $user->img('icon_topic_unapproved', 'TOPIC_UNAPPROVED'),
|
||||
'DELETED_IMG' => $user->img('icon_topic_deleted', 'TOPIC_DELETED'),
|
||||
'POLL_IMG' => $user->img('icon_topic_poll', 'TOPIC_POLL'),
|
||||
'LAST_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
|
||||
|
||||
'U_SEARCH_WORDS' => $u_search,
|
||||
@ -919,6 +920,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
'S_TOPIC_UNAPPROVED' => $topic_unapproved,
|
||||
'S_POSTS_UNAPPROVED' => $posts_unapproved,
|
||||
'S_TOPIC_DELETED' => $topic_deleted,
|
||||
'S_HAS_POLL' => ($row['poll_start']) ? true : false,
|
||||
|
||||
'U_LAST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
|
||||
'U_LAST_POST_AUTHOR' => get_username_string('profile', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']),
|
||||
|
@ -84,6 +84,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF searchresults.S_HAS_POLL -->{POLL_IMG} <!-- ENDIF -->
|
||||
{L_POST_BY_AUTHOR} {searchresults.TOPIC_AUTHOR_FULL} » {searchresults.FIRST_POST_TIME} » {L_IN} <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a>
|
||||
<!-- EVENT topiclist_row_append -->
|
||||
|
||||
|
@ -163,6 +163,7 @@
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
<div class="responsive-hide">
|
||||
<!-- IF topicrow.S_HAS_POLL -->{POLL_IMG} <!-- ENDIF -->
|
||||
<!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->
|
||||
{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} » {topicrow.FIRST_POST_TIME}
|
||||
<!-- IF topicrow.S_POST_GLOBAL and FORUM_ID != topicrow.FORUM_ID --> » {L_IN} <a href="{topicrow.U_VIEW_FORUM}">{topicrow.FORUM_NAME}</a><!-- ENDIF -->
|
||||
|
@ -350,6 +350,11 @@ span.imageset {
|
||||
padding-left: 16px;
|
||||
padding-top: 14px;
|
||||
}
|
||||
.imageset.icon_topic_poll {
|
||||
background-image: url("./images/icon_topic_poll.png");
|
||||
padding-left: 1px;
|
||||
padding-top: 1px;
|
||||
}
|
||||
.imageset.icon_user_warn {
|
||||
background-image: url("./images/icon_user_warn.gif");
|
||||
padding-left: 20px;
|
||||
|
@ -336,6 +336,7 @@ $template->assign_vars(array(
|
||||
'REPORTED_IMG' => $user->img('icon_topic_reported', 'TOPIC_REPORTED'),
|
||||
'UNAPPROVED_IMG' => $user->img('icon_topic_unapproved', 'TOPIC_UNAPPROVED'),
|
||||
'DELETED_IMG' => $user->img('icon_topic_deleted', 'TOPIC_DELETED'),
|
||||
'POLL_IMG' => $user->img('icon_topic_poll', 'TOPIC_POLL'),
|
||||
'GOTO_PAGE_IMG' => $user->img('icon_post_target', 'GOTO_PAGE'),
|
||||
|
||||
'L_NO_TOPICS' => ($forum_data['forum_status'] == ITEM_LOCKED) ? $user->lang['POST_FORUM_LOCKED'] : $user->lang['NO_TOPICS'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user