The Essential FEL theme is derived from the very popular Essential theme (between Moodle 2.4 and Moodle 2.8). It keeps the flexible and advanced front page features (marketing announcements, slider, etc.) and includes significant modifications of some “renderers”, i.e. modifications that strongly impact the rendering for an improved user experience.
The custom menu is a global menu whose structure is controlled by the “custommenu” setting in the theme's general settings. The modification consists in offering a simple syntax to control whether menu items are visible according to the user's situation:
Standard case, visible to everyone
Only visible to logged-in users
Only visible to users who are not logged in
Only visible on mobile devices
Only visible on mobile devices when not logged in
Only visible at reduced screen widths
Only visible to those who have the capability (tested in the system context or in the current course context). In this case super-users always pass.
Only visible to those who have the capability (tested in the system context or in the current course context) explicitly. Super-users do not see it unless they have an explicit capability themselves.
Only visible to those whose user profile field “fieldname”:
The fieldname field can take any field name of the basic user profile, or point to a Moodle custom profile field, in which case it must be 'profile_field_' followed by the short name of the custom field.
Example:
Teacher tools|user:profile_field_teacher=1!/local/my/index_teachers.php
In addition, the menu implementation injects some parameters typical of the current environment:
Here are some typical implementation examples:
Logout|!/login/logout.php
Login|0!/login
Logged-out users only see the 'Login' link. Logged-in users only see the 'Logout' link.
Administration|local/adminsettings:nobody!/admin/index.php
Administration|moodle/site:config^!/local/admin/delegatedadmin.php
Only administrators holding the local/adminsettings:nobody capability, including through a super-administrator right, can see the admin/index.php menu (the standard full administration console)
Example for restricting to the editing teachers of the current course only:
Library|moodle/course:manageactivities!%WWWROOT%/local/sharedresources/explore.php?id=%COURSEID%
Users having the moodle/site:config capability through an explicit role assignment can reach the delegated (simplified) administration panel. Super-users (site administrators) with no other explicit role assignments do not see this menu.
Library|repository/sharedresources:view!/local/sharedresources/index.php?course=%COURSEID%
Users having the required capability (see the library) can see this link button to the shared library home. The numeric id of the current course is passed to the library as the current usage context.
Note: a “Failing” status does not necessarily mean that the plugin does not work. This status reflects the result of automated tests checking the code against Moodle's strict standards. We are continuously working on bringing all supported plugins progressively into compliance with these development rules.
| Branch | Continuous integration tests |
|---|---|
| 405 |
|
| 501 |
|
Back to plugins index - Back to catalogue index