-
Notifications
You must be signed in to change notification settings - Fork 0
/
uconn-banner.php
executable file
·45 lines (41 loc) · 1.56 KB
/
uconn-banner.php
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
<?php
/**
* The WordPress Plugin Boilerplate.
*
* A foundation off of which to build well-documented WordPress plugins that
* also follow WordPress Coding Standards and PHP best practices.
*
* @package UConn_Banner
* @author Joseph Thibeault <joseph.thibeault@uconn.edu>
* @license GPL-2.0+
* @link http://uconn.edu
* @copyright 2013 University of Connecticut
*
* @wordpress-plugin
* Plugin Name: UConn Banner
* Plugin URI: http://brand.uconn.edu
* Description: Adds the UConn Banner to the header of your Wordpress site
* Version: 1.1.0
* Author: University of Connecticut
* Author URI: http://uconn.edu
* Text Domain: US-EN
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/uconn/uconn-banner-wp
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once( plugin_dir_path( __FILE__ ) . 'class-uconn-banner.php' );
require_once( plugin_dir_path( __FILE__ ) . 'class-uconn-banner-admin.php' );
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*
*/
register_activation_hook( __FILE__, array( 'UConn_Banner', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'UConn_Banner', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'UConn_Banner', 'get_instance' ) );
add_action( 'plugins_loaded', array( 'UConn_Banner_Admin', 'get_instance' ) );