From 74fce0419f8368afe3daf9acc640f36987c79f80 Mon Sep 17 00:00:00 2001 From: ngleader Date: Tue, 4 Nov 2008 09:34:43 +0000 Subject: [PATCH] =?UTF-8?q?planet=20todo=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4753 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- addons/planet_todo/planet_todo.addon.php | 28 ++++ addons/planet_todo/planet_todo.js | 194 +++++++++++++++++++++++ 2 files changed, 222 insertions(+) create mode 100644 addons/planet_todo/planet_todo.addon.php create mode 100644 addons/planet_todo/planet_todo.js diff --git a/addons/planet_todo/planet_todo.addon.php b/addons/planet_todo/planet_todo.addon.php new file mode 100644 index 000000000..cb478be3e --- /dev/null +++ b/addons/planet_todo/planet_todo.addon.php @@ -0,0 +1,28 @@ +mid == 'planet'){ + $oPlanet = Context::get('planet'); + if($oPlanet->isMyPlanet()){ + $oPlanetModel = &getModel('planet'); + $countTodo = $oPlanetModel->getTagSearchResultCount($this->module_srl,'todo'); + $countDone = $oPlanetModel->getTagSearchResultCount($this->module_srl,'done'); + + Context::addHtmlHeader(""); + Context::addJsFile('./addons/planet_todo/planet_todo.js'); + } + } + } +?> \ No newline at end of file diff --git a/addons/planet_todo/planet_todo.js b/addons/planet_todo/planet_todo.js new file mode 100644 index 000000000..8fe4caf89 --- /dev/null +++ b/addons/planet_todo/planet_todo.js @@ -0,0 +1,194 @@ +function planetTab(){ + if($('planet_tab')) $('planet_tab').innerHTML += '