Current status of the support for portal workspace
git-svn-id: https://svn.libreccm.org/ccm/trunk@2854 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
0a9887617b
commit
562eb2de72
|
|
@ -0,0 +1,26 @@
|
||||||
|
/*
|
||||||
|
CSS styles for the portal workspace
|
||||||
|
Only for putting the columns in the right place.
|
||||||
|
*/
|
||||||
|
|
||||||
|
div#workspace div.portalColumn {
|
||||||
|
|
||||||
|
float: left;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
div#workspace div.portalColumn:last-child {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#workspace div.editPortlet:hover {
|
||||||
|
|
||||||
|
/*border: 1px solid #ccc;*/
|
||||||
|
|
||||||
|
background-color: #eee;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
div#workspace div.moveLeft.disabled img {
|
||||||
|
opacity: 0.25;
|
||||||
|
}
|
||||||
|
|
@ -31,313 +31,329 @@
|
||||||
<!-- Autor: Sören Bernstein -->
|
<!-- Autor: Sören Bernstein -->
|
||||||
|
|
||||||
<xsl:stylesheet
|
<xsl:stylesheet
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
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: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:mandalay="http://mandalay.quasiweb.de"
|
xmlns:mandalay="http://mandalay.quasiweb.de"
|
||||||
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
||||||
xmlns:portlet="http://www.uk.arsdigita.com/portlet/1.0"
|
xmlns:portlet="http://www.uk.arsdigita.com/portlet/1.0"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay portal portlet"
|
exclude-result-prefixes="xsl bebop cms nav mandalay portal portlet"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
|
||||||
<xsl:template match="portal:portal">
|
<xsl:template match="portal:portal">
|
||||||
<xsl:param name="layout" select="@layout"/>
|
<xsl:param name="layout" select="@layout"/>
|
||||||
<xsl:param name="column" select="'1'"/>
|
<xsl:param name="column" select="'1'"/>
|
||||||
|
|
||||||
<xsl:variable name="style">
|
<xsl:variable name="style">
|
||||||
<xsl:value-of select="(substring-before(@style, ' ') - 1) div substring-before(@style, ' ')"/>
|
<xsl:value-of select="(substring-before(@style, ' ') - 1) div substring-before(@style, ' ')"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="contains($layout, ',')">
|
<xsl:when test="contains($layout, ',')">
|
||||||
<div class="portalColumn">
|
<div class="portalColumn">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
<xsl:value-of select="concat('width:',substring-before(substring-before($layout, ','), '%') - $style,'%;')"/>
|
<xsl:value-of select="concat('width:',substring-before(substring-before($layout, ','), '%') - $style,'%;')"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:apply-templates select="*[@cellNumber = $column]"/>
|
<xsl:apply-templates select="*[@cellNumber = $column]"/>
|
||||||
|
</div>
|
||||||
|
<!--<div class="portalColumnSpacer">
|
||||||
|
|
||||||
|
</div>-->
|
||||||
|
<xsl:apply-templates select=".">
|
||||||
|
<xsl:with-param name="layout" select="substring-after($layout, ',')"/>
|
||||||
|
<xsl:with-param name="column" select="$column + 1"/>
|
||||||
|
</xsl:apply-templates>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<div class="portalColumn">
|
||||||
|
<xsl:attribute name="style">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="$column > 1">
|
||||||
|
<xsl:value-of select="concat('width:', substring-before($layout, '%') - $style,'%;')"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="concat('width:', $layout, ';')"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:apply-templates select="*[@cellNumber = $column]"/>
|
||||||
|
</div>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="portal:portalList">
|
||||||
|
<div class="portalList">
|
||||||
|
<xsl:apply-templates select="portal:portalDetails"/>
|
||||||
|
<div class="portalListEnd"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="portalColumnSpacer">
|
</xsl:template>
|
||||||
|
|
||||||
</div>
|
<xsl:template match="portal:portalDetails">
|
||||||
<xsl:apply-templates select=".">
|
<xsl:variable name="setConfirmDelete">
|
||||||
<xsl:with-param name="layout" select="substring-after($layout, ',')"/>
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:with-param name="column" select="$column + 1"/>
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
</xsl:apply-templates>
|
<xsl:with-param name="setting" select="'setConfirmDelete'"/>
|
||||||
</xsl:when>
|
<xsl:with-param name="default" select="'true'"/>
|
||||||
<xsl:otherwise>
|
</xsl:call-template>
|
||||||
<div class="portalColumn">
|
</xsl:variable>
|
||||||
<xsl:attribute name="style">
|
|
||||||
|
<div class="portalPane">
|
||||||
|
<xsl:if test="position() != 1">
|
||||||
|
<a href="{@moveLeftAction}">
|
||||||
|
<img border="0" style="margin-left: 5px">
|
||||||
|
<xsl:attribute name="src">
|
||||||
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
|
<xsl:with-param name="link">
|
||||||
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
|
<xsl:with-param name="setting" select="'setImage/moveLeft'"/>
|
||||||
|
<xsl:with-param name="default" select="'/images/portal/moveLeft.gif'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:with-param>
|
||||||
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:attribute>
|
||||||
|
</img>
|
||||||
|
</a>
|
||||||
|
</xsl:if>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$column > 1">
|
<xsl:when test="@isSelected = 'true'">
|
||||||
<xsl:value-of select="concat('width:', substring-before($layout, '%') - $style,'%;')"/>
|
<div>
|
||||||
</xsl:when>
|
<xsl:apply-templates select="../bebop:form"/>
|
||||||
<xsl:otherwise>
|
</div>
|
||||||
<xsl:value-of select="concat('width:', $layout, ';')"/>
|
</xsl:when>
|
||||||
</xsl:otherwise>
|
<xsl:otherwise>
|
||||||
|
<a href="{@selectAction}">
|
||||||
|
<xsl:value-of select="title"/>
|
||||||
|
</a>
|
||||||
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:apply-templates select="*[@cellNumber = $column]"/>
|
|
||||||
</div>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="portal:portalList">
|
|
||||||
<div class="portalList">
|
|
||||||
<xsl:apply-templates select="portal:portalDetails"/>
|
|
||||||
<div class="portalListEnd"/>
|
|
||||||
</div>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="portal:portalDetails">
|
|
||||||
<xsl:variable name="setConfirmDelete">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setConfirmDelete'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<div class="portalPane">
|
|
||||||
<xsl:if test="position() != 1">
|
|
||||||
<a href="{@moveLeftAction}">
|
|
||||||
<img border="0" style="margin-left: 5px">
|
|
||||||
<xsl:attribute name="src">
|
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
|
||||||
<xsl:with-param name="link">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setImage/moveLeft'"/>
|
|
||||||
<xsl:with-param name="default" select="'/images/portal/moveLeft.gif'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:attribute>
|
|
||||||
</img>
|
|
||||||
</a>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="@isSelected = 'true'">
|
|
||||||
<div>
|
|
||||||
<xsl:apply-templates select="../bebop:form"/>
|
|
||||||
</div>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<a href="{@selectAction}">
|
|
||||||
<xsl:value-of select="title"/>
|
|
||||||
</a>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
|
|
||||||
<!-- XXX -->
|
<!-- XXX -->
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="@deleteAction"/>
|
<xsl:value-of select="@deleteAction"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:if test="$setConfirmDelete = 'true'">
|
<xsl:if test="$setConfirmDelete = 'true'">
|
||||||
<xsl:attribute name="onclick">
|
<xsl:attribute name="onclick">
|
||||||
<xsl:text>return confirm('</xsl:text>
|
<xsl:text>return confirm('</xsl:text>
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:call-template name="mandalay:getStaticText">
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:with-param name="id" select="'pane/delete/confirmMessage'"/>
|
<xsl:with-param name="id" select="'pane/delete/confirmMessage'"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
<xsl:text>');</xsl:text>
|
<xsl:text>');</xsl:text>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<img border="0" style="margin-left: 5px">
|
||||||
|
<xsl:attribute name="src">
|
||||||
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
|
<xsl:with-param name="link">
|
||||||
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
|
<xsl:with-param name="setting" select="'setImage/delete'"/>
|
||||||
|
<xsl:with-param name="default" select="'/images/portal/delete.gif'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:with-param>
|
||||||
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:attribute>
|
||||||
|
</img>
|
||||||
|
</a>
|
||||||
|
<xsl:if test="position() != last()">
|
||||||
|
<a href="{@moveRightAction}">
|
||||||
|
<img border="0" style="margin-left: 5px">
|
||||||
|
<xsl:attribute name="src">
|
||||||
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
|
<xsl:with-param name="link">
|
||||||
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
|
<xsl:with-param name="setting" select="'setImage/delete'"/>
|
||||||
|
<xsl:with-param name="default" select="'/images/portal/moveRight.gif'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:with-param>
|
||||||
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:attribute>
|
||||||
|
</img>
|
||||||
|
</a>
|
||||||
|
</xsl:if>
|
||||||
|
</div>
|
||||||
|
<xsl:if test="position() != last()">
|
||||||
|
<div class="portalPaneSpacer"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<img border="0" style="margin-left: 5px">
|
</xsl:template>
|
||||||
<xsl:attribute name="src">
|
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
|
||||||
<xsl:with-param name="link">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setImage/delete'"/>
|
|
||||||
<xsl:with-param name="default" select="'/images/portal/delete.gif'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:attribute>
|
|
||||||
</img>
|
|
||||||
</a>
|
|
||||||
<xsl:if test="position() != last()">
|
|
||||||
<a href="{@moveRightAction}">
|
|
||||||
<img border="0" style="margin-left: 5px">
|
|
||||||
<xsl:attribute name="src">
|
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
|
||||||
<xsl:with-param name="link">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setImage/delete'"/>
|
|
||||||
<xsl:with-param name="default" select="'/images/portal/moveRight.gif'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:attribute>
|
|
||||||
</img>
|
|
||||||
</a>
|
|
||||||
</xsl:if>
|
|
||||||
</div>
|
|
||||||
<xsl:if test="position() != last()">
|
|
||||||
<div class="portalPaneSpacer"/>
|
|
||||||
</xsl:if>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="portlet:simple | bebop:portlet">
|
<xsl:template match="portlet:simple | bebop:portlet">
|
||||||
<div class="portlet">
|
<div class="portlet">
|
||||||
<xsl:variable name="setHeading">
|
<xsl:variable name="setHeading">
|
||||||
<xsl:apply-templates mode="setHeading"/>
|
<xsl:apply-templates mode="setHeading"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:if test="$setHeading = 'true'">
|
<xsl:if test="$setHeading = 'true'">
|
||||||
<h2>
|
<h2>
|
||||||
<xsl:value-of select="@title"/>
|
<xsl:value-of select="@title"/>
|
||||||
</h2>
|
</h2>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="bebop:portlet[portlet:action]">
|
<xsl:template match="bebop:portlet[portlet:action]">
|
||||||
<div class="editPortlet">
|
<div class="editPortlet">
|
||||||
<div class="startLeftFloat customize">
|
<div class="moveLeft">
|
||||||
<xsl:if test="portlet:action[@name='customize']">
|
<xsl:choose>
|
||||||
<xsl:apply-templates select="portlet:action[@name='customize']">
|
<xsl:when test="portlet:action[@name='moveLeft'] and @cellNumber != '1'">
|
||||||
<xsl:with-param name="src">
|
<xsl:apply-templates select="portlet:action[@name='moveLeft']">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:with-param name="src">
|
||||||
<xsl:with-param name="link">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
<xsl:with-param name="link">
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:with-param name="setting" select="'setImage/customize'"/>
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:with-param name="default" select="'/images/portal/customize.gif'"/>
|
<xsl:with-param name="setting" select="'setImage/moveLeft'"/>
|
||||||
</xsl:call-template>
|
<xsl:with-param name="default" select="'/images/portal/moveLeft.gif'"/>
|
||||||
</xsl:with-param>
|
</xsl:call-template>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
</xsl:with-param>
|
</xsl:call-template>
|
||||||
<xsl:with-param name="title" select="@name"/>
|
</xsl:with-param>
|
||||||
<xsl:with-param name="alt" select="'C'"/>
|
<xsl:with-param name="title" select="@name"/>
|
||||||
</xsl:apply-templates>
|
<xsl:with-param name="alt" select="'<'"/>
|
||||||
</xsl:if>
|
</xsl:apply-templates>
|
||||||
</div>
|
</xsl:when>
|
||||||
<div class="addLeftFloat moveUp">
|
<xsl:otherwise>
|
||||||
<xsl:if test="portlet:action[@name='moveUp'] and position() != '1'">
|
<xsl:attribute name="class">
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveUp']">
|
<xsl:value-of select="'moveLeft disabled'"/>
|
||||||
<xsl:with-param name="src">
|
</xsl:attribute>
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:variable name="img-src">
|
||||||
<xsl:with-param name="link">
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
<xsl:with-param name="setting" select="'setImage/moveLeft'"/>
|
||||||
<xsl:with-param name="setting" select="'setImage/moveUp'"/>
|
<xsl:with-param name="default" select="'/images/portal/moveLeft.gif'"/>
|
||||||
<xsl:with-param name="default" select="'/images/portal/moveUp.gif'"/>
|
</xsl:call-template>
|
||||||
</xsl:call-template>
|
</xsl:variable>
|
||||||
</xsl:with-param>
|
<img>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
<xsl:attribute name="src">
|
||||||
</xsl:call-template>
|
<xsl:value-of select="concat($theme-prefix, $img-src)"/>
|
||||||
</xsl:with-param>
|
</xsl:attribute>
|
||||||
<xsl:with-param name="title" select="@name"/>
|
</img>
|
||||||
<xsl:with-param name="alt" select="'^'"/>
|
</xsl:otherwise>
|
||||||
</xsl:apply-templates>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</div>
|
||||||
</div>
|
<div class="moveUp">
|
||||||
<div class="addLeftFloat delete">
|
<xsl:if test="portlet:action[@name='moveUp'] and position() != '1'">
|
||||||
<xsl:if test="portlet:action[@name='delete']">
|
<xsl:apply-templates select="portlet:action[@name='moveUp']">
|
||||||
<xsl:apply-templates select="portlet:action[@name='delete']">
|
<xsl:with-param name="src">
|
||||||
<xsl:with-param name="src">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:with-param name="link">
|
||||||
<xsl:with-param name="link">
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
<xsl:with-param name="setting" select="'setImage/moveUp'"/>
|
||||||
<xsl:with-param name="setting" select="'setImage/delete'"/>
|
<xsl:with-param name="default" select="'/images/portal/moveUp.gif'"/>
|
||||||
<xsl:with-param name="default" select="'/images/portal/delete.gif'"/>
|
</xsl:call-template>
|
||||||
</xsl:call-template>
|
</xsl:with-param>
|
||||||
</xsl:with-param>
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
</xsl:call-template>
|
||||||
</xsl:call-template>
|
</xsl:with-param>
|
||||||
</xsl:with-param>
|
<xsl:with-param name="title" select="@name"/>
|
||||||
<xsl:with-param name="title" select="@name"/>
|
<xsl:with-param name="alt" select="'^'"/>
|
||||||
<xsl:with-param name="alt" select="'X'"/>
|
</xsl:apply-templates>
|
||||||
</xsl:apply-templates>
|
</xsl:if>
|
||||||
</xsl:if>
|
</div>
|
||||||
</div>
|
<div class="customize">
|
||||||
<div class="startLeftFloat moveLeft">
|
<xsl:if test="portlet:action[@name='customize']">
|
||||||
<xsl:if test="portlet:action[@name='moveLeft'] and @cellNumber != '1'">
|
<xsl:apply-templates select="portlet:action[@name='customize']">
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveLeft']">
|
<xsl:with-param name="src">
|
||||||
<xsl:with-param name="src">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:with-param name="link">
|
||||||
<xsl:with-param name="link">
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
<xsl:with-param name="setting" select="'setImage/customize'"/>
|
||||||
<xsl:with-param name="setting" select="'setImage/moveLeft'"/>
|
<xsl:with-param name="default" select="'/images/portal/customize.gif'"/>
|
||||||
<xsl:with-param name="default" select="'/images/portal/moveLeft.gif'"/>
|
</xsl:call-template>
|
||||||
</xsl:call-template>
|
</xsl:with-param>
|
||||||
</xsl:with-param>
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
</xsl:call-template>
|
||||||
</xsl:call-template>
|
</xsl:with-param>
|
||||||
</xsl:with-param>
|
<xsl:with-param name="title" select="@name"/>
|
||||||
<xsl:with-param name="title" select="@name"/>
|
<xsl:with-param name="alt" select="'C'"/>
|
||||||
<xsl:with-param name="alt" select="'<'"/>
|
</xsl:apply-templates>
|
||||||
</xsl:apply-templates>
|
</xsl:if>
|
||||||
</xsl:if>
|
</div>
|
||||||
</div>
|
<div class="delete">
|
||||||
<div class="addLeftFloat portlet">
|
<xsl:if test="portlet:action[@name='delete']">
|
||||||
<!-- DE Wähle alle Kindknoten mit Ausnahme von portlet:action aus -->
|
<xsl:apply-templates select="portlet:action[@name='delete']">
|
||||||
<!-- EN Select all child nodes except portlet:action -->
|
<xsl:with-param name="src">
|
||||||
<xsl:apply-templates select="*[not(self::portlet:action)]"/>
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
</div>
|
<xsl:with-param name="link">
|
||||||
<div class="addLeftFloat moveRight">
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:if test="portlet:action[@name='moveRight'] and @cellNumber != substring-before(../@style, ' ')">
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveRight']">
|
<xsl:with-param name="setting" select="'setImage/delete'"/>
|
||||||
<xsl:with-param name="src">
|
<xsl:with-param name="default" select="'/images/portal/delete.gif'"/>
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
</xsl:call-template>
|
||||||
<xsl:with-param name="link">
|
</xsl:with-param>
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
</xsl:call-template>
|
||||||
<xsl:with-param name="setting" select="'setImage/moveRight'"/>
|
</xsl:with-param>
|
||||||
<xsl:with-param name="default" select="'/images/portal/moveRight.gif'"/>
|
<xsl:with-param name="title" select="@name"/>
|
||||||
</xsl:call-template>
|
<xsl:with-param name="alt" select="'X'"/>
|
||||||
</xsl:with-param>
|
</xsl:apply-templates>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
</xsl:if>
|
||||||
</xsl:call-template>
|
</div>
|
||||||
</xsl:with-param>
|
<div class="moveDown">
|
||||||
<xsl:with-param name="title" select="@name"/>
|
<!-- DE Das letzte bebop:portlet ist immer das Widget zum hinzugügen weiterer Portlets,
|
||||||
<xsl:with-param name="alt" select="'>'"/>
|
|
||||||
</xsl:apply-templates>
|
|
||||||
</xsl:if>
|
|
||||||
</div>
|
|
||||||
<div class="startLeftFloat bottomLeft">
|
|
||||||
</div>
|
|
||||||
<div class="addLeftFloat moveDown">
|
|
||||||
<!-- DE Das letzte bebop:portlet ist immer das Widget zum hinzugügen weiterer Portlets,
|
|
||||||
daher wird hier einer abgezogen, damit das letze verschiebare Portlet kein
|
daher wird hier einer abgezogen, damit das letze verschiebare Portlet kein
|
||||||
Verschieben nach unten zuläßt. -->
|
Verschieben nach unten zuläßt. -->
|
||||||
<!-- EN The last bebop:portlet is always the widget to add another portlet, so
|
<!-- EN The last bebop:portlet is always the widget to add another portlet, so
|
||||||
we substract 1 to ensure that the last movable portlet doesn't have a
|
we substract 1 to ensure that the last movable portlet doesn't have a
|
||||||
move down button. -->
|
move down button. -->
|
||||||
<xsl:if test="portlet:action[@name='moveDown'] and position() < last() - 1">
|
<xsl:if test="portlet:action[@name='moveDown'] and position() < last() - 1">
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveDown']">
|
<xsl:apply-templates select="portlet:action[@name='moveDown']">
|
||||||
<xsl:with-param name="src">
|
<xsl:with-param name="src">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:with-param name="link">
|
<xsl:with-param name="link">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
<xsl:with-param name="module" select="'portal'"/>
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
<xsl:with-param name="setting" select="'setImage/moveDown'"/>
|
<xsl:with-param name="setting" select="'setImage/moveDown'"/>
|
||||||
<xsl:with-param name="default" select="'/images/portal/moveDown.gif'"/>
|
<xsl:with-param name="default" select="'/images/portal/moveDown.gif'"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
<xsl:with-param name="title" select="@name"/>
|
<xsl:with-param name="title" select="@name"/>
|
||||||
<xsl:with-param name="alt" select="'v'"/>
|
<xsl:with-param name="alt" select="'v'"/>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="addLeftFloat bottomRight">
|
<div class="moveRight">
|
||||||
</div>
|
<xsl:if test="portlet:action[@name='moveRight'] and @cellNumber != substring-before(../@style, ' ')">
|
||||||
<div class="endFloat horizontalSpacerSmall"/>
|
<xsl:apply-templates select="portlet:action[@name='moveRight']">
|
||||||
</div>
|
<xsl:with-param name="src">
|
||||||
</xsl:template>
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
|
<xsl:with-param name="link">
|
||||||
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
|
<xsl:with-param name="module" select="'portal'"/>
|
||||||
|
<xsl:with-param name="setting" select="'setImage/moveRight'"/>
|
||||||
|
<xsl:with-param name="default" select="'/images/portal/moveRight.gif'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:with-param>
|
||||||
|
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:with-param>
|
||||||
|
<xsl:with-param name="title" select="@name"/>
|
||||||
|
<xsl:with-param name="alt" select="'>'"/>
|
||||||
|
</xsl:apply-templates>
|
||||||
|
</xsl:if>
|
||||||
|
</div>
|
||||||
|
<div class="bottomRight">
|
||||||
|
</div>
|
||||||
|
<div class="portlet">
|
||||||
|
<!-- DE Wähle alle Kindknoten mit Ausnahme von portlet:action aus -->
|
||||||
|
<!-- EN Select all child nodes except portlet:action -->
|
||||||
|
<xsl:apply-templates select="*[not(self::portlet:action)]"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:with-param name="link" select="'portal/'"/>
|
<xsl:with-param name="link" select="./primaryURL"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:with-param name="link" select="'portal/edit.jsp'"/>
|
<xsl:with-param name="link" select="concat(./primaryURL, 'edit.jsp')"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:call-template name="mandalay:linkParser">
|
||||||
<xsl:with-param name="link" select="'portal/admin/index.jsp'"/>
|
<xsl:with-param name="link" select="concat(./primaryURL, 'admin/index.jsp')"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
<h1>
|
<h1>
|
||||||
<xsl:value-of select="cms:item/title"/>
|
<xsl:value-of select="cms:item/title"/>
|
||||||
</h1>
|
</h1>
|
||||||
|
<xsl:apply-templates mode="lead"/>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,13 @@
|
||||||
<css-file media="screen">admin.css</css-file>
|
<css-file media="screen">admin.css</css-file>
|
||||||
<!--<css-file>wysiwyg.css</css-file>-->
|
<!--<css-file>wysiwyg.css</css-file>-->
|
||||||
</application>
|
</application>
|
||||||
|
<application name="portal">
|
||||||
|
<css-file media="screen">portal.css</css-file>
|
||||||
|
<css-file media="screen">public.css</css-file>
|
||||||
|
<css-file media="print">public.css</css-file>
|
||||||
|
<iehacks media="screen">public-ie-hacks.css</iehacks>
|
||||||
|
<iehacks media="print">public-ie-hacks.css</iehacks>
|
||||||
|
</application>
|
||||||
<application name="terms">
|
<application name="terms">
|
||||||
<css-file media="screen">admin.css</css-file>
|
<css-file media="screen">admin.css</css-file>
|
||||||
</application>
|
</application>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue