1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

Version 1.1.3 Introduce Admin Dashboard

This commit is contained in:
Sebastian
2018-04-20 22:29:57 +02:00
parent f8dc7093bf
commit ef704daa6e
14 changed files with 137 additions and 113 deletions

View File

@@ -234,9 +234,13 @@ class PageController extends Controller
{
foreach($contentBlocks as $block)
{
if(isset($block['element']['name']) && $block['element']['name'] == 'p' && substr($block['element']['text'], 0, 2) == '![' )
/* is it a paragraph? */
if(isset($block['element']['name']) && $block['element']['name'] == 'p')
{
return $block['element']['text'];
if(isset($block['element']['handler']['argument']) && substr($block['element']['handler']['argument'], 0, 2) == '![' )
{
return $block['element']['handler']['argument'];
}
}
}