<!DOCTYPE html> <html lang="zh-TW"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{$smarty.const.WEB_TITLE}</title> <!-- Bootstrap --> <link href="{$themeUrl}/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js 讓 IE8 支援 HTML5 元素與媒體查詢 --> <!-- 警告:Respond.js 無法在 file:// 協定下運作 --> <!--[if lt IE 9]> <script src="{$themeUrl}/js/html5shiv.min.js"></script> <script src="{$themeUrl}/js/respond.min.js"></script> <![endif]--> <!-- jQuery (Bootstrap 所有外掛均需要使用) --> <script src="{$themeUrl}/js/jquery.min.js"></script> <!-- 依需要參考已編譯外掛版本(如下),或各自獨立的外掛版本 --> <script src="{$themeUrl}/js/bootstrap.min.js"></script> {literal} <script type="text/javascript"> </script> {/literal} </head> <body> {$nav} {* 在index.php *} {if $file_name == "index.php"} <script src="{$smarty.const.WEB_URL}/class/backstretch/jquery.backstretch.min.js"></script> {literal} <script type="text/javascript"> $(document).ready(function(){ $('.top-content').backstretch([ "http://fakeimg.pl/1600x1200/ff0000/" , "http://fakeimg.pl/1600x1200/00ff00/" , "http://fakeimg.pl/1600x1200/0000ff/" ], {duration: 3000, fade: 750}); }); </script> {/literal} <style> .top-content{ height:600px; } </style> <div class="top-content"> </div> <div class="container" style="margin-top:40px;"> <div class="row"> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> <div class="col-xs-6 col-md-3"> <a href="#" class="thumbnail"> <img src="http://fakeimg.pl/800x600/"> </a> </div> </div> </div> {/if} {* 在contact.php 或 about_us.php *} {if $file_name == "contact.php" or $file_name == "about_us.php"} <div class="container" style="margin-top:40px;"> <div class="row"> <div class="col-md-12 bg-info" style="height:460px;"> </div> </div> </div> {/if} <!--頁尾--> <div class="bg-warning" style="margin-top:20px;"> <div class="container" style="height:40px;line-height:40px;"> <div class="text-center"><a href="{$smarty.const.WEB_URL}">{$smarty.const.WEB_TITLE}</a></div> </div> </div> </body> </html>