Changeset 33201

Show
Ignore:
Timestamp:
22.06.2019 11:08:24 (4 weeks ago)
Author:
davidb
Message:

page-title-area template added to header.xsl. To be honest, I don't remember why (or if) this is still needed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/heritage-nz/transform/layouts/header.xsl

    r33074 r33201  
    1818 
    1919 
     20  <!-- ***** PAGE TITLE ***** --> 
     21  <xsl:template name="page-title-area"> 
     22    <xsl:variable name="pageTitleVar"><xsl:call-template name="pageTitle"/></xsl:variable> 
     23    <div id="titlearea"> 
     24      <h2> 
     25    <!-- Resize the title based on how long it is (There's probably a better way to do this) --> 
     26    <xsl:attribute name="style"> 
     27      <xsl:choose> 
     28        <xsl:when test="string-length($pageTitleVar) &lt; 20"> 
     29          <xsl:text>font-size: 1.5em;</xsl:text> 
     30        </xsl:when> 
     31        <xsl:when test="string-length($pageTitleVar) &lt; 30"> 
     32          <xsl:text>font-size: 1.4em;</xsl:text> 
     33        </xsl:when> 
     34        <xsl:when test="string-length($pageTitleVar) &lt; 40"> 
     35          <xsl:text>font-size: 1.3em;</xsl:text> 
     36        </xsl:when> 
     37        <xsl:when test="string-length($pageTitleVar) &lt; 50"> 
     38          <xsl:text>font-size: 1.2em;</xsl:text> 
     39        </xsl:when> 
     40        <xsl:when test="string-length($pageTitleVar) &lt; 60"> 
     41          <xsl:text>font-size: 1.1em;</xsl:text> 
     42        </xsl:when> 
     43        <xsl:when test="string-length($pageTitleVar) &lt; 70"> 
     44          <xsl:text>font-size: 1em;</xsl:text> 
     45        </xsl:when> 
     46        <xsl:when test="string-length($pageTitleVar) &lt; 80"> 
     47          <xsl:text>font-size: 0.9em;</xsl:text> 
     48        </xsl:when> 
     49        <xsl:when test="string-length($pageTitleVar) &lt; 90"> 
     50          <xsl:text>font-size: 0.8em;</xsl:text> 
     51        </xsl:when> 
     52        <xsl:otherwise> 
     53          <xsl:text>font-size: 0.7em;</xsl:text> 
     54        </xsl:otherwise> 
     55      </xsl:choose> 
     56    </xsl:attribute> 
     57    <!--<xsl:value-of select="string-length($pageTitleVar)" />--> 
     58    <xsl:call-template name="pageTitle"/> 
     59    <!--<xsl:value-of select="$pageTitleVar" /> --> 
     60    </h2><xsl:text> </xsl:text> 
     61    </div> 
     62  </xsl:template> 
    2063 
    2164