mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
31 lines
938 B
PHP
31 lines
938 B
PHP
<?php
|
|
if(!__ZB5__) exit();
|
|
|
|
/**
|
|
* @file spamfilter.addon.php
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief Rainbow link addon
|
|
*
|
|
* 링크가 걸린 텍스트에 마우스 오버를 하면 무지개색으로 변하게 하는 애드온입니다.
|
|
* rainbow.js는 http://www.dynamicdrive.com에서 제작하였으며 저작권을 가지고 있습니다.
|
|
**/
|
|
|
|
// admin 모듈의 경우 무조건 패스
|
|
/*
|
|
if(Context::get('module') == 'admin') {
|
|
$this->rainbow_link_is_called = true;
|
|
return;
|
|
}
|
|
*/
|
|
|
|
// 한번이라도 요청이 되었다면 패스
|
|
if($this->rainbow_link_is_called) return;
|
|
$this->rainbow_link_is_called = true;
|
|
|
|
// 현재 애드온의 위치를 구함
|
|
$oAddOnModel = &getModel('addon');
|
|
$path = $oAddOnModel->getAddonPath('rainbow_link');
|
|
|
|
// Context::addJsFile()을 이용하면 끝
|
|
Context::addJsFile($path.'js/rainbow.js');
|
|
?>
|