解決了將中文顯示字串與 lang 目錄内的php檔做對應後,
今天想要將圖示加到 block內 的個別項目前, 成功了!
以下就是 在get_content() function內加上這行 php 程式碼,
就會顯示對應到的那個圖檔(此處範例為logo.gif):
//就是將對應的圖檔及其目錄位置給 icon[] 就好了!
$this->content->icons[] = '<img src="'.$CFG->wwwroot.'/blocks/ge/images/logo.gif" class="icon" alt="icon here" />';
對了, 在php內可使用JavaScript.
我在學校使用的BackOffice ePage 平台及Moodle上發現都可以.
對不起. 請原諒我. 謝謝你. 我愛你.
I am sorry. Please forgive me. Thank you. I love you.
Lo siento. Perdóname, por favor. Gracias. Te amo.
"When we are willing to take 100% responsibility and let go, what is right and perfect unfolds." 當我們願意為我們所經歷的一切負百分之百的責任時, 適合我們的及完美的一切, 即為我們顯現.--http://www.self-i-dentity-through-hooponopono.com/index.htm
熱門文章
-
今天開始進行開發另一個Project的功能, 這個系統使用的是Informix 資料庫, 我想要用 SQuirrel 連接到Informix, 上網找了一番, 終於找到這位好心的大哥, 除了將步驟寫出來外, 還加上畫面, 我按著他的步驟做, 最後成功連接到Informix DB!...
-
今天2008/01/21正式啟動實現夢想的機制! 我和家人的健康, 這是我會全心全力經營的事業, 我的事業說明網站 : http://msi-team.com/geniusleader/ 有了致富導師 Robert G. Allen 的背書, 我很放心. 而且我相信, 只要按照這...
-
We were watching one of Madeline 's movies and heard the song at the end of the movie. Although it is the story about the 12 French gir...
2011年1月6日 星期四
訂閱:
張貼留言 (Atom)
|
|
沒有留言:
張貼留言