MDL-55074 theme_boost: Navigation and blocks
authorDamyon Wiese <damyon@moodle.com>
Thu, 6 Oct 2016 06:10:14 +0000 (14:10 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 21 Oct 2016 04:37:33 +0000 (12:37 +0800)
commit99061152af3976dc276777463328a1295a65d4cb
tree715fcd696dec66ca9814c42dd3714be03ec9f345
parent919b9dfabd69f71c088f565746c547e6e169a0b7
MDL-55074 theme_boost: Navigation and blocks

This patch includes a big set of changes that are all designed to work together to provide
a better way to navigate in the new theme, and a different way of working with blocks.

Blocks have been moved to a "drawer" that can be opened and closed (this is remembered in a user pref).

A new "flat navigation" element is also available in a drawer - which should let you do 90% of things
without needing to open the "blocks" drawer.

The flat navigation is build from specific parts of the nav tree - the top nodes like "calendar, dashboard" are
hand picked. There is a mycourses node listing your enrolled courses.

There is a node for the current course, built from the top nodes in the current course node in the nav tree.

Administrators have a link to the Site admin settings here too.

These nav elements are used by the templates for the new theme, which also has a resigned layout for login and signup.

There have also been some additional fixes / improvements to the scss for the new theme which goes along with these
layout changes.

This set of changes is a collaboration between Martin, Damyon and Alberto (thanks!).
52 files changed:
admin/admin_settings_search_form.php [new file with mode: 0644]
admin/search.php
admin/settings/top.php
course/admin.php [new file with mode: 0644]
course/format/topics/lib.php
course/format/weeks/lib.php
course/lib.php
course/switchrole.php
course/switchrole_form.php [new file with mode: 0644]
course/tests/externallib_test.php
lang/en/admin.php
lang/en/block.php
lib/navigationlib.php
lib/outputcomponents.php
lib/outputrenderers.php
lib/pagelib.php
lib/templates/settings_link_page.mustache [new file with mode: 0644]
lib/templates/settings_link_page_single.mustache [new file with mode: 0644]
lib/templates/signup_form_layout.mustache [new file with mode: 0644]
login/signup.php
login/signup_form.php
theme/boost/amd/build/blocks_drawer.min.js [new file with mode: 0644]
theme/boost/amd/build/drawer.min.js [new file with mode: 0644]
theme/boost/amd/src/drawer.js [new file with mode: 0644]
theme/boost/classes/output/core_renderer.php
theme/boost/config.php
theme/boost/layout/columns1.php
theme/boost/layout/columns2.php
theme/boost/layout/login.php [new file with mode: 0644]
theme/boost/layout/secure.php
theme/boost/pix/blocksdrawer.png [new file with mode: 0644]
theme/boost/pix/blocksdrawer.svg [new file with mode: 0644]
theme/boost/scss/moodle.scss
theme/boost/scss/moodle/blocks.scss
theme/boost/scss/moodle/bootswatch.scss [new file with mode: 0644]
theme/boost/scss/moodle/core.scss
theme/boost/scss/moodle/course.scss
theme/boost/scss/moodle/drawer.scss [new file with mode: 0644]
theme/boost/scss/moodle/icons.scss
theme/boost/scss/moodle/login.scss [new file with mode: 0644]
theme/boost/scss/preset-default.scss
theme/boost/templates/blocks-drawer.mustache [new file with mode: 0644]
theme/boost/templates/columns1.mustache
theme/boost/templates/columns2.mustache
theme/boost/templates/core/login.mustache
theme/boost/templates/core/navbar.mustache
theme/boost/templates/core/signup_form_layout.mustache [new file with mode: 0644]
theme/boost/templates/flat_navigation.mustache [new file with mode: 0644]
theme/boost/templates/header.mustache
theme/boost/templates/login.mustache [new file with mode: 0644]
theme/boost/templates/nav-drawer.mustache [new file with mode: 0644]
theme/boost/templates/secure.mustache