<{$theme_name}>
<{assign var=theme_name value=$xoTheme->folderName}>
$xoTheme->folderName :物件的寫法
可在後台開啟:smarty除錯,來看有那些變數可用
<{assign var=show_var value=1}>
<{if $xoops_isadmin and $show_var}> <{includeq file="$xoops_rootpath/modules/ugm_tools/themes_common/show_var.html"}> <{/if}>
<!-- jQuery --> <script src="<{xoAppUrl}>browse.php?Frameworks/jquery/jquery.js" type="text/javascript"></script>
由於有時在區塊也會引入,所以位置應該調整至上方
<{if $xoops_dirname == "system"}> <{* 在首頁 *}> <{else}> <{* 在模組 *}> <{/if}>
<!-- Theme JavaScript --> <script src="<{xoImgUrl}>js/creative.min.js"></script>
<!-- Theme JavaScript --> <script src="<{xoImgUrl}>js/creative.js"></script>
// Offset for Main Navigation $('.system #mainNav').affix({ offset: { top: 100 } })
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top <{if $xoops_dirname != 'system'}>affix<{/if}>">
<!-- Theme CSS --> <link href="<{xoImgUrl}>css/creative.css" rel="stylesheet">
.navbar-default.affix { background-color: white; border-color: rgba(34, 34, 34, 0.05); }換成
.navbar-default.affix { /*background-color: white;*//*ugm*/ background: rgba(51, 51, 51, 0.8); border-color: rgba(34, 34, 34, 0.05); }
.navbar-default.affix .nav > li > a, .navbar-default.affix .nav > li > a:focus { color: #222222; } .navbar-default.affix .nav > li > a:hover, .navbar-default.affix .nav > li > a:focus:hover { color: #F05F40; }換成
.navbar-default.affix .nav > li > a, .navbar-default.affix .nav > li > a:focus { color: rgba(255,255,255,.7); } .navbar-default.affix .nav > li > a:hover, .navbar-default.affix .nav > li > a:focus:hover { color: white; }/*ugm*/
config=> conf_id=7 => default