Mandalay support for the new SubSiteBanner
git-svn-id: https://svn.libreccm.org/ccm/trunk@2512 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
f9e11f3f34
commit
a4e3c23b55
|
|
@ -0,0 +1,34 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright: 2013 Jens Pelzetter
|
||||||
|
|
||||||
|
This file is part of Mandalay.
|
||||||
|
|
||||||
|
Mandalay is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Mandalay is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translations>
|
||||||
|
<line id="lang">Deutsch</line>
|
||||||
|
<line id="version">0.1</line>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is used for the providing localised Texts for the SubSiteBanner
|
||||||
|
The id of the line is the name (URL) of the site, for example www.example.org.
|
||||||
|
If you use a none standard port, you must add the port: www.example.org:8080
|
||||||
|
-->
|
||||||
|
|
||||||
|
<line id="www.example.com">Die Beispiel-Firma</line>
|
||||||
|
<line id="www.example.org">Die Beispiel-Organisation</line>
|
||||||
|
|
||||||
|
</translations>
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright: 2013 Jens Pelzetter
|
||||||
|
|
||||||
|
This file is part of Mandalay.
|
||||||
|
|
||||||
|
Mandalay is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Mandalay is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translations>
|
||||||
|
<line id="lang">Deutsch</line>
|
||||||
|
<line id="version">0.1</line>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is used for the providing localised Texts for the SubSiteBanner
|
||||||
|
The id of the line is the name (URL) of the site, for example www.example.org.
|
||||||
|
If you use a none standard port, you must add the port: www.example.org:8080
|
||||||
|
-->
|
||||||
|
|
||||||
|
<line id="www.example.com">The Example Company</line>
|
||||||
|
<line id="www.example.org">The Example Organisation</line>
|
||||||
|
|
||||||
|
</translations>
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
<showText class="siteTitle">
|
<showText class="siteTitle">
|
||||||
<line>layout/page/header/title</line>
|
<line>layout/page/header/title</line>
|
||||||
</showText>
|
</showText>
|
||||||
|
<showSubSiteBanner/>
|
||||||
<div id="nav" class="contentWidth">
|
<div id="nav" class="contentWidth">
|
||||||
<showNavigationMenu>
|
<showNavigationMenu>
|
||||||
<setMinLevel>0</setMinLevel>
|
<setMinLevel>0</setMinLevel>
|
||||||
|
|
|
||||||
|
|
@ -21,112 +21,116 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||||
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
||||||
xmlns:ppp="http://www.arsdigita.com/PublicPersonalProfile/1.0"
|
xmlns:ppp="http://www.arsdigita.com/PublicPersonalProfile/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
xmlns:mandalay="http://mandalay.quasiweb.de"
|
||||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav search portal ppp mandalay"
|
exclude-result-prefixes="xsl bebop aplaws ui cms nav search portal ppp mandalay"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
|
||||||
<!-- Autor: Sören Bernstein -->
|
<!-- Autor: Sören Bernstein -->
|
||||||
|
|
||||||
<!-- DE Hier können Erweiterungen für den LayoutParser integriert werden, z.B. für eigene Module -->
|
<!-- DE Hier können Erweiterungen für den LayoutParser integriert werden, z.B. für eigene Module -->
|
||||||
<!-- DE Die Templates werden über xsl:apply-templates aufgerufen, also müssen match-Angaben vorhanden sein -->
|
<!-- DE Die Templates werden über xsl:apply-templates aufgerufen, also müssen match-Angaben vorhanden sein -->
|
||||||
|
|
||||||
<!-- EN this file is for integrating user coded extentions for layoutParser -->
|
<!-- EN this file is for integrating user coded extentions for layoutParser -->
|
||||||
<!-- EN templates are called by xsl:apply-templates, so there must be a match-attribute for the template -->
|
<!-- EN templates are called by xsl:apply-templates, so there must be a match-attribute for the template -->
|
||||||
|
|
||||||
<!-- DE Beispiel template: Zum testen, hier Kommentar entfernen und in der Layout-Datei <userFunction/> eintragen-->
|
<!-- DE Beispiel template: Zum testen, hier Kommentar entfernen und in der Layout-Datei <userFunction/> eintragen-->
|
||||||
<!-- EN Example template : to test, remove comment and insert <userFunction/> in layout file-->
|
<!-- EN Example template : to test, remove comment and insert <userFunction/> in layout file-->
|
||||||
|
|
||||||
<!--<xsl:template match="userFunction">
|
<!--<xsl:template match="userFunction">
|
||||||
<h2>UserFunction</h2>
|
<h2>UserFunction</h2>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:template match="showDynamicImage">
|
<xsl:template match="showDynamicImage">
|
||||||
<div>
|
<div>
|
||||||
<xsl:call-template name="mandalay:setIdAndClass"/>
|
<xsl:call-template name="mandalay:setIdAndClass"/>
|
||||||
<xsl:call-template name="mandalay:dynamicImage"/>
|
<xsl:call-template name="mandalay:dynamicImage"/>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="useEditLink">
|
<xsl:template match="showSubSiteBanner">
|
||||||
<xsl:choose>
|
<xsl:call-template name="subsiteBanner"/>
|
||||||
<xsl:when test="$resultTree//cms:contentPanel/cms:item/editLink">
|
</xsl:template>
|
||||||
<xsl:call-template name="mandalay:itemEditLink">
|
|
||||||
<xsl:with-param name="editUrl" select="$resultTree//cms:contentPanel/cms:item/editLink"/>
|
<xsl:template match="useEditLink">
|
||||||
<xsl:with-param name="itemTitle" select="$resultTree//cms:contentPanel/cms:item/title"/>
|
<xsl:choose>
|
||||||
|
<xsl:when test="$resultTree//cms:contentPanel/cms:item/editLink">
|
||||||
|
<xsl:call-template name="mandalay:itemEditLink">
|
||||||
|
<xsl:with-param name="editUrl" select="$resultTree//cms:contentPanel/cms:item/editLink"/>
|
||||||
|
<xsl:with-param name="itemTitle" select="$resultTree//cms:contentPanel/cms:item/title"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="$resultTree//nav:greetingItem/cms:item/editLink">
|
||||||
|
<xsl:call-template name="mandalay:itemEditLink">
|
||||||
|
<xsl:with-param name="editUrl" select="$resultTree//nav:greetingItem/cms:item/editLink"/>
|
||||||
|
<xsl:with-param name="itemTitle" select="$resultTree//nav:greetingItem/cms:item/title"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
|
<!--<div class="itemEditLink">
|
||||||
|
<a>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="concat('/ccm/', $resultTree//cms:contentPanel/cms:item/editLink)"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:text>
|
||||||
|
CLICK TO EDIT
|
||||||
|
</xsl:text>
|
||||||
|
</a>
|
||||||
|
</div>-->
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="useHomepageTitle">
|
||||||
|
<xsl:call-template name="mandalay:homepageTitle"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="useNavigationHeading">
|
||||||
|
<xsl:call-template name="mandalay:navigationHeading"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="showPublicationExportLinks">
|
||||||
|
<xsl:call-template name="showPublicationExportLinks"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="showPublicationLibrarySignatures">
|
||||||
|
<xsl:call-template name="showPublicationLibrarySignatures"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="showPPPOwnerName">
|
||||||
|
<xsl:apply-templates select="$resultTree//ppp:ownerName"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="showPPPOwnerImage">
|
||||||
|
<xsl:apply-templates select="$resultTree//ppp:profileImage"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="useOrgaUnitTab">
|
||||||
|
<xsl:apply-templates select="$resultTree/orgaUnitTabs/selectedTab/." mode="tabs"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="piwikJsTracker">
|
||||||
|
<xsl:call-template name="piwikJsTracker">
|
||||||
|
<xsl:with-param name="piwikUrl" select="./@piwikUrl"/>
|
||||||
|
<xsl:with-param name="idSite" select="./@idSite"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:when>
|
</xsl:template>
|
||||||
<xsl:when test="$resultTree//nav:greetingItem/cms:item/editLink">
|
|
||||||
<xsl:call-template name="mandalay:itemEditLink">
|
|
||||||
<xsl:with-param name="editUrl" select="$resultTree//nav:greetingItem/cms:item/editLink"/>
|
|
||||||
<xsl:with-param name="itemTitle" select="$resultTree//nav:greetingItem/cms:item/title"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:when>
|
|
||||||
</xsl:choose>
|
|
||||||
<!--<div class="itemEditLink">
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat('/ccm/', $resultTree//cms:contentPanel/cms:item/editLink)"/>
|
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:text>
|
|
||||||
CLICK TO EDIT
|
|
||||||
</xsl:text>
|
|
||||||
</a>
|
|
||||||
</div>-->
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="useHomepageTitle">
|
|
||||||
<xsl:call-template name="mandalay:homepageTitle"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="useNavigationHeading">
|
|
||||||
<xsl:call-template name="mandalay:navigationHeading"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="showPublicationExportLinks">
|
|
||||||
<xsl:call-template name="showPublicationExportLinks"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="showPublicationLibrarySignatures">
|
|
||||||
<xsl:call-template name="showPublicationLibrarySignatures"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="showPPPOwnerName">
|
|
||||||
<xsl:apply-templates select="$resultTree//ppp:ownerName"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="showPPPOwnerImage">
|
|
||||||
<xsl:apply-templates select="$resultTree//ppp:profileImage"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="useOrgaUnitTab">
|
|
||||||
<xsl:apply-templates select="$resultTree/orgaUnitTabs/selectedTab/." mode="tabs"/>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="piwikJsTracker">
|
|
||||||
<xsl:call-template name="piwikJsTracker">
|
|
||||||
<xsl:with-param name="piwikUrl" select="./@piwikUrl"/>
|
|
||||||
<xsl:with-param name="idSite" select="./@idSite"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="piwikImageTracker">
|
<xsl:template match="piwikImageTracker">
|
||||||
<xsl:call-template name="piwikImageTracker">
|
<xsl:call-template name="piwikImageTracker">
|
||||||
<xsl:with-param name="piwikUrl" select="./@piwikUrl"/>
|
<xsl:with-param name="piwikUrl" select="./@piwikUrl"/>
|
||||||
<xsl:with-param name="idSite" select="./@idSite"/>
|
<xsl:with-param name="idSite" select="./@idSite"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="showSocialMedia">
|
<xsl:template match="showSocialMedia">
|
||||||
<xsl:call-template name="mandalay:socialMedia"/>
|
<xsl:call-template name="mandalay:socialMedia"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
||||||
|
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||||
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||||
|
exclude-result-prefixes="xsl bebop cms"
|
||||||
|
version="1.0">
|
||||||
|
|
||||||
|
<xsl:import href="subsite/subsiteBanner.xsl"/>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
||||||
|
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||||
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||||
|
xmlns:mandalay="http://mandalay.quasiweb.de"
|
||||||
|
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||||
|
exclude-result-prefixes="xsl bebop cms mandalay ui"
|
||||||
|
version="1.0">
|
||||||
|
|
||||||
|
<xsl:template name="subsiteBanner">
|
||||||
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
|
<xsl:if test="$resultTree//ui:siteBanner[@bebop:classname='com.arsdigita.subsite.ui.SubSiteBanner']">
|
||||||
|
<div class="siteBanner subSiteBanner">
|
||||||
|
<xsl:variable name="subsiteBannerText">
|
||||||
|
<xsl:call-template name="mandalay:getStaticText">
|
||||||
|
<xsl:with-param name="module" select="'subSiteBanner'"/>
|
||||||
|
<xsl:with-param name="id"
|
||||||
|
select="$resultTree//ui:siteBanner[@bebop:classname='com.arsdigita.subsite.ui.SubSiteBanner']/@sitename"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="(string-length($subsiteBannerText) < 1) or (contains(subsiteBannerText, 'Missing translation'))">
|
||||||
|
<xsl:value-of select="$resultTree//ui:siteBanner[@bebop:classname='com.arsdigita.subsite.ui.SubSiteBanner']/@sitename"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$subsiteBannerText"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</div>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
@ -41,9 +41,11 @@
|
||||||
|
|
||||||
<xsl:import href="includes/mandalay.xsl"/>
|
<xsl:import href="includes/mandalay.xsl"/>
|
||||||
<xsl:import href="includes/navigation.xsl"/>
|
<xsl:import href="includes/navigation.xsl"/>
|
||||||
<xsl:import href="includes/types.xsl"/>
|
|
||||||
<xsl:import href="includes/public-personal-profile.xsl"/>
|
<xsl:import href="includes/public-personal-profile.xsl"/>
|
||||||
<xsl:import href="includes/piwik.xsl"/>
|
<xsl:import href="includes/piwik.xsl"/>
|
||||||
|
<xsl:import href="includes/subsite.xsl"/>
|
||||||
|
<xsl:import href="includes/types.xsl"/>
|
||||||
|
|
||||||
<!--<xsl:import href="includes/weblog.xsl"/>-->
|
<!--<xsl:import href="includes/weblog.xsl"/>-->
|
||||||
<!--<xsl:import href="includes/atoz.xsl"/>-->
|
<!--<xsl:import href="includes/atoz.xsl"/>-->
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue