<?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">

    <rules css:if-content="#visual-portal-wrapper">

        <!--This is the theme reference -->
        <theme href="index.html" />
        
        <!-- BODY THEME (inject body classes from Plone into the theme) --> <copy attributes="*" css:theme="body" css:content="body" />
        <!-- Base tag --> <replace theme="/html/head/base" content="/html/head/base" /> 
        <!-- HEAD: title -->  <replace theme="/html/head/title" content="/html/head/title" /> <before theme="/html/head" content="/html/head" />

        <!-- Replace title with Plone's page title  -->
        <replace css:theme="html head title" css:content="html head title" />
        
        <!--Replacing content with Plone's content
        <replace css:theme-children="div#text" css:content-children="div#content"/> -->
        <copy css:theme="#portal-column-content" css:content="#portal-column-content"/> -->
        
        <!--Replacing nav bar with Plone's nav bar-->
        <replace css:theme-children="ul#NavBar" css:content-children="ul#portal-globalnav"/>
        
        <!--Replacing Left Side of the User Bar with Plone's User Bar
        <replace css:theme-children="ul#UserBarLeft" css:content-children="ul#content-views"/> -->
        
        <!--Replacing Right Side of the User Bar with Plone's User Bar
        <before css:theme="#content" css:content="#edit-bar" />-->
            
        <replace css:theme-children="div#NewsBlog" css:content-children="div#portal-column-two" />

        <!-- XXX Drop user menus, not working -->
        <drop css:theme="#UserBarRight" />
        <drop css:theme="#UserBarLeft" />

        <copy css:theme="#portlets" css:content="#portal-column-two" />

        <copy css:theme="#footer" css:content="#portal-footer" />
        <after css:theme="#footer" css:content="#portal-colophon" />

        <copy css:theme="#SearchBar" css:content="#portal-searchbox" />

        <drop css:content=".searchSection" />

        <copy css:theme=".userbarright" css:content="#portal-personaltools" />

    </rules>
</rules>
