source: main/waeup.plonetheme.ngren2/trunk/waeup/plonetheme/ngren2/static/rules.xml @ 10074

Last change on this file since 10074 was 10074, checked in by Henrik Bettermann, 12 years ago

Fill trunc.

File size: 12.0 KB
RevLine 
[10074]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
8    <!-- The default theme, used for standard Plone web pages -->
9    <theme href="index.html" css:if-content="#visual-portal-wrapper" />
10    <notheme if-path="@@manage-viewlets" />
11    <notheme if="$ajax_load" />   
12   
13    <xsl:template css:match="#portal-colophon">
14        <div id="portal-colophon">
15            <p class="credits"><a href="http://quintagroup.com">Python Reel Plone Theme</a> by <a href="http://themes.quintagroup.com">Themes.Quintagroup</a> © 2013</p>
16            <xsl:apply-templates />
17        </div>
18    </xsl:template>
19    <xsl:template css:match=".portletNavigationTree .navTreeLevel0 .navTree">
20      <xsl:choose>
21        <xsl:when test="not(node())">
22        </xsl:when>
23        <xsl:when test="node()">
24          <xsl:copy>
25            <xsl:apply-templates select="@*|node()" />
26          </xsl:copy>
27        </xsl:when>
28      </xsl:choose>
29    </xsl:template>
30    <xsl:template css:match="#portal-globalnav li:last-child">
31      <li>
32        <xsl:attribute name="class">last <xsl:value-of select="./@class" /></xsl:attribute>
33        <xsl:apply-templates />
34      </li>
35    </xsl:template>
36    <xsl:template match="//*[contains(concat(' ', normalize-space(@class), ' '), ' portletNavigationTree ')]//a">
37        <a>
38            <xsl:attribute name="href"><xsl:value-of select="./@href" /></xsl:attribute>
39            <xsl:attribute name="title"><xsl:value-of select="./@title" /></xsl:attribute>
40            <xsl:apply-templates />
41        </a>
42    </xsl:template>
43
44    <!-- Rules applying to a standard Plone web page -->
45    <rules css:if-content="#visual-portal-wrapper">
46
47        <!-- HTML -->
48        <copy attributes="*" content='/html' theme='/html' />
49       
50        <!--  Header -->
51        <drop css:theme="meta[http-equiv='Content-type']" />
52        <drop css:content="meta[name='viewport']" />
53        <drop css:content="link[href*='reset']" />
54        <drop css:content="link[href$='forms.css']" />
55        <drop css:content="link[href$='controlpanel.css']" />
56        <drop css:content="link[href$='authoring.css']" />
57        <drop css:content="link[href$='public.css']" />
58        <drop css:content="link[href$='columns.css']" />
59        <drop css:content="link[href$='portlets.css']" />
60        <drop css:content="link[href$='discussion.css']" />
61        <drop css:content="link[href$='ploneKss.css']" />
62        <drop css:content="link[href$='print.css']" />
63        <drop css:content="link[href$='mobile.css']" />
64        <drop css:content="link[href*='base']" />
65        <drop css:content="link[href$='favicon.ico']" />
66        <before content="/html/head/meta" css:theme="meta[name='viewport']" />
67        <before content="/html/head/base" theme="/html/head/title" />
68        <replace theme='/html/head/title' content='/html/head/title' />
69        <after css:content="head link:not([href*='ploneCustom'])" theme="/html/head/title" />
70        <after content="/html/head/style | /html/head/script" theme="/html/head/title" />
71        <after css:content="head link[href*='ploneCustom']" theme-children="/html/head" />
72        <!--drop theme="descendant-or-self::style" if="($columnonewidth = 'default') or ($columntwowidth = 'default') or ($columnsmargin = 'default')" /-->
73        <after theme-children="/html/head/style" if="($columnonewidth != 'default') or ($columntwowidth != 'default') or ($columnsmargin != 'default')">
74            #portal-column-one {width:<xsl:value-of select="number($columnonewidth)" />%;}
75            #portal-column-two { margin-left:-<xsl:value-of select="number($columntwowidth)" />%;width:<xsl:value-of select="number($columntwowidth)" />%;}
76            #portal-column-content.width-1\3a 2 {width:<xsl:value-of select="100-number($columnonewidth)-number($columntwowidth)-number($columnsmargin)*2" />%;}
77            #portal-column-content.width-3\3a 4.position-1\3a 4 { width:<xsl:value-of select="100-number($columnonewidth)-number($columnsmargin)" />%;}
78            #portal-column-content.width-3\3a 4.position-0 {width:<xsl:value-of select="100-number($columntwowidth)-number($columnsmargin)" />%;}
79            #portal-column-content.position-1\3a 4 {margin-left:-<xsl:value-of select="100-number($columnonewidth)-number($columnsmargin)" />%;}
80        </after>
81        <after theme-children="/html/head/style" if="$top = 'white'">
82            #theme-globalnav a, #theme-globalnav a:visited, #portlets-in-header {color: #fff;}
83            #theme-globalnav .selected a, #theme-globalnav a:hover {color: #02fada;}
84            #portal-personaltools dt a, #portal-personaltools #anon-personalbar a {color: #fff; color:rgba(255,255,255,0.8);}
85            #portal-searchbox .searchField {color: #fff; color:rgba(255,255,255,0.7); text-shadow: 1px 1px rgba(5, 136, 119, 0.58);}
86            #portal-searchbox .searchField::-webkit-input-placeholder {color:rgba(255,255,255,0.7); text-shadow: 1px 1px rgba(5, 136, 119, 0.58);}
87            #portal-searchbox .searchButton[type="submit"] {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAsVBMVEX////Z7epzvLP///8FiHff8O3n8/Ll8vHN5+T4/Pvi8O5Xr6Tn8vDE498FiHf///8FiHf////q9fTy9vbu9fX///8sm4zI5eEmmInW6+jN5+Tx9vX8/Pzt9/X///+w2dSUzMVktav///9Nqp7////1+Pik1M0FiHe+4NzS6uYFiHc3oJLb7uv///9gs6kFiHfD496s19IFiHcFiHf///////8FiHcFiHcFiHf5+fkAAAAbU97iAAAAO3RSTlM4oICGIJqhlhxnpmatkkEiVHugsagWSI9UoZqyq51kc4kdQ3ZwsI40l4gNcZ2dexosES5OWgsGFGi4AFUfvwUAAAChSURBVHjavdHXDsIwDAXQsvfeG7o3LWmT3Pz/h6GiviQoj+AXWzqSJfsaQlc/kiIBztfyWxZAfDjhkqtSYBlxsj9iRxVJEM1DIfI1trKUiHlYDQOkVJIZfFJvTZ/yNoynn96CpYiNSdVMdDiTZeOgZxo2YBH1nmwIAA58popgI9dt8gYCSWrzvHbZRaD5aH+Fm+bXGe4vTQoPrhNB9cn9V95d+oWD1pKyyQAAAABJRU5ErkJggg==);}
88            #slogan, #top-carousel .carousel-text, #top-carousel .carousel-text a {color: #fff; color:rgba(255,255,255,0.8);}
89            #top-carousel .carousel-pager-button-prev {
90              background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAMAAAAMCGV4AAAAWlBMVEXt7e3b29sCAgICAgLOzs7u7u7r6+uxsbE5OTnExMTs7Oy9vb0CAgICAgLl5eUCAgLr6+tbW1sCAgICAgICAgICAgICAgKJiYmampoCAgICAgIAAAD5+fn///8AGJvsAAAAHHRSTlPZaQcRWcXrPRxO+0USC38BjyIJDAUKDS0yAwIAucAK4AAAAE9JREFUeNqNzskOgCAMRVEERRxwAHEo9P9/UxNB6Y67O2nyUuZpxZ4d5HZqOuAzF7XE80re2wbx99aFh/l9YMTejFWf/KbXJe7HwELZv7QbYxsWNE5yiGYAAAAASUVORK5CYII=);
91            }
92            #top-carousel .carousel-pager-button-prev:hover {
93              background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAMAAAAMCGV4AAAAWlBMVEUBcGsAi4UAlpAAlY4AlY4CAgIAgn0CJCMCAgIAfHcCAgIAlY8CAgIBd3IAkYsCAgIAlY4BOjgCAgICAgICAgICAgICAgIBV1MBYV0CAgICAgIAAAAAnZYAoZoyVQ7kAAAAHHRSTlM9acXZ6wdZHBFOEvsLRX8BjyIJDAUKDS0yAwIA4DwEcgAAAE9JREFUeNqNzskOgCAMRVEERRxwAHEo9P9/UxNB6Y67O2nyUuZpxZ4d5HbtdMDnRskazyt5Zxzx99aFh/ldC2Jv+mpIfhvXJe7HwELZv7QbY0wWNC0cRm8AAAAASUVORK5CYII=);
94            }
95            #top-carousel .carousel-pager-button-next {
96              background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAMAAAAMCGV4AAAAWlBMVEXt7e1bW1vb29vs7Ozu7u7S0tLt7e05OTnr6+u9vb0CAgICAgICAgLl5eWxsbECAgICAgICAgICAgLExMQCAgKJiYkCAgICAgKampoCAgICAgIAAAD8/Pz////e13uvAAAAHHRSTlPZImn0xVvtHI9FEgsRfz0BDAkHTgUtCg0yAwIACz0KjwAAAElJREFUeNqNzksSgCAMA1AUUVQU+YhS7P2v6Tbdkd2bzLRRTabLdBGabjvs4PqyHreAZlbrI8xfyujpxH42LsL9Yynif/H9e2V+ZKUWNE4JOqQAAAAASUVORK5CYII=);
97            }
98            #top-carousel .carousel-pager-button-next:hover {
99              background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAMAAAAMCGV4AAAAWlBMVEUCJCMAi4UAlpAAlY4AlY4AhX8BOjgAlY8AlY4Bd3ICAgICAgICAgIAkYsBcGsCAgICAgICAgICAgIAfHcCAgIBV1MCAgICAgIBYV0CAgICAgIAAAAAn5gAoZrtX2djAAAAHHRSTlMcacXZ9Fsi7Y9FEgsRfz0BDAkHTgUtCg0yAwIA1NCk4AAAAElJREFUeNqNzksSgCAMA1AUUVQU+YhS7P2v6Tbdkd2bzLRRTabLdBGabjvv4PryNGwBzazXR5i/lNHjif1iXIT7hyrif/H9e2V+ZxQWNNuqwOcAAAAASUVORK5CYII=);
100            }
101            .carousel-pager-item {
102              background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAALCAMAAAB8rpxtAAAAWlBMVEXs7OxHR0fu7u7k5ORHR0ft7e3l5eXc3NzAwMBHR0fq6urCwsJHR0dHR0dHR0esrKxHR0dHR0d8fHxHR0dHR0dHR0fr6+tHR0fi4uJHR0cAAADz8/P5+fn///9sWy2HAAAAG3RSTlPsGsF7G8WBa0kLi0wCHhY8CQ0qAQwG8g55EgCaYbRJAAAAUUlEQVR42k3NRw6AMAxE0dBregd8/2sij0DKX/ltPOJqAvwW4o/slrLWEzA6EdFeATURd0SGfIDZMsYElMDIA9/JeXyrRdy9zt+O7aQy2Gl6AVqrC+o7xVXfAAAAAElFTkSuQmCC);
103            }
104            .carousel-pager-item:hover,
105            .carousel-pager-item-active {             
106              background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAALCAMAAAB8rpxtAAAAZlBMVEUI/9kAm5MI/9kApJoI/9kI/9kCva0Cu6wI/9kE1b0Bt6kI/9kI/9kApJkI/9kDxLEI/9kF1r4I/9kI/9kI/9kI/9kF4MQH8tAI/9kI/9kCvq4I/9kAmpII/9kAAAAAnZYAoJgAoZqN6Yt7AAAAH3RSTlNB9EnTNRaWmkNxpQ8a1g6KF29LNgUiZFUEH5Qj+S0Ah9hAnwAAAFNJREFUeNpNzUcOgDAMRNHQeyc9AXz/SyKPQMpf+W084koCzGjnH14vbosnsKpARH0Ejom4bmDsD9BIRhsAZxm+5jtog2/RZXeh/LcjRV5W2El6AeTiDbaxPYTfAAAAAElFTkSuQmCC);
107            }
108        </after>
109        <after theme-children="/html/head/style" if="$top_image != ''">
110          #portal-top {background:url(<xsl:value-of select="$top_image" />) 50% 0;}
111        </after>
112        <after theme-children="/html/head/style" css:if="#top-carousel">
113          #portal-top {background:<xsl:value-of select="$top_background" />;}
114        </after>
115
116        <!--  Body -->
117        <merge attributes="dir class" css:content="body" css:theme="body" />
118
119        <!--  Top -->
120        <replace css:theme="#portal-header > p.hiddenStructure" css:content="#portal-header > p.hiddenStructure:first-child" />
121        <drop content="*[@class='searchSection']" />
122        <replace css:content="#portal-searchbox" css:theme="#portal-searchbox" />
123        <drop css:content="#portal-siteactions" />
124        <replace css:content="#portal-logo" css:theme="#portal-logo" />
125        <replace css:content-children="#portal-globalnav" css:theme-children="#theme-globalnav" />
126        <before css:theme="#theme-globalnav" css:content="#portal-logo+p.hiddenStructure" />
127        <after css:theme="#theme-globalnav" css:content="#portal-globalnav-mobile" />
128        <merge attributes="class" css:content="#portal-globalnav" css:theme="#theme-globalnav" css:if-content="#portal-globalnav-mobile"/>
129        <replace css:content="#portal-personaltools-wrapper" css:theme="#portal-personaltools-wrapper" />
130        <drop css:content="#portal-breadcrumbs" />
131        <replace css:content="#portal-breadcrumbs" css:theme="#portal-breadcrumbs" method="raw"/>
132        <replace css:content="#portal-languageselector" css:theme="#portal-languageselector" />
133        <after css:theme="#portal-header" css:content="#portlets-in-header" />
134        <after css:theme="#portal-header" css:content=".manageInHeaderPortletsLink" />
135       
136        <drop css:theme="#slogan" css:if="#top-carousel .carousel-text" />
137        <replace css:theme="#slogan">
138          <span id="slogan" class="visualNoPrint"><xsl:value-of select="$slogan" /></span>
139        </replace> 
140       
141        <drop css:content="#top-carousel" />   
142        <replace css:content="#top-carousel" css:theme="#top-carousel" method="raw" />
143       
144        <!-- Portlets -->
145        <replace css:content="#portal-column-one" css:theme="#portal-column-one" />
146        <replace css:content="#portal-column-two" css:theme="#portal-column-two" />
147        <drop css:content=".navTree img" />
148
149        <!-- Content -->
150        <strip css:content="#portal-column-content > div:not(#viewlet-above-content):not(#viewlet-below-content)" if-content="//div[@id='portal-column-content']/div/div[@id='content']" />
151        <replace css:content="#portal-column-content" css:theme="#portal-column-content" />
152        <drop css:content="img[alt='Image'][src$='image.png']" />
153        <drop css:content="img[alt='File'][src$='image.png']" />
154        <drop css:content="#plone-contentmenu-factories li a img" />
155
156        <!-- Footer -->
157        <replace css:content="#portal-footer-wrapper" css:theme="#portal-footer-wrapper" />
158
159    </rules>
160    <!-- <xi:include href="tune.xml" /> -->
161</rules>
Note: See TracBrowser for help on using the repository browser.