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;
|
||||||
|
}
|
||||||
|
|
@ -57,9 +57,9 @@
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:apply-templates select="*[@cellNumber = $column]"/>
|
<xsl:apply-templates select="*[@cellNumber = $column]"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="portalColumnSpacer">
|
<!--<div class="portalColumnSpacer">
|
||||||
|
|
||||||
</div>
|
</div>-->
|
||||||
<xsl:apply-templates select=".">
|
<xsl:apply-templates select=".">
|
||||||
<xsl:with-param name="layout" select="substring-after($layout, ',')"/>
|
<xsl:with-param name="layout" select="substring-after($layout, ',')"/>
|
||||||
<xsl:with-param name="column" select="$column + 1"/>
|
<xsl:with-param name="column" select="$column + 1"/>
|
||||||
|
|
@ -201,27 +201,46 @@
|
||||||
|
|
||||||
<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: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:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:attribute name="class">
|
||||||
|
<xsl:value-of select="'moveLeft disabled'"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:variable name="img-src">
|
||||||
|
<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:variable>
|
||||||
|
<img>
|
||||||
|
<xsl:attribute name="src">
|
||||||
|
<xsl:value-of select="concat($theme-prefix, $img-src)"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</img>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</div>
|
</div>
|
||||||
<div class="addLeftFloat moveUp">
|
<div class="moveUp">
|
||||||
<xsl:if test="portlet:action[@name='moveUp'] and position() != '1'">
|
<xsl:if test="portlet:action[@name='moveUp'] and position() != '1'">
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveUp']">
|
<xsl:apply-templates select="portlet:action[@name='moveUp']">
|
||||||
<xsl:with-param name="src">
|
<xsl:with-param name="src">
|
||||||
|
|
@ -241,7 +260,27 @@
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="addLeftFloat delete">
|
<div class="customize">
|
||||||
|
<xsl:if test="portlet:action[@name='customize']">
|
||||||
|
<xsl:apply-templates select="portlet:action[@name='customize']">
|
||||||
|
<xsl:with-param 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/customize'"/>
|
||||||
|
<xsl:with-param name="default" select="'/images/portal/customize.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="'C'"/>
|
||||||
|
</xsl:apply-templates>
|
||||||
|
</xsl:if>
|
||||||
|
</div>
|
||||||
|
<div class="delete">
|
||||||
<xsl:if test="portlet:action[@name='delete']">
|
<xsl:if test="portlet:action[@name='delete']">
|
||||||
<xsl:apply-templates select="portlet:action[@name='delete']">
|
<xsl:apply-templates select="portlet:action[@name='delete']">
|
||||||
<xsl:with-param name="src">
|
<xsl:with-param name="src">
|
||||||
|
|
@ -261,54 +300,7 @@
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="startLeftFloat moveLeft">
|
<div class="moveDown">
|
||||||
<xsl:if test="portlet:action[@name='moveLeft'] and @cellNumber != '1'">
|
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveLeft']">
|
|
||||||
<xsl:with-param 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:with-param>
|
|
||||||
<xsl:with-param name="title" select="@name"/>
|
|
||||||
<xsl:with-param name="alt" select="'<'"/>
|
|
||||||
</xsl:apply-templates>
|
|
||||||
</xsl:if>
|
|
||||||
</div>
|
|
||||||
<div class="addLeftFloat 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 class="addLeftFloat moveRight">
|
|
||||||
<xsl:if test="portlet:action[@name='moveRight'] and @cellNumber != substring-before(../@style, ' ')">
|
|
||||||
<xsl:apply-templates select="portlet:action[@name='moveRight']">
|
|
||||||
<xsl:with-param 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/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="startLeftFloat bottomLeft">
|
|
||||||
</div>
|
|
||||||
<div class="addLeftFloat moveDown">
|
|
||||||
<!-- DE Das letzte bebop:portlet ist immer das Widget zum hinzugügen weiterer Portlets,
|
<!-- 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. -->
|
||||||
|
|
@ -334,9 +326,33 @@
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="addLeftFloat bottomRight">
|
<div class="moveRight">
|
||||||
|
<xsl:if test="portlet:action[@name='moveRight'] and @cellNumber != substring-before(../@style, ' ')">
|
||||||
|
<xsl:apply-templates select="portlet:action[@name='moveRight']">
|
||||||
|
<xsl:with-param 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/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>
|
||||||
<div class="endFloat horizontalSpacerSmall"/>
|
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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