Completed
Push — master ( 0229de...f71bfb )
by Aimeos
04:41
created
admin/jqadm/templates/type/price/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/price/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['price.lists.type.domain', 'price.lists.type.status', 'price.lists.type.code', 'price.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/price/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/price/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/price/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/price/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'price.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'price.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'price.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'price.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'price.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'price.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'price.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'price.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'price.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'price.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'price.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'price.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'price.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'price.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'price.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'price.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'price.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'price.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Price Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Price Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/price/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/price/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/price/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/price/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-price-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-price-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/price/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/price/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/price/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/price/lists/filter', []),
139 139
 					'data' => [
140 140
 						'price.lists.type.id' => ['op' => '=='],
141 141
 						'price.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'price.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'price.lists.type.code' => [],
159 159
 						'price.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'price.lists.type.id', $fields ) ) : ?>
172
-						<td class="price-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('price.lists.type.id', $fields)) : ?>
172
+						<td class="price-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'price.lists.type.domain', $fields ) ) : ?>
175
-						<td class="price-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('price.lists.type.domain', $fields)) : ?>
175
+						<td class="price-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'price.lists.type.status', $fields ) ) : ?>
178
-						<td class="price-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('price.lists.type.status', $fields)) : ?>
178
+						<td class="price-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'price.lists.type.code', $fields ) ) : ?>
181
-						<td class="price-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('price.lists.type.code', $fields)) : ?>
181
+						<td class="price-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'price.lists.type.label', $fields ) ) : ?>
184
-						<td class="price-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('price.lists.type.label', $fields)) : ?>
184
+						<td class="price-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'price.lists.type.position', $fields ) ) : ?>
187
-						<td class="price-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('price.lists.type.position', $fields)) : ?>
187
+						<td class="price-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'price.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="price-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('price.lists.type.ctime', $fields)) : ?>
190
+						<td class="price-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'price.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="price-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('price.lists.type.mtime', $fields)) : ?>
193
+						<td class="price-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'price.lists.type.editor', $fields ) ) : ?>
196
-						<td class="price-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('price.lists.type.editor', $fields)) : ?>
196
+						<td class="price-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/price/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/price/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/customer/property/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/customer/property/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['customer.property.type.domain', 'customer.property.type.status', 'customer.property.type.code', 'customer.property.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/customer/property/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/customer/property/fields', $default );
56
+$default = $this->config('admin/jqadm/type/customer/property/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/customer/property/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'customer.property.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'customer.property.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'customer.property.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'customer.property.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'customer.property.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'customer.property.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'customer.property.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'customer.property.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'customer.property.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'customer.property.type.id' => $this->translate('admin', 'ID'),
69
+	'customer.property.type.domain' => $this->translate('admin', 'Domain'),
70
+	'customer.property.type.status' => $this->translate('admin', 'Status'),
71
+	'customer.property.type.code' => $this->translate('admin', 'Code'),
72
+	'customer.property.type.label' => $this->translate('admin', 'Label'),
73
+	'customer.property.type.position' => $this->translate('admin', 'Position'),
74
+	'customer.property.type.ctime' => $this->translate('admin', 'Created'),
75
+	'customer.property.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'customer.property.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Customer Property Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Customer Property Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/customer/property/filter', [] ),
92
-			'filterCustomers' => $this->get( 'filterCustomers', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/customer/property/filter', []),
92
+			'filterCustomers' => $this->get('filterCustomers', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/customer/property/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/customer/property/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-customer-property-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-customer-property-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/customer/property/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/customer/property/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/customer/property/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/customer/property/filter', []),
139 139
 					'data' => [
140 140
 						'customer.property.type.id' => ['op' => '=='],
141 141
 						'customer.property.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'customer' => $this->translate( 'admin', 'customer' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'customer' => $this->translate('admin', 'customer'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'customer.property.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'customer.property.type.code' => [],
159 159
 						'customer.property.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'customer.property.type.id', $fields ) ) : ?>
172
-						<td class="customer-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('customer.property.type.id', $fields)) : ?>
172
+						<td class="customer-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'customer.property.type.domain', $fields ) ) : ?>
175
-						<td class="customer-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('customer.property.type.domain', $fields)) : ?>
175
+						<td class="customer-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'customer.property.type.status', $fields ) ) : ?>
178
-						<td class="customer-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('customer.property.type.status', $fields)) : ?>
178
+						<td class="customer-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'customer.property.type.code', $fields ) ) : ?>
181
-						<td class="customer-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('customer.property.type.code', $fields)) : ?>
181
+						<td class="customer-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'customer.property.type.label', $fields ) ) : ?>
184
-						<td class="customer-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('customer.property.type.label', $fields)) : ?>
184
+						<td class="customer-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'customer.property.type.position', $fields ) ) : ?>
187
-						<td class="customer-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('customer.property.type.position', $fields)) : ?>
187
+						<td class="customer-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'customer.property.type.ctime', $fields ) ) : ?>
190
-						<td class="customer-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('customer.property.type.ctime', $fields)) : ?>
190
+						<td class="customer-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'customer.property.type.mtime', $fields ) ) : ?>
193
-						<td class="customer-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('customer.property.type.mtime', $fields)) : ?>
193
+						<td class="customer-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'customer.property.type.editor', $fields ) ) : ?>
196
-						<td class="customer-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('customer.property.type.editor', $fields)) : ?>
196
+						<td class="customer-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/customer/property/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/customer/property/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/customer/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/customer/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['customer.lists.type.domain', 'customer.lists.type.status', 'customer.lists.type.code', 'customer.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/customer/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/customer/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/customer/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/customer/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'customer.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'customer.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'customer.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'customer.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'customer.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'customer.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'customer.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'customer.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'customer.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'customer.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'customer.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'customer.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'customer.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'customer.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'customer.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'customer.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'customer.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'customer.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Customer Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Customer Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/customer/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/customer/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/customer/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/customer/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-customer-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-customer-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/customer/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/customer/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/customer/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/customer/lists/filter', []),
139 139
 					'data' => [
140 140
 						'customer.lists.type.id' => ['op' => '=='],
141 141
 						'customer.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'customer.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'customer.lists.type.code' => [],
159 159
 						'customer.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'customer.lists.type.id', $fields ) ) : ?>
172
-						<td class="customer-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('customer.lists.type.id', $fields)) : ?>
172
+						<td class="customer-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'customer.lists.type.domain', $fields ) ) : ?>
175
-						<td class="customer-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('customer.lists.type.domain', $fields)) : ?>
175
+						<td class="customer-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'customer.lists.type.status', $fields ) ) : ?>
178
-						<td class="customer-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('customer.lists.type.status', $fields)) : ?>
178
+						<td class="customer-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'customer.lists.type.code', $fields ) ) : ?>
181
-						<td class="customer-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('customer.lists.type.code', $fields)) : ?>
181
+						<td class="customer-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'customer.lists.type.label', $fields ) ) : ?>
184
-						<td class="customer-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('customer.lists.type.label', $fields)) : ?>
184
+						<td class="customer-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'customer.lists.type.position', $fields ) ) : ?>
187
-						<td class="customer-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('customer.lists.type.position', $fields)) : ?>
187
+						<td class="customer-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'customer.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="customer-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('customer.lists.type.ctime', $fields)) : ?>
190
+						<td class="customer-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'customer.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="customer-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('customer.lists.type.mtime', $fields)) : ?>
193
+						<td class="customer-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'customer.lists.type.editor', $fields ) ) : ?>
196
-						<td class="customer-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('customer.lists.type.editor', $fields)) : ?>
196
+						<td class="customer-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/customer/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/customer/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/stock/list-standard.php 1 patch
Spacing   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/stock/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['stock.type.domain', 'stock.type.status', 'stock.type.code', 'stock.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/stock/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/stock/fields', $default );
56
+$default = $this->config('admin/jqadm/type/stock/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/stock/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'stock.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'stock.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'stock.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'stock.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'stock.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'stock.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'stock.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'stock.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'stock.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'stock.type.id' => $this->translate('admin', 'ID'),
69
+	'stock.type.domain' => $this->translate('admin', 'Domain'),
70
+	'stock.type.status' => $this->translate('admin', 'Status'),
71
+	'stock.type.code' => $this->translate('admin', 'Code'),
72
+	'stock.type.label' => $this->translate('admin', 'Label'),
73
+	'stock.type.position' => $this->translate('admin', 'Position'),
74
+	'stock.type.ctime' => $this->translate('admin', 'Created'),
75
+	'stock.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'stock.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Stock Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Stock Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/stock/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/stock/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/stock/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/stock/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-stock-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-stock-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/stock/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/stock/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,18 +134,18 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/stock/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/stock/filter', []),
139 139
 					'data' => [
140 140
 						'stock.type.id' => ['op' => '=='],
141 141
 						'stock.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'product' => $this->translate( 'admin', 'product' ),
142
+							'product' => $this->translate('admin', 'product'),
143 143
 						]],
144 144
 						'stock.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
145
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
146
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
147
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
148
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
145
+							'1' => $this->translate('mshop/code', 'status:1'),
146
+							'0' => $this->translate('mshop/code', 'status:0'),
147
+							'-1' => $this->translate('mshop/code', 'status:-1'),
148
+							'-2' => $this->translate('mshop/code', 'status:-2'),
149 149
 						]],
150 150
 						'stock.type.code' => [],
151 151
 						'stock.type.label' => [],
@@ -157,47 +157,47 @@  discard block
 block discarded – undo
157 157
 				] );
158 158
 			?>
159 159
 
160
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
161
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
162
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
163
-					<?php if( in_array( 'stock.type.id', $fields ) ) : ?>
164
-						<td class="stock-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
160
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
161
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
162
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
163
+					<?php if (in_array('stock.type.id', $fields)) : ?>
164
+						<td class="stock-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
165 165
 					<?php endif; ?>
166
-					<?php if( in_array( 'stock.type.domain', $fields ) ) : ?>
167
-						<td class="stock-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
166
+					<?php if (in_array('stock.type.domain', $fields)) : ?>
167
+						<td class="stock-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
168 168
 					<?php endif; ?>
169
-					<?php if( in_array( 'stock.type.status', $fields ) ) : ?>
170
-						<td class="stock-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
169
+					<?php if (in_array('stock.type.status', $fields)) : ?>
170
+						<td class="stock-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
171 171
 					<?php endif; ?>
172
-					<?php if( in_array( 'stock.type.code', $fields ) ) : ?>
173
-						<td class="stock-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
172
+					<?php if (in_array('stock.type.code', $fields)) : ?>
173
+						<td class="stock-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
174 174
 					<?php endif; ?>
175
-					<?php if( in_array( 'stock.type.label', $fields ) ) : ?>
176
-						<td class="stock-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
175
+					<?php if (in_array('stock.type.label', $fields)) : ?>
176
+						<td class="stock-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
177 177
 					<?php endif; ?>
178
-					<?php if( in_array( 'stock.type.position', $fields ) ) : ?>
179
-						<td class="stock-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
178
+					<?php if (in_array('stock.type.position', $fields)) : ?>
179
+						<td class="stock-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
180 180
 					<?php endif; ?>
181
-					<?php if( in_array( 'stock.type.ctime', $fields ) ) : ?>
182
-						<td class="stock-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
181
+					<?php if (in_array('stock.type.ctime', $fields)) : ?>
182
+						<td class="stock-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
183 183
 					<?php endif; ?>
184
-					<?php if( in_array( 'stock.type.mtime', $fields ) ) : ?>
185
-						<td class="stock-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
184
+					<?php if (in_array('stock.type.mtime', $fields)) : ?>
185
+						<td class="stock-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
186 186
 					<?php endif; ?>
187
-					<?php if( in_array( 'stock.type.editor', $fields ) ) : ?>
188
-						<td class="stock-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
187
+					<?php if (in_array('stock.type.editor', $fields)) : ?>
188
+						<td class="stock-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
189 189
 					<?php endif; ?>
190 190
 
191 191
 					<td class="actions">
192 192
 						<a class="btn act-copy fa" tabindex="1"
193
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
194
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
195
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
196
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
193
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
194
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
195
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
196
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
197 197
 							<a class="btn act-delete fa" tabindex="1"
198
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
199
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
200
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
198
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
199
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
200
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
201 201
 						<?php endif; ?>
202 202
 					</td>
203 203
 				</tr>
@@ -205,18 +205,18 @@  discard block
 block discarded – undo
205 205
 		</tbody>
206 206
 	</table>
207 207
 
208
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
209
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
208
+	<?php if ($this->get('items', []) === []) : ?>
209
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
210 210
 	<?php endif; ?>
211 211
 </form>
212 212
 
213 213
 <?= $this->partial(
214
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
215
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
216
-		'page' => $this->session( 'aimeos/admin/jqadm/type/stock/page', [] )]
214
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
215
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
216
+		'page' => $this->session('aimeos/admin/jqadm/type/stock/page', [])]
217 217
 	);
218 218
 ?>
219 219
 
220 220
 <?php $this->block()->stop(); ?>
221 221
 
222
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
222
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/media/property/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/media/property/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['media.property.type.domain', 'media.property.type.status', 'media.property.type.code', 'media.property.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/media/property/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/media/property/fields', $default );
56
+$default = $this->config('admin/jqadm/type/media/property/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/media/property/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'media.property.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'media.property.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'media.property.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'media.property.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'media.property.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'media.property.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'media.property.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'media.property.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'media.property.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'media.property.type.id' => $this->translate('admin', 'ID'),
69
+	'media.property.type.domain' => $this->translate('admin', 'Domain'),
70
+	'media.property.type.status' => $this->translate('admin', 'Status'),
71
+	'media.property.type.code' => $this->translate('admin', 'Code'),
72
+	'media.property.type.label' => $this->translate('admin', 'Label'),
73
+	'media.property.type.position' => $this->translate('admin', 'Position'),
74
+	'media.property.type.ctime' => $this->translate('admin', 'Created'),
75
+	'media.property.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'media.property.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Media Property Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Media Property Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/media/property/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/media/property/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/media/property/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/media/property/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-media-property-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-media-property-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/media/property/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/media/property/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/media/property/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/media/property/filter', []),
139 139
 					'data' => [
140 140
 						'media.property.type.id' => ['op' => '=='],
141 141
 						'media.property.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'media.property.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'media.property.type.code' => [],
159 159
 						'media.property.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'media.property.type.id', $fields ) ) : ?>
172
-						<td class="media-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('media.property.type.id', $fields)) : ?>
172
+						<td class="media-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'media.property.type.domain', $fields ) ) : ?>
175
-						<td class="media-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('media.property.type.domain', $fields)) : ?>
175
+						<td class="media-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'media.property.type.status', $fields ) ) : ?>
178
-						<td class="media-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('media.property.type.status', $fields)) : ?>
178
+						<td class="media-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'media.property.type.code', $fields ) ) : ?>
181
-						<td class="media-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('media.property.type.code', $fields)) : ?>
181
+						<td class="media-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'media.property.type.label', $fields ) ) : ?>
184
-						<td class="media-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('media.property.type.label', $fields)) : ?>
184
+						<td class="media-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'media.property.type.position', $fields ) ) : ?>
187
-						<td class="media-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('media.property.type.position', $fields)) : ?>
187
+						<td class="media-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'media.property.type.ctime', $fields ) ) : ?>
190
-						<td class="media-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('media.property.type.ctime', $fields)) : ?>
190
+						<td class="media-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'media.property.type.mtime', $fields ) ) : ?>
193
-						<td class="media-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('media.property.type.mtime', $fields)) : ?>
193
+						<td class="media-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'media.property.type.editor', $fields ) ) : ?>
196
-						<td class="media-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('media.property.type.editor', $fields)) : ?>
196
+						<td class="media-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/media/property/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/media/property/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/media/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/media/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['media.type.domain', 'media.type.status', 'media.type.code', 'media.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/media/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/media/fields', $default );
56
+$default = $this->config('admin/jqadm/type/media/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/media/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'media.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'media.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'media.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'media.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'media.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'media.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'media.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'media.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'media.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'media.type.id' => $this->translate('admin', 'ID'),
69
+	'media.type.domain' => $this->translate('admin', 'Domain'),
70
+	'media.type.status' => $this->translate('admin', 'Status'),
71
+	'media.type.code' => $this->translate('admin', 'Code'),
72
+	'media.type.label' => $this->translate('admin', 'Label'),
73
+	'media.type.position' => $this->translate('admin', 'Position'),
74
+	'media.type.ctime' => $this->translate('admin', 'Created'),
75
+	'media.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'media.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Media Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Media Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/media/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/media/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/media/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/media/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-media-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-media-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/media/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/media/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/media/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/media/filter', []),
139 139
 					'data' => [
140 140
 						'media.type.id' => ['op' => '=='],
141 141
 						'media.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'media' => $this->translate( 'admin', 'media' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'media' => $this->translate('admin', 'media'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'media.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'media.type.code' => [],
159 159
 						'media.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'media.type.id', $fields ) ) : ?>
172
-						<td class="media-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('media.type.id', $fields)) : ?>
172
+						<td class="media-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'media.type.domain', $fields ) ) : ?>
175
-						<td class="media-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('media.type.domain', $fields)) : ?>
175
+						<td class="media-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'media.type.status', $fields ) ) : ?>
178
-						<td class="media-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('media.type.status', $fields)) : ?>
178
+						<td class="media-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'media.type.code', $fields ) ) : ?>
181
-						<td class="media-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('media.type.code', $fields)) : ?>
181
+						<td class="media-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'media.type.label', $fields ) ) : ?>
184
-						<td class="media-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('media.type.label', $fields)) : ?>
184
+						<td class="media-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'media.type.position', $fields ) ) : ?>
187
-						<td class="media-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('media.type.position', $fields)) : ?>
187
+						<td class="media-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'media.type.ctime', $fields ) ) : ?>
190
-						<td class="media-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('media.type.ctime', $fields)) : ?>
190
+						<td class="media-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'media.type.mtime', $fields ) ) : ?>
193
-						<td class="media-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('media.type.mtime', $fields)) : ?>
193
+						<td class="media-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'media.type.editor', $fields ) ) : ?>
196
-						<td class="media-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('media.type.editor', $fields)) : ?>
196
+						<td class="media-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/media/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/media/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/media/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/media/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['media.lists.type.domain', 'media.lists.type.status', 'media.lists.type.code', 'media.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/media/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/media/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/media/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/media/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'media.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'media.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'media.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'media.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'media.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'media.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'media.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'media.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'media.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'media.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'media.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'media.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'media.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'media.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'media.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'media.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'media.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'media.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Media Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Media Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/media/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/media/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/media/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/media/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-media-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-media-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/media/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/media/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/media/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/media/lists/filter', []),
139 139
 					'data' => [
140 140
 						'media.lists.type.id' => ['op' => '=='],
141 141
 						'media.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'media.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'media.lists.type.code' => [],
159 159
 						'media.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'media.lists.type.id', $fields ) ) : ?>
172
-						<td class="media-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('media.lists.type.id', $fields)) : ?>
172
+						<td class="media-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'media.lists.type.domain', $fields ) ) : ?>
175
-						<td class="media-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('media.lists.type.domain', $fields)) : ?>
175
+						<td class="media-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'media.lists.type.status', $fields ) ) : ?>
178
-						<td class="media-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('media.lists.type.status', $fields)) : ?>
178
+						<td class="media-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'media.lists.type.code', $fields ) ) : ?>
181
-						<td class="media-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('media.lists.type.code', $fields)) : ?>
181
+						<td class="media-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'media.lists.type.label', $fields ) ) : ?>
184
-						<td class="media-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('media.lists.type.label', $fields)) : ?>
184
+						<td class="media-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'media.lists.type.position', $fields ) ) : ?>
187
-						<td class="media-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('media.lists.type.position', $fields)) : ?>
187
+						<td class="media-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'media.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="media-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('media.lists.type.ctime', $fields)) : ?>
190
+						<td class="media-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'media.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="media-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('media.lists.type.mtime', $fields)) : ?>
193
+						<td class="media-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'media.lists.type.editor', $fields ) ) : ?>
196
-						<td class="media-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('media.lists.type.editor', $fields)) : ?>
196
+						<td class="media-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/media/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/media/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/attribute/property/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/attribute/property/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['attribute.property.type.domain', 'attribute.property.type.status', 'attribute.property.type.code', 'attribute.property.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/attribute/property/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/attribute/property/fields', $default );
56
+$default = $this->config('admin/jqadm/type/attribute/property/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/attribute/property/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'attribute.property.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'attribute.property.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'attribute.property.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'attribute.property.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'attribute.property.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'attribute.property.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'attribute.property.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'attribute.property.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'attribute.property.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'attribute.property.type.id' => $this->translate('admin', 'ID'),
69
+	'attribute.property.type.domain' => $this->translate('admin', 'Domain'),
70
+	'attribute.property.type.status' => $this->translate('admin', 'Status'),
71
+	'attribute.property.type.code' => $this->translate('admin', 'Code'),
72
+	'attribute.property.type.label' => $this->translate('admin', 'Label'),
73
+	'attribute.property.type.position' => $this->translate('admin', 'Position'),
74
+	'attribute.property.type.ctime' => $this->translate('admin', 'Created'),
75
+	'attribute.property.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'attribute.property.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Attribute Property Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Attribute Property Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/attribute/property/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/property/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-attribute-property-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-attribute-property-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/attribute/property/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/attribute/property/filter', []),
139 139
 					'data' => [
140 140
 						'attribute.property.type.id' => ['op' => '=='],
141 141
 						'attribute.property.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'attribute.property.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'attribute.property.type.code' => [],
159 159
 						'attribute.property.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'attribute.property.type.id', $fields ) ) : ?>
172
-						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('attribute.property.type.id', $fields)) : ?>
172
+						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'attribute.property.type.domain', $fields ) ) : ?>
175
-						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('attribute.property.type.domain', $fields)) : ?>
175
+						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'attribute.property.type.status', $fields ) ) : ?>
178
-						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('attribute.property.type.status', $fields)) : ?>
178
+						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'attribute.property.type.code', $fields ) ) : ?>
181
-						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('attribute.property.type.code', $fields)) : ?>
181
+						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'attribute.property.type.label', $fields ) ) : ?>
184
-						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('attribute.property.type.label', $fields)) : ?>
184
+						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'attribute.property.type.position', $fields ) ) : ?>
187
-						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('attribute.property.type.position', $fields)) : ?>
187
+						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'attribute.property.type.ctime', $fields ) ) : ?>
190
-						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('attribute.property.type.ctime', $fields)) : ?>
190
+						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'attribute.property.type.mtime', $fields ) ) : ?>
193
-						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('attribute.property.type.mtime', $fields)) : ?>
193
+						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'attribute.property.type.editor', $fields ) ) : ?>
196
-						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('attribute.property.type.editor', $fields)) : ?>
196
+						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/property/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/attribute/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/attribute/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['attribute.type.domain', 'attribute.type.status', 'attribute.type.code', 'attribute.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/attribute/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/attribute/fields', $default );
56
+$default = $this->config('admin/jqadm/type/attribute/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/attribute/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'attribute.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'attribute.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'attribute.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'attribute.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'attribute.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'attribute.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'attribute.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'attribute.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'attribute.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'attribute.type.id' => $this->translate('admin', 'ID'),
69
+	'attribute.type.domain' => $this->translate('admin', 'Domain'),
70
+	'attribute.type.status' => $this->translate('admin', 'Status'),
71
+	'attribute.type.code' => $this->translate('admin', 'Code'),
72
+	'attribute.type.label' => $this->translate('admin', 'Label'),
73
+	'attribute.type.position' => $this->translate('admin', 'Position'),
74
+	'attribute.type.ctime' => $this->translate('admin', 'Created'),
75
+	'attribute.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'attribute.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Attribute Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Attribute Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/attribute/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/attribute/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-attribute-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-attribute-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/attribute/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/attribute/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/attribute/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/attribute/filter', []),
139 139
 					'data' => [
140 140
 						'attribute.type.id' => ['op' => '=='],
141 141
 						'attribute.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'attribute.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'attribute.type.code' => [],
159 159
 						'attribute.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'attribute.type.id', $fields ) ) : ?>
172
-						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('attribute.type.id', $fields)) : ?>
172
+						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'attribute.type.domain', $fields ) ) : ?>
175
-						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('attribute.type.domain', $fields)) : ?>
175
+						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'attribute.type.status', $fields ) ) : ?>
178
-						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('attribute.type.status', $fields)) : ?>
178
+						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'attribute.type.code', $fields ) ) : ?>
181
-						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('attribute.type.code', $fields)) : ?>
181
+						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'attribute.type.label', $fields ) ) : ?>
184
-						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('attribute.type.label', $fields)) : ?>
184
+						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'attribute.type.position', $fields ) ) : ?>
187
-						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('attribute.type.position', $fields)) : ?>
187
+						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'attribute.type.ctime', $fields ) ) : ?>
190
-						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('attribute.type.ctime', $fields)) : ?>
190
+						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'attribute.type.mtime', $fields ) ) : ?>
193
-						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('attribute.type.mtime', $fields)) : ?>
193
+						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'attribute.type.editor', $fields ) ) : ?>
196
-						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('attribute.type.editor', $fields)) : ?>
196
+						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.