app/templates/class.plugin.php
<?php if (!defined('APPLICATION')) exit;
$<%= type %>Info['<%= directory %>'] = array(
'Name' => "<%= name %>",<% if (desc) { %>
'Description' => "<%= desc %>",<% } %>
'Version' => '1.0.0',<% if (url) { %>
'PluginUrl' => '<%= url %>',<% } %>
'Author' => "<%= author.name %>",<% if (author.email) { %>
'AuthorEmail' => '<%= author.email %>',<% } if (author.url) { %>
'AuthorUrl' => '<%= author.url %>',<% } %>
'License' => '<%= license %>'
);
/**
* <%= name %> Plugin
*
* @author <%= author.name %><% if (author.email) { %> <<%= author.email %>><% } %>
* @copyright <%= year %> (c) <%= author.name %>
* @license <%= license %>
* @since 1.0.0
*/
class <%= _(name).classify() %>Plugin extends Gdn_Plugin {
/**
* This will run when you "Enable" the plugin
*
* @since 1.0.0
* @access public
* @return bool
*/
public function setup() {
return true;
}
}