| |||||||||
|
09.04.2012 20:28
убрать
заменить
на
будет как вы хотите
if (isset($sub)&&($sub!="")): $tit.=" ".$sub . " - "; endif;
if (isset($r)&&($r!="")): $tit.=" " . $r . " - "; endif;
if (isset($r)&&($r!="")): $tit.=" " . $r . " - "; endif;
заменить
echo "<title>".$tit." $shop_name</title>";
на
if ($tit=="") {
if (isset($sub)&&($sub!="")): $tit.=" ".$sub . " - "; endif;
if (isset($r)&&($r!="")): $tit.=" " . $r . " - "; endif;
if ($tit=="") {$tit=$shop_name;}
}
echo "<title>$tit</title>";
if (isset($sub)&&($sub!="")): $tit.=" ".$sub . " - "; endif;
if (isset($r)&&($r!="")): $tit.=" " . $r . " - "; endif;
if ($tit=="") {$tit=$shop_name;}
}
echo "<title>$tit</title>";
будет как вы хотите