-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
46 lines (33 loc) · 1.57 KB
/
index.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
46
<?php
/*
* Plugin Name: UCSC Gutenberg Blocks
* Plugin URI: https://github.com/ucsc/ucsc-gutenberg-blocks
* Description: Custom UCSC Gutenberg Blocks.
* Version: 1.1.28
* Author: UC Santa Cruz
* Author URI: https://github.com/ucsc
*/
if (!defined('ABSPATH')) exit; // Exit if accessed directly
include_once(plugin_dir_path(__FILE__) . 'classes/CourseCatalog.php');
include_once(plugin_dir_path(__FILE__) . 'classes/CampusDirectory.php');
include_once(plugin_dir_path(__FILE__) . 'classes/ClassSchedule.php');
include_once(plugin_dir_path(__FILE__) . 'classes/Accordion.php');
include_once(plugin_dir_path(__FILE__) . 'classes/AccordionWrapper.php');
// New option for using shortcode without Gutenberg blocks
include_once(plugin_dir_path(__FILE__) . 'classes/CampusDirectoryShortcode.php');
include_once(plugin_dir_path(__FILE__) . 'classes/SiteSettings.php');
add_action('admin_enqueue_scripts', 'registerJSBuild');
function registerJSBuild() {
wp_enqueue_script('ucscblocks', plugin_dir_url(__FILE__) . 'build/index.js', array('wp-blocks','wp-element', 'wp-components', 'wp-block-editor'));
}
// $UCSCGutenbergDemoBlock1 = new UCSCGutenbergDemoBlock1();
// $UCSCGutenbergDemoBlock2 = new UCSCGutenbergDemoBlock2();
// $ContentSharer = new ContentSharer();
$CourseCatalog = new CourseCatalog();
$CampusDirectory = new CampusDirectory();
$ClassSchedule = new ClassSchedule();
$Accordion = new Accordion();
$AccordionWrapper = new AccordionWrapper();
$SiteSettings = new SiteSettings();
$CampusDirectoryShortcode = new CampusDirectoryShortcode();
// $FeedbackForm = new FeedbackForm();