From 6b40d9159c5fb82e817e6fdb5ac14e12311ab606 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 3 Nov 2014 15:02:56 +0000 Subject: [PATCH] Syncing Foundry files git-svn-id: https://svn.libreccm.org/ccm/trunk@2948 8810af33-2d31-482b-a856-94f89814c4df --- .../themes/foundry/foundry/lib/bebop/form.xsl | 2 +- .../foundry/foundry/lib/bebop/image.xsl | 2 +- .../foundry/foundry/lib/bebop/label.xsl | 2 +- .../themes/foundry/foundry/lib/bebop/link.xsl | 2 +- .../themes/foundry/foundry/lib/bebop/list.xsl | 4 +- .../foundry/foundry/lib/bebop/panel.xsl | 4 +- .../foundry/lib/bebop/property-list.xsl | 2 +- .../foundry/foundry/lib/bebop/table.xsl | 16 +- .../foundry/foundry/lib/bebop/widget.xsl | 16 +- .../foundry/foundry/lib/global-vars.xsl | 8 +- .../foundry/foundry/lib/template-parser.xsl | 204 ++++++++++++++++- .../lib/template-tags/admin/common.xsl | 4 +- .../foundry/lib/template-tags/html-tags.xsl | 206 ++++++++++++++---- .../web/themes/foundry/foundry/lib/utils.xsl | 6 +- 14 files changed, 406 insertions(+), 72 deletions(-) diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/form.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/form.xsl index 0d6029be6..308fbddd1 100755 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/form.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/form.xsl @@ -48,7 +48,7 @@ post - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/image.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/image.xsl index 96625349d..674df96da 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/image.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/image.xsl @@ -45,7 +45,7 @@ - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/label.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/label.xsl index bb1bfc836..aad84255b 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/label.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/label.xsl @@ -152,7 +152,7 @@ - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/link.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/link.xsl index 54db60d8c..ad0732877 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/link.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/link.xsl @@ -82,7 +82,7 @@ - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/list.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/list.xsl index 8b7b116e0..a3a0e3a80 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/list.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/list.xsl @@ -49,7 +49,7 @@
    - +
@@ -61,7 +61,7 @@
- +
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/panel.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/panel.xsl index 0717348d8..3d07f1fce 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/panel.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/panel.xsl @@ -64,7 +64,7 @@
- +
@@ -75,7 +75,7 @@ the surrounding segmented panel. -->
- +
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/property-list.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/property-list.xsl index 935041d3f..9c37caccf 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/property-list.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/property-list.xsl @@ -41,7 +41,7 @@
- +
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/table.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/table.xsl index a1a5293bf..01451603d 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/table.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/table.xsl @@ -43,7 +43,7 @@ correct order. --> - + @@ -55,7 +55,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -106,7 +106,7 @@ @@ -115,7 +115,7 @@ @@ -127,7 +127,7 @@ These special versions of bebop:cell are defined in the corresponding template file of Mandalay. --> - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/widget.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/widget.xsl index 7906d8b73..0fe08c9ec 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/widget.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/bebop/widget.xsl @@ -24,7 +24,7 @@ @@ -68,7 +68,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -144,7 +144,7 @@ @@ -155,7 +155,7 @@ @@ -172,7 +172,7 @@ - + @@ -191,7 +191,7 @@ @@ -238,7 +238,7 @@
- + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/global-vars.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/global-vars.xsl index c815a6c33..efbca6389 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/global-vars.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/global-vars.xsl @@ -35,10 +35,12 @@ processor, some are read from the configuration files of Foundry and some are de version="2.0"> - + +

The version of Foundry. Kept in sync with the version of CCM, so the first version was be 2.2.3. +

@@ -46,10 +48,12 @@ processor, some are read from the configuration files of Foundry and some are de - + +

The path the to theme file. This path is used at several points to load files which are part of the theme, like CSS files, images and fonts. +

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 6a4800b95..96cc8fe5f 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,8 +94,26 @@ Common helper templates/functions for all templates tags --> + + +

+ The layout node to use. Defaults the the current node. +

+
+ +

+ The attributes to copy separated by an empty space. For example: + autofocus disabled form formaction formenctype formmethod formnovalidate formtarget name type value. +

+
+ +

+ A helper template for copying attributes from the layout tree to the result tree. +

+
+
- + @@ -104,6 +122,11 @@ + +

+ The layout node to use. Defaults the the current node. +

+

Helper template for copying data- attributes from the the layout XML @@ -113,11 +136,131 @@ http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes - + + + +

+ Variant of foundry:gen-src-url without the parameters string + parameter. +

+
+
+ + + + + + + + + +

+ The raw URL to process. +

+
+ +

+ Parameters to append to the URL. +

+
+
+ +

+ The processed URL. +

+
+ +

+ Processes a given URL for use in the src attribute of an + audio, img or video element. The function + distigushes between this cases: +

+
+
The URL starts with http:// or https://
+
+ In this case the URL is threated as an absolute URL pointing to a resource + outside of CCM. If any parameters are passed to the function they are appended + to the URL. +
+
The URL starts with a slash (/)
+
+ In this case the URL points to a resource managed by the CCM which also + manages the theme. In this case the URL is prefixed with the + dispatcher-prefix and the parameters, if any, are appended. +
+
Other cases
+
+ If none of the two other cases match the URL points to a URL in the theme. In + this case the URL is processed by the + + gen-path + function. The parameters, if any + are appended. +
+
+

+ If parameters are passed to this function they are appended to the URL. The + parameters are passed as string formatted as URL parameters, for example + foo=hello&bar=world. A leading ? or & + is removed before adding the string the URL. If the URL already contains parameters + (if the URL contains a ?) the paramters string is added with a leading + ampersand (&). If not the parameters are appended using a + ? character. +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Helper functions for generating the name of the colorset class. @@ -198,7 +341,7 @@ literally from the XML the HTML. - + + +

+ The layout node to process. Default the the current node. +

+
+ +

+ Additional attributes to copy from the layout tree. data attributes + (e.g.data-toggle) are + copied automatically. Also id and class are already + processed by this template. +

+
+ +

+ A convenient helper template which calls three other helper templates: +

+ +
+
+ + + + + + + + + + + + + + + + + post - + @@ -86,7 +86,7 @@ post - + 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 a21cb2b07..e2c326e3e 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 @@ -68,6 +68,27 @@ The third variant for providing an URL is to call the template with a href parameter in the XSL.

+

+ Values for some other attributes can also be passed to the this template as XSL + parameters: +

+
+
+ hreflang +
+
Language of the resource the link is pointing to.
+
+ title +
+
+ Value for the title attribute of the link. Usally this should + a very brief description of the target of the link +
+
+ type +
+
The media type of the link target.
+
@@ -86,11 +107,6 @@ A static URL for the link.

- -

- The language of the target of the link. -

-

The relationship of the linking document with the target document. @@ -106,26 +122,25 @@ Static, not translated title of the link.

- -

- Value for the title attribute of the link. -

-
- + + Description of the a element in the HTML5 specification. +
+ + - + @@ -141,16 +156,16 @@ - + - + - + @@ -161,65 +176,158 @@ - + - + - + + + - + + +

+ Generates a HTML abbr element used to tag abbreviations. +

+
+ + + Description of the abbr element in the HTML 5 specification. + + +
+ + + + + + + + + +

+ Generates a address element in the HTML output. + The address elements represents the contact information of the + responsible author of article or body it appears in. +

+
+ + + Description of the address element in the HTML5 specification + + +
+ +
+ + +
+
+ +

Generates the HTML5 article element.

- + + Description of the article element in the HTML5 specification +
+ +
- Generates a HTML5 aside element. +

+ Generates a HTML5 aside element. +

- + + Description of the aside element in the HTML5 specification. +
+ + + + + + + + + + + + + + + + + + + + + + + + - Generates the HTML body element. +

+ Generates the HTML body element. +

- + + Description of the body element in the HTML5 specification. +
- +
@@ -300,12 +408,23 @@ + + +

+ Generates a button element. +

+
+ + + Description of the button element in the HTML5 specification. + + +
@@ -317,12 +436,14 @@ Generates a HTML div element. - + + Description of the div element in the HTML5 specification. +
- +
@@ -610,7 +731,7 @@ - + @@ -685,6 +806,8 @@ + + - + + + + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/utils.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/utils.xsl index 15214a90b..5d14c754a 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/utils.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/utils.xsl @@ -807,10 +807,10 @@ XSLT 2.0 functions. - +
- + - +