ok so i have this if statement it is in the header.php
<?php
if (is_page('estate planning')) {
$estate = array ("eplnp","1","2","3","4","5");}
elseif(is_page('probate & trust administration')){
$trust = array ("eplnp","1","2","3","4","5");}
elseif(is_page('elder law')){
$elder = array ("eplnp","1","2","3","4","5");}
elseif(is_page('meet sara')){
$meet = array ("eplnp","1","2","3","4","5");}
elseif(is_page('blog')){
$blog = array ("eplnp","1","2","3","4","5");}
elseif(is_page('client forms')){
$form = array ("eplnp","1","2","3","4","5");}
elseif(is_page('request a consultation')){
$request = array ("eplnp","1","2","3","4","5");}
else {
$home = array ("homebg","hmline1","hmline","phone","home","blurb-hm");}
?>
how would i use this statement globally... like i want it to apply to the index.php header.php and footer.php.
i realize i can save it as bla.php and use include() on all the pages. is there a more efficient way to do it like loading it globally from one page so the code looks neater and can be used on the the currently loaded pages?