Completed
Push — master ( 06a6c1...f03436 )
by Aimeos
03:56
created
admin/jqadm/templates/service/item-price-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,9 +151,12 @@  discard block
 block discarded – undo
151 151
 								</select>
152 152
 							</div>
153 153
 						</div>
154
-					<?php else : ?>
154
+					<?php else {
155
+	: ?>
155 156
 						<input class="item-currencyid" type="hidden"
156
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
157
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) );
158
+}
159
+?>'.replace('idx', idx)"
157 160
 							value="<?= $enc->attr( key( $currencies ) ); ?>" />
158 161
 					<?php endif; ?>
159 162
 
@@ -181,9 +184,12 @@  discard block
 block discarded – undo
181 184
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
182 185
 							</div>
183 186
 						</div>
184
-					<?php else : ?>
187
+					<?php else {
188
+	: ?>
185 189
 						<input class="item-typeid" type="hidden"
186
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
190
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) );
191
+}
192
+?>'.replace('idx', idx)"
187 193
 							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
188 194
 					<?php endif; ?>
189 195
 
@@ -236,9 +242,12 @@  discard block
 block discarded – undo
236 242
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
237 243
 							</div>
238 244
 						</div>
239
-					<?php else : ?>
245
+					<?php else {
246
+	: ?>
240 247
 						<input class="listitem-typeid" type="hidden"
241
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
248
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.typeid' ) ) );
249
+}
250
+?>'.replace('idx', idx)"
242 251
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
243 252
 							v-model="items[idx]['service.lists.typeid']" />
244 253
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
 	'price.siteid', 'price.typeid', 'price.currencyid', 'price.status', 'price.quantity', 'price.taxrate', 'price.value', 'price.rebate', 'price.costs'
14 14
 ];
15 15
 
16
-$currencies = $this->get( 'priceCurrencies', [] );
16
+$currencies = $this->get('priceCurrencies', []);
17 17
 
18 18
 
19 19
 ?>
20 20
 <div id="price" class="item-price content-block tab-pane fade" role="tablist" aria-labelledby="price">
21 21
 	<div id="item-price-group" role="tablist" aria-multiselectable="true"
22
-		data-items="<?= $enc->attr( json_encode( $this->get( 'priceData', [] ) ) ); ?>"
23
-		data-listtypeid="<?= key( $this->get( 'priceListTypes', [] ) ) ?>"
24
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
22
+		data-items="<?= $enc->attr(json_encode($this->get('priceData', []))); ?>"
23
+		data-listtypeid="<?= key($this->get('priceListTypes', [])) ?>"
24
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
25 25
 		data-siteid="<?= $this->site()->siteid() ?>" >
26 26
 
27 27
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -30,16 +30,16 @@  discard block
 block discarded – undo
30 30
 				v-bind:data-target="'#item-price-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
31 31
 				v-bind:aria-controls="'item-price-group-data-' + idx" aria-expanded="false">
32 32
 				<div class="card-tools-left">
33
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
33
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
34
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
35 35
 					</div>
36 36
 				</div>
37 37
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
38 38
 				&nbsp;
39 39
 				<div class="card-tools-right">
40 40
 					<div v-if="!checkSite('service.lists.siteid', idx)"
41
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
42
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
41
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
42
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
43 43
 						v-on:click.stop="removeItem(idx)">
44 44
 					</div>
45 45
 				</div>
@@ -49,60 +49,60 @@  discard block
 block discarded – undo
49 49
 				v-bind:aria-labelledby="'item-price-group-item-' + idx" role="tabpanel" class="card-block collapse row">
50 50
 
51 51
 				<input type="hidden" v-model="items[idx]['price.id']"
52
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.id' ) ) ); ?>'.replace('idx', idx)" />
52
+					v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.id'))); ?>'.replace('idx', idx)" />
53 53
 
54 54
 				<div class="col-xl-6">
55 55
 
56 56
 					<div class="form-group row mandatory">
57
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Tax rate in %' ) ); ?></label>
57
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Tax rate in %')); ?></label>
58 58
 						<div class="col-sm-8">
59
-							<input class="form-control item-taxrate" type="number" step="0.01" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
60
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.taxrate' ) ) ); ?>'.replace('idx', idx)"
61
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Tax rate in %' ) ); ?>"
59
+							<input class="form-control item-taxrate" type="number" step="0.01" required="required" tabindex="<?= $this->get('tabindex'); ?>"
60
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.taxrate'))); ?>'.replace('idx', idx)"
61
+								placeholder="<?= $enc->attr($this->translate('admin', 'Tax rate in %')); ?>"
62 62
 								v-bind:readonly="checkSite('price.siteid', idx)"
63 63
 								v-model="items[idx]['price.taxrate']" />
64 64
 						</div>
65 65
 						<div class="col-sm-12 form-text text-muted help-text">
66
-							<?= $enc->html( $this->translate( 'admin', 'Country specific tax rate to calculate and display the included tax (B2C) or add the tax if required (B2B)' ) ); ?>
66
+							<?= $enc->html($this->translate('admin', 'Country specific tax rate to calculate and display the included tax (B2C) or add the tax if required (B2B)')); ?>
67 67
 						</div>
68 68
 					</div>
69 69
 					<div class="form-group row mandatory">
70
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Actual current price' ) ); ?></label>
70
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Actual current price')); ?></label>
71 71
 						<div class="col-sm-8">
72
-							<input class="form-control item-value" type="number" step="0.01" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
73
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.value' ) ) ); ?>'.replace('idx', idx)"
74
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Actual current price' ) ); ?>"
72
+							<input class="form-control item-value" type="number" step="0.01" required="required" tabindex="<?= $this->get('tabindex'); ?>"
73
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.value'))); ?>'.replace('idx', idx)"
74
+								placeholder="<?= $enc->attr($this->translate('admin', 'Actual current price')); ?>"
75 75
 								v-bind:readonly="checkSite('price.siteid', idx)"
76 76
 								v-model="items[idx]['price.value']" />
77 77
 						</div>
78 78
 						<div class="col-sm-12 form-text text-muted help-text">
79
-							<?= $enc->html( $this->translate( 'admin', 'Actual price customers can buy the article for on the web site' ) ); ?>
79
+							<?= $enc->html($this->translate('admin', 'Actual price customers can buy the article for on the web site')); ?>
80 80
 						</div>
81 81
 					</div>
82 82
 					<div class="form-group row optional">
83
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Substracted rebate amount' ) ); ?></label>
83
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Substracted rebate amount')); ?></label>
84 84
 						<div class="col-sm-8">
85
-							<input class="form-control item-rebate" type="number" step="0.01" tabindex="<?= $this->get( 'tabindex' ); ?>"
86
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.rebate' ) ) ); ?>'.replace('idx', idx)"
87
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Substracted rebate amount' ) ); ?>"
85
+							<input class="form-control item-rebate" type="number" step="0.01" tabindex="<?= $this->get('tabindex'); ?>"
86
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.rebate'))); ?>'.replace('idx', idx)"
87
+								placeholder="<?= $enc->attr($this->translate('admin', 'Substracted rebate amount')); ?>"
88 88
 								v-bind:readonly="checkSite('price.siteid', idx)"
89 89
 								v-model="items[idx]['price.rebate']" />
90 90
 						</div>
91 91
 						<div class="col-sm-12 form-text text-muted help-text">
92
-							<?= $enc->html( $this->translate( 'admin', 'Reduction from the original price, used to calculate the rebate in % and the cross price' ) ); ?>
92
+							<?= $enc->html($this->translate('admin', 'Reduction from the original price, used to calculate the rebate in % and the cross price')); ?>
93 93
 						</div>
94 94
 					</div>
95 95
 					<div class="form-group row optional">
96
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Shipping/Payment costs' ) ); ?></label>
96
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Shipping/Payment costs')); ?></label>
97 97
 						<div class="col-sm-8">
98
-							<input class="form-control item-costs" type="number" step="0.01" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.costs' ) ) ); ?>'.replace('idx', idx)"
100
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Shipping/Payment costs' ) ); ?>"
98
+							<input class="form-control item-costs" type="number" step="0.01" tabindex="<?= $this->get('tabindex'); ?>"
99
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.costs'))); ?>'.replace('idx', idx)"
100
+								placeholder="<?= $enc->attr($this->translate('admin', 'Shipping/Payment costs')); ?>"
101 101
 								v-bind:readonly="checkSite('price.siteid', idx)"
102 102
 								v-model="items[idx]['price.costs']" />
103 103
 						</div>
104 104
 						<div class="col-sm-12 form-text text-muted help-text">
105
-							<?= $enc->html( $this->translate( 'admin', 'Additional delivery costs for each item, e.g. $20 for one heavy item will be $100 for five items it total' ) ); ?>
105
+							<?= $enc->html($this->translate('admin', 'Additional delivery costs for each item, e.g. $20 for one heavy item will be $100 for five items it total')); ?>
106 106
 						</div>
107 107
 					</div>
108 108
 
@@ -111,43 +111,43 @@  discard block
 block discarded – undo
111 111
 				<div class="col-xl-6">
112 112
 
113 113
 					<div class="form-group row mandatory">
114
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
114
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
115 115
 						<div class="col-sm-8">
116
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
117
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.status' ) ) ); ?>'.replace('idx', idx)"
116
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
117
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.status'))); ?>'.replace('idx', idx)"
118 118
 								v-bind:readonly="checkSite('price.siteid', idx)"
119 119
 								v-model="items[idx]['price.status']" >
120 120
 								<option value="1" v-bind:selected="items[idx]['price.status'] == 1" >
121
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
121
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
122 122
 								</option>
123 123
 								<option value="0" v-bind:selected="items[idx]['price.status'] == 0" >
124
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
124
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
125 125
 								</option>
126 126
 								<option value="-1" v-bind:selected="items[idx]['price.status'] == -1" >
127
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
127
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
128 128
 								</option>
129 129
 								<option value="-2" v-bind:selected="items[idx]['price.status'] == -2" >
130
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
130
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
131 131
 								</option>
132 132
 							</select>
133 133
 						</div>
134 134
 					</div>
135 135
 
136
-					<?php if( count( $currencies ) > 1 ) : ?>
136
+					<?php if (count($currencies) > 1) : ?>
137 137
 						<div class="form-group row mandatory">
138
-							<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Currency' ) ); ?></label>
138
+							<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Currency')); ?></label>
139 139
 							<div class="col-sm-8">
140
-								<select class="form-control custom-select item-currencyid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
141
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
140
+								<select class="form-control custom-select item-currencyid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
141
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.currencyid'))); ?>'.replace('idx', idx)"
142 142
 									v-bind:readonly="checkSite('price.siteid', idx)"
143 143
 									v-model="items[idx]['price.currencyid']" >
144 144
 									<option value="" disabled>
145
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
145
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
146 146
 									</option>
147 147
 
148
-									<?php foreach( $currencies as $currencyId => $currencyItem ) : ?>
149
-										<option value="<?= $enc->attr( $currencyItem->getCode() ); ?>" v-bind:selected="items[idx]['price.currencyid'] == '<?= $enc->attr( $currencyId ) ?>'" >
150
-											<?= $enc->html( $currencyItem->getCode() ); ?>
148
+									<?php foreach ($currencies as $currencyId => $currencyItem) : ?>
149
+										<option value="<?= $enc->attr($currencyItem->getCode()); ?>" v-bind:selected="items[idx]['price.currencyid'] == '<?= $enc->attr($currencyId) ?>'" >
150
+											<?= $enc->html($currencyItem->getCode()); ?>
151 151
 										</option>
152 152
 									<?php endforeach; ?>
153 153
 
@@ -156,51 +156,51 @@  discard block
 block discarded – undo
156 156
 						</div>
157 157
 					<?php else : ?>
158 158
 						<input class="item-currencyid" type="hidden"
159
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
160
-							value="<?= $enc->attr( key( $currencies ) ); ?>" />
159
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.currencyid'))); ?>'.replace('idx', idx)"
160
+							value="<?= $enc->attr(key($currencies)); ?>" />
161 161
 					<?php endif; ?>
162 162
 
163
-					<?php $priceTypes = $this->get( 'priceTypes', [] ); ?>
164
-					<?php if( count( $priceTypes ) > 1 ) : ?>
163
+					<?php $priceTypes = $this->get('priceTypes', []); ?>
164
+					<?php if (count($priceTypes) > 1) : ?>
165 165
 						<div class="form-group row mandatory">
166
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
166
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
167 167
 							<div class="col-sm-8">
168
-								<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
169
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
168
+								<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
169
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.typeid'))); ?>'.replace('idx', idx)"
170 170
 									v-bind:readonly="checkSite('price.siteid', idx)"
171 171
 									v-model="items[idx]['price.typeid']" >
172 172
 									<option value="">
173
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
173
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
174 174
 									</option>
175 175
 
176
-									<?php foreach( (array) $priceTypes as $typeId => $typeItem ) : ?>
177
-										<option value="<?= $enc->attr( $typeId ); ?>" v-bind:selected="items[idx]['price.typeid'] == '<?= $enc->attr( $typeId ) ?>'" >
178
-											<?= $enc->html( $typeItem->getLabel() ); ?>
176
+									<?php foreach ((array) $priceTypes as $typeId => $typeItem) : ?>
177
+										<option value="<?= $enc->attr($typeId); ?>" v-bind:selected="items[idx]['price.typeid'] == '<?= $enc->attr($typeId) ?>'" >
178
+											<?= $enc->html($typeItem->getLabel()); ?>
179 179
 										</option>
180 180
 									<?php endforeach; ?>
181 181
 								</select>
182 182
 							</div>
183 183
 							<div class="col-sm-12 form-text text-muted help-text">
184
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
184
+								<?= $enc->html($this->translate('admin', 'Types for additional prices like per one lb/kg or per month')); ?>
185 185
 							</div>
186 186
 						</div>
187 187
 					<?php else : ?>
188 188
 						<input class="item-typeid" type="hidden"
189
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
190
-							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
189
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.typeid'))); ?>'.replace('idx', idx)"
190
+							value="<?= $enc->attr(key($priceTypes)); ?>" />
191 191
 					<?php endif; ?>
192 192
 
193 193
 					<div class="form-group row mandatory">
194
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Minimum quantity' ) ); ?></label>
194
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Minimum quantity')); ?></label>
195 195
 						<div class="col-sm-8">
196
-							<input class="form-control item-quantity" type="number" step="1" min="1" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
197
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.quantity' ) ) ); ?>'.replace('idx', idx)"
198
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Minimum quantity' ) ); ?>"
196
+							<input class="form-control item-quantity" type="number" step="1" min="1" required="required" tabindex="<?= $this->get('tabindex'); ?>"
197
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.quantity'))); ?>'.replace('idx', idx)"
198
+								placeholder="<?= $enc->attr($this->translate('admin', 'Minimum quantity')); ?>"
199 199
 								v-bind:readonly="checkSite('price.siteid', idx)"
200 200
 								v-model="items[idx]['price.quantity']" />
201 201
 						</div>
202 202
 						<div class="col-sm-12 form-text text-muted help-text">
203
-							<?= $enc->html( $this->translate( 'admin', 'Required quantity of articles for block pricing, e.g. one article for $5.00, ten articles for $45.00' ) ); ?>
203
+							<?= $enc->html($this->translate('admin', 'Required quantity of articles for block pricing, e.g. one article for $5.00, ten articles for $45.00')); ?>
204 204
 						</div>
205 205
 					</div>
206 206
 
@@ -209,70 +209,70 @@  discard block
 block discarded – undo
209 209
 
210 210
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
211 211
 					<div class="card-tools-left">
212
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
213
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
212
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
213
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
214 214
 						</div>
215 215
 					</div>
216
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
216
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
217 217
 				</div>
218 218
 
219 219
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
220 220
 
221 221
 					<input type="hidden" v-model="items[idx]['service.lists.type']"
222
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
222
+						v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'service.lists.type'))); ?>'.replace( 'idx', idx )" />
223 223
 
224
-					<?php $listTypes = $this->get( 'priceListTypes', [] ); ?>
225
-					<?php if( count( $listTypes ) > 1 ) : ?>
224
+					<?php $listTypes = $this->get('priceListTypes', []); ?>
225
+					<?php if (count($listTypes) > 1) : ?>
226 226
 						<div class="form-group row mandatory">
227
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
227
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
228 228
 							<div class="col-sm-8">
229
-								<select class="form-control custom-select listitem-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
230
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
229
+								<select class="form-control custom-select listitem-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
230
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'service.lists.typeid'))); ?>'.replace('idx', idx)"
231 231
 									v-bind:readonly="checkSite('service.lists.siteid', idx)"
232 232
 									v-model="items[idx]['service.lists.typeid']" >
233 233
 
234
-									<?php foreach( $this->get( 'priceListTypes', [] ) as $id => $typeItem ) : ?>
235
-										<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['service.lists.typeid'] == '<?= $enc->attr( $id ) ?>'" >
236
-											<?= $enc->html( $typeItem->getLabel() ); ?>
234
+									<?php foreach ($this->get('priceListTypes', []) as $id => $typeItem) : ?>
235
+										<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['service.lists.typeid'] == '<?= $enc->attr($id) ?>'" >
236
+											<?= $enc->html($typeItem->getLabel()); ?>
237 237
 										</option>
238 238
 									<?php endforeach; ?>
239 239
 								</select>
240 240
 							</div>
241 241
 							<div class="col-sm-12 form-text text-muted help-text">
242
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
242
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
243 243
 							</div>
244 244
 						</div>
245 245
 					<?php else : ?>
246 246
 						<input class="listitem-typeid" type="hidden"
247
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
248
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
247
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'service.lists.typeid'))); ?>'.replace('idx', idx)"
248
+							value="<?= $enc->attr(key($listTypes)); ?>"
249 249
 							v-model="items[idx]['service.lists.typeid']" />
250 250
 					<?php endif; ?>
251 251
 
252 252
 					<div class="form-group row optional">
253
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
253
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
254 254
 						<div class="col-sm-8">
255
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
256
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
257
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
255
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
256
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'service.lists.datestart'))); ?>'.replace('idx', idx)"
257
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
258 258
 								v-bind:readonly="checkSite('service.lists.siteid', idx)"
259 259
 								v-model="items[idx]['service.lists.datestart']" />
260 260
 						</div>
261 261
 						<div class="col-sm-12 form-text text-muted help-text">
262
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
262
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
263 263
 						</div>
264 264
 					</div>
265 265
 					<div class="form-group row optional">
266
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
266
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
267 267
 						<div class="col-sm-8">
268
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
269
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'service.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
270
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
268
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
269
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'service.lists.dateend'))); ?>'.replace('idx', idx)"
270
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
271 271
 								v-bind:readonly="checkSite('service.lists.siteid', idx)"
272 272
 								v-model="items[idx]['service.lists.dateend']" />
273 273
 						</div>
274 274
 						<div class="col-sm-12 form-text text-muted help-text">
275
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
275
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
276 276
 						</div>
277 277
 					</div>
278 278
 				</div>
@@ -282,17 +282,17 @@  discard block
 block discarded – undo
282 282
 						<thead>
283 283
 							<tr>
284 284
 								<th>
285
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
285
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
286 286
 									<div class="form-text text-muted help-text">
287
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
287
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
288 288
 									</div>
289 289
 								</th>
290 290
 								<th>
291
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
291
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
292 292
 								</th>
293 293
 								<th class="actions">
294
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
295
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
294
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
295
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
296 296
 										v-bind:readonly="checkSite('service.lists.siteid', idx)"
297 297
 										v-on:click="addConfig(idx)" >
298 298
 									</div>
@@ -305,21 +305,21 @@  discard block
 block discarded – undo
305 305
 								<td>
306 306
 									<input is="auto-complete"
307 307
 										v-model="items[idx]['config']['key'][pos]"
308
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
308
+										v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
309 309
 										v-bind:readonly="checkSite('service.lists.siteid', idx)"
310
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
310
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
311 311
 										v-bind:keys="[]" />
312 312
 								</td>
313 313
 								<td>
314
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
315
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
314
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
315
+										v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
316 316
 										v-bind:readonly="checkSite('service.lists.siteid', idx)"
317 317
 										v-model="items[idx]['config']['val'][pos]" />
318 318
 								</td>
319 319
 								<td class="actions">
320 320
 									<div v-if="!checkSite('service.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
321
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
322
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
321
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
322
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
323 323
 									</div>
324 324
 								</td>
325 325
 							</tr>
@@ -328,14 +328,14 @@  discard block
 block discarded – undo
328 328
 					</table>
329 329
 				</div>
330 330
 
331
-				<?= $this->get( 'priceBody' ); ?>
331
+				<?= $this->get('priceBody'); ?>
332 332
 
333 333
 			</div>
334 334
 		</div>
335 335
 
336 336
 		<div class="card-tools-more">
337
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
338
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
337
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
338
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
339 339
 				v-on:click="addItem('service.lists.')" >
340 340
 			</div>
341 341
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-price-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,9 +151,12 @@  discard block
 block discarded – undo
151 151
 								</select>
152 152
 							</div>
153 153
 						</div>
154
-					<?php else : ?>
154
+					<?php else {
155
+	: ?>
155 156
 						<input class="item-currencyid" type="hidden"
156
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
157
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) );
158
+}
159
+?>'.replace('idx', idx)"
157 160
 							value="<?= $enc->attr( key( $currencies ) ); ?>" />
158 161
 					<?php endif; ?>
159 162
 
@@ -181,9 +184,12 @@  discard block
 block discarded – undo
181 184
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
182 185
 							</div>
183 186
 						</div>
184
-					<?php else : ?>
187
+					<?php else {
188
+	: ?>
185 189
 						<input class="item-typeid" type="hidden"
186
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
190
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) );
191
+}
192
+?>'.replace('idx', idx)"
187 193
 							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
188 194
 					<?php endif; ?>
189 195
 
@@ -236,9 +242,12 @@  discard block
 block discarded – undo
236 242
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
237 243
 							</div>
238 244
 						</div>
239
-					<?php else : ?>
245
+					<?php else {
246
+	: ?>
240 247
 						<input class="listitem-typeid" type="hidden"
241
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
248
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.typeid' ) ) );
249
+}
250
+?>'.replace('idx', idx)"
242 251
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
243 252
 							v-model="items[idx]['attribute.lists.typeid']" />
244 253
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
 	'price.siteid', 'price.typeid', 'price.currencyid', 'price.status', 'price.quantity', 'price.taxrate', 'price.value', 'price.rebate', 'price.costs'
14 14
 ];
15 15
 
16
-$currencies = $this->get( 'priceCurrencies', [] );
16
+$currencies = $this->get('priceCurrencies', []);
17 17
 
18 18
 
19 19
 ?>
20 20
 <div id="price" class="item-price content-block tab-pane fade" role="tablist" aria-labelledby="price">
21 21
 	<div id="item-price-group" role="tablist" aria-multiselectable="true"
22
-		data-items="<?= $enc->attr( json_encode( $this->get( 'priceData', [] ) ) ); ?>"
23
-		data-listtypeid="<?= key( $this->get( 'priceListTypes', [] ) ) ?>"
24
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
22
+		data-items="<?= $enc->attr(json_encode($this->get('priceData', []))); ?>"
23
+		data-listtypeid="<?= key($this->get('priceListTypes', [])) ?>"
24
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
25 25
 		data-siteid="<?= $this->site()->siteid() ?>" >
26 26
 
27 27
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -30,16 +30,16 @@  discard block
 block discarded – undo
30 30
 				v-bind:data-target="'#item-price-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
31 31
 				v-bind:aria-controls="'item-price-group-data-' + idx" aria-expanded="false">
32 32
 				<div class="card-tools-left">
33
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
33
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
34
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
35 35
 					</div>
36 36
 				</div>
37 37
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
38 38
 				&nbsp;
39 39
 				<div class="card-tools-right">
40 40
 					<div v-if="!checkSite('attribute.lists.siteid', idx)"
41
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
42
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
41
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
42
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
43 43
 						v-on:click.stop="removeItem(idx)">
44 44
 					</div>
45 45
 				</div>
@@ -49,60 +49,60 @@  discard block
 block discarded – undo
49 49
 				v-bind:aria-labelledby="'item-price-group-item-' + idx" role="tabpanel" class="card-block collapse row">
50 50
 
51 51
 				<input type="hidden" v-model="items[idx]['price.id']"
52
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.id' ) ) ); ?>'.replace('idx', idx)" />
52
+					v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.id'))); ?>'.replace('idx', idx)" />
53 53
 
54 54
 				<div class="col-xl-6">
55 55
 
56 56
 					<div class="form-group row mandatory">
57
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Tax rate in %' ) ); ?></label>
57
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Tax rate in %')); ?></label>
58 58
 						<div class="col-sm-8">
59
-							<input class="form-control item-taxrate" type="number" step="0.01" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
60
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.taxrate' ) ) ); ?>'.replace('idx', idx)"
61
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Tax rate in %' ) ); ?>"
59
+							<input class="form-control item-taxrate" type="number" step="0.01" required="required" tabindex="<?= $this->get('tabindex'); ?>"
60
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.taxrate'))); ?>'.replace('idx', idx)"
61
+								placeholder="<?= $enc->attr($this->translate('admin', 'Tax rate in %')); ?>"
62 62
 								v-bind:readonly="checkSite('price.siteid', idx)"
63 63
 								v-model="items[idx]['price.taxrate']" />
64 64
 						</div>
65 65
 						<div class="col-sm-12 form-text text-muted help-text">
66
-							<?= $enc->html( $this->translate( 'admin', 'Country specific tax rate to calculate and display the included tax (B2C) or add the tax if required (B2B)' ) ); ?>
66
+							<?= $enc->html($this->translate('admin', 'Country specific tax rate to calculate and display the included tax (B2C) or add the tax if required (B2B)')); ?>
67 67
 						</div>
68 68
 					</div>
69 69
 					<div class="form-group row mandatory">
70
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Actual current price' ) ); ?></label>
70
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Actual current price')); ?></label>
71 71
 						<div class="col-sm-8">
72
-							<input class="form-control item-value" type="number" step="0.01" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
73
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.value' ) ) ); ?>'.replace('idx', idx)"
74
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Actual current price' ) ); ?>"
72
+							<input class="form-control item-value" type="number" step="0.01" required="required" tabindex="<?= $this->get('tabindex'); ?>"
73
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.value'))); ?>'.replace('idx', idx)"
74
+								placeholder="<?= $enc->attr($this->translate('admin', 'Actual current price')); ?>"
75 75
 								v-bind:readonly="checkSite('price.siteid', idx)"
76 76
 								v-model="items[idx]['price.value']" />
77 77
 						</div>
78 78
 						<div class="col-sm-12 form-text text-muted help-text">
79
-							<?= $enc->html( $this->translate( 'admin', 'Actual price customers can buy the article for on the web site' ) ); ?>
79
+							<?= $enc->html($this->translate('admin', 'Actual price customers can buy the article for on the web site')); ?>
80 80
 						</div>
81 81
 					</div>
82 82
 					<div class="form-group row optional">
83
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Substracted rebate amount' ) ); ?></label>
83
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Substracted rebate amount')); ?></label>
84 84
 						<div class="col-sm-8">
85
-							<input class="form-control item-rebate" type="number" step="0.01" tabindex="<?= $this->get( 'tabindex' ); ?>"
86
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.rebate' ) ) ); ?>'.replace('idx', idx)"
87
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Substracted rebate amount' ) ); ?>"
85
+							<input class="form-control item-rebate" type="number" step="0.01" tabindex="<?= $this->get('tabindex'); ?>"
86
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.rebate'))); ?>'.replace('idx', idx)"
87
+								placeholder="<?= $enc->attr($this->translate('admin', 'Substracted rebate amount')); ?>"
88 88
 								v-bind:readonly="checkSite('price.siteid', idx)"
89 89
 								v-model="items[idx]['price.rebate']" />
90 90
 						</div>
91 91
 						<div class="col-sm-12 form-text text-muted help-text">
92
-							<?= $enc->html( $this->translate( 'admin', 'Reduction from the original price, used to calculate the rebate in % and the cross price' ) ); ?>
92
+							<?= $enc->html($this->translate('admin', 'Reduction from the original price, used to calculate the rebate in % and the cross price')); ?>
93 93
 						</div>
94 94
 					</div>
95 95
 					<div class="form-group row optional">
96
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Shipping costs per item' ) ); ?></label>
96
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Shipping costs per item')); ?></label>
97 97
 						<div class="col-sm-8">
98
-							<input class="form-control item-costs" type="number" step="0.01" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.costs' ) ) ); ?>'.replace('idx', idx)"
100
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Shipping costs per item' ) ); ?>"
98
+							<input class="form-control item-costs" type="number" step="0.01" tabindex="<?= $this->get('tabindex'); ?>"
99
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.costs'))); ?>'.replace('idx', idx)"
100
+								placeholder="<?= $enc->attr($this->translate('admin', 'Shipping costs per item')); ?>"
101 101
 								v-bind:readonly="checkSite('price.siteid', idx)"
102 102
 								v-model="items[idx]['price.costs']" />
103 103
 						</div>
104 104
 						<div class="col-sm-12 form-text text-muted help-text">
105
-							<?= $enc->html( $this->translate( 'admin', 'Additional delivery costs for each item, e.g. $20 for one heavy item will be $100 for five items it total' ) ); ?>
105
+							<?= $enc->html($this->translate('admin', 'Additional delivery costs for each item, e.g. $20 for one heavy item will be $100 for five items it total')); ?>
106 106
 						</div>
107 107
 					</div>
108 108
 
@@ -111,43 +111,43 @@  discard block
 block discarded – undo
111 111
 				<div class="col-xl-6">
112 112
 
113 113
 					<div class="form-group row mandatory">
114
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
114
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
115 115
 						<div class="col-sm-8">
116
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
117
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.status' ) ) ); ?>'.replace('idx', idx)"
116
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
117
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.status'))); ?>'.replace('idx', idx)"
118 118
 								v-bind:readonly="checkSite('price.siteid', idx)"
119 119
 								v-model="items[idx]['price.status']" >
120 120
 								<option value="1" v-bind:selected="items[idx]['price.status'] == 1" >
121
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
121
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
122 122
 								</option>
123 123
 								<option value="0" v-bind:selected="items[idx]['price.status'] == 0" >
124
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
124
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
125 125
 								</option>
126 126
 								<option value="-1" v-bind:selected="items[idx]['price.status'] == -1" >
127
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
127
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
128 128
 								</option>
129 129
 								<option value="-2" v-bind:selected="items[idx]['price.status'] == -2" >
130
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
130
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
131 131
 								</option>
132 132
 							</select>
133 133
 						</div>
134 134
 					</div>
135 135
 
136
-					<?php if( count( $currencies ) > 1 ) : ?>
136
+					<?php if (count($currencies) > 1) : ?>
137 137
 						<div class="form-group row mandatory">
138
-							<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Currency' ) ); ?></label>
138
+							<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Currency')); ?></label>
139 139
 							<div class="col-sm-8">
140
-								<select class="form-control custom-select item-currencyid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
141
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
140
+								<select class="form-control custom-select item-currencyid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
141
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.currencyid'))); ?>'.replace('idx', idx)"
142 142
 									v-bind:readonly="checkSite('price.siteid', idx)"
143 143
 									v-model="items[idx]['price.currencyid']" >
144 144
 									<option value="" disabled>
145
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
145
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
146 146
 									</option>
147 147
 
148
-									<?php foreach( $currencies as $currencyId => $currencyItem ) : ?>
149
-										<option value="<?= $enc->attr( $currencyItem->getCode() ); ?>" v-bind:selected="items[idx]['price.currencyid'] == '<?= $enc->attr( $currencyId ) ?>'" >
150
-											<?= $enc->html( $currencyItem->getCode() ); ?>
148
+									<?php foreach ($currencies as $currencyId => $currencyItem) : ?>
149
+										<option value="<?= $enc->attr($currencyItem->getCode()); ?>" v-bind:selected="items[idx]['price.currencyid'] == '<?= $enc->attr($currencyId) ?>'" >
150
+											<?= $enc->html($currencyItem->getCode()); ?>
151 151
 										</option>
152 152
 									<?php endforeach; ?>
153 153
 
@@ -156,51 +156,51 @@  discard block
 block discarded – undo
156 156
 						</div>
157 157
 					<?php else : ?>
158 158
 						<input class="item-currencyid" type="hidden"
159
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
160
-							value="<?= $enc->attr( key( $currencies ) ); ?>" />
159
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.currencyid'))); ?>'.replace('idx', idx)"
160
+							value="<?= $enc->attr(key($currencies)); ?>" />
161 161
 					<?php endif; ?>
162 162
 
163
-					<?php $priceTypes = $this->get( 'priceTypes', [] ); ?>
164
-					<?php if( count( $priceTypes ) > 1 ) : ?>
163
+					<?php $priceTypes = $this->get('priceTypes', []); ?>
164
+					<?php if (count($priceTypes) > 1) : ?>
165 165
 						<div class="form-group row mandatory">
166
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
166
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
167 167
 							<div class="col-sm-8">
168
-								<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
169
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
168
+								<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
169
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.typeid'))); ?>'.replace('idx', idx)"
170 170
 									v-bind:readonly="checkSite('price.siteid', idx)"
171 171
 									v-model="items[idx]['price.typeid']" >
172 172
 									<option value="">
173
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
173
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
174 174
 									</option>
175 175
 
176
-									<?php foreach( (array) $priceTypes as $typeId => $typeItem ) : ?>
177
-										<option value="<?= $enc->attr( $typeId ); ?>" v-bind:selected="items[idx]['price.typeid'] == '<?= $enc->attr( $typeId ) ?>'" >
178
-											<?= $enc->html( $typeItem->getLabel() ); ?>
176
+									<?php foreach ((array) $priceTypes as $typeId => $typeItem) : ?>
177
+										<option value="<?= $enc->attr($typeId); ?>" v-bind:selected="items[idx]['price.typeid'] == '<?= $enc->attr($typeId) ?>'" >
178
+											<?= $enc->html($typeItem->getLabel()); ?>
179 179
 										</option>
180 180
 									<?php endforeach; ?>
181 181
 								</select>
182 182
 							</div>
183 183
 							<div class="col-sm-12 form-text text-muted help-text">
184
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
184
+								<?= $enc->html($this->translate('admin', 'Types for additional prices like per one lb/kg or per month')); ?>
185 185
 							</div>
186 186
 						</div>
187 187
 					<?php else : ?>
188 188
 						<input class="item-typeid" type="hidden"
189
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
190
-							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
189
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.typeid'))); ?>'.replace('idx', idx)"
190
+							value="<?= $enc->attr(key($priceTypes)); ?>" />
191 191
 					<?php endif; ?>
192 192
 
193 193
 					<div class="form-group row mandatory">
194
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Minimum quantity' ) ); ?></label>
194
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Minimum quantity')); ?></label>
195 195
 						<div class="col-sm-8">
196
-							<input class="form-control item-quantity" type="number" step="1" min="1" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
197
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.quantity' ) ) ); ?>'.replace('idx', idx)"
198
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Minimum quantity' ) ); ?>"
196
+							<input class="form-control item-quantity" type="number" step="1" min="1" required="required" tabindex="<?= $this->get('tabindex'); ?>"
197
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.quantity'))); ?>'.replace('idx', idx)"
198
+								placeholder="<?= $enc->attr($this->translate('admin', 'Minimum quantity')); ?>"
199 199
 								v-bind:readonly="checkSite('price.siteid', idx)"
200 200
 								v-model="items[idx]['price.quantity']" />
201 201
 						</div>
202 202
 						<div class="col-sm-12 form-text text-muted help-text">
203
-							<?= $enc->html( $this->translate( 'admin', 'Required quantity of articles for block pricing, e.g. one article for $5.00, ten articles for $45.00' ) ); ?>
203
+							<?= $enc->html($this->translate('admin', 'Required quantity of articles for block pricing, e.g. one article for $5.00, ten articles for $45.00')); ?>
204 204
 						</div>
205 205
 					</div>
206 206
 
@@ -209,70 +209,70 @@  discard block
 block discarded – undo
209 209
 
210 210
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
211 211
 					<div class="card-tools-left">
212
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
213
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
212
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
213
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
214 214
 						</div>
215 215
 					</div>
216
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
216
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
217 217
 				</div>
218 218
 
219 219
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
220 220
 
221 221
 					<input type="hidden" v-model="items[idx]['attribute.lists.type']"
222
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
222
+						v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.type'))); ?>'.replace( 'idx', idx )" />
223 223
 
224
-					<?php $listTypes = $this->get( 'priceListTypes', [] ); ?>
225
-					<?php if( count( $listTypes ) > 1 ) : ?>
224
+					<?php $listTypes = $this->get('priceListTypes', []); ?>
225
+					<?php if (count($listTypes) > 1) : ?>
226 226
 						<div class="form-group row mandatory">
227
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
227
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
228 228
 							<div class="col-sm-8">
229
-								<select class="form-control custom-select listitem-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
230
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
229
+								<select class="form-control custom-select listitem-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
230
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.typeid'))); ?>'.replace('idx', idx)"
231 231
 									v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
232 232
 									v-model="items[idx]['attribute.lists.typeid']" >
233 233
 
234
-									<?php foreach( $this->get( 'priceListTypes', [] ) as $id => $typeItem ) : ?>
235
-										<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['attribute.lists.typeid'] == '<?= $enc->attr( $id ) ?>'" >
236
-											<?= $enc->html( $typeItem->getLabel() ); ?>
234
+									<?php foreach ($this->get('priceListTypes', []) as $id => $typeItem) : ?>
235
+										<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['attribute.lists.typeid'] == '<?= $enc->attr($id) ?>'" >
236
+											<?= $enc->html($typeItem->getLabel()); ?>
237 237
 										</option>
238 238
 									<?php endforeach; ?>
239 239
 								</select>
240 240
 							</div>
241 241
 							<div class="col-sm-12 form-text text-muted help-text">
242
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
242
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
243 243
 							</div>
244 244
 						</div>
245 245
 					<?php else : ?>
246 246
 						<input class="listitem-typeid" type="hidden"
247
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
248
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
247
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.typeid'))); ?>'.replace('idx', idx)"
248
+							value="<?= $enc->attr(key($listTypes)); ?>"
249 249
 							v-model="items[idx]['attribute.lists.typeid']" />
250 250
 					<?php endif; ?>
251 251
 
252 252
 					<div class="form-group row optional">
253
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
253
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
254 254
 						<div class="col-sm-8">
255
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
256
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
257
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
255
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
256
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.datestart'))); ?>'.replace('idx', idx)"
257
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
258 258
 								v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
259 259
 								v-model="items[idx]['attribute.lists.datestart']" />
260 260
 						</div>
261 261
 						<div class="col-sm-12 form-text text-muted help-text">
262
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
262
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
263 263
 						</div>
264 264
 					</div>
265 265
 					<div class="form-group row optional">
266
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
266
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
267 267
 						<div class="col-sm-8">
268
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
269
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
270
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
268
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
269
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.dateend'))); ?>'.replace('idx', idx)"
270
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
271 271
 								v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
272 272
 								v-model="items[idx]['attribute.lists.dateend']" />
273 273
 						</div>
274 274
 						<div class="col-sm-12 form-text text-muted help-text">
275
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
275
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
276 276
 						</div>
277 277
 					</div>
278 278
 				</div>
@@ -282,17 +282,17 @@  discard block
 block discarded – undo
282 282
 						<thead>
283 283
 							<tr>
284 284
 								<th>
285
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
285
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
286 286
 									<div class="form-text text-muted help-text">
287
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
287
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
288 288
 									</div>
289 289
 								</th>
290 290
 								<th>
291
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
291
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
292 292
 								</th>
293 293
 								<th class="actions">
294
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
295
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
294
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
295
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
296 296
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
297 297
 										v-on:click="addConfig(idx)" >
298 298
 									</div>
@@ -305,21 +305,21 @@  discard block
 block discarded – undo
305 305
 								<td>
306 306
 									<input is="auto-complete"
307 307
 										v-model="items[idx]['config']['key'][pos]"
308
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
308
+										v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
309 309
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
310
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
310
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
311 311
 										v-bind:keys="[]" />
312 312
 								</td>
313 313
 								<td>
314
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
315
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
314
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
315
+										v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
316 316
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
317 317
 										v-model="items[idx]['config']['val'][pos]" />
318 318
 								</td>
319 319
 								<td class="actions">
320 320
 									<div v-if="!checkSite('attribute.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
321
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
322
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
321
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
322
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
323 323
 									</div>
324 324
 								</td>
325 325
 							</tr>
@@ -328,14 +328,14 @@  discard block
 block discarded – undo
328 328
 					</table>
329 329
 				</div>
330 330
 
331
-				<?= $this->get( 'priceBody' ); ?>
331
+				<?= $this->get('priceBody'); ?>
332 332
 
333 333
 			</div>
334 334
 		</div>
335 335
 
336 336
 		<div class="card-tools-more">
337
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
338
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
337
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
338
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
339 339
 				v-on:click="addItem('attribute.lists.')" >
340 340
 			</div>
341 341
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-price-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,9 +151,12 @@  discard block
 block discarded – undo
151 151
 								</select>
152 152
 							</div>
153 153
 						</div>
154
-					<?php else : ?>
154
+					<?php else {
155
+	: ?>
155 156
 						<input class="item-currencyid" type="hidden"
156
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
157
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) );
158
+}
159
+?>'.replace('idx', idx)"
157 160
 							value="<?= $enc->attr( key( $currencies ) ); ?>" />
158 161
 					<?php endif; ?>
159 162
 
@@ -181,9 +184,12 @@  discard block
 block discarded – undo
181 184
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
182 185
 							</div>
183 186
 						</div>
184
-					<?php else : ?>
187
+					<?php else {
188
+	: ?>
185 189
 						<input class="item-typeid" type="hidden"
186
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
190
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) );
191
+}
192
+?>'.replace('idx', idx)"
187 193
 							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
188 194
 					<?php endif; ?>
189 195
 
@@ -236,9 +242,12 @@  discard block
 block discarded – undo
236 242
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
237 243
 							</div>
238 244
 						</div>
239
-					<?php else : ?>
245
+					<?php else {
246
+	: ?>
240 247
 						<input class="listitem-typeid" type="hidden"
241
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
248
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.typeid' ) ) );
249
+}
250
+?>'.replace('idx', idx)"
242 251
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
243 252
 							v-model="items[idx]['product.lists.typeid']" />
244 253
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
 	'price.siteid', 'price.typeid', 'price.currencyid', 'price.status', 'price.quantity', 'price.taxrate', 'price.value', 'price.rebate', 'price.costs'
14 14
 ];
15 15
 
16
-$currencies = $this->get( 'priceCurrencies', [] );
16
+$currencies = $this->get('priceCurrencies', []);
17 17
 
18 18
 
19 19
 ?>
20 20
 <div id="price" class="item-price content-block tab-pane fade" role="tablist" aria-labelledby="price">
21 21
 	<div id="item-price-group" role="tablist" aria-multiselectable="true"
22
-		data-items="<?= $enc->attr( json_encode( $this->get( 'priceData', [] ) ) ); ?>"
23
-		data-listtypeid="<?= key( $this->get( 'priceListTypes', [] ) ) ?>"
24
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
22
+		data-items="<?= $enc->attr(json_encode($this->get('priceData', []))); ?>"
23
+		data-listtypeid="<?= key($this->get('priceListTypes', [])) ?>"
24
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
25 25
 		data-siteid="<?= $this->site()->siteid() ?>" >
26 26
 
27 27
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -30,16 +30,16 @@  discard block
 block discarded – undo
30 30
 				v-bind:data-target="'#item-price-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
31 31
 				v-bind:aria-controls="'item-price-group-data-' + idx" aria-expanded="false">
32 32
 				<div class="card-tools-left">
33
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
33
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
34
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
35 35
 					</div>
36 36
 				</div>
37 37
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
38 38
 				&nbsp;
39 39
 				<div class="card-tools-right">
40 40
 					<div v-if="!checkSite('product.lists.siteid', idx)"
41
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
42
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
41
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
42
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
43 43
 						v-on:click.stop="removeItem(idx)">
44 44
 					</div>
45 45
 				</div>
@@ -49,60 +49,60 @@  discard block
 block discarded – undo
49 49
 				v-bind:aria-labelledby="'item-price-group-item-' + idx" role="tabpanel" class="card-block collapse row">
50 50
 
51 51
 				<input type="hidden" v-model="items[idx]['price.id']"
52
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.id' ) ) ); ?>'.replace('idx', idx)" />
52
+					v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.id'))); ?>'.replace('idx', idx)" />
53 53
 
54 54
 				<div class="col-xl-6">
55 55
 
56 56
 					<div class="form-group row mandatory">
57
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Tax rate in %' ) ); ?></label>
57
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Tax rate in %')); ?></label>
58 58
 						<div class="col-sm-8">
59
-							<input class="form-control item-taxrate" type="number" step="0.01" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
60
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.taxrate' ) ) ); ?>'.replace('idx', idx)"
61
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Tax rate in %' ) ); ?>"
59
+							<input class="form-control item-taxrate" type="number" step="0.01" required="required" tabindex="<?= $this->get('tabindex'); ?>"
60
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.taxrate'))); ?>'.replace('idx', idx)"
61
+								placeholder="<?= $enc->attr($this->translate('admin', 'Tax rate in %')); ?>"
62 62
 								v-bind:readonly="checkSite('price.siteid', idx)"
63 63
 								v-model="items[idx]['price.taxrate']" />
64 64
 						</div>
65 65
 						<div class="col-sm-12 form-text text-muted help-text">
66
-							<?= $enc->html( $this->translate( 'admin', 'Country specific tax rate to calculate and display the included tax (B2C) or add the tax if required (B2B)' ) ); ?>
66
+							<?= $enc->html($this->translate('admin', 'Country specific tax rate to calculate and display the included tax (B2C) or add the tax if required (B2B)')); ?>
67 67
 						</div>
68 68
 					</div>
69 69
 					<div class="form-group row mandatory">
70
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Actual current price' ) ); ?></label>
70
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Actual current price')); ?></label>
71 71
 						<div class="col-sm-8">
72
-							<input class="form-control item-value" type="number" step="0.01" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
73
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.value' ) ) ); ?>'.replace('idx', idx)"
74
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Actual current price' ) ); ?>"
72
+							<input class="form-control item-value" type="number" step="0.01" required="required" tabindex="<?= $this->get('tabindex'); ?>"
73
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.value'))); ?>'.replace('idx', idx)"
74
+								placeholder="<?= $enc->attr($this->translate('admin', 'Actual current price')); ?>"
75 75
 								v-bind:readonly="checkSite('price.siteid', idx)"
76 76
 								v-model="items[idx]['price.value']" />
77 77
 						</div>
78 78
 						<div class="col-sm-12 form-text text-muted help-text">
79
-							<?= $enc->html( $this->translate( 'admin', 'Actual price customers can buy the article for on the web site' ) ); ?>
79
+							<?= $enc->html($this->translate('admin', 'Actual price customers can buy the article for on the web site')); ?>
80 80
 						</div>
81 81
 					</div>
82 82
 					<div class="form-group row optional">
83
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Substracted rebate amount' ) ); ?></label>
83
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Substracted rebate amount')); ?></label>
84 84
 						<div class="col-sm-8">
85
-							<input class="form-control item-rebate" type="number" step="0.01" tabindex="<?= $this->get( 'tabindex' ); ?>"
86
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.rebate' ) ) ); ?>'.replace('idx', idx)"
87
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Substracted rebate amount' ) ); ?>"
85
+							<input class="form-control item-rebate" type="number" step="0.01" tabindex="<?= $this->get('tabindex'); ?>"
86
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.rebate'))); ?>'.replace('idx', idx)"
87
+								placeholder="<?= $enc->attr($this->translate('admin', 'Substracted rebate amount')); ?>"
88 88
 								v-bind:readonly="checkSite('price.siteid', idx)"
89 89
 								v-model="items[idx]['price.rebate']" />
90 90
 						</div>
91 91
 						<div class="col-sm-12 form-text text-muted help-text">
92
-							<?= $enc->html( $this->translate( 'admin', 'Reduction from the original price, used to calculate the rebate in % and the cross price' ) ); ?>
92
+							<?= $enc->html($this->translate('admin', 'Reduction from the original price, used to calculate the rebate in % and the cross price')); ?>
93 93
 						</div>
94 94
 					</div>
95 95
 					<div class="form-group row optional">
96
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Shipping costs per item' ) ); ?></label>
96
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Shipping costs per item')); ?></label>
97 97
 						<div class="col-sm-8">
98
-							<input class="form-control item-costs" type="number" step="0.01" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.costs' ) ) ); ?>'.replace('idx', idx)"
100
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Shipping costs per item' ) ); ?>"
98
+							<input class="form-control item-costs" type="number" step="0.01" tabindex="<?= $this->get('tabindex'); ?>"
99
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.costs'))); ?>'.replace('idx', idx)"
100
+								placeholder="<?= $enc->attr($this->translate('admin', 'Shipping costs per item')); ?>"
101 101
 								v-bind:readonly="checkSite('price.siteid', idx)"
102 102
 								v-model="items[idx]['price.costs']" />
103 103
 						</div>
104 104
 						<div class="col-sm-12 form-text text-muted help-text">
105
-							<?= $enc->html( $this->translate( 'admin', 'Additional delivery costs for each item, e.g. $20 for one heavy item will be $100 for five items it total' ) ); ?>
105
+							<?= $enc->html($this->translate('admin', 'Additional delivery costs for each item, e.g. $20 for one heavy item will be $100 for five items it total')); ?>
106 106
 						</div>
107 107
 					</div>
108 108
 
@@ -111,43 +111,43 @@  discard block
 block discarded – undo
111 111
 				<div class="col-xl-6">
112 112
 
113 113
 					<div class="form-group row mandatory">
114
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
114
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
115 115
 						<div class="col-sm-8">
116
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
117
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.status' ) ) ); ?>'.replace('idx', idx)"
116
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
117
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.status'))); ?>'.replace('idx', idx)"
118 118
 								v-bind:readonly="checkSite('price.siteid', idx)"
119 119
 								v-model="items[idx]['price.status']" >
120 120
 								<option value="1" v-bind:selected="items[idx]['price.status'] == 1" >
121
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
121
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
122 122
 								</option>
123 123
 								<option value="0" v-bind:selected="items[idx]['price.status'] == 0" >
124
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
124
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
125 125
 								</option>
126 126
 								<option value="-1" v-bind:selected="items[idx]['price.status'] == -1" >
127
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
127
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
128 128
 								</option>
129 129
 								<option value="-2" v-bind:selected="items[idx]['price.status'] == -2" >
130
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
130
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
131 131
 								</option>
132 132
 							</select>
133 133
 						</div>
134 134
 					</div>
135 135
 
136
-					<?php if( count( $currencies ) > 1 ) : ?>
136
+					<?php if (count($currencies) > 1) : ?>
137 137
 						<div class="form-group row mandatory">
138
-							<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Currency' ) ); ?></label>
138
+							<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Currency')); ?></label>
139 139
 							<div class="col-sm-8">
140
-								<select class="form-control custom-select item-currencyid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
141
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
140
+								<select class="form-control custom-select item-currencyid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
141
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.currencyid'))); ?>'.replace('idx', idx)"
142 142
 									v-bind:readonly="checkSite('price.siteid', idx)"
143 143
 									v-model="items[idx]['price.currencyid']" >
144 144
 									<option value="" disabled>
145
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
145
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
146 146
 									</option>
147 147
 
148
-									<?php foreach( $currencies as $currencyId => $currencyItem ) : ?>
149
-										<option value="<?= $enc->attr( $currencyItem->getCode() ); ?>" v-bind:selected="items[idx]['price.currencyid'] == '<?= $enc->attr( $currencyId ) ?>'" >
150
-											<?= $enc->html( $currencyItem->getCode() ); ?>
148
+									<?php foreach ($currencies as $currencyId => $currencyItem) : ?>
149
+										<option value="<?= $enc->attr($currencyItem->getCode()); ?>" v-bind:selected="items[idx]['price.currencyid'] == '<?= $enc->attr($currencyId) ?>'" >
150
+											<?= $enc->html($currencyItem->getCode()); ?>
151 151
 										</option>
152 152
 									<?php endforeach; ?>
153 153
 
@@ -156,51 +156,51 @@  discard block
 block discarded – undo
156 156
 						</div>
157 157
 					<?php else : ?>
158 158
 						<input class="item-currencyid" type="hidden"
159
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
160
-							value="<?= $enc->attr( key( $currencies ) ); ?>" />
159
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.currencyid'))); ?>'.replace('idx', idx)"
160
+							value="<?= $enc->attr(key($currencies)); ?>" />
161 161
 					<?php endif; ?>
162 162
 
163
-					<?php $priceTypes = $this->get( 'priceTypes', [] ); ?>
164
-					<?php if( count( $priceTypes ) > 1 ) : ?>
163
+					<?php $priceTypes = $this->get('priceTypes', []); ?>
164
+					<?php if (count($priceTypes) > 1) : ?>
165 165
 						<div class="form-group row mandatory">
166
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
166
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
167 167
 							<div class="col-sm-8">
168
-								<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
169
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
168
+								<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
169
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.typeid'))); ?>'.replace('idx', idx)"
170 170
 									v-bind:readonly="checkSite('price.siteid', idx)"
171 171
 									v-model="items[idx]['price.typeid']" >
172 172
 									<option value="">
173
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
173
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
174 174
 									</option>
175 175
 
176
-									<?php foreach( (array) $priceTypes as $typeId => $typeItem ) : ?>
177
-										<option value="<?= $enc->attr( $typeId ); ?>" v-bind:selected="items[idx]['price.typeid'] == '<?= $enc->attr( $typeId ) ?>'" >
178
-											<?= $enc->html( $typeItem->getLabel() ); ?>
176
+									<?php foreach ((array) $priceTypes as $typeId => $typeItem) : ?>
177
+										<option value="<?= $enc->attr($typeId); ?>" v-bind:selected="items[idx]['price.typeid'] == '<?= $enc->attr($typeId) ?>'" >
178
+											<?= $enc->html($typeItem->getLabel()); ?>
179 179
 										</option>
180 180
 									<?php endforeach; ?>
181 181
 								</select>
182 182
 							</div>
183 183
 							<div class="col-sm-12 form-text text-muted help-text">
184
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
184
+								<?= $enc->html($this->translate('admin', 'Types for additional prices like per one lb/kg or per month')); ?>
185 185
 							</div>
186 186
 						</div>
187 187
 					<?php else : ?>
188 188
 						<input class="item-typeid" type="hidden"
189
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.typeid' ) ) ); ?>'.replace('idx', idx)"
190
-							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
189
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.typeid'))); ?>'.replace('idx', idx)"
190
+							value="<?= $enc->attr(key($priceTypes)); ?>" />
191 191
 					<?php endif; ?>
192 192
 
193 193
 					<div class="form-group row mandatory">
194
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Minimum quantity' ) ); ?></label>
194
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Minimum quantity')); ?></label>
195 195
 						<div class="col-sm-8">
196
-							<input class="form-control item-quantity" type="number" step="1" min="1" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
197
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.quantity' ) ) ); ?>'.replace('idx', idx)"
198
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Minimum quantity' ) ); ?>"
196
+							<input class="form-control item-quantity" type="number" step="1" min="1" required="required" tabindex="<?= $this->get('tabindex'); ?>"
197
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.quantity'))); ?>'.replace('idx', idx)"
198
+								placeholder="<?= $enc->attr($this->translate('admin', 'Minimum quantity')); ?>"
199 199
 								v-bind:readonly="checkSite('price.siteid', idx)"
200 200
 								v-model="items[idx]['price.quantity']" />
201 201
 						</div>
202 202
 						<div class="col-sm-12 form-text text-muted help-text">
203
-							<?= $enc->html( $this->translate( 'admin', 'Required quantity of articles for block pricing, e.g. one article for $5.00, ten articles for $45.00' ) ); ?>
203
+							<?= $enc->html($this->translate('admin', 'Required quantity of articles for block pricing, e.g. one article for $5.00, ten articles for $45.00')); ?>
204 204
 						</div>
205 205
 					</div>
206 206
 
@@ -209,70 +209,70 @@  discard block
 block discarded – undo
209 209
 
210 210
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
211 211
 					<div class="card-tools-left">
212
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
213
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
212
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
213
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
214 214
 						</div>
215 215
 					</div>
216
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
216
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
217 217
 				</div>
218 218
 
219 219
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
220 220
 
221 221
 					<input type="hidden" v-model="items[idx]['product.lists.type']"
222
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
222
+						v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'product.lists.type'))); ?>'.replace( 'idx', idx )" />
223 223
 
224
-					<?php $listTypes = $this->get( 'priceListTypes', [] ); ?>
225
-					<?php if( count( $listTypes ) > 1 ) : ?>
224
+					<?php $listTypes = $this->get('priceListTypes', []); ?>
225
+					<?php if (count($listTypes) > 1) : ?>
226 226
 						<div class="form-group row mandatory">
227
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
227
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
228 228
 							<div class="col-sm-8">
229
-								<select class="form-control custom-select listitem-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
230
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
229
+								<select class="form-control custom-select listitem-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
230
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'product.lists.typeid'))); ?>'.replace('idx', idx)"
231 231
 									v-bind:readonly="checkSite('product.lists.siteid', idx)"
232 232
 									v-model="items[idx]['product.lists.typeid']" >
233 233
 
234
-									<?php foreach( $this->get( 'priceListTypes', [] ) as $id => $typeItem ) : ?>
235
-										<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['product.lists.typeid'] == '<?= $enc->attr( $id ) ?>'" >
236
-											<?= $enc->html( $typeItem->getLabel() ); ?>
234
+									<?php foreach ($this->get('priceListTypes', []) as $id => $typeItem) : ?>
235
+										<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['product.lists.typeid'] == '<?= $enc->attr($id) ?>'" >
236
+											<?= $enc->html($typeItem->getLabel()); ?>
237 237
 										</option>
238 238
 									<?php endforeach; ?>
239 239
 								</select>
240 240
 							</div>
241 241
 							<div class="col-sm-12 form-text text-muted help-text">
242
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
242
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
243 243
 							</div>
244 244
 						</div>
245 245
 					<?php else : ?>
246 246
 						<input class="listitem-typeid" type="hidden"
247
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.typeid' ) ) ); ?>'.replace('idx', idx)"
248
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
247
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'product.lists.typeid'))); ?>'.replace('idx', idx)"
248
+							value="<?= $enc->attr(key($listTypes)); ?>"
249 249
 							v-model="items[idx]['product.lists.typeid']" />
250 250
 					<?php endif; ?>
251 251
 
252 252
 					<div class="form-group row optional">
253
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
253
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
254 254
 						<div class="col-sm-8">
255
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
256
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
257
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
255
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
256
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'product.lists.datestart'))); ?>'.replace('idx', idx)"
257
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
258 258
 								v-bind:readonly="checkSite('product.lists.siteid', idx)"
259 259
 								v-model="items[idx]['product.lists.datestart']" />
260 260
 						</div>
261 261
 						<div class="col-sm-12 form-text text-muted help-text">
262
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
262
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
263 263
 						</div>
264 264
 					</div>
265 265
 					<div class="form-group row optional">
266
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
266
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
267 267
 						<div class="col-sm-8">
268
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
269
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'product.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
270
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
268
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
269
+								v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'product.lists.dateend'))); ?>'.replace('idx', idx)"
270
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
271 271
 								v-bind:readonly="checkSite('product.lists.siteid', idx)"
272 272
 								v-model="items[idx]['product.lists.dateend']" />
273 273
 						</div>
274 274
 						<div class="col-sm-12 form-text text-muted help-text">
275
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
275
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
276 276
 						</div>
277 277
 					</div>
278 278
 				</div>
@@ -282,17 +282,17 @@  discard block
 block discarded – undo
282 282
 						<thead>
283 283
 							<tr>
284 284
 								<th>
285
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
285
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
286 286
 									<div class="form-text text-muted help-text">
287
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
287
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
288 288
 									</div>
289 289
 								</th>
290 290
 								<th>
291
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
291
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
292 292
 								</th>
293 293
 								<th class="actions">
294
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
295
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
294
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
295
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
296 296
 										v-bind:readonly="checkSite('product.lists.siteid', idx)"
297 297
 										v-on:click="addConfig(idx)" >
298 298
 									</div>
@@ -305,21 +305,21 @@  discard block
 block discarded – undo
305 305
 								<td>
306 306
 									<input is="auto-complete"
307 307
 										v-model="items[idx]['config']['key'][pos]"
308
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
308
+										v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
309 309
 										v-bind:readonly="checkSite('product.lists.siteid', idx)"
310
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
310
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
311 311
 										v-bind:keys="[]" />
312 312
 								</td>
313 313
 								<td>
314
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
315
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
314
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
315
+										v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
316 316
 										v-bind:readonly="checkSite('product.lists.siteid', idx)"
317 317
 										v-model="items[idx]['config']['val'][pos]" />
318 318
 								</td>
319 319
 								<td class="actions">
320 320
 									<div v-if="!checkSite('product.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
321
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
322
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
321
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
322
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
323 323
 									</div>
324 324
 								</td>
325 325
 							</tr>
@@ -328,14 +328,14 @@  discard block
 block discarded – undo
328 328
 					</table>
329 329
 				</div>
330 330
 
331
-				<?= $this->get( 'priceBody' ); ?>
331
+				<?= $this->get('priceBody'); ?>
332 332
 
333 333
 			</div>
334 334
 		</div>
335 335
 
336 336
 		<div class="card-tools-more">
337
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
338
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
337
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
338
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
339 339
 				v-on:click="addItem('product.lists.')" >
340 340
 			</div>
341 341
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Dashboard/Order/Standard.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 		$view = $this->getView();
44 44
 		$view->orderBody = '';
45 45
 
46
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'locale/currency' );
47
-		$view->orderCurrencyItems = $manager->searchItems( $manager->createSearch( true ) );
46
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'locale/currency');
47
+		$view->orderCurrencyItems = $manager->searchItems($manager->createSearch(true));
48 48
 
49
-		foreach( $this->getSubClients() as $client ) {
49
+		foreach ($this->getSubClients() as $client) {
50 50
 			$view->orderBody .= $client->search();
51 51
 		}
52 52
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		$tplconf = 'admin/jqadm/dashboard/order/template-list';
73 73
 		$default = 'dashboard/list-order-standard.php';
74 74
 
75
-		return $view->render( $view->config( $tplconf, $default ) );
75
+		return $view->render($view->config($tplconf, $default));
76 76
 	}
77 77
 
78 78
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 * @param string|null $name Name of the sub-client (Default if null)
84 84
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
85 85
 	 */
86
-	public function getSubClient( $type, $name = null )
86
+	public function getSubClient($type, $name = null)
87 87
 	{
88 88
 		/** admin/jqadm/dashboard/order/decorators/excludes
89 89
 		 * Excludes decorators added by the "common" option from the dashboard JQAdm client
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		 * @see admin/jqadm/dashboard/order/decorators/excludes
159 159
 		 * @see admin/jqadm/dashboard/order/decorators/global
160 160
 		 */
161
-		return $this->createSubClient( 'dashboard/order/' . $type, $name );
161
+		return $this->createSubClient('dashboard/order/' . $type, $name);
162 162
 	}
163 163
 
164 164
 
@@ -202,6 +202,6 @@  discard block
 block discarded – undo
202 202
 		 * @since 2018.01
203 203
 		 * @category Developer
204 204
 		 */
205
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/standard/subparts', [] );
205
+		return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/standard/subparts', []);
206 206
 	}
207 207
 }
Please login to merge, or discard this patch.
admin/jqadm/templates/type/service/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/service/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['service.type.domain', 'service.type.status', 'service.type.code', 'service.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/service/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/service/fields', $default );
56
+$default = $this->config('admin/jqadm/type/service/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/service/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
-	'service.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'service.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'service.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'service.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'service.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'service.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'service.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'service.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'service.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'service.type.id' => $this->translate('admin', 'ID'),
69
+	'service.type.domain' => $this->translate('admin', 'Domain'),
70
+	'service.type.status' => $this->translate('admin', 'Status'),
71
+	'service.type.code' => $this->translate('admin', 'Code'),
72
+	'service.type.label' => $this->translate('admin', 'Label'),
73
+	'service.type.position' => $this->translate('admin', 'Position'),
74
+	'service.type.ctime' => $this->translate('admin', 'Created'),
75
+	'service.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'service.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', 'Service Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Service 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/service/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/service/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/service/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/service/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-service-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-service-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/service/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/service/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/service/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/service/filter', []),
139 139
 					'data' => [
140 140
 						'service.type.id' => ['op' => '=='],
141 141
 						'service.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'service' => $this->translate( 'admin', 'service' ),
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
+							'service' => $this->translate('admin', 'service'),
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
 						'service.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
 						'service.type.code' => [],
159 159
 						'service.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( 'service.type.id', $fields ) ) : ?>
172
-						<td class="service-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('service.type.id', $fields)) : ?>
172
+						<td class="service-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'service.type.domain', $fields ) ) : ?>
175
-						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('service.type.domain', $fields)) : ?>
175
+						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'service.type.status', $fields ) ) : ?>
178
-						<td class="service-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('service.type.status', $fields)) : ?>
178
+						<td class="service-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( 'service.type.code', $fields ) ) : ?>
181
-						<td class="service-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('service.type.code', $fields)) : ?>
181
+						<td class="service-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( 'service.type.label', $fields ) ) : ?>
184
-						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('service.type.label', $fields)) : ?>
184
+						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'service.type.position', $fields ) ) : ?>
187
-						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('service.type.position', $fields)) : ?>
187
+						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'service.type.ctime', $fields ) ) : ?>
190
-						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('service.type.ctime', $fields)) : ?>
190
+						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'service.type.mtime', $fields ) ) : ?>
193
-						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('service.type.mtime', $fields)) : ?>
193
+						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'service.type.editor', $fields ) ) : ?>
196
-						<td class="service-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('service.type.editor', $fields)) : ?>
196
+						<td class="service-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/service/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/service/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/service/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/service/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['service.lists.type.domain', 'service.lists.type.status', 'service.lists.type.code', 'service.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/service/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/service/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/service/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/service/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
-	'service.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'service.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'service.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'service.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'service.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'service.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'service.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'service.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'service.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'service.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'service.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'service.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'service.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'service.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'service.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'service.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'service.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'service.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', 'Service Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Service 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/service/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/service/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/service/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/service/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-service-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-service-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/service/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/service/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/service/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/service/lists/filter', []),
139 139
 					'data' => [
140 140
 						'service.lists.type.id' => ['op' => '=='],
141 141
 						'service.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
 						'service.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
 						'service.lists.type.code' => [],
159 159
 						'service.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( 'service.lists.type.id', $fields ) ) : ?>
172
-						<td class="service-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('service.lists.type.id', $fields)) : ?>
172
+						<td class="service-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'service.lists.type.domain', $fields ) ) : ?>
175
-						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('service.lists.type.domain', $fields)) : ?>
175
+						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'service.lists.type.status', $fields ) ) : ?>
178
-						<td class="service-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('service.lists.type.status', $fields)) : ?>
178
+						<td class="service-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( 'service.lists.type.code', $fields ) ) : ?>
181
-						<td class="service-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('service.lists.type.code', $fields)) : ?>
181
+						<td class="service-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( 'service.lists.type.label', $fields ) ) : ?>
184
-						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('service.lists.type.label', $fields)) : ?>
184
+						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'service.lists.type.position', $fields ) ) : ?>
187
-						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('service.lists.type.position', $fields)) : ?>
187
+						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'service.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('service.lists.type.ctime', $fields)) : ?>
190
+						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'service.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('service.lists.type.mtime', $fields)) : ?>
193
+						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'service.lists.type.editor', $fields ) ) : ?>
196
-						<td class="service-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('service.lists.type.editor', $fields)) : ?>
196
+						<td class="service-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/service/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/service/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/attribute/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/attribute/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['attribute.type.domain', 'attribute.type.status', 'attribute.type.code', 'attribute.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/attribute/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/attribute/fields', $default );
56
+$default = $this->config('admin/jqadm/type/attribute/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/attribute/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'attribute.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'attribute.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'attribute.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'attribute.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'attribute.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'attribute.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'attribute.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'attribute.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'attribute.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'attribute.type.id' => $this->translate('admin', 'ID'),
69
+	'attribute.type.domain' => $this->translate('admin', 'Domain'),
70
+	'attribute.type.status' => $this->translate('admin', 'Status'),
71
+	'attribute.type.code' => $this->translate('admin', 'Code'),
72
+	'attribute.type.label' => $this->translate('admin', 'Label'),
73
+	'attribute.type.position' => $this->translate('admin', 'Position'),
74
+	'attribute.type.ctime' => $this->translate('admin', 'Created'),
75
+	'attribute.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'attribute.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Attribute Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Attribute Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/attribute/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/attribute/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-attribute-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-attribute-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/attribute/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/attribute/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.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/attribute/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/attribute/filter', []),
139 139
 					'data' => [
140 140
 						'attribute.type.id' => ['op' => '=='],
141 141
 						'attribute.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'attribute.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'attribute.type.code' => [],
159 159
 						'attribute.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'attribute.type.id', $fields ) ) : ?>
172
-						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('attribute.type.id', $fields)) : ?>
172
+						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'attribute.type.domain', $fields ) ) : ?>
175
-						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('attribute.type.domain', $fields)) : ?>
175
+						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'attribute.type.status', $fields ) ) : ?>
178
-						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('attribute.type.status', $fields)) : ?>
178
+						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'attribute.type.code', $fields ) ) : ?>
181
-						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('attribute.type.code', $fields)) : ?>
181
+						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'attribute.type.label', $fields ) ) : ?>
184
-						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('attribute.type.label', $fields)) : ?>
184
+						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'attribute.type.position', $fields ) ) : ?>
187
-						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('attribute.type.position', $fields)) : ?>
187
+						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'attribute.type.ctime', $fields ) ) : ?>
190
-						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('attribute.type.ctime', $fields)) : ?>
190
+						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'attribute.type.mtime', $fields ) ) : ?>
193
-						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('attribute.type.mtime', $fields)) : ?>
193
+						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'attribute.type.editor', $fields ) ) : ?>
196
-						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('attribute.type.editor', $fields)) : ?>
196
+						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.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/attribute/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/attribute/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['attribute.lists.type.domain', 'attribute.lists.type.status', 'attribute.lists.type.code', 'attribute.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/attribute/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/attribute/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/attribute/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/attribute/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
-	'attribute.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'attribute.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'attribute.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'attribute.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'attribute.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'attribute.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'attribute.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'attribute.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'attribute.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'attribute.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'attribute.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'attribute.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'attribute.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'attribute.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'attribute.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'attribute.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'attribute.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'attribute.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', 'Attribute Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Attribute 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/attribute/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/attribute/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/attribute/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/attribute/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-attribute-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-attribute-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/attribute/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/attribute/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/attribute/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/attribute/lists/filter', []),
139 139
 					'data' => [
140 140
 						'attribute.lists.type.id' => ['op' => '=='],
141 141
 						'attribute.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
 						'attribute.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
 						'attribute.lists.type.code' => [],
159 159
 						'attribute.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( 'attribute.lists.type.id', $fields ) ) : ?>
172
-						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('attribute.lists.type.id', $fields)) : ?>
172
+						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'attribute.lists.type.domain', $fields ) ) : ?>
175
-						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('attribute.lists.type.domain', $fields)) : ?>
175
+						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'attribute.lists.type.status', $fields ) ) : ?>
178
-						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('attribute.lists.type.status', $fields)) : ?>
178
+						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'attribute.lists.type.code', $fields ) ) : ?>
181
-						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('attribute.lists.type.code', $fields)) : ?>
181
+						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'attribute.lists.type.label', $fields ) ) : ?>
184
-						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('attribute.lists.type.label', $fields)) : ?>
184
+						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'attribute.lists.type.position', $fields ) ) : ?>
187
-						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('attribute.lists.type.position', $fields)) : ?>
187
+						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'attribute.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('attribute.lists.type.ctime', $fields)) : ?>
190
+						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'attribute.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('attribute.lists.type.mtime', $fields)) : ?>
193
+						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'attribute.lists.type.editor', $fields ) ) : ?>
196
-						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('attribute.lists.type.editor', $fields)) : ?>
196
+						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/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/attribute/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/attribute/property/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/attribute/property/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['attribute.property.type.domain', 'attribute.property.type.status', 'attribute.property.type.code', 'attribute.property.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/attribute/property/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/attribute/property/fields', $default );
56
+$default = $this->config('admin/jqadm/type/attribute/property/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/attribute/property/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $id => $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $id => $typeItem) {
64 64
 	$typeList[$id] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'attribute.property.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'attribute.property.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'attribute.property.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'attribute.property.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'attribute.property.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'attribute.property.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'attribute.property.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'attribute.property.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'attribute.property.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'attribute.property.type.id' => $this->translate('admin', 'ID'),
69
+	'attribute.property.type.domain' => $this->translate('admin', 'Domain'),
70
+	'attribute.property.type.status' => $this->translate('admin', 'Status'),
71
+	'attribute.property.type.code' => $this->translate('admin', 'Code'),
72
+	'attribute.property.type.label' => $this->translate('admin', 'Label'),
73
+	'attribute.property.type.position' => $this->translate('admin', 'Position'),
74
+	'attribute.property.type.ctime' => $this->translate('admin', 'Created'),
75
+	'attribute.property.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'attribute.property.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Attribute Property Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Attribute Property Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/attribute/property/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/property/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-attribute-property-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-attribute-property-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/attribute/property/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.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/attribute/property/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/attribute/property/filter', []),
139 139
 					'data' => [
140 140
 						'attribute.property.type.id' => ['op' => '=='],
141 141
 						'attribute.property.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'attribute.property.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'attribute.property.type.code' => [],
159 159
 						'attribute.property.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'attribute.property.type.id', $fields ) ) : ?>
172
-						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('attribute.property.type.id', $fields)) : ?>
172
+						<td class="attribute-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'attribute.property.type.domain', $fields ) ) : ?>
175
-						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('attribute.property.type.domain', $fields)) : ?>
175
+						<td class="attribute-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'attribute.property.type.status', $fields ) ) : ?>
178
-						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('attribute.property.type.status', $fields)) : ?>
178
+						<td class="attribute-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'attribute.property.type.code', $fields ) ) : ?>
181
-						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('attribute.property.type.code', $fields)) : ?>
181
+						<td class="attribute-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'attribute.property.type.label', $fields ) ) : ?>
184
-						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('attribute.property.type.label', $fields)) : ?>
184
+						<td class="attribute-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'attribute.property.type.position', $fields ) ) : ?>
187
-						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('attribute.property.type.position', $fields)) : ?>
187
+						<td class="attribute-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'attribute.property.type.ctime', $fields ) ) : ?>
190
-						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('attribute.property.type.ctime', $fields)) : ?>
190
+						<td class="attribute-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'attribute.property.type.mtime', $fields ) ) : ?>
193
-						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('attribute.property.type.mtime', $fields)) : ?>
193
+						<td class="attribute-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'attribute.property.type.editor', $fields ) ) : ?>
196
-						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('attribute.property.type.editor', $fields)) : ?>
196
+						<td class="attribute-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/attribute/property/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/attribute/property/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.