forked from b2evolution/b2evolution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskeleton.plugin.php
More file actions
106 lines (91 loc) · 2.48 KB
/
skeleton.plugin.php
File metadata and controls
106 lines (91 loc) · 2.48 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/**
* -----------------------------------------------------------------------------------------
* This file provides a skeleton to create a new {@link http://b2evolution.net/ b2evolution}
* plugin quickly.
* See also:
* - {@link http://b2evolution.net/man/creating-plugin}
* - {@link http://doc.b2evolution.net/stable/plugins/Plugin.html}
* (Delete this first paragraph, of course)
* -----------------------------------------------------------------------------------------
*
* This file implements the Foo Plugin for {@link http://b2evolution.net/}.
*
* @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license}
*
* @copyright (c)2010 by Your NAME - {@link http://example.com/}.
*
* @package plugins
*
* @author Your NAME
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
/**
* Foo Plugin
*
* Your description
*
* @package plugins
*/
class pluginname_plugin extends Plugin
{
/**
* Variables below MUST be overriden by plugin implementations,
* either in the subclass declaration or in the subclass constructor.
*/
/**
* Human readable plugin name.
*/
var $name = 'Plugin Name';
/**
* Code, if this is a renderer or pingback plugin.
*/
var $code = '';
var $priority = 50;
var $version = '0.1-dev';
var $author = 'http://example.com/';
var $help_url = '';
/**
* Group of the plugin, e.g. "widget", "rendering", "antispam"
*/
var $group;
/**
* Init: This gets called after a plugin has been registered/instantiated.
*/
function PluginInit( & $params )
{
$this->short_desc = $this->T_('Short description');
$this->long_desc = $this->T_('Longer description. You may also remove this.');
}
/**
* Define settings that the plugin uses/provides.
*/
function GetDefaultSettings()
{
return array();
}
/**
* Define user settings that the plugin uses/provides.
*/
function GetDefaultUserSettings()
{
return array();
}
/**
* Param definitions when added as a widget.
*
* Plugins used as widget need to implement the SkinTag hook.
*
* @return array
*/
function get_widget_param_definitions( $params )
{
return array();
}
// If you use hooks, that are not present in b2evo 1.8, you should also add
// a GetDependencies() function and require the b2evo version your Plugin needs.
// See http://doc.b2evolution.net/stable/plugins/Plugin.html#methodGetDependencies
// Add the methods to hook into here...
// See http://doc.b2evolution.net/stable/plugins/Plugin.html
}
?>