From 4e79764aca4b569bb4f651d6d365bf102e9e4d54 Mon Sep 17 00:00:00 2001 From: PayBas Date: Wed, 9 Apr 2014 14:15:57 +0200 Subject: [PATCH] [ticket/12376] Add template events viewtopic_body_polls PHPBB3-12376 --- phpBB/docs/events.md | 26 +++++++++++++++++++ .../prosilver/template/viewtopic_body.html | 6 ++++- .../subsilver2/template/viewtopic_body.html | 4 ++- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 1cc1300c05..68f4afad21 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -693,6 +693,32 @@ viewtopic_body_footer_before and quick reply, directly before the jumpbox in Prosilver, breadcrumbs in Subsilver2. +viewtopic_body_poll_fieldset_append +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html + + styles/subsilver2/template/viewtopic_body.html +* Since: 3.1.0-b3 +* Purpose: Add content before the items in the polls fieldset +the list. + +viewtopic_body_poll_fieldset_prepend +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html + + styles/subsilver2/template/viewtopic_body.html +* Since: 3.1.0-b3 +* Purpose: Add content after the items in the polls fieldset +the list. + +viewtopic_body_poll_question_prepend +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html + + styles/subsilver2/template/viewtopic_body.html +* Since: 3.1.0-b3 +* Purpose: Add content directly before the poll question on the View topic screen + viewtopic_body_post_buttons_after === * Locations: diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index 8912382c48..5db95e7879 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -67,10 +67,12 @@
-

{POLL_QUESTION}

+

{POLL_QUESTION}

{L_POLL_LENGTH}
{L_MAX_VOTES}

+ +
title="{L_POLL_VOTED_OPTION}" data-poll-option-id="{poll_option.POLL_OPTION_ID}">
{poll_option.POLL_OPTION_CAPTION}
@@ -98,6 +100,8 @@
{L_VIEW_RESULTS}
+ +
diff --git a/phpBB/styles/subsilver2/template/viewtopic_body.html b/phpBB/styles/subsilver2/template/viewtopic_body.html index 307ed0f391..6e6ca488ca 100644 --- a/phpBB/styles/subsilver2/template/viewtopic_body.html +++ b/phpBB/styles/subsilver2/template/viewtopic_body.html @@ -72,10 +72,11 @@ - +
{POLL_QUESTION}
{L_POLL_LENGTH}
{POLL_QUESTION}
{L_POLL_LENGTH}
+ @@ -100,6 +101,7 @@
+