Changeset 37728


Ignore:
Timestamp:
2023-04-26T22:35:32+12:00 (12 months ago)
Author:
davidb
Message:

template rules that that position home-help-pref as tabs on the right (as an alternative to being button in the upper area of the navbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r37681 r37728  
    436436    </xsl:for-each>
    437437      </ul>
     438
     439      <!-- consider developing inclusion of the following, expressed as a global gsf:option switch/text? -->
     440      <!--
     441      <xsl:call-template name="home-help-preferences-tab-alternative"/>
     442      -->
     443     
    438444      <div style="clear:both;"><xsl:text> </xsl:text></div>
    439445    </xsl:if>
     
    455461    </ul>
    456462  </xsl:template>   
     463
     464
     465  <xsl:template name="home-help-preferences-tab-alternative">
     466    <style>
     467      #bannerLinksTab {
     468        list-style: none outside none;
     469        padding: 0px;
     470        margin: 0 0 0 20px;
     471        font-size: 14px;
     472      }
     473
     474      #bannerLinksTab li {
     475        float: right;
     476        display: inline;
     477        margin-right: 5px;
     478        padding: 3px 5px 5px 7px;
     479        text-transform: capitalize;
     480        text-align: center;
     481        border-bottom: 0px;
     482      }
     483     
     484      li.ui-tab-styling {
     485      }
     486    </style>   
     487    <ul id="bannerLinksTab">
     488      <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'">
     489        <li class="ui-tab-styling"><xsl:call-template name="RSSLink"/></li>
     490      </xsl:if>
     491      <li class="ui-tab-styling"><xsl:call-template name="PrefsLink"/></li>
     492      <li class="ui-tab-styling"><xsl:call-template name="HelpLink"/></li>
     493      <li class="ui-tab-styling" id="userMenuButton"><xsl:call-template name="LoginoutLink"/></li>
     494      <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
     495        <li class="ui-tab-styling"><xsl:call-template name="DebugLink"/></li>
     496      </xsl:if>
     497      <!--
     498      <xsl:call-template name="buttonStyling"/>
     499      -->
     500      <!--
     501     
     502      <li class="ui-state-default ui-corner-top">
     503        <a href="{$library_name}/collection/{$collName}/page/sparql" title="Export data via SPARQL queries">SPARQL</a>
     504      </li>
     505      <li class="ui-state-default ui-corner-top">
     506        <a href="{$library_name}/collection/{$collName}/page/sgvizler" title="Visualize data such as countries voting patterns over the years">visualizer</a>
     507      </li>
     508      -->
     509    </ul>
     510  </xsl:template>
     511
     512
    457513 
    458514  <xsl:template name="RSSLink">
Note: See TracChangeset for help on using the changeset viewer.