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:
16
rawilum/boot/events.php
Normal file
16
rawilum/boot/events.php
Normal 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" />');
|
||||
});
|
16
rawilum/boot/shortcodes.php
Normal file
16
rawilum/boot/shortcodes.php
Normal 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();
|
||||
});
|
Reference in New Issue
Block a user