Changeset 28333


Ignore:
Timestamp:
09/30/13 16:30:01 (8 years ago)
Author:
jlwhisler
Message:

Updated Homepage tutorial files to use library_name and interface_name variable instead of hard-coding library/default. Added an icon for the page. Corrected the AddUser url.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorial_sample_files/custom/home-tutorial-final.xsl

    r27885 r28333  
    1414<meta name="description" content="" />
    1515<title><xsl:call-template name="siteName"/></title>
    16 <link href="interfaces/default/style/themes/tutorialbliss/style.css" rel="stylesheet" type="text/css" media="screen" />
     16<link href="interfaces/{$interface_name}/style/themes/tutorialbliss/style.css" rel="stylesheet" type="text/css" media="screen" />
     17<link rel="icon" href="interfaces/{$interface_name}/style/themes/tutorialbliss/images/icon.jpg" type="image/jpg"/>
    1718<!--
    1819Design by Free CSS Templates
     
    2930<body>
    3031<div id="banner-wrapper">
    31     <div id="banner"><img src="interfaces/default/style/themes/tutorialbliss/images/ngunguru.jpg" width="1200" height="300" alt="" /></div>
     32    <div id="banner"><img src="interfaces/{$interface_name}/style/themes/tutorialbliss/images/ngunguru.jpg" width="1200" height="300" alt="" /></div>
    3233</div>
    3334<div id="header-wrapper">
    3435    <div id="header">
    3536        <div id="logo">
    36             <h1><a href="library"><xsl:call-template name="siteName"/></a></h1>
     37            <h1><a href="{$library_name}"><xsl:call-template name="siteName"/></a></h1>
    3738            <p>A <a href="http://www.greenstone.org/">Greenstone3</a> Digital Library</p>
    3839        </div>
     
    5758                            <ul>
    5859                                    <xsl:call-template name="loginButton"/>
    59                                 <li><a href="library/collection//page/help">Help</a></li>
    60                                 <li><a href="library/collection//page/pref">Preferences</a></li>
     60                                <li><a href="{$library_name}/collection//page/help">Help</a></li>
     61                                <li><a href="{$library_name}/collection//page/pref">Preferences</a></li>
    6162                            </ul>
    6263                        </li>
     
    113114    <xsl:variable name="collectionName" select="@name"/>
    114115        <li>
    115         <a href="library/collection/{$collectionName}/page/about">
     116        <a href="{$library_name}/collection/{$collectionName}/page/about">
    116117        <xsl:value-of select="displayItem[@name='name']"/>
    117118        </a>
     
    142143                    <xsl:when test="$username">
    143144                        <li><a>
    144                             <xsl:attribute name="href">library/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/>
     145                            <xsl:attribute name="href"><xsl:value-of select="$library_name"/>/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/>
    145146                        </a></li>
    146                         <li><a href="library/admin/Register">Register a new user</a></li>
    147                                 <li><a href="library/admin/ListUsers">Administration</a></li>
    148                         <li><a><xsl:attribute name="href">library?logout=</xsl:attribute>Logout</a></li>
     147                        <li><a href="{$library_name}/admin/AddUser">Register a new user</a></li>
     148                                <li><a href="{$library_name}/admin/ListUsers">Administration</a></li>
     149                        <li><a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?logout=</xsl:attribute>Logout</a></li>
    149150                    </xsl:when>
    150151                    <xsl:otherwise>
    151                         <li><a href="?a=p&amp;sa=login&amp;redirectURL=library%3Fa=p%26sa=home">Login
     152                        <li><a href="?a=p&amp;sa=login&amp;redirectURL={$library_name}%3Fa=p%26sa=home">Login
    152153                            <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute>
    153154
Note: See TracChangeset for help on using the changeset viewer.