summaryrefslogtreecommitdiff
path: root/basic-fullcalendar.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2020-12-18 00:56:32 +0100
committerDaniel Weipert <code@drogueronin.de>2020-12-18 00:56:32 +0100
commit62046b3acde01f9f66e1d5d52e03fea4c5bbfc8d (patch)
tree576ac2411e8b6f4d3c31b26ce48a2704ba0b5b9e /basic-fullcalendar.php
Initial commitHEADmain
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__);
+}