解決了將中文顯示字串與 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
熱門文章
-
Today when I was driving, the driver in front of me looked like one of my ex-coworkers. His name is Allen. The image of the driver's b...
-
看到報紙上說, 根據調查, 星期四是多數上班族在一個星期中覺得最快樂的一天, 所以囉, 希望大家今天心情特好, 工作效率如蠻牛般往上飆(當然是work hard & work smart!) 感謝我小朋友幼兒園老師 Joanne 推薦的「水蜜桃阿嬤」, 有免費下載網站,...
-
剛聽完Stephen R. Covey 的 "The Leader in Me" CD. 發現" 七個習慣交出優秀的孩子 "這本書裡面教的, 就是小朋友學校現在在貫徹整學期的中心思想! ...前三個習慣( 主動積極、以終為始、要事第...
2011年1月6日 星期四
訂閱:
張貼留言 (Atom)
|
|
沒有留言:
張貼留言