From 58a3342c3e982b927aa5903a9c6bdf06c233d907 Mon Sep 17 00:00:00 2001 From: David King Date: Mon, 18 Jun 2012 12:26:28 -0400 Subject: [PATCH] [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 --- phpBB/styles/prosilver/template/forumlist_body.html | 7 ++++++- phpBB/styles/subsilver2/template/forumlist_body.html | 8 ++++++-- 2 files changed, 12 insertions(+), 3 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 @@
{forumrow.L_MODERATOR_STR}: {forumrow.MODERATORS} -
{forumrow.L_SUBFORUM_STR} {forumrow.SUBFORUMS} + +
{forumrow.L_SUBFORUM_STR} + + {forumrow.subforum.SUBFORUM_NAME}, + +
{L_REDIRECTS}: {forumrow.CLICKS}
diff --git a/phpBB/styles/subsilver2/template/forumlist_body.html b/phpBB/styles/subsilver2/template/forumlist_body.html index be32d1fb77..b9a1102df0 100644 --- a/phpBB/styles/subsilver2/template/forumlist_body.html +++ b/phpBB/styles/subsilver2/template/forumlist_body.html @@ -48,8 +48,12 @@

{forumrow.L_MODERATOR_STR}: {forumrow.MODERATORS}

- -

{forumrow.L_SUBFORUM_STR} {forumrow.SUBFORUMS}

+ +

{forumrow.L_SUBFORUM_STR} + + {forumrow.subforum.SUBFORUM_NAME}, + +

{forumrow.TOPICS}