<?php
/**
* Created by Stefan Herndler.
* User: Stefan
* Date: 15.05.14
* Time: 16:21
* Version: 1.0.6
* Since: 1.0
*/
* Class Class_Footnotes
* @since 1.0
class Class_Footnotes
{
/*
* object to the plugin's settings
var $a_obj_Settings;
* @constructor
function __construct()
/* load settings only if current wordpress user is admin */
if ( is_admin() ) {
/* create a new instance of the class settings */
$this->a_obj_Settings = new Class_FootnotesSettings();
}
/* execute class function: init, admin_init and admin_menu */
add_action( 'init', array( $this, 'init' ) );
add_action( 'admin_init', array( $this, 'admin_init' ) );
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
/* register hook for activating the plugin */
register_activation_hook( __FILE__, array( $this, 'activate' ) );
/* register hook for deactivating the plugin */
register_deactivation_hook( __FILE__, array( $this, 'deactivate' ) );
/* register hook for uninstalling the plugin */
register_uninstall_hook( __FILE__, array( $this, 'uninstall' ) );
* activates the plugin
function activate()
// unused
* deactivates the plugin
function deactivate()
* uninstalls the plugin
* updated file path in version 1.0.6
function uninstall()
require_once( dirname(__FILE__) . '/../includes/uninstall.php' );
* initialize function
* called in the class constructor
function init()
* do admin init stuff
function admin_init()
* do admin menu stuff
function admin_menu()
} /* class Class_Footnotes */