blob: 5e0c8d7fb1cef3cc518a1334b87351592d017203 [file] [log] [blame]
Nils Diewald5e485462015-05-07 20:33:04 +00001<!DOCTYPE html>
Akrona17bc5b2018-10-05 13:35:01 +02002% 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 Diewald5e485462015-05-07 20:33:04 +00007 <title><%= title() // loc('korap_desc') %></title>
8 <meta charset="utf-8" />
Akronac971df2022-05-06 13:42:35 +02009 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
Akrona17bc5b2018-10-05 13:35:01 +020010 <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" />
Akron88c26b12020-09-07 12:44:18 +020016 <meta name="robots" content="<%= stash('robots') || 'noindex' %>" />
Akrona17bc5b2018-10-05 13:35:01 +020017 <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' %>" />
Akronb3025182015-05-27 23:02:44 +020043 <link href="<%= stash 'prefix' %>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
Akron4036d542018-02-12 13:17:09 +010044
45% if ($c->app->mode eq 'development') {
Akron5ebd53b2020-09-21 14:42:23 +020046 <link href="<%= stash 'prefix' %>/css/kalamar-<%= $Kalamar::VERSION %>.css?v=<%= random_string %>" type="text/css" rel="stylesheet" />
Akronf4f26632021-01-21 10:59:42 +010047 <script data-main="/js/src/app/devel" src="/js/lib/require.js" async="async" defer="defer"></script>
Akron4036d542018-02-12 13:17:09 +010048% } else {
Akron5ebd53b2020-09-21 14:42:23 +020049 <link href="<%= stash 'prefix' %>/css/kalamar-<%= $Kalamar::VERSION %>.css" type="text/css" rel="stylesheet" />
Akronf4f26632021-01-21 10:59:42 +010050 <script src="<%= (stash('prefix') // '') . '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" async="async" defer="defer"></script>
Akron4036d542018-02-12 13:17:09 +010051% };
hebasta75cfca52019-02-19 13:15:27 +010052
53
Nils Diewald5e485462015-05-07 20:33:04 +000054 </head>
55% my $embedded = 0;
56% $embedded = 1 if stash('embedded');
Akronbc6b3f22021-01-13 14:53:12 +010057 <body class="no-js<% if ($embedded) { %> embedded<% } %>"
58 % my $api = url_for('index');
59 % $api =~ s!/$!!;
60 data-korap-url="<%== $api %>"
61 itemscope
62 itemtype="http://schema.org/<%= stash('schematype') || 'WebApplication' %>">
Akronb7b91c52021-01-27 17:46:52 +010063
64 %= csp_nonce_tag
65
Nils Diewald5e485462015-05-07 20:33:04 +000066 <div id="kalamar-bg"></div>
Akrone4968442018-05-22 15:32:07 +020067
68 %= include 'partial/side', embedded => $embedded
69
Akron4751da62017-06-07 22:37:10 +020070 % unless ($embedded) {
71 %= include 'partial/header'
72 % }
Akrond1741ae2017-11-29 09:58:53 +010073
Akrond1741ae2017-11-29 09:58:53 +010074 <noscript>
75 <p id="activate"><%= loc 'activateJS' %></p>
76 </noscript>
Akron4751da62017-06-07 22:37:10 +020077
Nils Diewald5e485462015-05-07 20:33:04 +000078 <main<% if (stash 'main_class') { %> class="<%= stash 'main_class' %>"<% } %>>
79 %= content
80 </main>
81
82 % unless ($embedded) {
Akrone4968442018-05-22 15:32:07 +020083 %= include 'partial/footer'
Nils Diewald5e485462015-05-07 20:33:04 +000084 % };
Akron27ae9ec2015-06-23 00:43:21 +020085 %= notifications 'Kalamar::Plugin::Notifications'
Akron4c33c622018-11-12 13:43:27 +010086
Akron864c2932018-11-16 17:18:55 +010087 %= content_block 'scripts'
hebasta75cfca52019-02-19 13:15:27 +010088
Nils Diewald5e485462015-05-07 20:33:04 +000089 </body>
Nils Diewald5e485462015-05-07 20:33:04 +000090</html>