Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output encoding="UTF-8" indent="no" method="html" version="5.0" />
- <xsl:strip-space elements="article section"/>
- <xsl:preserve-space elements="span, div#hashtags, p.status"/>
- <!-- <notheme if="$host = 'edit.fhstp.ac.at'" /> -->
- <!-- <notheme if="$host = 'localhost:8080'" /> -->
- <notheme if="$ajax_load"/>
- <notheme css:if-not-content="#visual-portal-wrapper"/>
- <xi:include href="./includes/_head.xml"/>
- <drop if="$hide_subnav" theme="//*[@id = 'navigation-subnavigation']"/>
- <xsl:template match="a[@id='portal-logo']">
- <xsl:copy>
- <xsl:attribute name="id">logo</xsl:attribute>
- <xsl:apply-templates select="@*[name()!='id']"/>
- <!-- <xsl:apply-templates select="node()"/> -->
- </xsl:copy>
- </xsl:template>
- <rules if="//*[contains(@id, 'portal-breadcrumbs')]">
- <after css:theme="#global-navigation">
- <section class="sr-only" id="breadcrumbs">
- <h5 class="sr-only">Breadcrumbs</h5>
- <xsl:apply-templates css:select="#breadcrumbs-you-are-here"/>
- <ol itemscope="" itemtype="http://schema.org/BreadcrumbList">
- <xsl:for-each css:select="#portal-breadcrumbs ol >*:not(.breadcrumbSeparator) >*:not(.breadcrumbSeparator)">
- <xsl:variable name="count">
- <xsl:value-of select="position()"/>
- </xsl:variable>
- <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
- <xsl:apply-templates select="."/>
- <meta content="{$count}" itemprop="position"/>
- </li>
- </xsl:for-each>
- </ol>
- </section>
- </after>
- </rules>
- <before theme-children="/html/body">
- <xsl:attribute name="class">
- <xsl:value-of select="/html/body/@class" />
- <xsl:if css:test="body.template-default_error_message"> text</xsl:if>
- <xsl:if css:test="body.template-login_form"> text</xsl:if>
- <xsl:if css:test="body.portaltype-document"> text</xsl:if>
- <xsl:if css:test="body.portaltype-job-offer"> form</xsl:if>
- <xsl:if css:test="body.portaltype-project"> text research</xsl:if>
- </xsl:attribute>
- </before>
- <theme href="./static/theme.html"/>
- <replace css:theme-children="div#wrapper">
- <xsl:apply-templates css:select="nav#mp-menu"/>
- <section class="scroller">
- <div class="overlay-inner"/>
- <xsl:apply-templates css:select="section#cookie-container"/>
- <xsl:apply-templates css:select="section#meta"/>
- <section id="global-navigation">
- <div class="container">
- <nav role="navigation">
- <div>
- <xsl:apply-templates css:select="#portal-logo"/>
- </div>
- <div class="row">
- <div class="md">
- <ul class="language-select">
- <xsl:apply-templates select="//ul[@class = 'language-select']/li"/>
- </ul>
- <button class="btn-slash btn-icon-menu navbar-toggle collapsed" data-target="#mlpm" data-toggle="collapse" id="mlpm-trigger" type="button">
- <span class="icon"/>Menu</button>
- </div>
- <ul class="nav navbar-nav">
- <xsl:apply-templates select="//ul[@id = 'portal-globalnav']/li"/>
- </ul>
- </div>
- </nav>
- </div>
- </section>
- <xsl:apply-templates css:select="section#breadcrumbs"/>
- <xsl:if test="/html/body[contains(concat(' ', normalize-space(@class), ' '),' portaltype-collection ')]">
- <xsl:if test="/html/body[contains(concat(' ', normalize-space(@class), ' '),' template-pressrelease_list ')] or
- /html/body[contains(concat(' ', normalize-space(@class), ' '),' template-projects-listing_without-filter ')]">
- <xi:include href="./includes/collection.xml" />
- </xsl:if>
- <xsl:if test="/html/body[contains(concat(' ', normalize-space(@class), ' '),' template-person_grouped_view ')]">
- <xi:include href="./includes/person-grouped.xml"/>
- </xsl:if>
- <append css:theme="body">3</append>
- </xsl:if>
- <xsl:apply-templates css:select="footer#portal-footer"/>
- <xsl:apply-templates css:select="footer#meta-footer"/>
- </section>
- </replace>
- </rules>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement