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

Children themes should fully inherit from their parents

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: FRONTEND
    • Component/s: Themes
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      When creating children themes, many things have to be re-defined, sometimes just to change the names to prevent a fatal error in PHP.

      Children theme should fully inherit:

      • The settings (only some settings are inherited)
      • The layout pages (the layout pages must be redefined)
      • The renderers, the children should not be force to create override the parent renderer with an empty class to inherit the parents methods.
      • The lib.php to re-use the parent css post processing etc...

      The goal is to be able to create a new theme which can simply implement a few CSS rules to alter the strict minimal. It then makes it a lot easier to maintain but just editing the parent theme.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fred Frédéric Massart
              Participants:
              Component watchers:
              Bas Brands
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: