一、onInstall.php
二、onUpdate.php
三、onUninstall.php
四、調整佈景
佈景id | 樣板名稱 | 佈景語法 |
nav | creative_nav.html | <{includeq file="$theme_name/tpl/creative_nav.html"}> |
header | creative_header.html | <{includeq file="$theme_name/tpl/creative_header.html"}> |
about | creative_about.html | <{includeq file="$theme_name/tpl/creative_about.html"}> |
services | creative_services.html | <{includeq file="$theme_name/tpl/creative_services.html"}> |
portfolio | creative_portfolio.html | <{includeq file="$theme_name/tpl/creative_portfolio.html"}> |
bg-dark | creative_bg-dark.html | <{includeq file="$theme_name/tpl/creative_bg-dark.html"}> |
contact | creative_contact.html | <{includeq file="$theme_name/tpl/creative_contact.html"}> |
五、修改 /include/onInstall.php => write_ugm_creative_html()
https://www.ugm.com.tw/modules/tad_book3/page.php?tbdsn=423
六、安裝模組,檢查資料表與uploads
佈景id | 樣板名稱 | 佈景語法 |
nav | creative_nav.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_nav.html"}> |
header | creative_header.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_header.html"}> |
about | creative_about.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_about.html"}> |
services | creative_services.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_services.html"}> |
portfolio | creative_portfolio.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_portfolio.html"}> |
bg-dark | creative_bg-dark.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_bg-dark.html"}> |
contact | creative_contact.html | <{includeq file="$xoops_rootpath/uploads/ugm_creative/tpl/creative_contact.html"}> |
引入檔案必須用實體路徑,不能用網址,再把佈景的子樣板位置,改到uploads
由此得知,必須等模組安裝完成後,才可將佈景設成預設佈景