From f93be271850d19b2f754098c4ecbcbc2a5b55688 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 31 Oct 2016 11:15:27 +0800 Subject: [PATCH 1/3] MDL-56241 theme_boost: Add content class to blocks Some of the plugin styles assume .content in the selectors. --- theme/boost/templates/core/block.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/boost/templates/core/block.mustache b/theme/boost/templates/core/block.mustache index 783fe9aebd2..b09b4dbf52d 100644 --- a/theme/boost/templates/core/block.mustache +++ b/theme/boost/templates/core/block.mustache @@ -18,7 +18,7 @@ {{/arialabel}}> {{! Block contents }} -
+
{{#hascontrols}}
From fb42071776b5ca422a008657a0dd0da3ef78bb0a Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 3 Nov 2016 11:00:38 +0000 Subject: [PATCH 2/3] MDL-56241 theme_boost: add example context to block.mustache --- theme/boost/templates/core/block.mustache | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/theme/boost/templates/core/block.mustache b/theme/boost/templates/core/block.mustache index b09b4dbf52d..b898dea7134 100644 --- a/theme/boost/templates/core/block.mustache +++ b/theme/boost/templates/core/block.mustache @@ -1,3 +1,18 @@ +{{! + @template theme_boost/block + + Example context (json): + { + "id": "block0", + "showskiplink": true, + "type": "html", + "ariarole": "complementary", + "title": "Test block", + "blockinstanceid": 1, + "content": "

Hello block world!

" + } + +}} {{! Block Skip Link }} {{#showskiplink}} {{#str}}skipa, access, {{title}}{{/str}} From 1d4928003c82011e2671500eaea5c5a02048ccc3 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 7 Nov 2016 09:51:39 +0800 Subject: [PATCH 3/3] MDL-56241 boost: Wrap block footer in a div to emulate old layout Some block styles are looking for .footer so we'll add it back. --- theme/boost/templates/core/block.mustache | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theme/boost/templates/core/block.mustache b/theme/boost/templates/core/block.mustache index b898dea7134..11613736c9c 100644 --- a/theme/boost/templates/core/block.mustache +++ b/theme/boost/templates/core/block.mustache @@ -33,7 +33,7 @@ {{/arialabel}}> {{! Block contents }} -
+
{{#hascontrols}}
@@ -43,12 +43,12 @@ {{! Block header }} {{#title}} -

{{{title}}}

+

{{{title}}}

{{/title}} -
+
{{{content}}} - {{{footer}}} + {{{annotation}}}