Revision: 29529
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 31, 2010 06:36 by trepmal
Initial Code
<?php
/*
Plugin Name: Empty Plugin
Plugin URI: http://trepmal.com/
Description: Does nothing - testing only
Author: Kailey Lampert
Version: 0.0
Author URI: http://kaileylampert.com/
*/
/*
Copyright (C) 2010 Kailey Lampert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$emptyplugin = new emptyplugin();
class emptyplugin {
function emptyplugin() {
add_action('admin_menu', array(&$this, 'menu'));
}
function menu() {
$page = add_submenu_page('options-general.php', 'Empty Plugin', 'Empty Plugin', 'administrator', __FILE__, array(&$this, 'page'));
// add_action('admin_print_scripts-'.$page, array(&$this, 'scripts'));
// add_action('admin_print_scripts', array(&$this, 'scripts'));
}
function scripts() {
$plugin_path = '/'.PLUGINDIR.'/'.plugin_basename(dirname(__FILE__));
wp_enqueue_script('jquery');
// wp_register_script('jquerycolorpicker',$plugin_path.'/js/colorpicker.js','jquery');
// wp_enqueue_script('jquerycolorpicker');
}
function page() {
echo '<div class="wrap">';
echo '<h2>'.__('Empty Plugin').'</h2>';
echo '</div>';
}// end function
}//end class
?>
Initial URL
http://trepmal.com/plugins/empty-plugin/
Initial Description
Initial Title
Basic Empty Plugin for WordPress
Initial Tags
wordpress
Initial Language
PHP