This repository has been archived by the owner on Oct 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlternateImage.php
76 lines (67 loc) · 1.79 KB
/
AlternateImage.php
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* Extending Piwik for the JISC Track OER project.
*
* @link http://track.olnet.org
* @license http://gnu.org/licenses/gpl-2.0.html GNU GPL v2 or later
* @version $Id$
* @copyright 2012 The Open University.
* @author N.D.Freear, 7 August 2012.
*
* @category Piwik_Plugins
* @package Piwik_TrackOER
*/
require_once dirname(__FILE__) .'/AlternateImage_Tracker.php';
/**
*
* @package Piwik_TrackOER
*/
class Piwik_AlternateImage extends Piwik_Plugin {
/**
* Return information about this plugin.
*
* @see Piwik_Plugin
*
* @return array
*/
public function getInformation()
{
return array(
'description' =>Piwik_Translate('AlternateImage_PluginDescription'),
'homepage' => 'http://track.olnet.org/',
'author' => 'IET at The Open University',
'author_homepage' => 'http://iet.open.ac.uk/',
'license' => 'GNU GPL v2 or later',
'license_homepage' => 'http://gnu.org/licenses/gpl-2.0.html',
'version' => '0.1',
'translationAvailable' => true,
'TrackerPlugin' => true,
);
}
public function getListHooksRegistered()
{
return array(
// 'Controller.renderView' => 'addUniqueVisitorsColumnToGivenReport',
);
}
function activate()
{
// Executed every time plugin is Enabled
}
function deactivate()
{
// Executed every time plugin is disabled
}
/**
* @param Piwik_Event_Notification $notification notification object
*/
function addUniqueVisitorsColumnToGivenReport($notification)
{
}
function postLoad()
{
// we register the widgets so they appear in the "Add a new widget" window in the dashboard
// Note that the first two parameters can be either a normal string, or an index to a translation string
#Piwik_AddWidget('ExamplePlugin_exampleWidgets', 'ExamplePlugin_exampleWidget', 'ExamplePlugin', 'exampleWidget');
}
}