diff options
author | BeezyT <timo@ezdesign.de> | 2012-11-12 13:15:52 +0400 |
---|---|---|
committer | BeezyT <timo@ezdesign.de> | 2012-11-12 13:15:52 +0400 |
commit | 8c9ea809c403cdd80cf58aad5b885f2429933ee1 (patch) | |
tree | 56b7d46d91e19d35d30a033667334aa45466c841 /plugins/Overlay/Overlay.php | |
parent | 600e1296da8742aadd00a3a5bacbca1cf5ba0779 (diff) |
refs #2465
* Renaming Insight to Overlay
* Includes a new minified piwik.js, generated as described in js/README. Please double-check whether the file is OK.
* Servers that had the Insight plugin installed will need to delete it manually, right?
git-svn-id: http://dev.piwik.org/svn/trunk@7445 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Overlay/Overlay.php')
-rw-r--r-- | plugins/Overlay/Overlay.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/Overlay/Overlay.php b/plugins/Overlay/Overlay.php new file mode 100644 index 0000000000..446cb47a6e --- /dev/null +++ b/plugins/Overlay/Overlay.php @@ -0,0 +1,53 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * @version $Id$ + * + * @category Piwik_Plugins + * @package Piwik_Insight + */ + +class Piwik_Insight extends Piwik_Plugin +{ + public function getInformation() + { + return array( + 'description' => Piwik_Translate('Insight_PluginDescription'), + 'author' => 'Piwik', + 'author_homepage' => 'http://piwik.org/', + 'version' => Piwik_Version::VERSION, + ); + } + + public function getListHooksRegistered() + { + return array( + 'AssetManager.getCssFiles' => 'getCssFiles', + 'AssetManager.getJsFiles' => 'getJsFiles', + 'Menu.add' => 'addMenu', + ); + } + + public function getCssFiles($notification) + { + $cssFiles = &$notification->getNotificationObject(); + $cssFiles[] = "plugins/Insight/templates/index.css"; + } + + public function getJsFiles($notification) + { + $jsFiles = &$notification->getNotificationObject(); + $jsFiles[] = "plugins/Insight/templates/index.js"; + } + + public function addMenu() + { + Piwik_AddMenu('Actions_Actions', 'Insight_Insight', + array('module' => 'Insight', 'action' => 'index'), + $display = true, $order = 99); + } + +} |