[1061] XOOPS佈景設計
<!DOCTYPE html>
<html lang="<{$xoops_langcode}>">
<head>
<!--目前$_SESSION['bootstrap']="<{php}>echo $_SESSION['bootstrap'];<{/php}>"; -->
<!--將目前的資料夾名稱,設定為樣板標籤變數 theme_name-->
<{assign var=theme_name value=$xoTheme->folderName}>
<!--載入由使用者設定的各項佈景變數-->
<{includeq file="$xoops_rootpath/modules/tadtools/themes_common/get_var.tpl"}>
<{includeq file="$xoops_rootpath/modules/tadtools/themes_common/meta.tpl"}>
<!-- 網站的標題及標語 -->
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/link_css.tpl"}>
<!-- 給模組套用的樣板標籤 -->
<{$xoops_module_header}>
<!-- 局部套用的樣式,如果有載入完整樣式 theme_css.tpl 那就不需要這一部份 -->
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/theme_css.tpl"}>
<style type="text/css">
body{
font-family:<{$font_family}>;
}
@font-face {
font-family: tadfont;
src: url('<{xoImgUrl}>myfont.ttf');
}
@font-face {
font-family: setofont;
src: url('<{xoImgUrl}>setofont.ttf');
}
.mini_menu {
background: #000 url('<{xoImgUrl}>images/min-header.jpg') top left /cover;
border-bottom: 1px solid #156785;
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.4);
}
#footer {
background: <{$footer_bgcolor}> url('<{$footer_img}>');
color: <{$footer_color}>;
text-align: center;
padding: 30px 0px;
margin-top: 30px;
position: relative;
}
#footer a {
color: <{$footer_color}>;
}
</style>
</head>
<body>
<!-- 預設選單($menu_var_kind 建議用 my_menu) -->
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/navbar.tpl"}>
<!-- 預設滑動圖文(可自適應) -->
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/slideshow_responsive.tpl"}>
<!--
<img src="<{xoImgUrl}>images/header.jpg" alt="logo" class="hidden-xs" style="width: 100%;">
<img src="<{xoImgUrl}>images/header_xs.jpg" alt="logo" class="visible-xs" style="width: 100%;">
-->
<div class="container" style="margin-top: <{$margin_top}>px;">
<!-- 載入布局 -->
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/$theme_type.tpl"}>
</div>
<div id="footer">
<{if $xoops_isadmin}>
<a href="<{$xoops_url}>/modules/system/admin.php?fct=preferences&op=show&confcat_id=3" class="block_config"></a>
<{/if}>
<{$xoops_footer}>
</div>
<!-- 載入bootstrap -->
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/bootstrap_js.tpl"}>
<!-- 載入自訂js -->
<{includeq file="$xoops_rootpath/modules/tadtools/themes3_tpl/my_js.tpl"}>
<{$my_code}>
<!-- 顯示參數,開發用,開發完可刪除 -->
<{if $show_var=='1'}>
<{includeq file="$xoops_rootpath/modules/tadtools/themes_common/show_var.tpl"}>
<{/if}>
<script>
$(function() {
$(window).scroll(scroll_style);
});
function scroll_style() {
var window_top = $(window).scrollTop();
if (window_top > 2) {
$(".navbar").addClass("mini_menu");
} else {
$(".navbar").removeClass("mini_menu");
}
}
</script>
</body>
</html>