From 861d64d80125be336403f4ad7b17b9b475764004 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 17 Mar 2018 14:37:55 +0300 Subject: [PATCH] Add boot/events and boot/shortcodes --- rawilum/boot/events.php | 16 ++++++++++++++++ rawilum/boot/shortcodes.php | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 rawilum/boot/events.php create mode 100644 rawilum/boot/shortcodes.php diff --git a/rawilum/boot/events.php b/rawilum/boot/events.php new file mode 100644 index 00000000..4f425d5d --- /dev/null +++ b/rawilum/boot/events.php @@ -0,0 +1,16 @@ + + * @link http://rawilum.org + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +// Set Rawilum Meta Generator +Events::addListener('onThemeMeta', function () { + echo(''); +}); diff --git a/rawilum/boot/shortcodes.php b/rawilum/boot/shortcodes.php new file mode 100644 index 00000000..f0dc7527 --- /dev/null +++ b/rawilum/boot/shortcodes.php @@ -0,0 +1,16 @@ + + * @link http://rawilum.org + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +// Add {site_url} shortcode +Shortcodes::add('site_url', function () { + return Url::getBase(); +});