diff --git a/ccm-sci-bundle/web/themes/foundry/conf/global.xml b/ccm-sci-bundle/web/themes/foundry/conf/global.xml new file mode 100644 index 000000000..41028f926 --- /dev/null +++ b/ccm-sci-bundle/web/themes/foundry/conf/global.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/ccm-sci-bundle/web/themes/foundry/conf/templates.xml b/ccm-sci-bundle/web/themes/foundry/conf/templates.xml new file mode 100644 index 000000000..60f8ef071 --- /dev/null +++ b/ccm-sci-bundle/web/themes/foundry/conf/templates.xml @@ -0,0 +1,4 @@ + + + default-layout.xml + \ No newline at end of file diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib.xsl index 904a52cb5..ad388296a 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib.xsl @@ -1,4 +1,4 @@ - + + + + + + + + Outputs the title of the current page. For a content item, this is + the title of the content item. For more details please refer to + the documentation of the foundry:title function. + + #foundry:title + - - - - - -

- -

-
-
+
- - + + - + -
\ No newline at end of file + 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 2082b0581..8556cf37a 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 @@ -38,22 +38,34 @@ - + + + - + + + - + + + - - + + + + - + + + - + + + @@ -88,8 +100,9 @@ - + + + @@ -127,7 +140,7 @@
- +
@@ -135,32 +148,32 @@ - + - + - + - + - + - + @@ -173,7 +186,7 @@
- +
@@ -196,8 +209,9 @@ - + + - + - - + + @@ -84,7 +84,7 @@ - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/navigation.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/navigation.xsl new file mode 100644 index 000000000..c8f5e36fc --- /dev/null +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/navigation.xsl @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + navigation-link-list applied + + + + + + + + + + + + + + + + + + + + + + + + +
+
navigation-id
+
+
+ + +
+
navigation-id
+
+
min-level
+
+ + + + + + + + + + + Processing current level categories... + + + + + + + + + + + + + + Processing sub level categories + + + + + + + + + + + + + + +
+ + + + + + + nav:category applied + + + + + + + + + + + + + + + + + + + navigation-link applied + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/subsite.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/subsite.xsl new file mode 100644 index 000000000..9eb84d004 --- /dev/null +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/subsite.xsl @@ -0,0 +1,34 @@ + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file 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 1ff22467d..c199adf24 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/utils.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/utils.xsl @@ -26,13 +26,14 @@ EXSLT functions. --> - - @@ -66,7 +67,7 @@ EXSLT functions. - + @@ -163,11 +164,66 @@ EXSLT functions. + + + + The attribute to check for. + + + The default value if the attribute is not set. + + + The value of the attribute if it is set on the current element, the + default-value otherwise. + + +

+ A helper function for retrieving an attribute value from an element. If the attribute is + set on the current element the value of the attribute is used as result. If the + attribute is not set the default-value is used. This method is used + by several layout tags with optional attributes. A common use pattern looks like this: +

+
+                <xsl:template match="example">
+                    <xsl:variable name="width" 
+                select="foundry:get-attribute-value('width', '640')" />
+                    <xsl:variable name="height" 
+                select="foundry:get-attribute-value('height', '480')" />
+                /<xsl:template>
+            
+

+ In this example, the element example has two optional attributes: + with and height. If the attribute is set in processed XML, + the value set there is used. Otherwise the default value (640 + respectively 480) is used. Without this function a code block like the + one in the xsl:choose block of this function would be necessary for + each of the variables. +

+
+
+ + + + + + + + + + + + + + + + @@ -275,22 +331,21 @@ EXSLT functions. - + - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -298,35 +353,34 @@ EXSLT functions. - + - + - - - - - - - - - - - +
+ + + +
+ + + + + true if the debug mode if active, false otherwise. - + A helper function to determine if the debug mode should be enabled. The debug mode of foundry is automatically enabled if the theme is viewed as development theme. - + @@ -365,7 +419,7 @@ EXSLT functions. - + @@ -376,17 +430,16 @@ EXSLT functions. - + - + -
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/main.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/main.xsl index 1523fd577..f7e3b4ade 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/main.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/main.xsl @@ -1,4 +1,4 @@ - + ]>