$url_parts = explode(',', get_page_uri($page_id));
$filename = preg_replace("/\/.*/","",$url_parts[0]).'.jpg';
$filepath = dirname(__FILE__).'/../../../headers/'. $filename;
if (file_exists($filepath)) {
$style = " style=\"background-image: url('/headers/{$filename}');\"";
} else {
$style = "";
}
?>
Aangeboden voor lease:
Voor info: Desiree 040 283 23 63