From 64ccffe5b64368abfd81a574f42b8fb1d42b91c3 Mon Sep 17 00:00:00 2001 From: pb Date: Tue, 28 Oct 2014 18:38:52 +0000 Subject: [PATCH] Some enhancements for Foundry created while working on the LBC theme git-svn-id: https://svn.libreccm.org/ccm/trunk@2926 8810af33-2d31-482b-a856-94f89814c4df --- .../foundry/foundry/lib/template-parser.xsl | 30 +++++++- .../foundry/lib/template-tags/html-tags.xsl | 13 +++- .../foundry/lib/template-tags/loaders.xsl | 77 +++++++++++++++++-- 3 files changed, 111 insertions(+), 9 deletions(-) diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-parser.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-parser.xsl index 05b749041..6a4800b95 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-parser.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-parser.xsl @@ -94,6 +94,30 @@ Common helper templates/functions for all templates tags --> + + + + + + + + + + + +

+ Helper template for copying data- attributes from the the layout XML + to the HTML result tree. +

+
+ http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes +
+ + + + + + Helper functions for generating the name of the colorset class. @@ -220,8 +244,10 @@ - Helper template for setting the id and class attributes - on a HTML element. +

+ Helper template for setting the id and class attributes + on a HTML element. +

diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl index c05091fbc..fdf167398 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl @@ -26,7 +26,7 @@ xmlns:ui="http://www.arsdigita.com/ui/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml" - exclude-result-prefixes="xsl bebop foundry ui" + exclude-result-prefixes="xsl xs bebop foundry ui" version="2.0"> @@ -300,6 +300,17 @@ + + + + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/loaders.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/loaders.xsl index a93a44ddf..48bd3ed6d 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/loaders.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/loaders.xsl @@ -25,6 +25,7 @@ xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:foundry="http://foundry.libreccm.org" xmlns:ui="http://www.arsdigita.com/ui/1.0" + xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl bebop foundry ui" version="2.0"> @@ -68,7 +69,9 @@ - + + @@ -77,6 +80,8 @@ + @@ -115,26 +120,86 @@ files. - The name of the CSS file to load +

+ The name of the CSS file to load +

- The media for which the file should be loaded. If no set, the CSS file is used for all - media types. +

+ The media for which the file should be loaded. If no set, the CSS file is used for all + media types. +

+
+ +

+ The origin of the CSS file. If not set or the parameter is empty, the CSS file + is loading from the styles directory. There also some values with + a special meaning: +

+
+
+ parent +
+
+ File is loaded from the styles directory of the parent theme. (Not + implemented yet!) +
+
+ internal +
+
+ The file is loaded from the internal styles directory + foundry/styles. If the theme is a child theme, the file is loaded + from the internal styles directory of the parent theme. +
+
all other values
+
+ The file is loaded a directory with the name provided by the parameter in the + theme. For if the value is bootstrap, the result path would be + bootstrap/filename. +
+
- + + - + + + + + + + + + + + + + + + + + + + + + + + + +