laipower/wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Network.php

25 lines
991 B
PHP
Raw Normal View History

2020-04-07 13:03:04 +00:00
<?php
namespace WP_Piwik\Admin;
class Network extends \WP_Piwik\Admin\Statistics {
public function show() {
parent::show();
}
public function printAdminScripts() {
wp_enqueue_script('wp-piwik', self::$wpPiwik->getPluginURL().'js/wp-piwik.js', array(), self::$wpPiwik->getPluginVersion(), true);
wp_enqueue_script('wp-piwik-jqplot', self::$wpPiwik->getPluginURL().'js/jqplot/wp-piwik.jqplot.js',array('jquery'), self::$wpPiwik->getPluginVersion());
}
public function extendAdminHeader() {
echo '<!--[if IE]><script language="javascript" type="text/javascript" src="'.(parent::$wpPiwik->getPluginURL()).'js/jqplot/excanvas.min.js"></script><![endif]-->';
echo '<link rel="stylesheet" href="'.(parent::$wpPiwik->getPluginURL()).'js/jqplot/jquery.jqplot.min.css" type="text/css"/>';
echo '<script type="text/javascript">var $j = jQuery.noConflict();</script>';
}
public function onLoad() {
self::$wpPiwik->onloadStatsPage(self::$pageID);
}
}