@@ -280,7 +280,7 @@ |
||
280 | 280 | $media[] = [ |
281 | 281 | 'name' => $mediaItem->getLabel(), |
282 | 282 | 'src' => $view->content( $mediaItem->getPreview( true ) ), |
283 | - 'srcset' => join( ', ', $srcset), |
|
283 | + 'srcset' => join( ', ', $srcset ), |
|
284 | 284 | 'type' => 'imageset' // @todo: remove after GrapesJs update |
285 | 285 | ]; |
286 | 286 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | return [ |
10 | 10 | 'table' => [ |
11 | - 'mshop_cms' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_cms' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_cms' ); |
14 | 14 | $table->addOption( 'engine', 'InnoDB' ); |
@@ -12,11 +12,11 @@ discard block |
||
12 | 12 | 'cms.lists.type' => 'default', 'cms.lists.position' => 0, |
13 | 13 | 'text.languageid' => 'en', 'text.type' => 'name', 'text.domain' => 'cms', |
14 | 14 | 'text.label' => 'Contact page', 'text.content' => 'Contact page' |
15 | - ],[ |
|
15 | + ], [ |
|
16 | 16 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
17 | 17 | 'text.languageid' => 'en', 'text.type' => 'meta-keywords', 'text.domain' => 'cms', |
18 | 18 | 'text.label' => 'contact', 'text.content' => 'contact, about us' |
19 | - ],[ |
|
19 | + ], [ |
|
20 | 20 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
21 | 21 | 'text.languageid' => 'en', 'text.type' => 'content', 'text.domain' => 'cms', |
22 | 22 | 'text.label' => 'Hello', 'text.content' => '<h1>Hello!</h1>' |
@@ -35,11 +35,11 @@ discard block |
||
35 | 35 | 'cms.lists.type' => 'default', 'cms.lists.position' => 0, |
36 | 36 | 'text.languageid' => 'de', 'text.type' => 'name', 'text.domain' => 'cms', |
37 | 37 | 'text.label' => 'Kontaktseite', 'text.content' => 'Kontaktseite' |
38 | - ],[ |
|
38 | + ], [ |
|
39 | 39 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
40 | 40 | 'text.languageid' => 'de', 'text.type' => 'meta-keywords', 'text.domain' => 'cms', |
41 | 41 | 'text.label' => 'kontakt', 'text.content' => 'kontakt, über uns' |
42 | - ],[ |
|
42 | + ], [ |
|
43 | 43 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
44 | 44 | 'text.languageid' => 'de', 'text.type' => 'content', 'text.domain' => 'cms', |
45 | 45 | 'text.label' => 'Hallo', 'text.content' => '<h1>Hallo!</h1>' |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'media.previews' => [1 => 'path/to/image-small-2.jpg'] |
52 | 52 | ]] |
53 | 53 | ] |
54 | - ],[ |
|
54 | + ], [ |
|
55 | 55 | 'cms.url' => '/catlist', 'cms.label' => 'With catalog list', 'cms.status' => 1, |
56 | 56 | 'lists' => [ |
57 | 57 | 'text' => [[ |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | foreach( $view->pageContent as $content ) |
207 | 207 | { |
208 | 208 | $dom = new \DOMDocument( '1.0', 'UTF-8' ); |
209 | - $dom->loadHTML( '<?xml encoding="utf-8" ?>' . $content, LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD ); |
|
209 | + $dom->loadHTML( '<?xml encoding="utf-8" ?>' . $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD ); |
|
210 | 210 | $nodes = $dom->getElementsByTagName( 'cataloglist' ); |
211 | 211 | |
212 | 212 | while( $nodes->length > 0 ) |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $view = $context->getView()->set( 'products', $products ); |
227 | 227 | |
228 | 228 | $pdom = new \DOMDocument( '1.0', 'UTF-8' ); |
229 | - $pdom->loadHTML( '<?xml encoding="utf-8" ?>' . $view->render( $template ), LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD ); |
|
229 | + $pdom->loadHTML( '<?xml encoding="utf-8" ?>' . $view->render( $template ), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD ); |
|
230 | 230 | |
231 | 231 | $pnode = $dom->importNode( $pdom->documentElement, true ); |
232 | 232 | $node->parentNode->replaceChild( $pnode, $node ); |