forked from greatislander/uio-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-interface-options.php
40 lines (35 loc) · 1.29 KB
/
user-interface-options.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
<?php
/**
* Plugin Name: User Interface Options
* Plugin URI: http://github.com/fluid-project/uio-wordpress-plugin
* Description: Adds the Infusion User Interface Options component to the site
* Version: 0.5
* Author: Floe Project
* Author URI: http://floeproject.org
* License: New BSD license or the Educational Community License, Version 2.0
*
* Copyright 2015–2019 OCAD University
*
* Licensed under the Educational Community License (ECL), Version 2.0 or the New
* BSD license. You may not use this file except in compliance with one these
* Licenses.
*
* You may obtain a copy of the ECL 2.0 License and BSD License at
* https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
*
* @package User_Interface_Options
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'No script kiddies please!' );
}
define( 'UIO_LIBRARY_VERSION', 'c02f89ed971b880fc4bed680d5c49c117d7939cb' );
define( 'UIO_PLUGIN_VERSION', '0.5.3' );
define( 'UIO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'UIO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once UIO_PLUGIN_DIR . 'set-defaults.php';
register_activation_hook( __FILE__, 'uio_set_defaults' );
if ( is_admin() ) {
require_once UIO_PLUGIN_DIR . 'admin-options.php';
} else {
require_once UIO_PLUGIN_DIR . 'inject-dependencies.php';
}