Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12191

Add class "haslayouttable" to body

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9
    • Fix Version/s: 2.0
    • Component/s: General, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Moodle offers to use module pages with sideblocks and without. Advanced themes need to change the CSS depending on existing sideblocks / not existing sideblocks. Technically Moodle places the "layout-table" when sideblocks are possible.

      Best would be to add the class "haslayouttable" to body. Second best would be to add a function "has_layouttable()

      { ... }" which returns true when a layouttabel is placed in the page. Like the function "is_in_popup() { ... }

      ". We are getting near OO notifications here .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                urshunkler Urs Hunkler
                Tester:
                Nobody
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Bas Brands, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10