Created
February 4, 2014 03:33
-
-
Save kohki-shikata/8797756 to your computer and use it in GitHub Desktop.
campaing banner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>deadline php</title> | |
</head> | |
<body> | |
<?php | |
$current = time();//現在時刻の取得 | |
$xday = "20140203";//締切日の設定。YYYYMMDD形式 | |
$xday = strtotime($xday);//UNIX時に変換 | |
if($current>$xday):?> | |
<!--ここにキャンペーンバナーとかを貼ろう!--> | |
<img src="" width="480" height="60" alt="キャンペーン実施中!" /> | |
<!--ここまで--> | |
<?php endif;?> | |
</body> | |
</html> |
sorry, I can't even understand. I'm not good at Gist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why phtml ?