MDL-64901 block_myoverview: admin settings to control available layouts
authorTom Dickman <tomdickman@catalyst-au.net>
Tue, 12 Mar 2019 03:26:51 +0000 (14:26 +1100)
committerTom Dickman <tomdickman@catalyst-au.net>
Mon, 3 Jun 2019 22:34:52 +0000 (08:34 +1000)
commit5f59a4c0630dcef474ba22f33967624b3ea9939f
tree9e9b4cf047bf18948db36099cdfb95fdc169b7b6
parent29c395187f5e858368547fae83dee21b253509af
MDL-64901 block_myoverview: admin settings to control available layouts

Added an admin setting which allows the administrator to set the available layouts for users and which
defaults to all layouts being available, or the card layout only if no layouts are enabled.
If only one layout is enabled, the dropdown `nav-display-selector` template will not be displayed as
it can no longer be utilised.
If the user preference is set to a layout that is no longer available, this is ignored and the first
available layout defaulted to.
blocks/myoverview/amd/build/view.min.js
blocks/myoverview/amd/src/view.js
blocks/myoverview/block_myoverview.php
blocks/myoverview/classes/output/main.php
blocks/myoverview/lang/en/block_myoverview.php
blocks/myoverview/lib.php
blocks/myoverview/settings.php
blocks/myoverview/templates/main.mustache
blocks/myoverview/templates/nav-display-selector.mustache
blocks/myoverview/version.php