summaryrefslogtreecommitdiff
path: root/basic-fullcalendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'basic-fullcalendar.php')
-rw-r--r--basic-fullcalendar.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/basic-fullcalendar.php b/basic-fullcalendar.php
new file mode 100644
index 0000000..00efa4a
--- /dev/null
+++ b/basic-fullcalendar.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Plugin Name: Basic FullCalendar
+ * Description: Basic Calendar based on FullCalendar.io
+ * Plugin URI: https://gitlab.com/DRogueRonin/wp-plugin-basic-full-calendar
+ * Author: Daniel Weipert
+ * Version: 1.0.0
+ * Author URI: https://dweipert.de
+ */
+
+require 'vendor/autoload.php';
+
+add_action('plugins_loaded', 'basicFullCalendar');
+function basicFullCalendar() {
+ new \BasicFullCalendar\BasicFullCalendar();
+}
+
+function basicFullCalendarAssetsUrl($path): string {
+ return plugins_url("build/$path", __FILE__);
+}