forked from Good-Old-Downloads/gg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.twig
182 lines (172 loc) · 8.2 KB
/
main.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{#
GOGGames
Copyright (C) 2018 GoodOldDownloads
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<!--
Good Old Downloads
________________ ________________
| | | |
| ________ | | ________ |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| |______ | | | |______ | |
| | | | | | | |
|__________| | | |__________| | |
| | | |
____________| | ____________| |
| | | |
|________________| |________________|
Translators:
Russian - Haoose
German - Venom
Spanish - .Rar, Lobuno
French (soon tm) - Julien
Brazilian/Portuguese (soon tm) - Matheus
-->
{% set baseUrl = base_url()|replace({'http://': '', 'https://': ''}) %}
{% if base_url()|slice(0, 5) == "http:" %}
{% set urlScheme = "http://" %}
{% elseif base_url()|slice(0, 5) == "https" %}
{% set urlScheme = "https://" %}
{% endif %}
<!DOCTYPE html>
<html lang="{% if language %}{{ language['ISO-639-1'] }}{% else %}en{% endif %}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no, user-scalable=no">
<title>{% block title %}{% endblock title %}{% if block('title') is defined and block('title') != '' %} - {% endif %}GOG Games | Good Old Downloads</title>
<meta name="description" content="Download free GOG PC games. We have every game from the GOG.com catalog available to download for free! Free direct link and torrent game downloads.">
<link rel="icon" type="image/png" href="/static/img/favicon-16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/static/img/favicon-32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/static/img/favicon-96.png" sizes="96x96">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GOG Games Search - Good Old Downloads">
<link rel="alternate" type="application/rss+xml" title="Newly added/updated GOG games from Good Old Downloads" href="{{ base_url() }}/rss" />
{{ loadCSS(['/static/css/style.css'], []) }}
<meta name="theme-color" content="#6a4da5">
<meta property="twitter:site" content="@goddownloads">
<meta property="og:type" content="website">
<meta property="og:site_name" content="GoodOldDownloads.com">
<style nonce="{{ nonce.style }}">#donate-bar:before{width:{{ (donations.percent > 100) ? 100 : donations.percent }}% !important;}</style>
<style nonce="{{ nonce.style }}" id="css-inject"></style>
{% block meta %}
<meta property="og:title" content="GOG Games | Good Old Downloads">
<meta property="og:image" content="https://goggames.goodolddownloads.com/static/img/og_image.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="140">
<meta property="og:image:height" content="140">
<meta property="description" content="Download free GOG PC games. We have every game from the GOG.com catalog available to download for free! Free direct link and torrent game downloads.">
<meta property="og:description" content="Download free GOG PC games. We have every game from the GOG.com catalog available to download for free! Free direct link and torrent game downloads.">
{% endblock meta %}
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="no-js {{ is_ascension ? 'ascension' }}">
{# FAQ Modal #}
<input class="modal-state" id="modal-faq" type="checkbox">
<div class="modal">
<label class="modal__bg" for="modal-faq"></label>
<div class="modal__inner nopad">
<label class="modal__close" for="modal-faq"></label>
{% include 'imports/faq.twig' %}
</div>
</div>
{# Donate Modal #}
<input class="modal-state" id="modal-donate" type="checkbox">
<div class="modal">
<label class="modal__bg" for="modal-donate"></label>
<div class="modal__inner nopad">
<label class="modal__close" for="modal-donate"></label>
{% include 'imports/donate.twig' %}
</div>
</div>
{# Captcha Modal #}
<input class="modal-state" id="modal-captcha" type="checkbox">
<div class="modal">
<label class="modal__bg" for="modal-captcha"></label>
<div class="modal__inner nopad">
<label class="modal__close" for="modal-captcha"></label>
<div id="vote-captcha-success">
<h1>{{ 'Successfully voted!'|trans }}</h1>
<p>{% trans %}Check the <a href="/queue">Queue</a> to see it's position!{% endtrans %}</p>
</div>
<div id="vote-captcha"></div>
<div id="vote-captcha-message"></div>
<div class="txt-center">
<button class="btn green hidden __vote">{{ 'VOTE'|trans }}</button>
</div>
</div>
</div>
<header id="navbar">
<div class="container">
<div id="logo">
<a href="/" title="{{'Home'|trans}}"><img src="/static/img/logo.svg"></a>
</div>
<form id="search-bar" action="/search/" method="get">
<input name="s" autocomplete="off" placeholder="{{ 'Search'|trans }}" type="search" {% if term is defined and all == false %}value="{{ term }}"{% endif %}>
<button type="submit" id="search-btn">
<i class="fas fa-search fa-fw"></i>
</button>
</form>
<div class="othersite">
<a href="{{ urlScheme ~ 'scenegames.' ~ baseUrl|replace({'goggames.': ''}) }}" title="{{ 'Go to Scene Games'|trans }}"><img src="/static/img/logo_sg.svg"></a>
</div>
{# <div href="#" class="dropdown">
<span>{{ 'Filters'|trans }} <i class="fas fa-chevron-down fa-xs fa-fw"></i></span>
<ul>
<li>New</li>
<li>Updated</li>
<li>In Development</li>
</ul>
</div> #}
<a href="/faq" id="faq">{{ 'FAQ'|trans }}</a>
<a href="/donate" id="donate">{{ 'Donate'|trans }}</a>
<a href="/queue" id="queue">{{ 'Queue'|trans }}</a>
<div href="#" class="dropdown" title="{{ 'Change Language'|trans }}">
<span><i class="fas fa-fw fa-lg fa-language"></i> <i class="fas fa-chevron-down fa-xs fa-fw"></i></span>
<ul>
<form method="post">
<li><button type="submit" value="de_DE" name="setlang">Deutsch</button></li>
<li><button type="submit" value="en_US" name="setlang">English</button></li>
<li><button type="submit" value="es_ES" name="setlang">Español</button></li>
<li><button type="submit" value="ru_RU" name="setlang">Русский</button></li>
</form>
</ul>
</div>
<a href="/rss"><i class="fas fa-fw fa-norm fa-rss"></i></a>
<a href="/donate" id="donate-bar">{{ 'Monthly Donations:'|trans }} {{ donations.percent|round }}%</a>
{% if was_user and session.user == null %}
<a href="{{ path_for('login') }}">{{ 'Login'|trans }}</a>
{% elseif was_user and session.user == config.USER.NAME %}
<a href="/admin">{{ 'Admin'|trans }}</a>
<a href="/logout">{{ 'Logout'|trans }}</a>
{% endif %}
</div>
</header>
{% block content %}{% endblock content %}
{% if was_user and session.user == config.USER.NAME %}
<script nonce="{{ nonce.script }}">
var APIKEY = "{{ config.USER.KEY }}";
</script>
{% endif %}
{{ loadJS(['/static/js/moment-with-locales.js'], []) }}
{% if language %}
<script nonce="{{ nonce.script }}">moment.locale("{{ language['ISO-639-1'] }}");</script>
{% endif %}
{{ loadJS(['/static/js/main.min.js'], []) }}
{% block scripts %}{% endblock scripts %}
</body>
</html>