Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
Akron | a17bc5b | 2018-10-05 13:35:01 +0200 | [diff] [blame] | 2 | % my $lang = app->localize->preference // 'en'; |
| 3 | % my $desc = loc('korap_desc'); |
| 4 | % my $keywords = loc('korap_keywords'); |
| 5 | <html lang="<%= $lang %>" xml:lang="<%= $lang %>" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/"> |
| 6 | <head prefix="og: http://ogp.me/ns# website: http://ogp.me/ns/website#"> |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 7 | <title><%= title() // loc('korap_desc') %></title> |
| 8 | <meta charset="utf-8" /> |
| 9 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=false, user-scalable=no" /> |
Akron | a17bc5b | 2018-10-05 13:35:01 +0200 | [diff] [blame] | 10 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| 11 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 12 | <meta http-equiv="Content-Style-Type" content="text/css" /> |
| 13 | <meta http-equiv="Content-Script-Type" content="text/javascript" /> |
| 14 | <meta name="msapplication-TileImage" content="<%= url_for '/img/windows-tile.png' %>" /> |
| 15 | <meta name="msapplication-TileColor" content="#9bad0b" /> |
| 16 | <meta name="robots" content="index,follow" /> |
| 17 | <meta name="apple-mobile-web-app-status-bar-style" content="default" /> |
| 18 | <meta name="description" content="<%= $desc %>" /> |
| 19 | <meta name="language" content="<%= $lang %>" /> |
| 20 | <meta name="author" content="The KorAP Team" /> |
| 21 | <meta name="DC.type" content="service" /> |
| 22 | <meta name="DC.creator" content="IDS Mannheim" /> |
| 23 | <meta name="DC.title" content="<%= title() || loc('korap_short') %>" /> |
| 24 | <meta name="DC.description" content="<%= $desc %>" /> |
| 25 | <meta name="DC.format" content="text/html" /> |
| 26 | <meta name="DC.contributor" content="The KorAP Team" /> |
| 27 | <meta name="DC.publisher" content="IDS Mannheim" /> |
| 28 | <meta name="DC.language" content="<%= $lang %>" /> |
| 29 | <meta property="og:url" content="<%= url_for->to_abs %>" /> |
| 30 | <meta property="og:locale" content="<%= $lang %>" /> |
| 31 | <meta property="og:description" content="<%= $desc %>" /> |
| 32 | <meta property="og:image" content="<%= url_for '/img/korap-200.png' %>" /> |
| 33 | <meta property="og:image:width" content="200" /> |
| 34 | <meta property="og:image:height" content="200" /> |
| 35 | <meta name="twitter:image" content="<%= url_for '/img/korap-280.png' %>" /> |
| 36 | <meta name="twitter:description" content="<%= $desc %>" /> |
| 37 | <meta name="geo.region" content="<%= loc 'korap_region' %>" /> |
| 38 | <meta name="geo.placename" content="<%= loc 'korap_placename' %>" /> |
| 39 | <meta name="keywords" content="<%= $keywords %>" /> |
| 40 | <meta name="DC.subject" content="<%= $keywords %>" /> |
| 41 | |
| 42 | <link rel="apple-touch-icon" href="<%= url_for '/img/apple-touch-icon.png' %>" /> |
Akron | b302518 | 2015-05-27 23:02:44 +0200 | [diff] [blame] | 43 | <link href="<%= stash 'prefix' %>/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |
Nils Diewald | 705b74a | 2015-05-07 23:57:34 +0000 | [diff] [blame] | 44 | <link href="<%= stash 'prefix' %>/css/kalamar-<%= $Kalamar::VERSION %>.css" type="text/css" rel="stylesheet" /> |
hebasta | 75cfca5 | 2019-02-19 13:15:27 +0100 | [diff] [blame] | 45 | |
Akron | 4036d54 | 2018-02-12 13:17:09 +0100 | [diff] [blame] | 46 | %= javascript begin |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 47 | window.KorAP = window.KorAP || {}; |
| 48 | % my $api = url_for('index'); |
| 49 | % $api =~ s!/$!!; |
| 50 | KorAP.URL = '<%== $api %>'; |
| 51 | % end |
Akron | 4036d54 | 2018-02-12 13:17:09 +0100 | [diff] [blame] | 52 | |
| 53 | % if ($c->app->mode eq 'development') { |
Akron | a68559c | 2018-02-13 15:02:18 +0100 | [diff] [blame] | 54 | <script data-main="/js/src/app/devel" src="/js/lib/require.js" async="async"></script> |
Akron | 4036d54 | 2018-02-12 13:17:09 +0100 | [diff] [blame] | 55 | % } else { |
Nils Diewald | e2647aa | 2015-05-08 00:54:45 +0000 | [diff] [blame] | 56 | <script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async"></script> |
Akron | 4036d54 | 2018-02-12 13:17:09 +0100 | [diff] [blame] | 57 | % }; |
hebasta | 75cfca5 | 2019-02-19 13:15:27 +0100 | [diff] [blame] | 58 | |
| 59 | |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 60 | </head> |
| 61 | % my $embedded = 0; |
| 62 | % $embedded = 1 if stash('embedded'); |
Akron | a17bc5b | 2018-10-05 13:35:01 +0200 | [diff] [blame] | 63 | <body class="no-js<% if ($embedded) { %> embedded<% } %>" itemscope itemtype="http://schema.org/<%= stash('schematype') || 'WebApplication' %>"> |
Akron | ae8f31c | 2017-11-28 18:05:52 +0100 | [diff] [blame] | 64 | <script>document.body.classList.remove('no-js');</script> |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 65 | <div id="kalamar-bg"></div> |
Akron | e496844 | 2018-05-22 15:32:07 +0200 | [diff] [blame] | 66 | |
| 67 | %= include 'partial/side', embedded => $embedded |
| 68 | |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 69 | % unless ($embedded) { |
| 70 | %= include 'partial/header' |
| 71 | % } |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 72 | |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 73 | <noscript> |
| 74 | <p id="activate"><%= loc 'activateJS' %></p> |
| 75 | </noscript> |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 76 | |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 77 | <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>> |
| 78 | %= content |
| 79 | </main> |
| 80 | |
| 81 | % unless ($embedded) { |
Akron | e496844 | 2018-05-22 15:32:07 +0200 | [diff] [blame] | 82 | %= include 'partial/footer' |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 83 | % }; |
Akron | 27ae9ec | 2015-06-23 00:43:21 +0200 | [diff] [blame] | 84 | %= notifications 'Kalamar::Plugin::Notifications' |
Akron | 4c33c62 | 2018-11-12 13:43:27 +0100 | [diff] [blame] | 85 | |
Akron | 864c293 | 2018-11-16 17:18:55 +0100 | [diff] [blame] | 86 | %= content_block 'scripts' |
hebasta | 75cfca5 | 2019-02-19 13:15:27 +0100 | [diff] [blame] | 87 | |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 88 | </body> |
Nils Diewald | 5e48546 | 2015-05-07 20:33:04 +0000 | [diff] [blame] | 89 | </html> |