Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12369

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.0-b3
    • 3.1.0-b2
    • Styles, Template Engine
    • None

      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

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

              Created:
              Updated:
              Resolved: