-
Notifications
You must be signed in to change notification settings - Fork 0
/
uri-kuali.php
executable file
·39 lines (31 loc) · 1006 Bytes
/
uri-kuali.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
<?php
/*
Plugin Name: URI Kuali
Plugin URI: https://www.uri.edu
Description: Implements a shortcode to display course data from Kuali's API. [courses subject="AAF"]
Version: 1.4.0
Author: Brandon Fuller
Author: Alexandra Gauss
Author URI:
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
define( 'URI_KUALI_DIR_PATH', plugin_dir_path( __FILE__ ) );
/**
* Add some generic styles
*/
function uri_kuali_enqueue() {
wp_enqueue_style( 'uri-kuali-styles', plugins_url( 'css/uri-kuali.css', __FILE__ ) );
}
add_action( 'wp_enqueue_scripts', 'uri_kuali_enqueue' );
// Include settings
include( URI_KUALI_DIR_PATH . 'inc/uri-kuali-settings.php' );
// Include shortcodes
include( URI_KUALI_DIR_PATH . 'inc/uri-kuali-shortcodes.php' );
// Include api
include( URI_KUALI_DIR_PATH . 'inc/uri-kuali-api.php' );
// Include caching functions
include( URI_KUALI_DIR_PATH . 'inc/uri-kuali-caching.php' );
// Include helper functions
include( URI_KUALI_DIR_PATH . 'inc/uri-kuali-helpers.php' );