-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrules.xml
66 lines (47 loc) · 2.74 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
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<rules
xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- The default theme, used for standard Plone web pages -->
<theme href="index.html" css:if-content="#visual-portal-wrapper" />
<notheme if-path="@@manage-viewlets" />
<notheme if="$ajax_load" />
<!-- Apply the following rules to standard Plone pages -->
<rules css:if-content="#visual-portal-wrapper">
<!-- Add meta tags -->
<drop css:content="link[href$='public.css']" />
<drop css:content="link[href$='columns.css']" />
<drop css:content="link[href$='forms.css']" />
<drop css:content="link[href$='portlets.css']" />
<drop css:content="link[href$='discussion.css']" />
<drop css:content="link[href$='controlpanel.css']" />
<drop css:content="link[href$='authoring.css']" />
<drop css:content="link[href$='ploneKss.css']" />
<drop css:content="link[href$='print.css']" />
<drop css:content="link[href$='mobile.css']" />
<drop css:content="link[href$='reset.css']" />
<drop css:content="link[href*='base']" />
<drop css:content="link[href$='favicon.ico']" />
<!-- Replace title with Plone's page title -->
<replace css:theme="html head title" css:content="html head title" />
<!-- Copy base tag from Plone -->
<before css:theme-children="html head" css:content="html head base" />
<!-- Copy link, style, meta tags from Plone head -->
<after css:theme-children="html head"
content="/html/head/link | /html/head/style | /html/head/meta" />
<!-- merge classes from Plone body with theme body -->
<merge attributes="class" css:theme="body" css:content="body" />
<!-- Copy script tags from Plone head to end of body -->
<after css:theme-children="html body" css:content="html head script" />
<!-- Insert your own rules here -->
<replace css:content="#portal-siteactions" css:theme="#portal-siteactions" />
<replace css:content="#portal-searchbox" css:theme="#portal-searchbox" />
<replace css:content="#portal-personaltools-wrapper" css:theme="#portal-personaltools-wrapper" />
<replace css:content="#portal-languageselector" css:theme="#portal-languageselector" />
<replace css:content="#portal-globalnav" css:theme="#portal-globalnav" />
<replace css:content="#portal-breadcrumbs" css:theme="#portal-breadcrumbs" />
<after css:theme="#portal-breadcrumbs" css:content="#edit-bar" />
<replace css:content="#content" css:theme="#content" />
</rules>
</rules>