1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

Add boot/events and boot/shortcodes

This commit is contained in:
Awilum
2018-03-17 14:37:55 +03:00
parent 36d6dd78e2
commit 861d64d801
2 changed files with 32 additions and 0 deletions

16
rawilum/boot/events.php Normal file
View File

@@ -0,0 +1,16 @@
<?php namespace Rawilum;
/**
* @package Rawilum
*
* @author Sergey Romanenko <awilum@yandex.ru>
* @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('<meta name="generator" content="Powered by Rawilum" />');
});

View File

@@ -0,0 +1,16 @@
<?php namespace Rawilum;
/**
* @package Rawilum
*
* @author Sergey Romanenko <awilum@yandex.ru>
* @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();
});