Changeset 33197


Ignore:
Timestamp:
2019-06-22T10:58:47+12:00 (5 years ago)
Author:
davidb
Message:

Inclusion of Google Analytics tracking, removal of iframe header giving faux Heritage NZ top-level navigation; footer CSS tweak to help with display when there are no matching docs

File:
1 edited

Legend:

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

    r33074 r33197  
    2727
    2828            <head>
     29              <!-- Global site tag (gtag.js) - Google Analytics for Heritage NZ -->
     30              <script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-142178145-1">
     31                <!-- include text filler to stop script tag self-closing,
     32                 which doesn't play well in a web page --> 
     33                <xsl:text> </xsl:text>
     34              </script>
     35              <!-- using gsf:script tags means quotes correctly escaped thru disable-output-escaping -->
     36              <gsf:script>
     37                window.dataLayer = window.dataLayer || [];
     38                function gtag(){dataLayer.push(arguments);}
     39                gtag('js', new Date());
     40               
     41                gtag('config', 'UA-142178145-1');
     42              </gsf:script>
     43
    2944                <!-- ***** in header.xsl ***** -->
    3045                <xsl:call-template name="create-html-header"/>
     
    3348                <!-- ***** custom css **** -->
    3449                <script type="text/javascript" src="interfaces/heritage-nz/js/berrybasket/custom.js"><xsl:text> </xsl:text></script>
     50                <script type="text/javascript" src="interfaces/heritage-nz/js/iframeResizer.contentWindow.min.js"><xsl:text> </xsl:text></script>
     51
    3552            </head>
    3653           
     
    3956                <!--<xsl:call-template name="displayErrorsIfAny"/>-->
    4057                <a name="top"><xsl:text> </xsl:text></a>
    41 
     58<!--
    4259                <iframe src="interfaces/{$interface_name}/iframe/heritage-nz-dl-header.html"
    4360                    style="position: absolute; height: 100%; border: none; width: 100%">
    4461                  <gsf:comment>filler</gsf:comment>
    4562                </iframe>
     63-->
     64                <style>
     65<!--
     66                  #container { top: 105px; }
     67-->
     68                                  #container { line-height: inherit; }
    4669
    47                 <style>
    48                   #container { top: 105px; }
    4970                  #gs_banner { background-color: #820404; background-image: none; }
    5071
     
    6687                  color: #888888;
    6788                  text-decoration: underline;
     89                  }
     90
     91                  #gs_footer {
     92                    position: absolute;
     93                    bottom: -30px;
     94                    left: 0px;
     95                    width: 99.8%;
     96                  }
     97
     98                  #quicksearcharea ul {
     99                    margin-top: 10px;
    68100                  }
    69101                </style>
Note: See TracChangeset for help on using the changeset viewer.