Browse Source

Adds the reply number to each post.

Signed-off-by: Bryan Deakin <[email protected]>
Bryan Deakin 11 năm trước cách đây
mục cha
commit
e742fa077f
2 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 3 0
      Themes/default/Display.template.php
  2. 5 0
      Themes/default/css/index.css

+ 3 - 0
Themes/default/Display.template.php

@@ -444,6 +444,9 @@ function template_main()
 								<div class="messageicon" ', ($message['icon_url'] !== $settings['images_url'] . '/post/xx.png') ? '' : 'style="position: absolute; z-index: -1;"', '>
 									<img src="', $message['icon_url'] . '" alt=""', $message['can_modify'] ? ' id="msg_icon_' . $message['id'] . '"' : '', ' />
 								</div>
+								<div class="page_number floatright">
+									#', $message['counter'] ,'
+								</div>
 								<h5 id="subject_', $message['id'], '">
 									<a href="', $message['href'], '" rel="nofollow" title="', !empty($message['counter']) ? sprintf($txt['reply_number'], $message['counter']) : '', ' - ', $message['subject'], '">', $message['time'], '</a>';
 

+ 5 - 0
Themes/default/css/index.css

@@ -2224,6 +2224,11 @@ div#pollmoderation {
 	font-weight: normal;
 	padding: 2px 4px 0 4px;
 }
+.page_number {
+	color: #ad6825;
+	font-weight: bold;
+	opacity: 0.4;
+}
 .inner {
 	padding: 7px 8px 2px 2px;
 	margin: 0 8x 0 0;