91 lines
4.2 KiB
XML
91 lines
4.2 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' />
|
|
<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"]' />
|
|
<!--<prepend content='//*[@id="portal-searchbox"]' theme='//*[@id="header"]' />-->
|
|
|
|
<prepend css:content="#viewlet-above-content" css:theme="#content"/>
|
|
<prepend css:content="#edit-bar" css:theme="#content"/>
|
|
<prepend css:content="dl.portalMessage" css:theme="#realcontent"/>
|
|
<copy css:content-children="#content" css:theme="#realcontent"/>
|
|
<before css:content="#viewlet-below-content" css:theme="#footer"/>
|
|
|
|
<copy content-children='//*[@id="portal-column-one"]' theme='//*[@id="lcolmenu"]' />
|
|
<copy content='//*[@id="portal-footer"]' theme='//*[@id="footer"]' />
|
|
<append content='//*[@id="portal-colophon"]' theme='//*[@id="footer"]' />
|
|
<append content='//*[@id="portal-siteactions"]' theme='//*[@id="footer"]' />
|
|
|
|
<!-- breadcrumb, taking its first item to put as page title -->
|
|
<copy css:content-children='#portal-breadcrumbs' css:theme=".navtxt"/>
|
|
<copy css:if-content="#breadcrumbs-1 a" css:content-children='#breadcrumbs-1 a' css:theme="#pagetitle"/>
|
|
<copy css:if-content="#breadcrumbs-1 span" css:content-children='#breadcrumbs-1 span' css:theme="#pagetitle"/>
|
|
<copy css:if-content="#portlet-prefs" css:content-children='#portlet-prefs dt.portletHeader a' css:theme="#pagetitle"/>
|
|
<copy if-path="plone_control_panel/" css:theme="#pagetitle">Configuration du site</copy>
|
|
<copy if-path="sitemap/" css:theme="#pagetitle">Plan du site</copy>
|
|
<copy if-path="/" css:theme="#pagetitle">Le Parlement</copy>
|
|
<copy if-path="pfbsearch/" css:theme="#pagetitle">Recherche</copy>
|
|
<copy if-path="eventsearch/" css:theme="#pagetitle">Recherche</copy>
|
|
<copy if-path="pfbadvsearch/" css:theme="#pagetitle">Recherche avancée</copy>
|
|
<drop css:content="#breadcrumbs-you-are-here"/>
|
|
<drop css:content="#portal-breadcrumbs"/>
|
|
|
|
<!-- top navigation -->
|
|
<drop css:content="#portaltab-index_html"/>
|
|
|
|
<!-- right column -->
|
|
<!-- copy all portlets, but only keep link title for static text portlets,
|
|
and the portlet class, so they can be styled differently.
|
|
-->
|
|
<copy css:theme="#rcol">
|
|
<xsl:for-each css:select="#portal-column-two div">
|
|
<xsl:choose>
|
|
<xsl:when test="contains(dl/@class, 'portletStaticText') and dl/dt/span/a">
|
|
<div class="{dl/@class}"><div>
|
|
<xsl:copy-of select="dl/dt/span/a"/>
|
|
</div></div>
|
|
</xsl:when>
|
|
<xsl:when test="p">
|
|
<xsl:copy-of select="p"/>
|
|
</xsl:when>
|
|
<xsl:when test="dl/dd/form[@id = 'searchform']">
|
|
<dl class="portlet portletSearch">
|
|
<dt class="portletHeader"></dt>
|
|
<dd class="portletItem">
|
|
<form action="/pfbsearch" id="searchform">
|
|
<xsl:copy-of select="dl/dd/form"/>
|
|
</form>
|
|
</dd>
|
|
<dd class="portletFooter">
|
|
<a class="tile" href="/pfbadvsearch">Recherche avancée…</a>
|
|
</dd>
|
|
</dl>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:copy-of select="dl"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</copy>
|
|
<append css:content="#portal-column-two .portlets-manager" css:theme="#rcol"/>
|
|
<append css:content="#portal-column-two .managePortletsLink" css:theme="#rcol"/>
|
|
|
|
</rules>
|