線上書籍

Home

XOOPS 佈景 2017

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

<{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.