Admin.php 577 Bytes
Newer Older
ale's avatar
ale committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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() {}

	}