Details
-
Type:
Sub-task
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Theme: Customisable theme
-
Labels:None
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
Develop a block with the following features (custom_theme block):-
- Provide the only means of access to the page to customize theme. The user is presented with the link to the page that allows to customize the theme.
- Creation of database tables. The database has a field for each of the CSS element that the user wishes to customize and the corresponding id of the user who customized it. The database was created using the XMLDB editor. Information about database is stored in upgrade.php and install.xml
- Support for a capability to show or hide the block. The custom_theme: Display capability controls who can see the block (and hence modify the theme). Using the has_capability() function, we can control the access to the block.
<screenshot 1>The block provides the access to the page to customize theme