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:value-of select="$imageGallery"/>
</xsl:attribute>
<xsl:if test="$imageGallery != 'imageZoom'">
<xsl:attribute name="rel">
<xsl:value-of select="$imageGallery"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="mandalay:imageGallerySetup">
<xsl:with-param name="imageGallery" select="$imageGallery"/>
</xsl:call-template>

View File

@ -43,15 +43,20 @@
exclude-result-prefixes="xsl bebop cms nav mandalay"
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">
-->
<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.easing.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"/>
<script type="text/javascript">$(document).ready(function() {$("a.imageZoom").fancybox({'type':'image'});});</script>
<!--
</xsl:if>
-->
<!--
<xsl:variable name="firstMatch">
<xsl:value-of select="//imageAttachment/@name"/>

View File

@ -52,7 +52,6 @@
<xsl:value-of select="$lang"/>
</xsl:attribute>
<xsl:apply-templates/>
<script type="text/javascript" src="/assets/xinha/plugins/Equation/ASCIIMathML.js"></script>
</html>
</xsl:template>
@ -161,6 +160,13 @@
<xsl:call-template name="mandalay:cssLoader"/>
</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 -->
<!-- EN Setup localized page title -->
@ -448,11 +454,11 @@
<xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="../useSearchResults">
<xsl:apply-templates select="$resultTree/search:results/search:paginator" mode="header">
<xsl:otherwise>
<xsl:apply-templates select="$resultTree//search:paginator" mode="header">
<xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates>
</xsl:when>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
@ -464,11 +470,11 @@
<xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="../useSearchResults">
<xsl:apply-templates select="$resultTree/search:results/search:paginator" mode="navbar">
<xsl:otherwise>
<xsl:apply-templates select="$resultTree//search:paginator" mode="navbar">
<xsl:with-param name="layoutTree" select="."/>
</xsl:apply-templates>
</xsl:when>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

View File

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

View File

@ -409,23 +409,6 @@
</xsl:if>
</div>
</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">
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>

View File

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

View File

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