diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-03-03 14:26:28 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-03-04 15:42:18 +0100 |
commit | fd16b597ba43092b77dd6c3dadbaddafa4e420ed (patch) | |
tree | e5a126b009a046db791b2ae654b1bb1c81a9e0f0 /help3xsl | |
parent | bd26e706b30dccecdeba24ba8b697ddf2fc7a615 (diff) |
Some optimizing bits in XSLT
Change-Id: I27c29677cbf9c704d64b5ed49acc56b7a22432bd
Reviewed-on: https://gerrit.libreoffice.org/68646
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 57 |
1 files changed, 20 insertions, 37 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 03b20f7088..6cb2c78885 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -167,7 +167,7 @@ <div class="header-extrawurst"> <header> <div class="logo-container"> - <a class="logo" href="{$target}{$lang}/text/shared/05/new_help.html"> + <a class="logo" href="{$target}{$lang}/text/shared/05/new_help.html"> <div class="symbol"></div> <p><xsl:value-of select="$ui_logo"/></p> </a> @@ -231,8 +231,6 @@ </script> <xsl:text disable-output-escaping="yes"><gcse:search></gcse:search></xsl:text> </div> - </xsl:if> - <xsl:if test="$online"> <div class="donation"> <p><a href="https://www.libreoffice.org/donate/?pk_campaign=help" target ="_blank"> <xsl:value-of select="$ui_donate"/> @@ -253,40 +251,25 @@ <script type="text/javascript" src="{$target}{$lang}/bookmarks.js"/> <script type="text/javascript" src="{$target}{$lang}/contents.js"/> <script type="text/javascript" src="{$target}help.js"/> - <xsl:choose> - <xsl:when test="$online"> - <script type="text/javascript"> - <![CDATA[ - var module = getParameterByName("DbPAR"); - var system = getParameterByName("System"); - var helpID = getParameterByName("HID"); - fixURL(module,system); - var dbg = getParameterByName("Debug"); - if (dbg == null){dbg=0} - document.getElementById("DEBUG").style.display = (dbg == 0) ? "none":"block"; - document.getElementById("bm_module").innerHTML ="Module is: "+module; - document.getElementById("bm_system").innerHTML ="System is: "+system; - document.getElementById("bm_HID").innerHTML ="HID is: "+helpID; - ]]> - </script> - </xsl:when> - <xsl:otherwise> - <script type="text/javascript"> - <![CDATA[ - var module = getParameterByName("DbPAR"); - var helpID = getParameterByName("HID"); - var system = getSystem(); - fixURL(module,system); - var dbg = getParameterByName("Debug"); - if (dbg == null){dbg=0} - document.getElementById("DEBUG").style.display = (dbg == 0) ? "none":"block"; - document.getElementById("bm_module").innerHTML ="Module is: "+module; - document.getElementById("bm_system").innerHTML ="System is: "+system; - document.getElementById("bm_HID").innerHTML ="HID is: "+helpID; - ]]> - </script> - </xsl:otherwise> - </xsl:choose> + <script type="text/javascript"> + <![CDATA[ + var module = getParameterByName("DbPAR"); + var helpID = getParameterByName("HID"); + ]]> + <xsl:choose> + <xsl:when test="$online"><![CDATA[var system = getParameterByName("System");]]></xsl:when> + <xsl:otherwise><![CDATA[var system = getSystem();]]></xsl:otherwise> + </xsl:choose> + <![CDATA[ + fixURL(module,system); + var dbg = getParameterByName("Debug"); + if (dbg == null){dbg=0} + document.getElementById("DEBUG").style.display = (dbg == 0) ? "none":"block"; + document.getElementById("bm_module").innerHTML ="Module is: "+module; + document.getElementById("bm_system").innerHTML ="System is: "+system; + document.getElementById("bm_HID").innerHTML ="HID is: "+helpID; + ]]> + </script> <xsl:if test="$online"> <!-- Piwik --> <script type="text/javascript"> |