mirror of
https://github.com/flextype/flextype.git
synced 2025-08-09 14:46:53 +02:00
Content: new protected method initParsers()
This commit is contained in:
@@ -92,11 +92,8 @@ class Content
|
||||
// Event: The page is not processed and not sent to the display.
|
||||
Event::dispatch('onCurrentPageBeforeProcessed');
|
||||
|
||||
// Init Markdown
|
||||
Content::initMarkdown();
|
||||
|
||||
// Init Shortcodes
|
||||
Content::initShortcodes();
|
||||
// Init Parsers
|
||||
Content::initParsers();
|
||||
|
||||
// Set current requested page data to global $page array
|
||||
Content::$page = Content::getPage(Http::getUriString());
|
||||
@@ -501,6 +498,21 @@ class Content
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Init Parsers
|
||||
*
|
||||
* @access protected
|
||||
* @return void
|
||||
*/
|
||||
protected static function initParsers() : void
|
||||
{
|
||||
// Init Markdown
|
||||
Content::initMarkdown();
|
||||
|
||||
// Init Shortcodes
|
||||
Content::initShortcodes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Init Markdown
|
||||
*
|
||||
|
Reference in New Issue
Block a user