Toggle main menu visibility
新聞
下載
教材
影音
討論
其他選單
好站連結
行事曆
電子相簿
常見問題
萬用表單
即時留言簿
友站消息
社大學員
:::
登入
登入
帳號
密碼
登入
重整畫面
:::
所有書籍
「[1031]XOOPS佈景設計」目錄
MarkDown
7-5 theme2014/config2.php 額外設定
1. HTML5入門
1-1 「範例」index.html
2. HTML5 與 CSS3
2-1 index.html(背景整合設定)
2-2 index.html(多背景)
2-3 index.html(標題文字外觀設定)
2-4 index.html(頁內樣式)
2-5 index.html(版面布局)
2-6 index.html(完整版面布局)
2-7 index.html(導覽列)
2-8 index.html(完整導覽列)
3. CSS3與版面布局
3-1 index.html(標題加上左邊框)
3-2 index2.html(position練習空檔)
3-3 index2.html(position:relative)
3-4 index2.html(position:relative+z-index 上下層)
3-5 index2.html(position:absolute)
3-6 index2.html(position:fixed)
3-7 index.html(兩欄式)
3-8 index3.html(用position來做三欄式)
3-9 index4.html(利用float做三欄式)
3-10 index.html(float兩欄式)
3-11 index.html(側邊作者欄+花邊)
4. 認識 BootStrap
4-1 bootstrap1.html 固定版面布局練習
4-2 bootstrap2.html 固定版面XOOPS布局練習
4-3 bootstrap2.html 流動版面XOOPS布局練習
4-4 bootstrap3.html 流動版面網頁排版練習
5. XOOPS佈景開發(上)
5-1 theme2014/index.html 基本頁面
5-2 theme2014/index.html 基本頁面+架構+justfont字型
5-3 css/style.css 主樣式表
5-4 theme2014/index.html 導覽列+XOOPS八區域+頁尾
5-5 theme2014/theme.html 樣板檔(大架構初步完成)
5-6 theme2014/xotpl/block.html (區塊樣板檔)
5-7 theme2014/css/xoops.css (XOOPS內容樣式表)
5-8 theme2014/xotpl/block_center.html (中間區塊樣板檔)
6. XOOPS佈景開發(下)
6-1 theme2014/theme.html 樣板檔(加入管理工具)
6-2 theme2014/xotpl/block.html (強化區塊樣板檔)
6-3 theme2014/xotpl/block_center.html (強化中間區塊樣板檔)
6-4 theme2014/css/xoops.css (XOOPS內容樣式表)
6-5 theme2014/css/style.css (主樣式表)
6-6 theme2014/modules/system/system_redirect.html 轉頁畫面
6-7 theme2014/language/tchinese_utf8/main.php
7. 打造可控制佈景
7-1 佈景結構參考
7-2 theme2014/theme.html (主佈景架構)
7-3 theme2014/theme.ini (佈景資訊檔)
7-4 theme2014/css/style.css
7-4 theme2014/config.php (佈景主設定檔)
7-5 theme2014/config2.php 額外設定
8. 進階佈景設計
8-1 theme2014/theme.html 主佈景架構
8-2 theme2014/language/tchinese_utf8/main.php 語系檔
9. 快速做出XOOPS佈景
9-1 themes/sailing_demo/theme.html
9-2 themes/sailing_demo/theme.ini
9-3 themes/sailing_demo/README
9-4 themes/sailing_demo/config.php
9-5 themes/sailing_demo/config2.php
9-6 themes/sailing_demo/templatemo_style.css (僅列修改部份)
8-1 theme2014/theme.html 主佈景架構
\[1031\]XOOPS佈景設計 ================= [](http://www.tad0616.net/uploads/tad_book3/file/1031/08.zip) ### 一、 嵌入自製選單 1. 不錯的選單網站:http://cssmenumaker.com/ 2. 設定好之後下載解壓縮,並移至佈景下,目錄改為menu 3. 在樣板中加入相關語法(一般不外乎是CSS以及JS和HTML三個部份而已): ```
``` 4. 修改menu/styles.css,將底色及pIndicator、cIndicator的border-top-color改為透明,以便顯示原佈景的底圖。 ### 二、 Smarty的迴圈 1. 迴圈的資料來源($menu\_var)長這樣子(但其實這和佈景開發者無關,看看就好): 2. $menu\_var\[0\]=array('id'=>"編號1" , 'title'=>"選單1" , 'url'=>"網址1" , 'target'="目標1" , 'icon'="圖示1" , 'submenu'="子項目1"); 3. 套用迴圈,from是smarty的變數來源,item是自訂一個在迴圈中使用的變數名稱: ``` <{foreach from=$menu_var item=m}>
<{$m.title}>
<{/foreach}> ``` 4. 若有子選項,需在<li>中加入class="has-sub",並且在<li></li>裡面再加入第二組迴圈: ```
class="has-sub"<{/if}>>
第一層選項
<{if $m.submenu}>
<{foreach from=$m.submenu item=m2}> ...略... <{/foreach}>
<{/if}>
``` ### 三、 樣板中使用PHP 1. Smarty中允許使用PHP,只要用以下語法即可,若要將結果顯示在畫面上,直接用echo即可。 2. 若需要載入內建物件,記得用global才行。 ``` <{php}> global $xoopsUser; echo $xoopsUser->name(); <{/php}> ``` ### 四、 套用自製滑動圖文 1. 滑動圖文的樣板變數為$slider\_var,其值如下: 2. $slide\_var\[0\]=array('files\_sn'=>編號 , 'sort'=>排序 , 'file\_name'=>真實檔名 , 'description'=>描述 , 'original\_filename'=>原始檔名 , 'sub\_dir'=>子目錄 , 'file\_url'=>完整圖檔位置) ; 3. 不錯的滑動圖文:http://www.devtrix.net/sliderman/ 4. 請將相關語法(javascript及CSS部份)貼到</head>前,接著參照範例頁,將HTML貼到欲呈現位置並修改參數以及CSS檔的寬度及高度設定。例如: 5. 若是用demo3,記得到其他範例去將左右方向的圖示複製一份到img下。
:::
搜尋
search
進階搜尋
QR Code 區塊
快速登入
所有討論區
「PHP全端開發」線上課程討論區
XOOPS使用討論區
一般研習學員
社大學員專用
路過哈啦區
XOOPS佈景設計
XOOPS模組開發
Tad書籍區
即時留言簿
書籍目錄
展開
|
闔起
線上使用者
66
人線上 (
7
人在瀏覽
線上書籍
)
會員: 0
訪客: 66
更多…