Move template_header and change_template to twig

This commit is contained in:
slawkens
2020-10-18 06:54:54 +02:00
parent 881a28138a
commit abfd2c94f5
3 changed files with 35 additions and 29 deletions

View File

@@ -0,0 +1,4 @@
<form method="get" action="{{ constant('BASE_URL') }}">
<hidden name="subtopic" value="{{ constant('PAGE') }}"/>
<select name="template" onchange="this.form.submit()">{{ options|raw }}</select>
</form>

View File

@@ -0,0 +1,21 @@
<meta charset="{{ charset }}">
<meta http-equiv="content-language" content="{{ config.language }}" />
<meta http-equiv="content-type" content="text/html; charset={{ charset }}" />
{% if not is_admin %}
<base href="{{ constant('BASE_URL') }}" />
<title>{{ title }}</title>
{% endif %}
<meta name="description" content="{{ config.meta_description }}" />
<meta name="keywords" content="{{ config.meta_keywords }}, myaac, wodzaac" />
<meta name="generator" content="MyAAC" />
<link rel="stylesheet" type="text/css" href="{{ constant('BASE_URL') }}tools/css/messages.css" />
<script type="text/javascript" src="{{ constant('BASE_URL') }}tools/js/jquery.min.js"></script>
<noscript>
<div class="warning" style="text-align: center; font-size: 14px;">
Your browser does not support JavaScript or its disabled!<br/>
Please turn it on, or be aware that some features on this website will not work correctly.
</div>
</noscript>
{% if config.recaptcha_enabled %}
<script src="https://www.google.com/recaptcha/api.js"></script>
{% endif %}