PCZONE 討論區

PCZONE 討論區 (https://www.pczone.com.tw/vbb3/)
-   ☉ -- 架 站 DIY 討 論 版 (https://www.pczone.com.tw/vbb3/forum/47/)
-   -   知道簡單php的請幫忙!! (https://www.pczone.com.tw/vbb3/thread/47/119604/)

cpthk 2005-12-30 11:45 AM

知道簡單php的請幫忙!!
 
2 個附加檔案
小弟在編輯coppermine photo gallery, 在編輯中碰到:
$template_footer = CPGPluginAPI::filter('gallery_footer','').substr($template, $gallery_pos);

不知道是什麼意思, 不知道有沒有人看得懂, 可以解說一下gallery_footer是哪來的?
同一頁的前面都沒有說明到gallery_footer, 所以應該不是一個變數, 不知道是怎麼宣告出來的??

下面是完整的檔案.

C.C. 2005-12-30 12:58 PM

你看一下 include\plugin_api.inc.php 中 CPGPluginAPI 的 source 就知道 filter 會搜尋所有 Plugin 的 filter
所以 'grallery_footer' 應該是某個 Plugin 呼叫 add_filter 加進來的

cpthk 2005-12-30 03:10 PM

可是我怎麼樣都找不到gallery_footer!?
到themes裡面也都找過了也沒有.

CapriSkye 2005-12-30 05:25 PM

記得沒錯的話 CPGPluginAPI::filter(\'gallery_footer\' 是用來 filter 佈景的 footer.
新的 1.4.x 可以讓你設定自己的 header 和 footer, 管理->佈景設定
所以如果你有設定 footer, 佈景裡面的 footer 就會被拿掉.


所有時間均為 +8。現在的時間是 05:18 PM



 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。