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

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

    XMLWordPrintable

Details

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: