Completed
Push — master ( d1869e...1ad2fa )
by Aimeos
01:53
created
controller/jobs/templates/product/export/items-body-standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
 
10 10
 ?>
11 11
 <productlist>
12
-    <?php foreach( $this->get( 'exportItems', [] ) as $id => $item ) : ?>
12
+    <?php foreach ($this->get('exportItems', []) as $id => $item) : ?>
13 13
 
14
-        <product-content id="<?php echo $enc->attr( $id ); ?>" >
15
-            <productitem id="<?php echo $enc->attr( $id ); ?>" siteid="<?php echo $enc->attr( $item->getSiteId() ); ?>" typeid="<?php echo $enc->attr( $item->getTypeId() ); ?>" ctime="<?php echo $enc->attr( $item->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $item->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $item->getEditor() ); ?>">
14
+        <product-content id="<?php echo $enc->attr($id); ?>" >
15
+            <productitem id="<?php echo $enc->attr($id); ?>" siteid="<?php echo $enc->attr($item->getSiteId()); ?>" typeid="<?php echo $enc->attr($item->getTypeId()); ?>" ctime="<?php echo $enc->attr($item->getTimeCreated()); ?>" mtime="<?php echo $enc->attr($item->getTimeModified()); ?>" editor="<?php echo $enc->attr($item->getEditor()); ?>">
16 16
                 <type><![CDATA[<?php echo $item->getType(); ?>]]></type>
17 17
                 <code><![CDATA[<?php echo $item->getCode(); ?>]]></code>
18 18
                 <label><![CDATA[<?php echo $item->getCode(); ?>]]></label>
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
             </productitem>
23 23
             <list>
24 24
                 <text>
25
-                    <?php foreach( $item->getListItems( 'text' ) as $listItem ) : ?>
25
+                    <?php foreach ($item->getListItems('text') as $listItem) : ?>
26 26
                         <?php if ($refItem = $listItem->getRefItem()) { ?>
27 27
 
28
-                            <textitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" typeid="<?php echo $enc->attr( $refItem->getTypeId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.typeid="<?php echo $enc->attr( $listItem->getTypeId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.domain="<?php echo $enc->attr( $listItem->getDomain() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>">
28
+                            <textitem id="<?php echo $enc->attr($refItem->getId()); ?>" siteid="<?php echo $enc->attr($refItem->getSiteId()); ?>" typeid="<?php echo $enc->attr($refItem->getTypeId()); ?>" ctime="<?php echo $enc->attr($refItem->getTimeCreated()); ?>" mtime="<?php echo $enc->attr($refItem->getTimeModified()); ?>" editor="<?php echo $enc->attr($refItem->getEditor()); ?>" list.id="<?php echo $enc->attr($listItem->getId()); ?>" list.siteid="<?php echo $enc->attr($listItem->getSiteId()); ?>" list.parentid="<?php echo $enc->attr($listItem->getParentId()); ?>" list.typeid="<?php echo $enc->attr($listItem->getTypeId()); ?>" list.type="<?php echo $enc->attr($listItem->getType()); ?>" list.domain="<?php echo $enc->attr($listItem->getDomain()); ?>" list.config="<?php echo $enc->attr(json_encode($listItem->getConfig())); ?>" list.start="<?php echo $enc->attr($listItem->getDateStart()); ?>" list.end="<?php echo $enc->attr($listItem->getDateEnd()); ?>" list.position="<?php echo $enc->attr($listItem->getPosition()); ?>" list.status="<?php echo $enc->attr($listItem->getStatus()); ?>" list.ctime="<?php echo $enc->attr($listItem->getTimeCreated()); ?>" list.mtime="<?php echo $enc->attr($listItem->getTimeModified()); ?>" list.editor="<?php echo $enc->attr($listItem->getEditor()); ?>">
29 29
                                 <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type>
30 30
                                 <languageid><![CDATA[<?php echo $refItem->getLanguageId(); ?>]]></languageid>
31 31
                                 <label><![CDATA[<?php echo $refItem->getLabel(); ?>]]></label>
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 
38 38
                 </text>
39 39
                 <media>
40
-                    <?php foreach( $item->getListItems( 'media' ) as $listItem ) : ?>
40
+                    <?php foreach ($item->getListItems('media') as $listItem) : ?>
41 41
                         <?php if ($refItem = $listItem->getRefItem()) { ?>
42 42
 
43
-                            <mediaitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" typeid="<?php echo $enc->attr( $refItem->getTypeId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.typeid="<?php echo $enc->attr( $listItem->getTypeId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>">
43
+                            <mediaitem id="<?php echo $enc->attr($refItem->getId()); ?>" siteid="<?php echo $enc->attr($refItem->getSiteId()); ?>" typeid="<?php echo $enc->attr($refItem->getTypeId()); ?>" ctime="<?php echo $enc->attr($refItem->getTimeCreated()); ?>" mtime="<?php echo $enc->attr($refItem->getTimeModified()); ?>" editor="<?php echo $enc->attr($refItem->getEditor()); ?>" list.id="<?php echo $enc->attr($listItem->getId()); ?>" list.siteid="<?php echo $enc->attr($listItem->getSiteId()); ?>" list.parentid="<?php echo $enc->attr($listItem->getParentId()); ?>" list.typeid="<?php echo $enc->attr($listItem->getTypeId()); ?>" list.type="<?php echo $enc->attr($listItem->getType()); ?>" list.config="<?php echo $enc->attr(json_encode($listItem->getConfig())); ?>" list.start="<?php echo $enc->attr($listItem->getDateStart()); ?>" list.end="<?php echo $enc->attr($listItem->getDateEnd()); ?>" list.position="<?php echo $enc->attr($listItem->getPosition()); ?>" list.status="<?php echo $enc->attr($listItem->getStatus()); ?>" list.ctime="<?php echo $enc->attr($listItem->getTimeCreated()); ?>" list.mtime="<?php echo $enc->attr($listItem->getTimeModified()); ?>" list.editor="<?php echo $enc->attr($listItem->getEditor()); ?>">
44 44
                                 <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type>
45 45
                                 <languageid><![CDATA[<?php echo $refItem->getLanguageId(); ?>]]></languageid>
46 46
                                 <label><![CDATA[<?php echo $refItem->getLabel(); ?>]]></label>
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
 
55 55
                 </media>
56 56
                 <price>
57
-                    <?php foreach( $item->getListItems( 'price' ) as $listItem ) : ?>
57
+                    <?php foreach ($item->getListItems('price') as $listItem) : ?>
58 58
                         <?php if ($refItem = $listItem->getRefItem()) { ?>
59 59
 
60
-                            <priceitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" typeid="<?php echo $enc->attr( $refItem->getTypeId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.typeid="<?php echo $enc->attr( $listItem->getTypeId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>">
60
+                            <priceitem id="<?php echo $enc->attr($refItem->getId()); ?>" siteid="<?php echo $enc->attr($refItem->getSiteId()); ?>" typeid="<?php echo $enc->attr($refItem->getTypeId()); ?>" ctime="<?php echo $enc->attr($refItem->getTimeCreated()); ?>" mtime="<?php echo $enc->attr($refItem->getTimeModified()); ?>" editor="<?php echo $enc->attr($refItem->getEditor()); ?>" list.id="<?php echo $enc->attr($listItem->getId()); ?>" list.siteid="<?php echo $enc->attr($listItem->getSiteId()); ?>" list.parentid="<?php echo $enc->attr($listItem->getParentId()); ?>" list.typeid="<?php echo $enc->attr($listItem->getTypeId()); ?>" list.type="<?php echo $enc->attr($listItem->getType()); ?>" list.config="<?php echo $enc->attr(json_encode($listItem->getConfig())); ?>" list.start="<?php echo $enc->attr($listItem->getDateStart()); ?>" list.end="<?php echo $enc->attr($listItem->getDateEnd()); ?>" list.position="<?php echo $enc->attr($listItem->getPosition()); ?>" list.status="<?php echo $enc->attr($listItem->getStatus()); ?>" list.ctime="<?php echo $enc->attr($listItem->getTimeCreated()); ?>" list.mtime="<?php echo $enc->attr($listItem->getTimeModified()); ?>" list.editor="<?php echo $enc->attr($listItem->getEditor()); ?>">
61 61
                                 <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type>
62 62
                                 <currencyid><![CDATA[<?php echo $refItem->getCurrencyId(); ?>]]></currencyid>
63 63
                                 <quantity><![CDATA[<?php echo $refItem->getQuantity(); ?>]]></quantity>
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
 
74 74
                 </price>
75 75
                 <attribute>
76
-                    <?php foreach( $item->getListItems( 'attribute' ) as $listItem ) : ?>
76
+                    <?php foreach ($item->getListItems('attribute') as $listItem) : ?>
77 77
                         <?php if ($refItem = $listItem->getRefItem()) { ?>
78 78
 
79
-                            <attributeitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" typeid="<?php echo $enc->attr( $refItem->getTypeId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.typeid="<?php echo $enc->attr( $listItem->getTypeId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>">
79
+                            <attributeitem id="<?php echo $enc->attr($refItem->getId()); ?>" siteid="<?php echo $enc->attr($refItem->getSiteId()); ?>" typeid="<?php echo $enc->attr($refItem->getTypeId()); ?>" ctime="<?php echo $enc->attr($refItem->getTimeCreated()); ?>" mtime="<?php echo $enc->attr($refItem->getTimeModified()); ?>" editor="<?php echo $enc->attr($refItem->getEditor()); ?>" list.id="<?php echo $enc->attr($listItem->getId()); ?>" list.siteid="<?php echo $enc->attr($listItem->getSiteId()); ?>" list.parentid="<?php echo $enc->attr($listItem->getParentId()); ?>" list.typeid="<?php echo $enc->attr($listItem->getTypeId()); ?>" list.type="<?php echo $enc->attr($listItem->getType()); ?>" list.config="<?php echo $enc->attr(json_encode($listItem->getConfig())); ?>" list.start="<?php echo $enc->attr($listItem->getDateStart()); ?>" list.end="<?php echo $enc->attr($listItem->getDateEnd()); ?>" list.position="<?php echo $enc->attr($listItem->getPosition()); ?>" list.status="<?php echo $enc->attr($listItem->getStatus()); ?>" list.ctime="<?php echo $enc->attr($listItem->getTimeCreated()); ?>" list.mtime="<?php echo $enc->attr($listItem->getTimeModified()); ?>" list.editor="<?php echo $enc->attr($listItem->getEditor()); ?>">
80 80
                                 <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type>
81 81
                                 <code><![CDATA[<?php echo $refItem->getCode(); ?>]]></code>
82 82
                                 <label><![CDATA[<?php echo $refItem->getLabel(); ?>]]></label>
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 
89 89
                 </attribute>
90 90
                 <product>
91
-                    <?php foreach( $item->getListItems( 'product' ) as $listItem ) : ?>
91
+                    <?php foreach ($item->getListItems('product') as $listItem) : ?>
92 92
                         <?php if ($refItem = $listItem->getRefItem()) { ?>
93 93
 
94
-                            <productitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" typeid="<?php echo $enc->attr( $refItem->getTypeId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.typeid="<?php echo $enc->attr( $listItem->getTypeId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>">
94
+                            <productitem id="<?php echo $enc->attr($refItem->getId()); ?>" siteid="<?php echo $enc->attr($refItem->getSiteId()); ?>" typeid="<?php echo $enc->attr($refItem->getTypeId()); ?>" ctime="<?php echo $enc->attr($refItem->getTimeCreated()); ?>" mtime="<?php echo $enc->attr($refItem->getTimeModified()); ?>" editor="<?php echo $enc->attr($refItem->getEditor()); ?>" list.id="<?php echo $enc->attr($listItem->getId()); ?>" list.siteid="<?php echo $enc->attr($listItem->getSiteId()); ?>" list.parentid="<?php echo $enc->attr($listItem->getParentId()); ?>" list.typeid="<?php echo $enc->attr($listItem->getTypeId()); ?>" list.type="<?php echo $enc->attr($listItem->getType()); ?>" list.config="<?php echo $enc->attr(json_encode($listItem->getConfig())); ?>" list.start="<?php echo $enc->attr($listItem->getDateStart()); ?>" list.end="<?php echo $enc->attr($listItem->getDateEnd()); ?>" list.position="<?php echo $enc->attr($listItem->getPosition()); ?>" list.status="<?php echo $enc->attr($listItem->getStatus()); ?>" list.ctime="<?php echo $enc->attr($listItem->getTimeCreated()); ?>" list.mtime="<?php echo $enc->attr($listItem->getTimeModified()); ?>" list.editor="<?php echo $enc->attr($listItem->getEditor()); ?>">
95 95
                                 <type><![CDATA[<?php echo $item->getType(); ?>]]></type>
96 96
                                 <code><![CDATA[<?php echo $item->getCode(); ?>]]></code>
97 97
                                 <label><![CDATA[<?php echo $item->getCode(); ?>]]></label>
Please login to merge, or discard this patch.
controller/jobs/templates/product/export/sitemap-items-body-standard.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
 
8 8
 $enc = $this->encoder();
9 9
 
10
-$detailTarget = $this->config( 'client/html/catalog/detail/url/target' );
11
-$detailCntl = $this->config( 'client/html/catalog/detail/url/controller', 'catalog' );
12
-$detailAction = $this->config( 'client/html/catalog/detail/url/action', 'detail' );
13
-$detailConfig = $this->config( 'client/html/catalog/detail/url/config', [] );
10
+$detailTarget = $this->config('client/html/catalog/detail/url/target');
11
+$detailCntl = $this->config('client/html/catalog/detail/url/controller', 'catalog');
12
+$detailAction = $this->config('client/html/catalog/detail/url/action', 'detail');
13
+$detailConfig = $this->config('client/html/catalog/detail/url/config', []);
14 14
 
15
-$freq = $enc->xml( $this->get( 'siteFreq', 'daily' ) );
15
+$freq = $enc->xml($this->get('siteFreq', 'daily'));
16 16
 
17 17
 ?>
18
-<?php foreach( $this->get( 'siteItems', [] ) as $id => $item ) : ?>
18
+<?php foreach ($this->get('siteItems', []) as $id => $item) : ?>
19 19
 <?php
20
-		$date = str_replace( ' ', 'T', $item->getTimeModified() ) . date( 'P' );
21
-		$params = array( 'd_name' => $item->getName( 'url' ), 'd_prodid' => $id );
22
-		$url = $this->url( $detailTarget, $detailCntl, $detailAction, $params, [], $detailConfig );
20
+		$date = str_replace(' ', 'T', $item->getTimeModified()) . date('P');
21
+		$params = array('d_name' => $item->getName('url'), 'd_prodid' => $id);
22
+		$url = $this->url($detailTarget, $detailCntl, $detailAction, $params, [], $detailConfig);
23 23
 ?>
24
-	<url><loc><?php echo $enc->xml( $url ); ?></loc><lastmod><?php echo $date; ?></lastmod><changefreq><?php echo $freq; ?></changefreq></url>
24
+	<url><loc><?php echo $enc->xml($url); ?></loc><lastmod><?php echo $date; ?></lastmod><changefreq><?php echo $freq; ?></changefreq></url>
25 25
 <?php endforeach; ?>
Please login to merge, or discard this patch.
controller/jobs/templates/product/export/sitemap-index-standard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 $enc = $this->encoder();
9
-$date = date( 'c' );
9
+$date = date('c');
10 10
 
11 11
 ?>
12 12
 <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
13 13
 
14 14
 
15 15
 <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
16
-<?php foreach( $this->get( 'siteFiles', [] ) as $name ) : ?>
16
+<?php foreach ($this->get('siteFiles', []) as $name) : ?>
17 17
 	<sitemap>
18
-		<loc><?php echo $enc->xml( basename( $name ) ); ?></loc>
18
+		<loc><?php echo $enc->xml(basename($name)); ?></loc>
19 19
 		<lastmod><?php echo $date; ?></lastmod>
20 20
 	</sitemap>
21 21
 <?php endforeach; ?>
Please login to merge, or discard this patch.