<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<link rel="shortcut icon" href="/images/favicon.png">
<title>Paleontica
{% if block('title') is defined %}
- {{ block('title') }}
{% endif %}
</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="/css/paleontica.css" rel="stylesheet">
{% if get_env("SITE_TYPE") == 'beta' %}
<link href="/css/paleontica.beta.css" rel="stylesheet">
{% endif %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fullcalendar/core@4.1.0/main.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@4.1.0/main.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fullcalendar/timegrid@4.1.0/main.min.css">
{% block css %}{% endblock %}
</head>
<body class="d-flex flex-column h-100">
<!-- Start Header -->
<header>
<div class="container">
{% if is_granted('IS_IMPERSONATOR') %}
<div class="alert alert-warning" style="position: fixed; z-index: 99;">
{{ 'Je bent nu het profiel van \'{user}\' aan het naboosten'|trans({'{user}' : app.user.username }) }}
<a href="{{ path('frontpage', {'_switch_user': '_exit'}) }}">{{ 'Uit nabootsing-modus gaan'|trans }}</a>
</div>
{% endif %}
<div class="row" >
<div class="col-11 mt-auto">
<a href="/"><img src="/images/PaleonticaLogo-408.png" alt="paleontica-logo" class="img-fluid img-responsive"></a>
</div>
<div class="col-1 mt-auto">
</div>
</div>
</div>
</header>
<!-- End Header -->
{#{% include 'navigation.twig' %}#}
{{ render(controller('App\\Controller\\NavigationController::navigation')) }}
{# {{ render(controller('App\\Controller\\Menu::menubar', { 'current_path': path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) } )) }} #}
<!-- Start Main Content -->
<main>
<div class="container flex-shrink-0">
{% for message in app.flashes('info') %}
<div class="alert alert-info">{{ message }}</div>
{% endfor %}
{% for message in app.flashes('success') %}
<div class="alert alert-success">{{ message }}</div>
{% endfor %}
{% for message in app.flashes('warning') %}
<div class="alert alert-warning">{{ message }}</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="alert alert-danger">{{ message }}</div>
{% endfor %}
{% block body %}{% endblock %}
</div>
</main>
<!-- End Main Content -->
<!-- Start Footer -->
<footer>
<div class="container mt-auto text-center">
© {{'Stichting Paleontica'|trans }}. {{ 'Alle rechten voorbehouden'|trans }}.<br />
<a href="/contact">{{ 'Contact'|trans }}</a> {#| <a href="/page/privacy-statement">{{ 'Privacy statement'|trans }}</a> | <a href="/page/disclamer">{{ 'Disclaimer'|trans }}</a>#} | <a href="/article/99/Copyright">{{ 'Copyright'|trans }}</a>
</div>
</footer>
{#<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>#}
<script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/core@4.1.0/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@4.1.0/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@4.1.0/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/timegrid@4.1.0/main.min.js"></script>
<script>feather.replace()</script>
{% if site_type != 'beta' %}
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.paleontica.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
{% endif %}
<script>
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://georockshop.nl/advertisement/index.php');
xhr.onload = function() {
var ad = JSON.parse(xhr.responseText);
document.getElementById('advertisement_img').innerHTML = "<img src=\""+ad.thumb+"\" width='190' height='144' class='img-fluid img-responsive'>";
document.getElementById('advertisement_img').href = ad.link;
document.getElementById('advertisement_link').innerHTML = "<a href=\"" + ad.link + "\">" + ad.name + "</a><br><b>€ " + ad.price + "</b>";
};
xhr.send();
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
var calendarEl = document.getElementById('minicalendar-holder');
var calendar = new FullCalendar.Calendar(calendarEl, {
defaultView: 'dayGridMonth',
editable: true,
firstDay: 1,
locale: '{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}',
eventSources: [
{
url: "{{ path('fc_load_events') }}",
method: "POST",
extraParams: {
filters: JSON.stringify({})
},
failure: () => {
console.log("There was an error while fetching FullCalendar!");
},
},
],
{% if app.request.locale == 'nl' %}{% else %}
eventDataTransform: function(eventData) {
eventData.title_nl = eventData.title;
eventData.title = eventData.title_en;
return eventData;
},
{% endif %}
header: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth',
},
plugins: [ 'interaction', 'dayGrid', 'timeGrid' ], // https://fullcalendar.io/docs/plugin-index
timeZone: 'UTC',
});
calendar.render();
});
</script>
{% block javascript %}{% endblock %}
<!-- End Footer -->
</body>
</html>