Changeset 26480 for main

Show
Ignore:
Timestamp:
20.11.2012 11:03:25 (7 years ago)
Author:
kjdon
Message:

added internal page links as per original niupepa collection. removed a little bit of html format tags from the properties text strings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-cols/niupepa/transform/pages/about.xsl

    r26409 r26480  
    2020    <!-- the page content --> 
    2121    <xsl:template match="/page"> 
     22    <script type="text/javascript"> 
     23      <xsl:text disable-output-escaping="yes">$(window).load(function() 
     24{ 
     25    var links = $("a"); 
     26    for(var i = 0; i &lt; links.length; i++) 
     27    { 
     28        if($(links[i]).attr("href") &amp;&amp; $(links[i]).attr("href").match("^#")) 
     29        { 
     30            $(links[i]).attr("href", document.URL + $(links[i]).attr("href")); 
     31        } 
     32    } 
     33});</xsl:text></script> 
    2234        <xsl:call-template name="languageswap"/> 
    23         <gsf:collectionText name="about.textxwelcome"/> 
    24         <gsf:collectionText name="about.textxwelcome2"/> 
    25         <gsf:collectionText name="about.textxbackground"/> 
    26         <gsf:collectionText name="about.textxgrateful"/> 
     35        <h2><gsf:collectionText name="about.textxwelcome"/></h2> 
     36        <p><gsf:collectionText name="about.textxwelcome2"/></p> 
     37        <p><gsf:collectionText name="about.textxbackground"/></p> 
     38        <p><gsf:collectionText name="about.textxgrateful"/></p> 
    2739         
    2840        <hr/> 
    2941         
    30         <gsf:collectionText name="about.textxbackground2"/> 
     42        <h2><a name="background"><gsf:collectionText name="about.textxbackground2"/></a></h2> 
    3143        <gsf:collectionText name="about.textxbackground3"/> 
    3244         
    3345        <hr/> 
    3446         
    35         <gsf:collectionText name="about.textxsupporgs"/> 
    36         <gsf:collectionText name="about.textximage"/> 
    37         <gsf:collectionText name="about.textyaymined"/> 
     47        <h2><a name="support"><gsf:collectionText name="about.textxsupporgs"/></a></h2> 
     48        <a href="http://www.minedu.govt.nz/"><img src="http://www.minedu.govt.nz/minedu/images/ui/header/moe-logo.gif" style="border:0px;"/></a>        <p><gsf:collectionText name="about.textyaymined"/></p> 
    3849        <gsf:collectionText name="about.textxsupporgs2"/> 
    3950    </xsl:template>