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

New theme settings for secure layout - display lang menu and display logged-in user

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      As there are not many ways to view a secure page layout in Moodle by default, here is one method to test.

       

      1. The site must have some additional languages set, navigate to Site administration / Language / Language packs, and add any number of extra languages. (admin/tool/langimport/index.php)

      2. The following settings must be enabled in Site administration / Language / Language settings (admin/settings.php?section=langsettings)

      • Display Language Menu

       3. Enable the new settings in Site administration / Appearance / Themes / Theme settings  (admin/settings.php?section=themesettings)

      • langmenuinsecurelayout
      • logininfoinsecurelayout

      4. Create a course

      5. Create a quiz with Browser security set to Full screen pop-up with some JavaScript security

      6. Attempt the quiz. It is now possible to test the settings on the quiz view page.

       

      If logininfoinsecurelayout is enabled, the user name will be visible in the top right corner as 'You are logged in as [user full name]'.

      If langmenuinsecurelayout is enabled, a drop-down menu will be visible near the top left which allows the user to select different languages enabled.

      Show
      As there are not many ways to view a secure page layout in Moodle by default, here is one method to test.   1. The site must have some additional languages set, navigate to Site administration / Language / Language packs, and add any number of extra languages. (admin/tool/langimport/index.php) 2. The following settings must be enabled in Site administration / Language / Language settings (admin/settings.php?section=langsettings) Display Language Menu  3. Enable the new settings in Site administration / Appearance / Themes / Theme settings  (admin/settings.php?section=themesettings) langmenuinsecurelayout logininfoinsecurelayout 4. Create a course 5. Create a quiz with Browser security set to Full screen pop-up with some JavaScript security 6. Attempt the quiz. It is now possible to test the settings on the quiz view page.   If logininfoinsecurelayout is enabled, the user name will be visible in the top right corner as 'You are logged in as [user full name] '. If langmenuinsecurelayout is enabled, a drop-down menu will be visible near the top left which allows the user to select different languages enabled.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-68041-master-rev2

      Description

      As part of the integration deeper integration of Safe Exam Browser, we have a requirement to allow students to change language when solving a quiz restricted by SEB.

      We'd like to introduce new settings to make core secure mode a bit more flexible and let admins to enable/disable language selection and username display for secure view.

       

      The two new settings added are found in Appearance > Theme Settings.

      langmenuinsecurelayout, Display language menu in secure layout.

      logininfoinsecurelayout, Display logged-in user in secure layout.

       

      This has the added benefit of allowing the user to change the language when the page layout set to secure. Also for the current logged in user's name to be displayed in the top right corner of the screen.

      As there are options to show the username during a quiz attempt itself, this will allow the name to be present on the view, review, summary and any other page on the site when the secure page layout is set.

      The language selection menu is new function core_renderer->secure_layout_language_menu(), this renders a custom_menu(), yet without passing any $custommenuitems only the language selection will be displayed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nhoobin Nicholas Hoobin
              Reporter:
              dmitriim Dmitrii Metelkin
              Peer reviewer:
              Dmitrii Metelkin
              Integrator:
              Jun Pataleta
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Bas Brands
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m