diff options
| author | PayBas <contact@paybas.com> | 2014-04-09 14:15:57 +0200 |
|---|---|---|
| committer | PayBas <contact@paybas.com> | 2014-05-03 17:42:13 +0200 |
| commit | 4e79764aca4b569bb4f651d6d365bf102e9e4d54 (patch) | |
| tree | db9cb5fa7313a5986b0e4afc3f5bd8d386e63221 | |
| parent | b60108dc78af581fe5327fce4037731555203320 (diff) | |
| download | forums-4e79764aca4b569bb4f651d6d365bf102e9e4d54.tar forums-4e79764aca4b569bb4f651d6d365bf102e9e4d54.tar.gz forums-4e79764aca4b569bb4f651d6d365bf102e9e4d54.tar.bz2 forums-4e79764aca4b569bb4f651d6d365bf102e9e4d54.tar.xz forums-4e79764aca4b569bb4f651d6d365bf102e9e4d54.zip | |
[ticket/12376] Add template events viewtopic_body_polls
PHPBB3-12376
| -rw-r--r-- | phpBB/docs/events.md | 26 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/viewtopic_body.html | 6 | ||||
| -rw-r--r-- | phpBB/styles/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 @@ <div class="inner"> <div class="content"> - <h2 class="poll-title">{POLL_QUESTION}</h2> + <h2 class="poll-title"><!-- EVENT viewtopic_body_poll_question_prepend -->{POLL_QUESTION}</h2> <p class="author">{L_POLL_LENGTH}<!-- IF S_CAN_VOTE and L_POLL_LENGTH --><br /><!-- ENDIF --><!-- IF S_CAN_VOTE --><span class="poll_max_votes">{L_MAX_VOTES}</span><!-- ENDIF --></p> <fieldset class="polls"> + <!-- EVENT viewtopic_body_poll_fieldset_prepend --> + <!-- BEGIN poll_option --> <dl class="<!-- IF poll_option.POLL_OPTION_VOTED -->voted<!-- ENDIF --><!-- IF poll_option.POLL_OPTION_MOST_VOTES --> most-votes<!-- ENDIF -->"<!-- IF poll_option.POLL_OPTION_VOTED --> title="{L_POLL_VOTED_OPTION}"<!-- ENDIF --> data-poll-option-id="{poll_option.POLL_OPTION_ID}"> <dt><!-- IF S_CAN_VOTE --><label for="vote_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label><!-- ELSE -->{poll_option.POLL_OPTION_CAPTION}<!-- ENDIF --></dt> @@ -98,6 +100,8 @@ <dd class="resultbar"><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></dd> </dl> <!-- ENDIF --> + + <!-- EVENT viewtopic_body_poll_fieldset_append --> </fieldset> <div class="vote-submitted hidden">{L_VOTE_SUBMITTED}</div> </div> 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 @@ <table cellspacing="0" cellpadding="4" border="0" align="center"> <tr> - <td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span><br /><span class="gensmall">{L_POLL_LENGTH}</span></td> + <td align="center"><span class="gen"><!-- EVENT viewtopic_body_poll_question_prepend --><b>{POLL_QUESTION}</b></span><br /><span class="gensmall">{L_POLL_LENGTH}</span></td> </tr> <tr> <td align="{S_CONTENT_FLOW_BEGIN}"> + <!-- EVENT viewtopic_body_poll_fieldset_prepend --> <table cellspacing="0" cellpadding="2" border="0"> <!-- BEGIN poll_option --> <tr> @@ -100,6 +101,7 @@ </tr> <!-- END poll_option --> </table> + <!-- EVENT viewtopic_body_poll_fieldset_append --> </td> </tr> <!-- IF S_CAN_VOTE --> |
