|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html lang="en-AU">
|
3 | 3 | <head>
|
4 |
| - <g:if test="${config == null}"> |
5 |
| - <g:set var="config" value="${grailsApplication.config}"/> |
6 |
| - </g:if> |
7 |
| - |
8 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
9 | 5 | <meta name="app.version" content="${g.meta(name: 'info.app.version')}"/>
|
10 | 6 | <meta name="app.build" content="${g.meta(name: 'info.app.build')}"/>
|
11 |
| - <meta name="description" content="${config.skin?.orgNameLong ?: 'Atlas of Living Australia'}"/> |
12 |
| - <meta name="author" content="${config.skin?.orgNameLong ?: 'Atlas of Living Australia'}"> |
| 7 | + <meta name="description" content="${grailsApplication.config.skin?.orgNameLong?:'Atlas of Living Australia'}"/> |
| 8 | + <meta name="author" content="${grailsApplication.config.skin?.orgNameLong?:'Atlas of Living Australia'}"> |
13 | 9 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
14 | 10 | <!-- Favicon -->
|
15 |
| - <link href="${config.skin.favicon}" rel="shortcut icon" type="image/x-icon"/> |
| 11 | + <link href="${grailsApplication.config.favicon.url}" rel="shortcut icon" type="image/x-icon"/> |
16 | 12 |
|
17 | 13 | <title><g:layoutTitle/></title>
|
18 | 14 | <g:layoutHead/>
|
19 | 15 | <asset:stylesheet href="application.css" />
|
20 |
| - <g:if test="${config.fathomId != null && config.fathomId != ''}"> |
21 |
| - <script src="https://cdn.usefathom.com/script.js" data-site="${config.fathomId}" defer></script> |
| 16 | + <g:if test="${grailsApplication.config.fathomId != null && grailsApplication.config.fathomId != ''}"> |
| 17 | + <script src="https://cdn.usefathom.com/script.js" data-site="${grailsApplication.config.fathomId}" defer></script> |
22 | 18 | </g:if>
|
23 | 19 |
|
24 | 20 | </head>
|
25 | 21 |
|
26 | 22 | <body class="${pageProperty(name: 'body.class')}" id="${pageProperty(name: 'body.id')}"
|
27 | 23 | onload="${pageProperty(name: 'body.onload')}">
|
28 |
| -<g:set var="fluidLayout" value="${pageProperty(name: 'meta.fluidLayout') ?: config.skin.fluidLayout}"/> |
| 24 | +<g:set var="fluidLayout" value="${pageProperty(name: 'meta.fluidLayout') ?: grailsApplication.config.skin.fluidLayout}"/> |
29 | 25 | <g:set var="loginStatus" value="${request.userPrincipal ? 'signedIn' : 'signedOut'}"/>
|
30 | 26 | <g:set var="hideLoggedOut" value="${request.userPrincipal ? '' : 'hidden'}"/>
|
31 | 27 |
|
32 | 28 | <!-- Header -->
|
33 |
| -<g:set var="headerVisiblity" value="${(config.skin.header && config.spApp.header) ? '' : 'hidden'}"/> |
| 29 | +<g:set var="headerVisiblity" value="${(grailsApplication.config.skin.header && grailsApplication.config.spApp.header) ? '' : 'hidden'}"/> |
34 | 30 |
|
35 | 31 | <div id="wrapper-navbar" itemscope="" itemtype="http://schema.org/WebSite" class="${headerVisiblity}">
|
36 | 32 | <a class="skip-link sr-only sr-only-focusable" href="#INSERT_CONTENT_ID_HERE">Skip to content</a>
|
|
58 | 54 | onclick="$('#sessionsButton')[0].click()"
|
59 | 55 | data-toggle="dropdown" role="button"
|
60 | 56 | aria-expanded="false">Load</a>
|
61 |
| - <g:if test="config.workflow.enabled"> |
| 57 | + <g:if test="grailsApplication.config.workflow.enabled"> |
62 | 58 | <a href="#" class="save-load"
|
63 | 59 | onclick="$('#workflowsButton')[0].click()"
|
64 | 60 | data-toggle="dropdown" role="button"
|
|
341 | 337 | </div><!-- .container -->
|
342 | 338 | <div class="container-fluid">
|
343 | 339 | <div id="autocompleteSearchALA" class="collapse">
|
344 |
| - <form method="get" action="${config.bie.baseURL}${config.bie.searchPath}" class="search-form"> |
| 340 | + <form method="get" action="${grailsApplication.config.bie.baseURL}${grailsApplication.config.bie.searchPath}" class="search-form"> |
345 | 341 | <div class="space-between">
|
346 | 342 | <input id="autocompleteHeader" type="text" name="q"
|
347 | 343 | placeholder="Search species, datasets, and more..." class="search-input"
|
|
395 | 391 | <asset:javascript src="commonui-bs3-2019.js"/>
|
396 | 392 |
|
397 | 393 | <!-- Google Analytics -->
|
398 |
| -<g:if test="${config.googleAnalyticsId != null && config.googleAnalyticsId != ''}"> |
| 394 | +<g:if test="${grailsApplication.config.googleAnalyticsId != null && grailsApplication.config.googleAnalyticsId != ''}"> |
399 | 395 | <script>
|
400 | 396 | (function (i, s, o, g, r, a, m) {
|
401 | 397 | i['GoogleAnalyticsObject'] = r;
|
|
408 | 404 | a.src = g;
|
409 | 405 | m.parentNode.insertBefore(a, m)
|
410 | 406 | })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
411 |
| - ga('create', '${config.googleAnalyticsId}', 'auto'); |
| 407 | + ga('create', '${grailsApplication.config.googleAnalyticsId}', 'auto'); |
412 | 408 | ga('send', 'pageview');
|
413 | 409 | </script>
|
414 | 410 | </g:if>
|
|
0 commit comments