mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5940 201d5d3c-b55e-5fd7-737f-ddc643e51545
17 lines
761 B
PHP
17 lines
761 B
PHP
<?php
|
|
if(!defined("__ZBXE__")) exit();
|
|
|
|
/**
|
|
* @file planet_todo.addon.php
|
|
* @author SOL군 (sol@ngleader.com)
|
|
* @brief
|
|
**/
|
|
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
|
$planet = Context::get('planet');
|
|
if(!$planet || !$planet->isMyPlanet()) return;
|
|
$oPlanetModel = &getModel('planet');
|
|
$countBookmark = $oPlanetModel->getTagSearchResultCount($planet->getModuleSrl(),'bookmark');
|
|
Context::addHtmlHeader("<script type=\"text/javascript\">//<![CDATA[\nvar planet_bookmark_count=".( (int)$countBookmark).";\n//]]></script>");
|
|
Context::addJsFile('./addons/planet_bookmark/planet_bookmark.js');
|
|
}
|
|
?>
|