[10190] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
| 2 | <rules |
---|
| 3 | xmlns="http://namespaces.plone.org/diazo" |
---|
| 4 | xmlns:css="http://namespaces.plone.org/diazo/css" |
---|
| 5 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
| 6 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
---|
| 7 | |
---|
[10240] | 8 | <theme href="home.html" css:if-content="body.template-frontpageview" /> |
---|
| 9 | <theme href="full.html" css:if-content="#portal-column-content.width-full"/> |
---|
[10265] | 10 | <theme href="full.html" |
---|
| 11 | css:if-not-content="#portal-column-two, #newsportlet" /> |
---|
[10240] | 12 | <theme href="example.html"/> |
---|
| 13 | <notheme if="$ajax_load" /> |
---|
| 14 | <!--<notheme if="contains($path, 'manage')"/>--> |
---|
| 15 | <notheme if="contains($path, 'plugins')"/> |
---|
| 16 | <notheme if="contains($path, 'querybuilder')"/> |
---|
| 17 | <notheme if="contains($path, 'advanced/anchor.htm')"/> |
---|
| 18 | <notheme if="contains($path, 'advanced/source_editor.htm')"/> |
---|
| 19 | <notheme if="contains($path, 'image_view_fullscreen')"/> |
---|
[10879] | 20 | <notheme if-path="@@updated_search"/> |
---|
[10240] | 21 | <notheme if-path="@@manage-viewlets" /> |
---|
[10190] | 22 | |
---|
| 23 | |
---|
[10240] | 24 | <!-- Head --> |
---|
| 25 | <before content="/html/head/meta" css:theme="meta" /> |
---|
| 26 | <replace theme="/html/head/title" content="/html/head/title" |
---|
| 27 | if-not-path="/" /> |
---|
| 28 | <replace theme="/html/head/base" content="/html/head/base" /> |
---|
| 29 | <append theme="/html/head" content="/html/head/script" /> |
---|
| 30 | <append theme="/html/head" content="/html/head/link | /html/head/style" /> |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | <!-- Top / Header --> |
---|
[10253] | 34 | <copy attributes="href" css:content='#portal-logo' |
---|
| 35 | css:theme="#logo-container a" /> |
---|
[10240] | 36 | |
---|
| 37 | <!-- User options (upper right) --> |
---|
| 38 | <!-- user name in options menu --> |
---|
| 39 | <replace css:theme-children="#user-options-name" |
---|
| 40 | css:content-children="#portal-personaltools li:nth-child(1) a" /> |
---|
| 41 | <!-- href of username link --> |
---|
| 42 | <copy attributes="href" |
---|
| 43 | css:content="#portal-personaltools li:nth-child(1) a" |
---|
| 44 | css:theme="#user-options a:nth-child(1)" /> |
---|
| 45 | |
---|
| 46 | <!-- 2nd to last link of user options (separators filtered out) |
---|
| 47 | These go into user options dropdown |
---|
| 48 | --> |
---|
[10253] | 49 | <copy css:theme="#user-options ul" |
---|
| 50 | css:if-content="#portal-personaltools li:nth-child(3)"> |
---|
[10240] | 51 | <xsl:for-each css:select="#portal-personaltools li"> |
---|
| 52 | <xsl:if test="not(position() mod 2 = 0)"> |
---|
| 53 | <xsl:if test="not(position() = 1)"> |
---|
| 54 | <xsl:copy-of select="." /> |
---|
| 55 | </xsl:if> |
---|
| 56 | </xsl:if> |
---|
| 57 | </xsl:for-each> |
---|
| 58 | </copy> |
---|
[10253] | 59 | <!-- if user options are empty (only login and separator): |
---|
| 60 | avoid dropdown --> |
---|
| 61 | <drop css:theme="#user-options ul" |
---|
| 62 | css:if-not-content="#portal-personaltools li:nth-child(3)"> |
---|
| 63 | </drop> |
---|
| 64 | <drop css:theme="#user-options a:nth-child(2)" |
---|
| 65 | css:if-not-content="#portal-personaltools li:nth-child(3)"> |
---|
| 66 | </drop> |
---|
| 67 | <!-- /user-options --> |
---|
[10240] | 68 | |
---|
| 69 | <replace css:theme=".navbar-form" css:content="#portal-searchbox form"/> |
---|
| 70 | <drop css:content=".searchSection"/> |
---|
| 71 | <drop css:content="#LSResult"/> |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | <replace css:theme-children="#menu-collapse .nav" |
---|
| 75 | css:content-children="#portal-globalnav"/> |
---|
| 76 | <!-- Frontpage Content --> |
---|
| 77 | <replace css:theme=".full-col" css:content=".full-col" |
---|
| 78 | css:if-content="body.template-frontpageview"/> |
---|
| 79 | <replace css:theme=".rslides" css:content=".rslides"/> |
---|
| 80 | <replace css:theme=".left-col" css:content=".left-col" |
---|
| 81 | css:if-content="body.template-frontpageview"/> |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | <replace css:theme-children=".right-col" |
---|
| 85 | css:content-children="#portal-column-two" |
---|
| 86 | css:if-not-content="body.template-frontpageview"/> |
---|
| 87 | <replace css:theme-children=".right-col" |
---|
| 88 | css:content-children="#newsportlet" |
---|
| 89 | css:if-content="body.template-frontpageview"/> |
---|
| 90 | |
---|
| 91 | <!-- Content --> |
---|
| 92 | <before css:theme=".rslides_container" css:content="#edit-bar"/> |
---|
| 93 | |
---|
| 94 | <copy css:theme=".content-container" |
---|
| 95 | css:content-children="#portal-column-content"/> |
---|
| 96 | |
---|
| 97 | <!-- Footer --> |
---|
| 98 | <replace css:theme=".footer .section" |
---|
| 99 | css:content="#portal-footer-wrapper .section"/> |
---|
| 100 | |
---|
[10190] | 101 | </rules> |
---|