[ticket/11346] Hide "Mark topics read" link when forum is empty.

TOTAL_POSTS and TOTAL_USERS are not defined for viewforum.php.

PHPBB3-11346
This commit is contained in:
Cesar G 2013-12-01 17:16:31 -08:00
parent d867bda6af
commit 5ab5bd6bda

View file

@ -55,17 +55,15 @@
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF .pagination or TOTAL_POSTS or TOTAL_TOPICS --> <div class="pagination">
<div class="pagination"> <!-- IF not S_IS_BOT and U_MARK_TOPICS and .topicrow --><a href="{U_MARK_TOPICS}" accesskey="m" data-ajax="mark_topics_read" data-overlay="false">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF -->
<!-- IF not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}" accesskey="m" data-ajax="mark_topics_read" data-overlay="false">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF --> {TOTAL_TOPICS} &bull;
<!-- IF TOTAL_TOPICS -->{TOTAL_TOPICS} &bull; <!-- ENDIF --> <!-- IF .pagination -->
<!-- IF .pagination --> <!-- INCLUDE pagination.html -->
<!-- INCLUDE pagination.html --> <!-- ELSE -->
<!-- ELSE --> {PAGE_NUMBER}
{PAGE_NUMBER} <!-- ENDIF -->
<!-- ENDIF --> </div>
</div>
<!-- ENDIF -->
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->
@ -227,18 +225,15 @@
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF PAGE_NUMBER or TOTAL_POSTS or TOTAL_TOPICS -->
<div class="pagination"> <div class="pagination">
<!-- IF TOTAL_TOPICS and not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}" data-ajax="mark_topics_read" data-overlay="false">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF --> <!-- IF not S_IS_BOT and U_MARK_TOPICS and .topicrow --><a href="{U_MARK_TOPICS}" data-ajax="mark_topics_read" data-overlay="false">{L_MARK_TOPICS_READ}</a> &bull; <!-- ENDIF -->
<!-- IF TOTAL_POSTS and not NEWEST_USER --> {TOTAL_POSTS}<!-- ELSEIF TOTAL_TOPICS and not NEWEST_USER --> {TOTAL_TOPICS} &bull; <!-- ENDIF --> {TOTAL_TOPICS} &bull;
<!-- IF TOTAL_USERS -->{TOTAL_USERS} &bull; <!-- ENDIF -->
<!-- IF .pagination --> <!-- IF .pagination -->
<!-- INCLUDE pagination.html --> <!-- INCLUDE pagination.html -->
<!-- ELSE --> <!-- ELSE -->
{PAGE_NUMBER} {PAGE_NUMBER}
<!-- ENDIF --> <!-- ENDIF -->
</div> </div>
<!-- ENDIF -->
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->