Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12376

Add template events viewtopic_body_polls

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-b2
    • Fix Version/s: 3.1.0-b3
    • Component/s: Events, Styles
    • Labels:
      None

      Description

      I propose 3 template events:

      1:

      EVENT viewtopic_body_poll_question_prepend

      It would be the equivalent of viewtopic_topic_title_prepend, and will allow us to use prefixes, or better yet, icons. It will allow us to use code like:

      <h2><span class="<!-- IF S_CAN_VOTE and L_POLL_LENGTH -->poll-icon-timer<!-- ELSEIF S_CAN_VOTE -->poll-icon-open<!-- ELSE -->poll-icon-closed<!-- ENDIF -->">{L_VIEW_TOPIC_POLL}</span>....</h2>

      2:

      EVENT viewtopic_body_poll_fieldset_prepend


      Having control of the poll fieldset can have advantages in case we want to add extra functionality, buttons or create wrapping containers.

      3:

      EVENT viewtopic_body_poll_fieldset_prepend


      The counter-part to the previous one

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            nickvergessen Joas Schilling
            Reporter:
            PayBas PayBas [X] (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development