if (have_posts()) : the_post();
$ACF_fbanner_inscription = get_field('acf_banner_inscription');
$ACF_event_id = get_field('acf_event_id');
$ACF_link_thanks_page = get_field('acf_link_thanks_page');
if(isset($_GET['origen'])){
$origen = $_GET['origen'];
$sublink = null;
switch ($origen) {
case 'fb-ppl1':
$sublink = '?origen=fb-ppl1';
$ACF_link_thanks_page = $ACF_link_thanks_page . $sublink;
break;
case 'fb-pplv2':
$sublink = '?origen=fb-pplv2';
$ACF_link_thanks_page = $ACF_link_thanks_page . $sublink;
break;
}
}
?>
endif; ?>