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

$menu in header does too many things

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Inactive
    • Affects Version/s: 1.5, 1.6.9, 1.7.7, 1.8.8, 1.9.4
    • Fix Version/s: None
    • Component/s: Themes, Usability
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      The $menu variable in the themes header.html does too many things.

      On the front page of your Moodle it tells you who you are logged in as as well as allowing you to choose a language (as long as that option is switched on)

      On Course index pages it only tells you if you are logged in.

      On Resource pages it gives you a button for viewing logs (again, only if switched on), a jump menu, and a previous and next button.

      All of these things are pretty cool, but it's a bit of straightjacket that you can only specify them to be in one place and, by extension surround them with a single bit of HTML and CSS style.

      You may well want all of the above to appear but in different places and styled differently. Or you may only want some elements e.g. the jump menu without the backwards and forwards arrows.

        Attachments

        1. header_course.png
          header_course.png
          117 kB
        2. header_database.png
          header_database.png
          100 kB
        3. header_site.png
          header_site.png
          95 kB

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: