Completed
Push — master ( 06a6c1...f03436 )
by Aimeos
03:56
created
admin/jqadm/templates/type/text/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/text/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['text.lists.type.domain', 'text.lists.type.status', 'text.lists.type.code', 'text.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/text/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/text/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/text/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/text/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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'text.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'text.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'text.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'text.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'text.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'text.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'text.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'text.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'text.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'text.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'text.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'text.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'text.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'text.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'text.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'text.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'text.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'text.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', 'Text Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Text 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.php' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/text/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/text/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.php' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/text/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/text/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-text-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-text-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.php' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/text/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/text/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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/text/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/text/lists/filter', []),
139 139
 					'data' => [
140 140
 						'text.lists.type.id' => ['op' => '=='],
141 141
 						'text.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
 						'text.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
 						'text.lists.type.code' => [],
159 159
 						'text.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( 'text.lists.type.id', $fields ) ) : ?>
172
-						<td class="text-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('text.lists.type.id', $fields)) : ?>
172
+						<td class="text-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'text.lists.type.domain', $fields ) ) : ?>
175
-						<td class="text-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('text.lists.type.domain', $fields)) : ?>
175
+						<td class="text-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'text.lists.type.status', $fields ) ) : ?>
178
-						<td class="text-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('text.lists.type.status', $fields)) : ?>
178
+						<td class="text-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( 'text.lists.type.code', $fields ) ) : ?>
181
-						<td class="text-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('text.lists.type.code', $fields)) : ?>
181
+						<td class="text-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( 'text.lists.type.label', $fields ) ) : ?>
184
-						<td class="text-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('text.lists.type.label', $fields)) : ?>
184
+						<td class="text-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'text.lists.type.position', $fields ) ) : ?>
187
-						<td class="text-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('text.lists.type.position', $fields)) : ?>
187
+						<td class="text-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'text.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="text-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('text.lists.type.ctime', $fields)) : ?>
190
+						<td class="text-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'text.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="text-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('text.lists.type.mtime', $fields)) : ?>
193
+						<td class="text-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'text.lists.type.editor', $fields ) ) : ?>
196
-						<td class="text-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('text.lists.type.editor', $fields)) : ?>
196
+						<td class="text-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.php' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/text/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/text/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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $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.php' ), [
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.php'), [
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.php' ),
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.php'),
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.php' ),
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.php'),
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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/customer/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
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.php' ),
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.php'),
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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $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.php' ), [
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.php'), [
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.php' ),
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.php'),
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.php' ),
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.php'),
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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/media/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
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.php' ),
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.php'),
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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $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.php' ), [
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.php'), [
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.php' ),
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.php'),
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.php' ),
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.php'),
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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/media/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
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.php' ),
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.php'),
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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $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.php' ), [
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.php'), [
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.php' ),
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.php'),
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.php' ),
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.php'),
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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/media/property/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
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.php' ),
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.php'),
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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/media/property/item-standard.php 1 patch
Spacing   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -5,38 +5,38 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12 12
 $enc = $this->encoder();
13 13
 
14 14
 
15
-$target = $this->config( 'admin/jqadm/url/save/target' );
16
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
17
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
18
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
15
+$target = $this->config('admin/jqadm/url/save/target');
16
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
17
+$action = $this->config('admin/jqadm/url/save/action', 'save');
18
+$config = $this->config('admin/jqadm/url/save/config', []);
19 19
 
20
-$params = $this->get( 'pageParams', [] );
20
+$params = $this->get('pageParams', []);
21 21
 
22 22
 
23 23
 ?>
24
-<?php $this->block()->start( 'jqadm_content' ); ?>
24
+<?php $this->block()->start('jqadm_content'); ?>
25 25
 
26
-<form class="item item-media-property-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
27
-	<input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/media.property.type.id' ) ); ?>" />
28
-	<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
26
+<form class="item item-media-property-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
27
+	<input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/media.property.type.id')); ?>" />
28
+	<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
29 29
 	<?= $this->csrf()->formfield(); ?>
30 30
 
31 31
 	<nav class="main-navbar">
32 32
 		<span class="navbar-brand">
33
-			<?= $enc->html( $this->translate( 'admin', 'Media Property Type' ) ); ?>:
34
-			<?= $enc->html( $this->get( 'itemData/media.property.type.id' ) ); ?> -
35
-			<?= $enc->html( $this->get( 'itemData/media.property.type.label', $this->translate( 'admin', 'New' ) ) ); ?>
36
-			<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/media.property.type.siteid' ) ) ); ?>)</span>
33
+			<?= $enc->html($this->translate('admin', 'Media Property Type')); ?>:
34
+			<?= $enc->html($this->get('itemData/media.property.type.id')); ?> -
35
+			<?= $enc->html($this->get('itemData/media.property.type.label', $this->translate('admin', 'New'))); ?>
36
+			<span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/media.property.type.siteid'))); ?>)</span>
37 37
 		</span>
38 38
 		<div class="item-actions">
39
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard.php' ), ['params' => $params] ); ?>
39
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard.php'), ['params' => $params]); ?>
40 40
 		</div>
41 41
 	</nav>
42 42
 
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 
48 48
 				<li class="nav-item basic">
49 49
 					<a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic">
50
-						<?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?>
50
+						<?= $enc->html($this->translate('admin', 'Basic')); ?>
51 51
 					</a>
52 52
 				</li>
53 53
 
54
-				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
55
-					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
56
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
57
-							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
54
+				<?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?>
55
+					<li class="nav-item <?= $enc->attr($subpart); ?>">
56
+						<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
57
+							<?= $enc->html($this->translate('admin', $subpart)); ?>
58 58
 						</a>
59 59
 					</li>
60 60
 				<?php endforeach; ?>
@@ -63,16 +63,16 @@  discard block
 block discarded – undo
63 63
 
64 64
 			<div class="item-meta text-muted">
65 65
 				<small>
66
-					<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
67
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.property.type.mtime' ) ); ?></span>
66
+					<?= $enc->html($this->translate('admin', 'Modified')); ?>:
67
+					<span class="meta-value"><?= $enc->html($this->get('itemData/media.property.type.mtime')); ?></span>
68 68
 				</small>
69 69
 				<small>
70
-					<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
71
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.property.type.ctime' ) ); ?></span>
70
+					<?= $enc->html($this->translate('admin', 'Created')); ?>:
71
+					<span class="meta-value"><?= $enc->html($this->get('itemData/media.property.type.ctime')); ?></span>
72 72
 				</small>
73 73
 				<small>
74
-					<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
75
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.property.type.editor' ) ); ?></span>
74
+					<?= $enc->html($this->translate('admin', 'Editor')); ?>:
75
+					<span class="meta-value"><?= $enc->html($this->get('itemData/media.property.type.editor')); ?></span>
76 76
 				</small>
77 77
 			</div>
78 78
 		</div>
@@ -81,98 +81,98 @@  discard block
 block discarded – undo
81 81
 
82 82
 			<div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic">
83 83
 
84
-				<div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?>">
84
+				<div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?>">
85 85
 					<div class="form-group row mandatory">
86
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label>
86
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label>
87 87
 						<div class="col-sm-8">
88 88
 							<select class="form-control custom-select item-domain" required="required" tabindex="1"
89
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.domain' ) ) ); ?>"
90
-								<?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> >
89
+								name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.domain'))); ?>"
90
+								<?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> >
91 91
 								<option value="">
92
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
92
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
93 93
 								</option>
94 94
 
95
-								<?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?>
96
-									<option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/media.property.type.domain', 'product' ), $domain ); ?> >
97
-										<?= $enc->html( $this->translate( 'admin', $domain ) ); ?>
95
+								<?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?>
96
+									<option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/media.property.type.domain', 'product'), $domain); ?> >
97
+										<?= $enc->html($this->translate('admin', $domain)); ?>
98 98
 									</option>
99 99
 								<?php endforeach; ?>
100 100
 							</select>
101 101
 						</div>
102 102
 					</div>
103 103
 					<div class="form-group row mandatory">
104
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
104
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
105 105
 						<div class="col-sm-8">
106 106
 							<select class="form-control custom-select item-status" required="required" tabindex="1"
107
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.status' ) ) ); ?>"
108
-								<?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> >
107
+								name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.status'))); ?>"
108
+								<?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> >
109 109
 								<option value="">
110
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
110
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
111 111
 								</option>
112
-								<option value="1" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), 1 ); ?> >
113
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
112
+								<option value="1" <?= $selected($this->get('itemData/media.property.type.status', 1), 1); ?> >
113
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
114 114
 								</option>
115
-								<option value="0" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), 0 ); ?> >
116
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
115
+								<option value="0" <?= $selected($this->get('itemData/media.property.type.status', 1), 0); ?> >
116
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
117 117
 								</option>
118
-								<option value="-1" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), -1 ); ?> >
119
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
118
+								<option value="-1" <?= $selected($this->get('itemData/media.property.type.status', 1), -1); ?> >
119
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
120 120
 								</option>
121
-								<option value="-2" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), -2 ); ?> >
122
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
121
+								<option value="-2" <?= $selected($this->get('itemData/media.property.type.status', 1), -2); ?> >
122
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
123 123
 								</option>
124 124
 							</select>
125 125
 						</div>
126 126
 					</div>
127 127
 					<div class="form-group row mandatory">
128
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
128
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label>
129 129
 						<div class="col-sm-8">
130 130
 							<input class="form-control item-code" type="text" required="required" tabindex="1"
131
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.code' ) ) ); ?>"
132
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>"
133
-								value="<?= $enc->attr( $this->get( 'itemData/media.property.type.code' ) ); ?>"
134
-								<?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> />
131
+								name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.code'))); ?>"
132
+								placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>"
133
+								value="<?= $enc->attr($this->get('itemData/media.property.type.code')); ?>"
134
+								<?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> />
135 135
 						</div>
136 136
 						<div class="col-sm-12 form-text text-muted help-text">
137
-							<?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?>
137
+							<?= $enc->html($this->translate('admin', 'Unique type code')); ?>
138 138
 						</div>
139 139
 					</div>
140 140
 					<div class="form-group row mandatory">
141
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
141
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
142 142
 						<div class="col-sm-8">
143 143
 							<input class="form-control item-label" type="text" required="required" tabindex="1"
144
-								name="<?= $this->formparam( array( 'item', 'media.property.type.label' ) ); ?>"
145
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>"
146
-								value="<?= $enc->attr( $this->get( 'itemData/media.property.type.label' ) ); ?>"
147
-								<?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> />
144
+								name="<?= $this->formparam(array('item', 'media.property.type.label')); ?>"
145
+								placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>"
146
+								value="<?= $enc->attr($this->get('itemData/media.property.type.label')); ?>"
147
+								<?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> />
148 148
 						</div>
149 149
 						<div class="col-sm-12 form-text text-muted help-text">
150
-							<?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?>
150
+							<?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?>
151 151
 						</div>
152 152
 					</div>
153 153
 					<div class="form-group row optional">
154
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label>
154
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label>
155 155
 						<div class="col-sm-8">
156 156
 							<input class="form-control item-position" type="number" step="1" tabindex="1"
157
-								name="<?= $this->formparam( array( 'item', 'media.property.type.position' ) ); ?>"
158
-								value="<?= $enc->attr( $this->get( 'itemData/media.property.type.position' ) ); ?>"
159
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>"
160
-								<?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> />
157
+								name="<?= $this->formparam(array('item', 'media.property.type.position')); ?>"
158
+								value="<?= $enc->attr($this->get('itemData/media.property.type.position')); ?>"
159
+								placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>"
160
+								<?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> />
161 161
 						</div>
162 162
 						<div class="col-sm-12 form-text text-muted help-text">
163
-							<?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?>
163
+							<?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?>
164 164
 						</div>
165 165
 					</div>
166 166
 				</div>
167 167
 
168 168
 			</div>
169 169
 
170
-			<?= $this->get( 'itemBody' ); ?>
170
+			<?= $this->get('itemBody'); ?>
171 171
 
172 172
 		</div>
173 173
 
174 174
 		<div class="item-actions">
175
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard.php' ), ['params' => $params] ); ?>
175
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard.php'), ['params' => $params]); ?>
176 176
 		</div>
177 177
 	</div>
178 178
 </form>
@@ -180,4 +180,4 @@  discard block
 block discarded – undo
180 180
 <?php $this->block()->stop(); ?>
181 181
 
182 182
 
183
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?>
183
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/tag/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/tag/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['tag.type.domain', 'tag.type.status', 'tag.type.code', 'tag.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/tag/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/tag/fields', $default );
56
+$default = $this->config('admin/jqadm/type/tag/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/tag/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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'tag.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'tag.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'tag.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'tag.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'tag.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'tag.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'tag.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'tag.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'tag.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'tag.type.id' => $this->translate('admin', 'ID'),
69
+	'tag.type.domain' => $this->translate('admin', 'Domain'),
70
+	'tag.type.status' => $this->translate('admin', 'Status'),
71
+	'tag.type.code' => $this->translate('admin', 'Code'),
72
+	'tag.type.label' => $this->translate('admin', 'Label'),
73
+	'tag.type.position' => $this->translate('admin', 'Position'),
74
+	'tag.type.ctime' => $this->translate('admin', 'Created'),
75
+	'tag.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'tag.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', 'Tag Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Tag 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.php' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/tag/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/tag/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.php' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/tag/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/tag/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-tag-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-tag-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.php' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/tag/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/tag/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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/tag/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/tag/filter', []),
139 139
 					'data' => [
140 140
 						'tag.type.id' => ['op' => '=='],
141 141
 						'tag.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'tag' => $this->translate( 'admin', 'tag' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'tag' => $this->translate( 'admin', 'tag' ),
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
+							'tag' => $this->translate('admin', 'tag'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'tag' => $this->translate('admin', 'tag'),
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
 						'tag.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
 						'tag.type.code' => [],
159 159
 						'tag.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( 'tag.type.id', $fields ) ) : ?>
172
-						<td class="tag-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('tag.type.id', $fields)) : ?>
172
+						<td class="tag-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'tag.type.domain', $fields ) ) : ?>
175
-						<td class="tag-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('tag.type.domain', $fields)) : ?>
175
+						<td class="tag-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'tag.type.status', $fields ) ) : ?>
178
-						<td class="tag-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('tag.type.status', $fields)) : ?>
178
+						<td class="tag-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( 'tag.type.code', $fields ) ) : ?>
181
-						<td class="tag-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('tag.type.code', $fields)) : ?>
181
+						<td class="tag-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( 'tag.type.label', $fields ) ) : ?>
184
-						<td class="tag-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('tag.type.label', $fields)) : ?>
184
+						<td class="tag-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'tag.type.position', $fields ) ) : ?>
187
-						<td class="tag-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('tag.type.position', $fields)) : ?>
187
+						<td class="tag-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'tag.type.ctime', $fields ) ) : ?>
190
-						<td class="tag-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('tag.type.ctime', $fields)) : ?>
190
+						<td class="tag-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'tag.type.mtime', $fields ) ) : ?>
193
-						<td class="tag-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('tag.type.mtime', $fields)) : ?>
193
+						<td class="tag-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'tag.type.editor', $fields ) ) : ?>
196
-						<td class="tag-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('tag.type.editor', $fields)) : ?>
196
+						<td class="tag-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.php' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/tag/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/tag/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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $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.php' ), [
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.php'), [
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.php' ),
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.php'),
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.php' ),
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.php'),
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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/stock/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
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.php' ),
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.php'),
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.php' ) ); ?>
222
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/catalog/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/catalog/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['catalog.lists.type.domain', 'catalog.lists.type.status', 'catalog.lists.type.code', 'catalog.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/catalog/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/catalog/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/catalog/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/catalog/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 $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'catalog.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'catalog.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'catalog.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'catalog.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'catalog.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'catalog.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'catalog.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'catalog.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'catalog.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'catalog.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'catalog.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'catalog.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'catalog.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'catalog.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'catalog.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'catalog.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'catalog.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'catalog.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', 'Catalog Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Catalog 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.php' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/catalog/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.php' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/catalog/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-catalog-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-catalog-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.php' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/catalog/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.php' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
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.php' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/catalog/lists/filter', []),
139 139
 					'data' => [
140 140
 						'catalog.lists.type.id' => ['op' => '=='],
141 141
 						'catalog.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
 						'catalog.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
 						'catalog.lists.type.code' => [],
159 159
 						'catalog.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( 'catalog.lists.type.id', $fields ) ) : ?>
172
-						<td class="catalog-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('catalog.lists.type.id', $fields)) : ?>
172
+						<td class="catalog-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'catalog.lists.type.domain', $fields ) ) : ?>
175
-						<td class="catalog-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('catalog.lists.type.domain', $fields)) : ?>
175
+						<td class="catalog-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'catalog.lists.type.status', $fields ) ) : ?>
178
-						<td class="catalog-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('catalog.lists.type.status', $fields)) : ?>
178
+						<td class="catalog-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( 'catalog.lists.type.code', $fields ) ) : ?>
181
-						<td class="catalog-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('catalog.lists.type.code', $fields)) : ?>
181
+						<td class="catalog-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( 'catalog.lists.type.label', $fields ) ) : ?>
184
-						<td class="catalog-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('catalog.lists.type.label', $fields)) : ?>
184
+						<td class="catalog-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'catalog.lists.type.position', $fields ) ) : ?>
187
-						<td class="catalog-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('catalog.lists.type.position', $fields)) : ?>
187
+						<td class="catalog-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'catalog.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="catalog-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('catalog.lists.type.ctime', $fields)) : ?>
190
+						<td class="catalog-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'catalog.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="catalog-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('catalog.lists.type.mtime', $fields)) : ?>
193
+						<td class="catalog-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'catalog.lists.type.editor', $fields ) ) : ?>
196
-						<td class="catalog-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('catalog.lists.type.editor', $fields)) : ?>
196
+						<td class="catalog-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.php' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/catalog/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.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.