Title1

Title2

Title3

5. 細部調整

一、將佈景整理成數個「子樣板」

    <{includeq file="$theme_name/tpl/theme_nav.html"}>
    <{includeq file="$theme_name/tpl/theme_header.html"}>
    <{includeq file="$theme_name/tpl/theme_about.html"}>
    <{includeq file="$theme_name/tpl/theme_services.html"}>
    <{includeq file="$theme_name/tpl/theme_portfolio.html"}>
    <{includeq file="$theme_name/tpl/theme_bg-dark.html"}>
    <{includeq file="$theme_name/tpl/theme_contact.html"}>

二、xoops預設首頁的模組為「system」

  1. http://localhost/  -> <{$xoops_dirname}> = system ,xoops預設模組為:「system」
  2. 判斷模組
    <{if $xoops_dirname == "system"}>
            <{* 在首頁 *}>
    <{else}>
            <{* 在模組 *}>
    <{/if}>

     

  3. 安裝tadnews模組
  4. 僅在首頁執行「輪播圖」
    
        <{includeq file="$theme_name/tpl/theme_nav.html"}>
        <{if $xoops_dirname == "system"}>
            <{* 在首頁 *}>
            <{includeq file="$theme_name/tpl/theme_header.html"}>
        <{else}>
            <{* 在模組 *}>
            <{includeq file="$theme_name/tpl/contents.html"}>
        <{/if}>
        <{includeq file="$theme_name/tpl/theme_about.html"}>
        <{includeq file="$theme_name/tpl/theme_services.html"}>
        <{includeq file="$theme_name/tpl/theme_portfolio.html"}>
        <{includeq file="$theme_name/tpl/theme_bg-dark.html"}>
        <{includeq file="$theme_name/tpl/theme_contact.html"}>

     

  5.