var/cache/dev/twig/0f/0fc3a51921b68fe2e30cdb73aa74d3a0f58d95f2d86c669fec1784873348da56.php line 36

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* base.html.twig */
  14. class __TwigTemplate_8e9dfcbdd38277122dfcd499ec80f75282074b540a33bb3c7211e9a3d3a08c7e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'css' => [$this'block_css'],
  25.             'body' => [$this'block_body'],
  26.             'javascript' => [$this'block_javascript'],
  27.         ];
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  36.         // line 1
  37.         echo "<!DOCTYPE html>
  38. <html lang=\"en\" class=\"h-100\">
  39.   <head>
  40.     <meta charset=\"utf-8\">
  41.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  42.     <meta name=\"description\" content=\"\">
  43.     <link rel=\"shortcut icon\" href=\"/images/favicon.png\">
  44.     <title>Paleontica
  45. ";
  46.         // line 9
  47.         if (        $this->hasBlock("title"$context$blocks)) {
  48.             // line 10
  49.             echo "    - ";
  50.             $this->displayBlock("title"$context$blocks);
  51.             echo "
  52. ";
  53.         }
  54.         // line 12
  55.         echo "    </title>
  56.     <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">
  57.     <link href=\"/css/paleontica.css\" rel=\"stylesheet\">
  58. ";
  59.         // line 15
  60.         if (($this->extensions['App\Twig\GetEnv']->getEnvironmentVariable("SITE_TYPE") == "beta")) {
  61.             // line 16
  62.             echo "    <link href=\"/css/paleontica.beta.css\" rel=\"stylesheet\">
  63. ";
  64.         }
  65.         // line 18
  66.         echo "    <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fullcalendar/core@4.1.0/main.min.css\">
  67.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@4.1.0/main.min.css\">
  68.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fullcalendar/timegrid@4.1.0/main.min.css\">
  69.     ";
  70.         // line 21
  71.         $this->displayBlock('css'$context$blocks);
  72.         // line 22
  73.         echo "  </head>
  74.     <body class=\"d-flex flex-column h-100\">
  75.     <!-- Start Header -->
  76.     <header>
  77.       <div class=\"container\">
  78.         ";
  79.         // line 27
  80.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_IMPERSONATOR")) {
  81.             // line 28
  82.             echo "            <div class=\"alert alert-warning\" style=\"position: fixed; z-index: 99;\">
  83.                 ";
  84.             // line 29
  85.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Je bent nu het profiel van '{user}' aan het naboosten", ["{user}" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'29$this->source); })()), "user", [], "any"falsefalsefalse29), "username", [], "any"falsefalsefalse29)]), "html"nulltrue);
  86.             echo "
  87.                 <a href=\"";
  88.             // line 30
  89.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontpage", ["_switch_user" => "_exit"]);
  90.             echo "\">";
  91.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Uit nabootsing-modus gaan"), "html"nulltrue);
  92.             echo "</a>
  93.             </div>
  94.         ";
  95.         }
  96.         // line 33
  97.         echo "        <div class=\"row\" >
  98.             <div class=\"col-11 mt-auto\">
  99.                   <a href=\"/\"><img src=\"/images/PaleonticaLogo-408.png\" alt=\"paleontica-logo\" class=\"img-fluid img-responsive\"></a>
  100.             </div>
  101.             <div class=\"col-1 mt-auto\">
  102.             </div>
  103.         </div>
  104.       </div>
  105.     </header>
  106.     <!-- End Header -->
  107.     ";
  108.         // line 44
  109.         echo "    ";
  110.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\NavigationController::navigation"));
  111.         echo "
  112.     ";
  113.         // line 46
  114.         echo "    <!-- Start Main Content -->
  115.     <main>
  116.       <div class=\"container flex-shrink-0\">
  117.         ";
  118.         // line 49
  119.         $context['_parent'] = $context;
  120.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'49$this->source); })()), "flashes", [=> "info"], "method"falsefalsefalse49));
  121.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  122.             // line 50
  123.             echo "          <div class=\"alert alert-info\">";
  124.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  125.             echo "</div>
  126.         ";
  127.         }
  128.         $_parent $context['_parent'];
  129.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  130.         $context array_intersect_key($context$_parent) + $_parent;
  131.         // line 52
  132.         echo "        ";
  133.         $context['_parent'] = $context;
  134.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'52$this->source); })()), "flashes", [=> "success"], "method"falsefalsefalse52));
  135.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  136.             // line 53
  137.             echo "          <div class=\"alert alert-success\">";
  138.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  139.             echo "</div>
  140.         ";
  141.         }
  142.         $_parent $context['_parent'];
  143.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  144.         $context array_intersect_key($context$_parent) + $_parent;
  145.         // line 55
  146.         echo "        ";
  147.         $context['_parent'] = $context;
  148.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'55$this->source); })()), "flashes", [=> "warning"], "method"falsefalsefalse55));
  149.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  150.             // line 56
  151.             echo "          <div class=\"alert alert-warning\">";
  152.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  153.             echo "</div>
  154.         ";
  155.         }
  156.         $_parent $context['_parent'];
  157.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  158.         $context array_intersect_key($context$_parent) + $_parent;
  159.         // line 58
  160.         echo "        ";
  161.         $context['_parent'] = $context;
  162.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'58$this->source); })()), "flashes", [=> "error"], "method"falsefalsefalse58));
  163.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  164.             // line 59
  165.             echo "          <div class=\"alert alert-danger\">";
  166.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  167.             echo "</div>
  168.         ";
  169.         }
  170.         $_parent $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  172.         $context array_intersect_key($context$_parent) + $_parent;
  173.         // line 61
  174.         echo "        ";
  175.         $this->displayBlock('body'$context$blocks);
  176.         // line 62
  177.         echo "      </div>
  178.     </main>
  179.     <!-- End Main Content -->
  180.     <!-- Start Footer -->
  181.     <footer>
  182.       <div class=\"container mt-auto text-center\">
  183.         &copy; ";
  184.         // line 68
  185.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stichting Paleontica"), "html"nulltrue);
  186.         echo ". ";
  187.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle rechten voorbehouden"), "html"nulltrue);
  188.         echo ".<br />
  189.         <a href=\"/contact\">";
  190.         // line 69
  191.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Contact"), "html"nulltrue);
  192.         echo "</a> ";
  193.         echo " | <a href=\"/article/99/Copyright\">";
  194.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Copyright"), "html"nulltrue);
  195.         echo "</a>
  196.       </div>
  197.     </footer>
  198.     ";
  199.         // line 73
  200.         echo "    <script src=\"https://code.jquery.com/jquery-3.4.1.js\" integrity=\"sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=\" crossorigin=\"anonymous\"></script>
  201.     <script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\" integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"></script>
  202.     <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js\" integrity=\"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6\" crossorigin=\"anonymous\"></script>
  203.     <script src=\"https://unpkg.com/feather-icons/dist/feather.min.js\"></script>
  204.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/core@4.1.0/main.min.js\"></script>
  205.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@4.1.0/main.min.js\"></script>
  206.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@4.1.0/main.min.js\"></script>
  207.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/timegrid@4.1.0/main.min.js\"></script>
  208.     <script>feather.replace()</script>
  209.     ";
  210.         // line 82
  211.         if (((isset($context["site_type"]) || array_key_exists("site_type"$context) ? $context["site_type"] : (function () { throw new RuntimeError('Variable "site_type" does not exist.'82$this->source); })()) != "beta")) {
  212.             // line 83
  213.             echo "    <!-- Matomo -->
  214.     <script type=\"text/javascript\">
  215.       var _paq = window._paq = window._paq || [];
  216.       /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
  217.       _paq.push(['trackPageView']);
  218.       _paq.push(['enableLinkTracking']);
  219.       (function() {
  220.         var u=\"//analytics.paleontica.org/\";
  221.         _paq.push(['setTrackerUrl', u+'matomo.php']);
  222.         _paq.push(['setSiteId', '1']);
  223.         var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  224.         g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  225.       })();
  226.     </script>
  227.     <!-- End Matomo Code -->
  228.     ";
  229.         }
  230.         // line 99
  231.         echo "    <script>
  232.       var xhr = new XMLHttpRequest();
  233.       xhr.open('GET', 'https://georockshop.nl/advertisement/index.php');
  234.       xhr.onload = function() {
  235.               var ad = JSON.parse(xhr.responseText);
  236.               document.getElementById('advertisement_img').innerHTML = \"<img src=\\\"\"+ad.thumb+\"\\\" width='190' height='144' class='img-fluid img-responsive'>\";
  237.               document.getElementById('advertisement_img').href = ad.link;
  238.               document.getElementById('advertisement_link').innerHTML = \"<a href=\\\"\" + ad.link + \"\\\">\" + ad.name + \"</a><br><b>&euro; \" + ad.price + \"</b>\";
  239.       };
  240.       xhr.send();
  241.     </script>
  242.     <script type=\"text/javascript\">
  243.         document.addEventListener('DOMContentLoaded', () => {
  244.             var calendarEl = document.getElementById('minicalendar-holder');
  245.             var calendar = new FullCalendar.Calendar(calendarEl, {
  246.                 defaultView: 'dayGridMonth',
  247.                 editable: true,
  248.                 firstDay: 1,
  249.                 locale: '";
  250.         // line 118
  251.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'118$this->source); })()), "request", [], "any"falsefalsefalse118), "locale", [], "any"falsefalsefalse118) == "nl")) {
  252.             echo "nl";
  253.         } else {
  254.             echo "en";
  255.         }
  256.         echo "',
  257.                 eventSources: [
  258.                     {
  259.                         url: \"";
  260.         // line 121
  261.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fc_load_events");
  262.         echo "\",
  263.                         method: \"POST\",
  264.                         extraParams: {
  265.                             filters: JSON.stringify({})
  266.                         },
  267.                         failure: () => {
  268.                             console.log(\"There was an error while fetching FullCalendar!\");
  269.                         },
  270.                     },
  271.                 ],
  272. ";
  273.         // line 131
  274.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'131$this->source); })()), "request", [], "any"falsefalsefalse131), "locale", [], "any"falsefalsefalse131) == "nl")) {
  275.         } else {
  276.             // line 132
  277.             echo "                eventDataTransform: function(eventData) {
  278.                   eventData.title_nl = eventData.title;
  279.                   eventData.title = eventData.title_en;
  280.                   return eventData;
  281.                 },
  282. ";
  283.         }
  284.         // line 138
  285.         echo "                header: {
  286.                     left: 'prev,next today',
  287.                     center: 'title',
  288.                     right: 'dayGridMonth',
  289.                 },
  290.                 plugins: [ 'interaction', 'dayGrid', 'timeGrid' ], // https://fullcalendar.io/docs/plugin-index
  291.                 timeZone: 'UTC',
  292.             });
  293.             calendar.render();
  294.             
  295.         });
  296.     </script>
  297.     ";
  298.         // line 150
  299.         $this->displayBlock('javascript'$context$blocks);
  300.         // line 151
  301.         echo "    <!-- End Footer -->
  302.   </body>
  303. </html>
  304. ";
  305.         
  306.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  307.         
  308.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  309.     }
  310.     // line 21
  311.     public function block_css($context, array $blocks = [])
  312.     {
  313.         $macros $this->macros;
  314.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  315.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  316.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  317.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  318.         
  319.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  320.         
  321.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  322.     }
  323.     // line 61
  324.     public function block_body($context, array $blocks = [])
  325.     {
  326.         $macros $this->macros;
  327.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  328.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  329.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  330.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  331.         
  332.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  333.         
  334.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  335.     }
  336.     // line 150
  337.     public function block_javascript($context, array $blocks = [])
  338.     {
  339.         $macros $this->macros;
  340.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  341.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  342.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  343.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  344.         
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  346.         
  347.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  348.     }
  349.     public function getTemplateName()
  350.     {
  351.         return "base.html.twig";
  352.     }
  353.     public function isTraitable()
  354.     {
  355.         return false;
  356.     }
  357.     public function getDebugInfo()
  358.     {
  359.         return array (  360 => 150,  342 => 61,  324 => 21,  311 => 151,  309 => 150,  295 => 138,  287 => 132,  284 => 131,  271 => 121,  261 => 118,  240 => 99,  222 => 83,  220 => 82,  209 => 73,  200 => 69,  194 => 68,  186 => 62,  183 => 61,  174 => 59,  169 => 58,  160 => 56,  155 => 55,  146 => 53,  141 => 52,  132 => 50,  128 => 49,  123 => 46,  118 => 44,  106 => 33,  98 => 30,  94 => 29,  91 => 28,  89 => 27,  82 => 22,  80 => 21,  75 => 18,  71 => 16,  69 => 15,  64 => 12,  58 => 10,  56 => 9,  46 => 1,);
  360.     }
  361.     public function getSourceContext()
  362.     {
  363.         return new Source("<!DOCTYPE html>
  364. <html lang=\"en\" class=\"h-100\">
  365.   <head>
  366.     <meta charset=\"utf-8\">
  367.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  368.     <meta name=\"description\" content=\"\">
  369.     <link rel=\"shortcut icon\" href=\"/images/favicon.png\">
  370.     <title>Paleontica
  371. {% if block('title') is defined %}
  372.     - {{ block('title') }}
  373. {% endif %}
  374.     </title>
  375.     <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">
  376.     <link href=\"/css/paleontica.css\" rel=\"stylesheet\">
  377. {% if get_env(\"SITE_TYPE\") == 'beta' %}
  378.     <link href=\"/css/paleontica.beta.css\" rel=\"stylesheet\">
  379. {% endif %}
  380.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fullcalendar/core@4.1.0/main.min.css\">
  381.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@4.1.0/main.min.css\">
  382.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@fullcalendar/timegrid@4.1.0/main.min.css\">
  383.     {% block css %}{% endblock %}
  384.   </head>
  385.     <body class=\"d-flex flex-column h-100\">
  386.     <!-- Start Header -->
  387.     <header>
  388.       <div class=\"container\">
  389.         {% if is_granted('IS_IMPERSONATOR') %}
  390.             <div class=\"alert alert-warning\" style=\"position: fixed; z-index: 99;\">
  391.                 {{ 'Je bent nu het profiel van \\'{user}\\' aan het naboosten'|trans({'{user}' : app.user.username }) }}
  392.                 <a href=\"{{ path('frontpage', {'_switch_user': '_exit'}) }}\">{{ 'Uit nabootsing-modus gaan'|trans }}</a>
  393.             </div>
  394.         {% endif %}
  395.         <div class=\"row\" >
  396.             <div class=\"col-11 mt-auto\">
  397.                   <a href=\"/\"><img src=\"/images/PaleonticaLogo-408.png\" alt=\"paleontica-logo\" class=\"img-fluid img-responsive\"></a>
  398.             </div>
  399.             <div class=\"col-1 mt-auto\">
  400.             </div>
  401.         </div>
  402.       </div>
  403.     </header>
  404.     <!-- End Header -->
  405.     {#{% include 'navigation.twig' %}#}
  406.     {{ render(controller('App\\\\Controller\\\\NavigationController::navigation')) }}
  407.     {# {{ render(controller('App\\\\Controller\\\\Menu::menubar', { 'current_path': path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) } )) }} #}
  408.     <!-- Start Main Content -->
  409.     <main>
  410.       <div class=\"container flex-shrink-0\">
  411.         {% for message in app.flashes('info') %}
  412.           <div class=\"alert alert-info\">{{ message }}</div>
  413.         {% endfor %}
  414.         {% for message in app.flashes('success') %}
  415.           <div class=\"alert alert-success\">{{ message }}</div>
  416.         {% endfor %}
  417.         {% for message in app.flashes('warning') %}
  418.           <div class=\"alert alert-warning\">{{ message }}</div>
  419.         {% endfor %}
  420.         {% for message in app.flashes('error') %}
  421.           <div class=\"alert alert-danger\">{{ message }}</div>
  422.         {% endfor %}
  423.         {% block body %}{% endblock %}
  424.       </div>
  425.     </main>
  426.     <!-- End Main Content -->
  427.     <!-- Start Footer -->
  428.     <footer>
  429.       <div class=\"container mt-auto text-center\">
  430.         &copy; {{'Stichting Paleontica'|trans }}. {{ 'Alle rechten voorbehouden'|trans }}.<br />
  431.         <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>
  432.       </div>
  433.     </footer>
  434.     {#<script src=\"https://code.jquery.com/jquery-3.4.1.min.js\" integrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" crossorigin=\"anonymous\"></script>#}
  435.     <script src=\"https://code.jquery.com/jquery-3.4.1.js\" integrity=\"sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=\" crossorigin=\"anonymous\"></script>
  436.     <script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\" integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"></script>
  437.     <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js\" integrity=\"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6\" crossorigin=\"anonymous\"></script>
  438.     <script src=\"https://unpkg.com/feather-icons/dist/feather.min.js\"></script>
  439.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/core@4.1.0/main.min.js\"></script>
  440.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@4.1.0/main.min.js\"></script>
  441.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@4.1.0/main.min.js\"></script>
  442.     <script src=\"https://cdn.jsdelivr.net/npm/@fullcalendar/timegrid@4.1.0/main.min.js\"></script>
  443.     <script>feather.replace()</script>
  444.     {% if site_type != 'beta' %}
  445.     <!-- Matomo -->
  446.     <script type=\"text/javascript\">
  447.       var _paq = window._paq = window._paq || [];
  448.       /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
  449.       _paq.push(['trackPageView']);
  450.       _paq.push(['enableLinkTracking']);
  451.       (function() {
  452.         var u=\"//analytics.paleontica.org/\";
  453.         _paq.push(['setTrackerUrl', u+'matomo.php']);
  454.         _paq.push(['setSiteId', '1']);
  455.         var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  456.         g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  457.       })();
  458.     </script>
  459.     <!-- End Matomo Code -->
  460.     {% endif %}
  461.     <script>
  462.       var xhr = new XMLHttpRequest();
  463.       xhr.open('GET', 'https://georockshop.nl/advertisement/index.php');
  464.       xhr.onload = function() {
  465.               var ad = JSON.parse(xhr.responseText);
  466.               document.getElementById('advertisement_img').innerHTML = \"<img src=\\\"\"+ad.thumb+\"\\\" width='190' height='144' class='img-fluid img-responsive'>\";
  467.               document.getElementById('advertisement_img').href = ad.link;
  468.               document.getElementById('advertisement_link').innerHTML = \"<a href=\\\"\" + ad.link + \"\\\">\" + ad.name + \"</a><br><b>&euro; \" + ad.price + \"</b>\";
  469.       };
  470.       xhr.send();
  471.     </script>
  472.     <script type=\"text/javascript\">
  473.         document.addEventListener('DOMContentLoaded', () => {
  474.             var calendarEl = document.getElementById('minicalendar-holder');
  475.             var calendar = new FullCalendar.Calendar(calendarEl, {
  476.                 defaultView: 'dayGridMonth',
  477.                 editable: true,
  478.                 firstDay: 1,
  479.                 locale: '{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}',
  480.                 eventSources: [
  481.                     {
  482.                         url: \"{{ path('fc_load_events') }}\",
  483.                         method: \"POST\",
  484.                         extraParams: {
  485.                             filters: JSON.stringify({})
  486.                         },
  487.                         failure: () => {
  488.                             console.log(\"There was an error while fetching FullCalendar!\");
  489.                         },
  490.                     },
  491.                 ],
  492. {% if app.request.locale == 'nl' %}{% else %}
  493.                 eventDataTransform: function(eventData) {
  494.                   eventData.title_nl = eventData.title;
  495.                   eventData.title = eventData.title_en;
  496.                   return eventData;
  497.                 },
  498. {% endif %}
  499.                 header: {
  500.                     left: 'prev,next today',
  501.                     center: 'title',
  502.                     right: 'dayGridMonth',
  503.                 },
  504.                 plugins: [ 'interaction', 'dayGrid', 'timeGrid' ], // https://fullcalendar.io/docs/plugin-index
  505.                 timeZone: 'UTC',
  506.             });
  507.             calendar.render();
  508.             
  509.         });
  510.     </script>
  511.     {% block javascript %}{% endblock %}
  512.     <!-- End Footer -->
  513.   </body>
  514. </html>
  515. ""base.html.twig""/var/www/acc.paleontica.org/templates/base.html.twig");
  516.     }
  517. }