<?php $ext_ref = externe_referrer(); if($ext_ref) { get_footer(); }else{ wp_footer(); } ?>