update Piwik to version 2.16 (fixes #91)
25
www/analytics/plugins/Morpheus/Controller.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace Piwik\Plugins\Morpheus;
|
||||
|
||||
use Piwik\Development;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\View;
|
||||
|
||||
class Controller extends \Piwik\Plugin\Controller
|
||||
{
|
||||
public function demo()
|
||||
{
|
||||
if (! Development::isEnabled() || !Piwik::isUserHasSomeAdminAccess()) {
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->renderTemplate('demo');
|
||||
}
|
||||
}
|
||||
52
www/analytics/plugins/Morpheus/Menu.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace Piwik\Plugins\Morpheus;
|
||||
|
||||
use Piwik\Development;
|
||||
use Piwik\Menu\MenuAdmin;
|
||||
use Piwik\Menu\MenuReporting;
|
||||
use Piwik\Menu\MenuUser;
|
||||
use Piwik\Piwik;
|
||||
|
||||
class Menu extends \Piwik\Plugin\Menu
|
||||
{
|
||||
public function configureAdminMenu(MenuAdmin $menu)
|
||||
{
|
||||
$menu->registerMenuIcon('CoreAdminHome_MenuDevelopment', 'icon-admin-development');
|
||||
$menu->registerMenuIcon('CoreAdminHome_MenuDiagnostic', 'icon-admin-diagnostic');
|
||||
$menu->registerMenuIcon('CorePluginsAdmin_MenuPlatform', 'icon-admin-platform');
|
||||
$menu->registerMenuIcon('General_Settings', 'icon-admin-settings');
|
||||
$menu->registerMenuIcon('CoreAdminHome_Administration', 'icon-admin-administration');
|
||||
|
||||
if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
|
||||
$menu->addDevelopmentItem('UI Demo', $this->urlForAction('demo'));
|
||||
}
|
||||
}
|
||||
|
||||
public function configureUserMenu(MenuUser $menu)
|
||||
{
|
||||
$menu->registerMenuIcon('UsersManager_MenuPersonal', 'icon-user-personal');
|
||||
$menu->registerMenuIcon('CoreAdminHome_MenuManage', 'icon-user-manage');
|
||||
$menu->registerMenuIcon('CorePluginsAdmin_MenuPlatform', 'icon-user-platform');
|
||||
|
||||
if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
|
||||
$menu->addPlatformItem('UI Demo', $this->urlForAction('demo'), $order = 15);
|
||||
}
|
||||
}
|
||||
|
||||
public function configureReportingMenu(MenuReporting $menu)
|
||||
{
|
||||
$menu->registerMenuIcon('General_Visitors', 'icon-reporting-visitors');
|
||||
$menu->registerMenuIcon('General_Actions', 'icon-reporting-actions');
|
||||
$menu->registerMenuIcon('Referrers_Referrers', 'icon-reporting-referer');
|
||||
$menu->registerMenuIcon('Goals_Goals', 'icon-reporting-goal');
|
||||
$menu->registerMenuIcon('Goals_Ecommerce', 'icon-reporting-ecommerce');
|
||||
$menu->registerMenuIcon('Dashboard_Dashboard', 'icon-reporting-dashboard');
|
||||
}
|
||||
}
|
||||
BIN
www/analytics/plugins/Morpheus/fonts/piwik.eot
Executable file
BIN
www/analytics/plugins/Morpheus/fonts/piwik.ttf
Executable file
BIN
www/analytics/plugins/Morpheus/images/affix-arrow.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
www/analytics/plugins/Morpheus/images/arr_r.png
Normal file
|
After Width: | Height: | Size: 195 B |
BIN
www/analytics/plugins/Morpheus/images/background-submit.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1 KiB |
BIN
www/analytics/plugins/Morpheus/images/collapsed_arrows.gif
Normal file
|
After Width: | Height: | Size: 54 B |
BIN
www/analytics/plugins/Morpheus/images/dashboard_h_bg.png
Normal file
|
After Width: | Height: | Size: 162 B |
|
After Width: | Height: | Size: 145 B |
BIN
www/analytics/plugins/Morpheus/images/delete.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
www/analytics/plugins/Morpheus/images/download.png
Normal file
|
After Width: | Height: | Size: 734 B |
BIN
www/analytics/plugins/Morpheus/images/ecommerceAbandonedCart.gif
Normal file
|
After Width: | Height: | Size: 369 B |
BIN
www/analytics/plugins/Morpheus/images/ecommerceOrder.gif
Normal file
|
After Width: | Height: | Size: 570 B |
BIN
www/analytics/plugins/Morpheus/images/email.png
Normal file
|
After Width: | Height: | Size: 754 B |
BIN
www/analytics/plugins/Morpheus/images/error.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/analytics/plugins/Morpheus/images/error_medium.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
www/analytics/plugins/Morpheus/images/event.png
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
www/analytics/plugins/Morpheus/images/expanded_arrows.gif
Normal file
|
After Width: | Height: | Size: 60 B |