diff options
author | BeezyT <timo@ezdesign.de> | 2012-11-14 17:02:46 +0400 |
---|---|---|
committer | BeezyT <timo@ezdesign.de> | 2012-11-14 17:02:46 +0400 |
commit | 340d7f8892271e509324ffcba1933ef9ffed4d43 (patch) | |
tree | fad194a248a441fe9f8fac031f2b5fbe0cd304c7 /plugins/Overlay/Overlay.php | |
parent | c376b45e534b959effe9c4ab68b77fd26b65bf5d (diff) |
refs #2465
overlay has two modes now: full screen with sidebar & full screen without sidebar. for now, it is only accessible via a new row action in the pages report.
because of this change, some mostly not-so-nice core-changes could be removed (mainly that's good because overlay doesn't impact as many things outside the plugin anymore):
* disableHistory option of broadcast
* handling for parameter overlayUrl in broadcast
* openLinksInOverlay() method of html table
* config option overlay_launch_from_pages_report
* hack for data table to launch overlay from the links
other changes:
* error message for wrong domain has nice styles and links to admin page when the user has admin privileges
* when registering row actions, the order can be set
* made row action style a little more compact
* increased min width of label column a bit
git-svn-id: http://dev.piwik.org/svn/trunk@7470 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Overlay/Overlay.php')
-rw-r--r-- | plugins/Overlay/Overlay.php | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/plugins/Overlay/Overlay.php b/plugins/Overlay/Overlay.php index 8d2a010c6c..317c3820e5 100644 --- a/plugins/Overlay/Overlay.php +++ b/plugins/Overlay/Overlay.php @@ -21,33 +21,19 @@ class Piwik_Overlay extends Piwik_Plugin 'version' => Piwik_Version::VERSION, ); } - - public function getListHooksRegistered() + + function getListHooksRegistered() { return array( - 'AssetManager.getCssFiles' => 'getCssFiles', - 'AssetManager.getJsFiles' => 'getJsFiles', - 'Menu.add' => 'addMenu', + 'AssetManager.getJsFiles' => 'getJsFiles' ); } - - public function getCssFiles($notification) - { - $cssFiles = &$notification->getNotificationObject(); - $cssFiles[] = "plugins/Overlay/templates/index.css"; - } - + public function getJsFiles($notification) { $jsFiles = &$notification->getNotificationObject(); - $jsFiles[] = "plugins/Overlay/templates/index.js"; - } - - public function addMenu() - { - Piwik_AddMenu('Actions_Actions', 'Overlay_Overlay', - array('module' => 'Overlay', 'action' => 'index'), - $display = true, $order = 99); + $jsFiles[] = 'plugins/Overlay/templates/rowaction.js'; + $jsFiles[] = 'plugins/Overlay/templates/helper.js'; } } |