Mandalay-Anpassung für lokale MathJax Installation

git-svn-id: https://svn.libreccm.org/ccm/trunk@1727 8810af33-2d31-482b-a856-94f89814c4df
master
quasi 2012-06-27 12:14:34 +00:00
parent 797557c5a6
commit 2bfd5df4b9
8 changed files with 35 additions and 43 deletions

View File

@ -147,9 +147,11 @@ Parameter showCaption: boolean to sshow caption
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:value-of select="$imageGallery"/> <xsl:value-of select="$imageGallery"/>
</xsl:attribute> </xsl:attribute>
<xsl:if test="$imageGallery != 'imageZoom'">
<xsl:attribute name="rel"> <xsl:attribute name="rel">
<xsl:value-of select="$imageGallery"/> <xsl:value-of select="$imageGallery"/>
</xsl:attribute> </xsl:attribute>
</xsl:if>
<xsl:call-template name="mandalay:imageGallerySetup"> <xsl:call-template name="mandalay:imageGallerySetup">
<xsl:with-param name="imageGallery" select="$imageGallery"/> <xsl:with-param name="imageGallery" select="$imageGallery"/>
</xsl:call-template> </xsl:call-template>

View File

@ -43,15 +43,20 @@
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<xsl:template name="mandalay:imageGallery"> <xsl:template name="mandalay:fancybox">
<!--
<xsl:if test="count($resultTree//cms:item/image | $resultTree//cms:item/imageAttachments/image) > 1"> <xsl:if test="count($resultTree//cms:item/image | $resultTree//cms:item/imageAttachments/image) > 1">
-->
<script type="text/javascript" src="/assets/jquery.js"/> <script type="text/javascript" src="/assets/jquery.js"/>
<script type="text/javascript" src="/assets/fancybox/jquery.fancybox.pack.js"/> <script type="text/javascript" src="/assets/fancybox/jquery.fancybox.pack.js"/>
<script type="text/javascript" src="/assets/fancybox/jquery.easing.pack.js"/> <script type="text/javascript" src="/assets/fancybox/jquery.easing.pack.js"/>
<script type="text/javascript" src="/assets/fancybox/jquery.mousewheel.pack.js"/> <script type="text/javascript" src="/assets/fancybox/jquery.mousewheel.pack.js"/>
<link rel="stylesheet" href="/assets/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/assets/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen"/>
<script type="text/javascript">$(document).ready(function() {$("a.imageZoom").fancybox({'type':'image'});});</script>
<!--
</xsl:if> </xsl:if>
-->
<!-- <!--
<xsl:variable name="firstMatch"> <xsl:variable name="firstMatch">
<xsl:value-of select="//imageAttachment/@name"/> <xsl:value-of select="//imageAttachment/@name"/>

View File

@ -52,7 +52,6 @@
<xsl:value-of select="$lang"/> <xsl:value-of select="$lang"/>
</xsl:attribute> </xsl:attribute>
<xsl:apply-templates/> <xsl:apply-templates/>
<script type="text/javascript" src="/assets/xinha/plugins/Equation/ASCIIMathML.js"></script>
</html> </html>
</xsl:template> </xsl:template>
@ -161,6 +160,13 @@
<xsl:call-template name="mandalay:cssLoader"/> <xsl:call-template name="mandalay:cssLoader"/>
</xsl:template> </xsl:template>
<xsl:template match="useFancybox">
<xsl:call-template name="mandalay:fancybox"/>
</xsl:template>
<xsl:template match="useMathJax">
<script type="text/javascript" src="/assets/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML"/>
</xsl:template>
<!-- DE Setze den lokalisierten Seitentitel --> <!-- DE Setze den lokalisierten Seitentitel -->
<!-- EN Setup localized page title --> <!-- EN Setup localized page title -->
@ -448,11 +454,11 @@
<xsl:with-param name="layoutTree" select="."/> <xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:when> </xsl:when>
<xsl:when test="../useSearchResults"> <xsl:otherwise>
<xsl:apply-templates select="$resultTree/search:results/search:paginator" mode="header"> <xsl:apply-templates select="$resultTree//search:paginator" mode="header">
<xsl:with-param name="layoutTree" select="."/> <xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:when> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
@ -464,11 +470,11 @@
<xsl:with-param name="layoutTree" select="."/> <xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:when> </xsl:when>
<xsl:when test="../useSearchResults"> <xsl:otherwise>
<xsl:apply-templates select="$resultTree/search:results/search:paginator" mode="navbar"> <xsl:apply-templates select="$resultTree//search:paginator" mode="navbar">
<xsl:with-param name="layoutTree" select="."/> <xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:when> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>

View File

@ -43,8 +43,6 @@
<!-- DE Zeigt das Ergebnis in der Admin-Oberfläche an --> <!-- DE Zeigt das Ergebnis in der Admin-Oberfläche an -->
<!-- EN Show the result on admin pages --> <!-- EN Show the result on admin pages -->
<xsl:template match="search:results"> <xsl:template match="search:results">
<xsl:apply-templates select="search:paginator" mode="header"/>
<xsl:apply-templates select="search:paginator" mode="navbar"/>
<xsl:choose> <xsl:choose>
<xsl:when test="../search:query/bebop:formWidget[@name='draft_search']"> <xsl:when test="../search:query/bebop:formWidget[@name='draft_search']">
<xsl:apply-templates select="search:documents" mode="admin"/> <xsl:apply-templates select="search:documents" mode="admin"/>
@ -53,7 +51,6 @@
<xsl:apply-templates select="search:documents"/> <xsl:apply-templates select="search:documents"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:apply-templates select="search:paginator" mode="navbar"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -409,23 +409,6 @@
</xsl:if> </xsl:if>
</div> </div>
</xsl:if> </xsl:if>
<a>
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<a class="CIname"> <a class="CIname">
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>

View File

@ -456,8 +456,8 @@
</xsl:call-template> </xsl:call-template>
</h3> </h3>
</xsl:if> </xsl:if>
<xsl:for-each select="contactEntryKeys/entryKey"> <xsl:for-each select="./contactEntryKeys/entryKey">
<xsl:apply-templates select="contactentries"> <xsl:apply-templates select="../../contactentries[keyId=current()]">
<xsl:with-param name="key" select="entryKey"/> <xsl:with-param name="key" select="entryKey"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>

View File

@ -351,8 +351,8 @@
<xsl:template name="CT_Person_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Person']" mode="link_view"> <xsl:template name="CT_Person_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Person']" mode="link_view">
<!-- DE Hole alle benötigten Einstellungen--> <!-- DE Hole alle benötigten Einstellungen -->
<!-- EN Getting all needed setting--> <!-- EN Getting all needed setting -->
<xsl:variable name="setImageAndText"> <xsl:variable name="setImageAndText">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Person'"/> <xsl:with-param name="module" select="'Person'"/>

View File

@ -92,8 +92,7 @@
<div id="mainBody"> <div id="mainBody">
<xsl:apply-templates select="/bebop:page/cms:contentPanel[@id = 'siteProxyItemXML']"/> <xsl:apply-templates select="/bebop:page/cms:contentPanel[@id = 'siteProxyItemXML']"/>
<xsl:apply-templates select="/bebop:page/cms:contentPanel/cms:siteProxyPanel"/> <xsl:apply-templates select="cms:siteProxyPanel"/>
<xsl:apply-templates select="/bebop:page/cms:siteProxyPanel"/>
<div class="endFloat"/> <div class="endFloat"/>
</div> </div>
<div class="endFloat"/> <div class="endFloat"/>