{source}<script id=”leform-remote” src=”https://vaccinatiecentrum.nl/shc_grformengine/content/plugins/halfdata-green-forms/js/leform.js?ver=1.41″ data-handler=”https://vaccinatiecentrum.nl/shc_grformengine/ajax.php”></script>{/source}
{source}<script src=”https://vaccinatiecentrum.nl/shc_grformengine/js/customgreenvac.js”></script>{/source}
{source}<?php
$src_file = ‘airdatepicker_custom.js’;
$trg_file = ‘airdatepicker.js’;
$closed_days = file_get_contents(‘https://vaccinatiecentrum.nl/backoffice/index.php?r=api/getcloseddays’);
$path_to_file = substr(__FILE__, 0, strrpos(__FILE__, ‘tmp’)) ;
$path_to_file .= ‘shc_grformengine/content/plugins/halfdata-green-forms/js/’;
$file_contents = file_get_contents($path_to_file . $src_file);
$file_contents = str_replace(“[#VACC-CLOSED-DATES#]”, $closed_days , $file_contents);
file_put_contents($path_to_file . $trg_file, $file_contents);
?>{/source}