engelsystem/resources/views/layouts/app.twig

50 lines
1.6 KiB
Twig

<!DOCTYPE html>
<html lang="{{ session_get('locale')|split('_')[0]|escape('html_attr') }}">
<head>
{% block head %}
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="csrf-token" content="{{ csrf_token() }}"/>
<title>{% block title %}{{ title }}{% endblock %} - {{ config('app_name') }}</title>
<link rel="icon" href="{{ asset('assets/angel.svg') }}"/>
<link rel="stylesheet" type="text/css" href="{{ asset('assets/theme' ~ themeId ~ '.css') }}"/>
<script type="text/javascript" src="{{ asset('assets/vendor.js') }}"></script>
{% if page() in ['news', 'meetings'] and is_user() and has_permission_to('atom') -%}
{% set parameters = {'key': user.api_key} -%}
{% if page() == 'meetings' -%}
{% set parameters = {'meetings': 1}|merge(parameters) -%}
{% endif %}
<link href="{{ url('atom', parameters) }}" type="application/atom+xml" rel="alternate" title="Atom Feed">
{% endif %}
{% endblock %}
</head>
<body>
{% block body %}
{% block header %}
{% include "layouts/parts/navbar.twig" %}
{% endblock %}
<div class="container-fluid">
<div id="content">
{% block content %}
{{ content|raw }}
{% endblock %}
</div>
<div id="footer">
{% block footer %}
{% include "layouts/parts/footer.twig" %}
{% endblock %}
</div>
</div>
{% block scripts %}{% endblock %}
{% endblock %}
</body>
</html>