mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
#431 general structure changes
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Monstra.
|
||||
*
|
||||
* (c) Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// Set Monstra Meta Generator
|
||||
Action::add('theme_meta', function () {
|
||||
echo('<meta name="generator" content="Powered by Monstra" />');
|
||||
});
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Monstra.
|
||||
*
|
||||
* (c) Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// Add Shortcode parser filter
|
||||
Filter::add('content', 'Shortcode::parse', 1);
|
||||
|
||||
// Add Parsedown parser filter
|
||||
Filter::add('content', 'Markdown::parse', 2);
|
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Monstra.
|
||||
*
|
||||
* (c) Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// Add {block name=block-name} shortcode
|
||||
Shortcode::add('block', function ($attributes) {
|
||||
if (isset($attributes['name'])) {
|
||||
return Blocks::get($attributes['name']);
|
||||
}
|
||||
});
|
||||
|
||||
// Add {site_url} shortcode
|
||||
Shortcode::add('site_url', function () {
|
||||
return Url::getBase();
|
||||
});
|
Reference in New Issue
Block a user