-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules.xml
59 lines (47 loc) · 2.49 KB
/
rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<rules
xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:esi="http://www.edge-delivery.org/esi/1.0"
xmlns:str="http://exslt.org/strings"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<theme href="index.html" css:if-content="#visual-portal-wrapper" />
<notheme if-path="source_editor.htm" />
<notheme if-path="@@manage-viewlets" />
<notheme if-path="ploneimage.htm" />
<notheme if="$ajax_load" />
<rules css:if-content="#visual-portal-wrapper">
<!--Head-->
<copy css:content="html" css:theme="html" attributes="lang dir" />
<prepend css:content-children="head" css:theme="head" />
<drop css:theme="head link[href='css/plone.css']" />
<drop css:content="head link[rel='shortcut icon']" />
<drop css:content="head link[rel='apple-touch-icon']" />
<drop css:content="head meta[name='viewport']" />
<drop css:theme="head title" />
<drop css:theme="body.userrole-anonymous #portal-personaltools" />
<!-- Header -->
<replace css:content="#portal-personaltools" css:theme="#user" />
<copy attributes="href title" css:content="#portal-logo" css:theme="#logo a" />
<copy attributes="style" css:content="#portal-header" css:theme="header" />
<replace css:content-children="#portal-globalnav" css:theme-children="nav ul" />
<replace css:content="#portal-breadcrumbs" css:theme="#portal-breadcrumbs" method="raw" />
<drop css:content="#portal-breadcrumbs" />
<!--Content -->
<merge attributes="class" css:content="body" css:theme="body" />
<copy attributes="id dir" css:content="body" css:theme="body" />
<!-- Columns -->
<replace css:content-children="#portal-column-content" css:theme-children="#main-content" />
<replace css:content-children="#portal-column-one" css:theme-children="#column-one" />
<rules if-content="not(//*[@id='portal-column-one'])">
<drop css:theme="#column-one" />
</rules>
<replace css:content-children="#portal-column-two" css:theme-children="#column-two" />
<rules if-content="not(//*[@id='portal-column-two'])">
<drop css:theme="#column-two" />
</rules>
<!--Footer -->
<after css:content="#portal-siteactions" css:theme="p#footer-info" />
</rules>
</rules>