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

26 lines
577 B
PHP
Raw Normal View History

2020-04-07 13:03:04 +00:00
<?php
namespace WP_Piwik;
abstract class Admin {
protected static $wpPiwik, $pageID, $settings;
public function __construct($wpPiwik, $settings) {
self::$wpPiwik = $wpPiwik;
self::$settings = $settings;
}
abstract public function show();
abstract public function printAdminScripts();
abstract public function extendAdminHeader();
public function printAdminStyles() {
wp_enqueue_style('wp-piwik', self::$wpPiwik->getPluginURL().'css/wp-piwik.css', array(), self::$wpPiwik->getPluginVersion());
}
public function onLoad() {}
}