|
[BlogIcon] 라고 할때 tattertools/BlogIcon/ 안에 index.xml과 index.php가 조재 [index.php] [CODE]<? function showBlogIcon($target, $mother) { if (empty($mother['homepage'])) return $target; $slash = ($mother['homepage']{strlen($mother['homepage']) - 1} == '/' ? '' : '/'); return "<img src=\"{$mother['homepage']}{$slash}index.gif\" width=\"16\" height=\"16\" onerror=\"this.parentNode.removeChild(this)\"/> $target"; } ?>[/CODE] [index.xml] <?xml version="1.0" encoding="utf-8"?> <plugin version="1.0"> <title>블로그 아이콘 표시</title> <version>1.0</version> <description>댓글의 홈페이지에 블로그 아이콘(index.gif)이 있으면 댓글에 표시됩니다.</description> <license>TPL</license> <link>http://www.tattertools.com/plugins/BlogIcon</link> <author link="http://www.tattertools.com"><![CDATA[Tatter & Company]]></author> <safety changeData="no" exposeData="no" accessLocal="no" accessRemote="no" accessRaw="no" /> <requirements> <tattertools>1.0</tattertools> </requirements> <listeners> <listener event="CommenterPrinting">showBlogIcon</listener> </listeners> </plugin> |
|
Home // Blog
Home // Notice
Home // Tag Log
Home // Location Log
Home // Media Log
Home // GuestBook
테터툴즈 플러그인 구조
Posted at 2006/02/03 10:00 //
in Textcube/Plug-in Develoment //
by