0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
b2evolution
/
3.3.1-5
/
standard
/
htdocs
/
plugins
/
[
Home
]
File: skeleton.plugin.php
<?php /** * ----------------------------------------------------------------------------------------- * This file provides a skeleton to create a new {@link http://b2evolution.net/ b2evolution} * plugin quickly. * See also: * - {@link http://manual.b2evolution.net/CreatingPlugin} * - {@link http://doc.b2evolution.net/stable/plugins/Plugin.html} * (Delete this first paragraph, of course) * ----------------------------------------------------------------------------------------- * * This file implements the PLUGIN_NAME plugin for {@link http://b2evolution.net/}. * * @copyright (c)2006 by Your NAME - {@link http://example.com/}. * * @license GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php * * @package plugins * * @author YOUR NAME * * @version $Id: skeleton.plugin.php,v 1.1 2006/10/30 20:14:26 blueyed Exp $ */ if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); /** * PLUGIN_NAME Plugin * * Some 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. */ 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 = ''; var $apply_rendering = 'opt-in'; /** * 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( ); } // 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 } ?>