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

theme option 'langmenu' is not respected in bootstrapbase-based themes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.8.3
    • Themes
    • MOODLE_28_STABLE
    • Easy

      I accidentally discovered it while testing MDL-37477, I noticed that language menu is displayed on admin pages in Clean theme but not displayed in Base. Digging into the code I noticed that base looks at $PAGE->layout_options['langmenu'] before displaying language menu and Bootstrapbase, Clean and More don't.

      config file for bootstrapbase defines 'options' => array('langmenu'=>true), for some layouts just as well as in base. But they are ignored when displaying the page.

      Interesting that 'nonavbar' layout option is respected in CSS only. So for example, on frontpage the navbar is still rendered but hidden by the rule:

      .layout-option-noheader #page-header, .layout-option-nonavbar #page-navbar, .layout-option-nofooter #page-footer, .layout-option-nocourseheader .course-content-header, .layout-option-nocoursefooter .course-content-footer {
          display: none;
      }
      

      I remember this obsession with CSS caused MDL-41398

            Unassigned Unassigned
            marina Marina Glancy
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.