aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-06-18 12:26:28 -0400
committerDavid King <imkingdavid@gmail.com>2012-06-18 12:26:28 -0400
commit58a3342c3e982b927aa5903a9c6bdf06c233d907 (patch)
treeb5b4f73e640131dff24d62caa9d9a7033fc3b740 /phpBB/styles/prosilver
parent13c4db8255b2ed16f86b0b5da6fee0abd98e356c (diff)
downloadforums-58a3342c3e982b927aa5903a9c6bdf06c233d907.tar
forums-58a3342c3e982b927aa5903a9c6bdf06c233d907.tar.gz
forums-58a3342c3e982b927aa5903a9c6bdf06c233d907.tar.bz2
forums-58a3342c3e982b927aa5903a9c6bdf06c233d907.tar.xz
forums-58a3342c3e982b927aa5903a9c6bdf06c233d907.zip
[ticket/10938] Serve subforum listing on forumlist from template loop
Subforum listing is available both via implode()-ed PHP loop and via template loop. The latter allows more flexibility for changing the subforum listing per style, so that is the better option. PHPBB3-10938
Diffstat (limited to 'phpBB/styles/prosilver')
-rw-r--r--phpBB/styles/prosilver/template/forumlist_body.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/forumlist_body.html b/phpBB/styles/prosilver/template/forumlist_body.html
index ca5e8abb1d..723c2ffeda 100644
--- a/phpBB/styles/prosilver/template/forumlist_body.html
+++ b/phpBB/styles/prosilver/template/forumlist_body.html
@@ -35,7 +35,12 @@
<!-- IF forumrow.MODERATORS -->
<br /><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}
<!-- ENDIF -->
- <!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}<!-- ENDIF -->
+ <!-- IF .forumrow.subforum and forumrow.S_LIST_SUBFORUMS -->
+ <br /><strong>{forumrow.L_SUBFORUM_STR}</strong>
+ <!-- BEGIN subforum -->
+ <a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->,<!-- ENDIF -->
+ <!-- END subforum -->
+ <!-- ENDIF -->
</dt>
<!-- IF forumrow.CLICKS -->
<dd class="redirect"><span>{L_REDIRECTS}: {forumrow.CLICKS}</span></dd>