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

Add template variable for extensions to add classes to <body> element without JS

    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: Styles, Template Engine
    • Labels:
      None

      Description

      proSilver looks like this:
      <body id="phpbb" class="nojs section-

      {SCRIPT_NAME} {S_CONTENT_DIRECTION}">

      For extensions, it might be good to be able to add CSS classes to the <body> element, without having to resort to JS. Modifying the {SCRIPT_NAME}

      or

      {S_CONTENT_DIRECTION}

      via $this->template->append_var is bound to result in problems.

      https://www.phpbb.com/community/viewtopic.php?f=461&t=2235626

        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:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development