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

Theme layout elements renderer from theme_easy

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      Theme layout files often contain multiple redundant sections, e.g. a header section that's identical across 1, 2, and 3-column layout files. Frédéric Massart wrote a simple include()-esque renderer for theme_easy (see: https://github.com/FMCorz/moodle-theme_easy/blob/master/renderers.php ) that allows themes to easily break things up into their component parts, easing development.

      It'd be nice to see this be something we could count upon in core.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lucaboesch Luca Bösch
              Reporter:
              jethac Jetha Chan
              Participants:
              Component watchers:
              Bas Brands
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: