Moodle

Add class "haslayouttable" to body

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 .

Issue Links

Activity

Hide
Tim Hunt added a comment -

This is about to be rendered unnecessary by the MDL-19077 work.

Show
Tim Hunt added a comment - This is about to be rendered unnecessary by the MDL-19077 work.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: