This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
plonetheme.pcfweb/plonetheme/pcfweb/static/rules.xml

50 lines
2.6 KiB
XML

<rules
xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<rules css:if-content="#visual-portal-wrapper">
<theme href="index.html" />
</rules>
<replace content="/html/head/title" theme="/html/head/title" />
<replace content="/html/head/base" theme="/html/head/base" />
<replace content="/html/head/meta" theme="/html/head/meta" />
<prepend content='/html/head' theme='/html/head' />
<append css:content="#statjs" theme="/html/head"/>
<copy attributes="class dir id" css:theme="body" css:content="body"/>
<replace css:theme-children="#logo h1">
<xsl:for-each css:select="a#portal-logo">
<xsl:value-of select="@title" />
</xsl:for-each>
</replace>
<copy content='//*[@id="portal-globalnav"]' theme='//*[@id="menu"]' />
<drop attributes="id" css:content="#portal-globalnav"/>
<prepend content='//*[@id="portal-personaltools-wrapper"]' theme='//*[@id="header"]' />
<copy content='//*[@id="portal-searchbox"]/form/*' theme='//*[@id="searchfield"]/form' />
<prepend css:content="#viewlet-above-content" css:theme="#container"/>
<drop css:content="#breadcrumbs-you-are-here"/>
<drop if-path="/" css:content="#portal-breadcrumbs"/>
<prepend css:content="dl.portalMessage" css:theme="#colOne"/>
<prepend css:content="#edit-bar" css:theme="#colOne"/>
<copy css:content-children="#content" css:theme="#content"/>
<before css:content="#viewlet-below-content" css:theme="#footer"/>
<copy content-children='//*[@id="portal-column-two"]' theme='//*[@id="colTwo"]' />
<drop attributes="class" css:content="#portal-column-two"/>
<copy content='//*[@id="portal-footer"]' theme='//*[@id="footer"]' />
<append content='//*[@id="portal-colophon"]' theme='//*[@id="footer"]' />
<append content='//*[@id="portal-siteactions"]' theme='//*[@id="footer"]' />
<drop css:content=".documentFirstHeading"/>
<replace css:content=".documentFirstHeading" css:theme="#pagetitle" method="raw"/>
<drop css:content="#plone-document-byline"/>
<after css:content="#plone-document-byline" css:theme="#pagetitle" method="raw"/>
<after content-children='//*[@id="portal-column-one"]' theme='//*[@id="pagetitle"]' />
<drop css:content="#parent-fieldname-description"/>
<replace css:content="#parent-fieldname-description" css:theme='#content-description-replaced' method="raw"/>
<drop css:theme="#content-description" if-content="not(//*[@id='parent-fieldname-description'])"/>
</rules>