Fix mobile header

main
Pk11 3 years ago
parent f858fcf629
commit e470e11598

@ -358,6 +358,13 @@
}
$mobile = preg_match('/Mobile|Nintendo DSi/', $_SERVER['HTTP_USER_AGENT']);
if($mobile) {
$headerW = 192;
$headerH = 50;
} else {
$headerW = 384;
$headerH = 100;
}
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
@ -493,7 +500,7 @@
</head>
<body class="center">
<center>
<img class="center" src="<?php echo header_image($mobile); ?>" alt="BBS.ピケ.コム" width="384" height="100" />
<img class="center" src="<?php echo header_image($mobile); ?>" alt="BBS.ピケ.コム" width="<?php echo $headerW; ?>" height="<?php echo $headerH; ?>" />
</center>
<p>

Loading…
Cancel
Save