Completed
Push — master ( 521882...b49ab8 )
by Aimeos
04:07
created
admin/jqadm/templates/attribute/item-text-standard.php 2 patches
Spacing   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 ?>
18 18
 <div id="text" class="item-text content-block tab-pane fade" role="tablist" aria-labelledby="text">
19 19
 	<div id="item-text-group" role="tablist" aria-multiselectable="true"
20
-		data-items="<?= $enc->attr( json_encode( $this->get( 'textData', [] ) ) ); ?>"
21
-		data-listtype="<?= key( $this->get( 'textListTypes', [] ) ) ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
20
+		data-items="<?= $enc->attr(json_encode($this->get('textData', []))); ?>"
21
+		data-listtype="<?= key($this->get('textListTypes', [])) ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -28,16 +28,16 @@  discard block
 block discarded – undo
28 28
 				v-bind:data-target="'#item-text-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
31
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
32
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
36 36
 				&nbsp;
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('attribute.lists.siteid', idx)"
39
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
39
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
40
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 				v-bind:aria-labelledby="'item-text-group-item-' + idx" role="tabpanel" class="card-block collapse row">
48 48
 
49 49
 				<input type="hidden" v-model="items[idx]['text.id']"
50
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.id' ) ) ); ?>'.replace('idx', idx)" />
50
+					v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.id'))); ?>'.replace('idx', idx)" />
51 51
 
52 52
 				<div class="col-xl-6">
53 53
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 							<textarea is="html-editor" class="form-control item-content" required="required" v-once
57 57
 								v-model="items[idx]['text.content']"
58 58
 								v-bind:value="items[idx]['text.content']"
59
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.content' ) ) ); ?>'.replace('idx', idx)"
59
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.content'))); ?>'.replace('idx', idx)"
60 60
 								v-bind:readonly="checkSite('text.siteid', idx)"
61
-								v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
61
+								v-bind:tabindex="<?= $this->get('tabindex'); ?>"
62 62
 							></textarea>
63 63
 						</div>
64 64
 					</div>
@@ -68,101 +68,101 @@  discard block
 block discarded – undo
68 68
 				<div class="col-xl-6">
69 69
 
70 70
 					<div class="form-group row mandatory">
71
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
71
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
72 72
 						<div class="col-sm-8">
73
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
74
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.status' ) ) ); ?>'.replace('idx', idx)"
73
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
74
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.status'))); ?>'.replace('idx', idx)"
75 75
 								v-bind:readonly="checkSite('text.siteid', idx)"
76 76
 								v-model="items[idx]['text.status']" >
77 77
 								<option value="1" v-bind:selected="entry['text.status'] == 1" >
78
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
78
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
79 79
 								</option>
80 80
 								<option value="0" v-bind:selected="entry['text.status'] == 0" >
81
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
81
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
82 82
 								</option>
83 83
 								<option value="-1" v-bind:selected="entry['text.status'] == -1" >
84
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
84
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
85 85
 								</option>
86 86
 								<option value="-2" v-bind:selected="entry['text.status'] == -2" >
87
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
87
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
88 88
 								</option>
89 89
 							</select>
90 90
 						</div>
91 91
 					</div>
92 92
 
93
-					<?php $languages = $this->get( 'pageLangItems', [] ); ?>
94
-					<?php if( count( $languages ) > 1 ) : ?>
93
+					<?php $languages = $this->get('pageLangItems', []); ?>
94
+					<?php if (count($languages) > 1) : ?>
95 95
 						<div class="form-group row mandatory">
96
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
96
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
97 97
 							<div class="col-sm-8">
98
-								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
98
+								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
99
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
100 100
 									v-bind:readonly="checkSite('text.siteid', idx)"
101 101
 									v-model="items[idx]['text.languageid']" >
102 102
 
103 103
 									<option value="" disable >
104
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
104
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
105 105
 									</option>
106 106
 
107
-									<?php foreach( $languages as $langId => $langItem ) : ?>
108
-										<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
109
-											<?= $enc->html( $langItem->getLabel() ); ?>
107
+									<?php foreach ($languages as $langId => $langItem) : ?>
108
+										<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr($langId) ?>'" >
109
+											<?= $enc->html($langItem->getLabel()); ?>
110 110
 										</option>
111 111
 									<?php endforeach; ?>
112 112
 								</select>
113 113
 							</div>
114 114
 							<div class="col-sm-12 form-text text-muted help-text">
115
-								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
115
+								<?= $enc->html($this->translate('admin', 'Language of the entered text')); ?>
116 116
 							</div>
117 117
 						</div>
118 118
 					<?php else : ?>
119 119
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
-							value="<?= $enc->attr( key( $languages ) ); ?>" />
120
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
121
+							value="<?= $enc->attr(key($languages)); ?>" />
122 122
 					<?php endif; ?>
123 123
 
124
-					<?php $textTypes = $this->get( 'textTypes', [] ); ?>
125
-					<?php if( count( $textTypes ) > 1 ) : ?>
124
+					<?php $textTypes = $this->get('textTypes', []); ?>
125
+					<?php if (count($textTypes) > 1) : ?>
126 126
 						<div class="form-group row mandatory">
127
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
127
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
128 128
 							<div class="col-sm-8">
129
-								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
130
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
129
+								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
130
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
131 131
 									v-bind:readonly="checkSite('text.siteid', idx)"
132 132
 									v-model="items[idx]['text.type']" >
133 133
 
134 134
 									<option value="" disable >
135
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
135
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
136 136
 									</option>
137 137
 
138
-									<?php foreach( (array) $textTypes as $typeItem ) : ?>
139
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
140
-											<?= $enc->html( $typeItem->getLabel() ); ?>
138
+									<?php foreach ((array) $textTypes as $typeItem) : ?>
139
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
140
+											<?= $enc->html($typeItem->getLabel()); ?>
141 141
 										</option>
142 142
 									<?php endforeach; ?>
143 143
 								</select>
144 144
 							</div>
145 145
 							<div class="col-sm-12 form-text text-muted help-text">
146
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
146
+								<?= $enc->html($this->translate('admin', 'Types for additional texts like per one lb/kg or per month')); ?>
147 147
 							</div>
148 148
 						</div>
149 149
 					<?php else : ?>
150 150
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
152
-							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
151
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
152
+							value="<?= $enc->attr(key($textTypes)); ?>" />
153 153
 					<?php endif; ?>
154 154
 
155 155
 					<div class="form-group row optional">
156
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
156
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
157 157
 						<div class="col-sm-8">
158
-							<input class="form-control item-label" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
159
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.label' ) ) ); ?>'.replace('idx', idx)"
160
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Label' ) ); ?>"
158
+							<input class="form-control item-label" type="text" tabindex="<?= $this->get('tabindex'); ?>"
159
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.label'))); ?>'.replace('idx', idx)"
160
+								placeholder="<?= $enc->attr($this->translate('admin', 'Label')); ?>"
161 161
 								v-bind:readonly="checkSite('text.siteid', idx)"
162 162
 								v-model="items[idx]['text.label']" />
163 163
 						</div>
164 164
 						<div class="col-sm-12 form-text text-muted help-text">
165
-							<?= $enc->html( $this->translate( 'admin', 'Description of the text content if it\'s in a foreign language' ) ); ?>
165
+							<?= $enc->html($this->translate('admin', 'Description of the text content if it\'s in a foreign language')); ?>
166 166
 						</div>
167 167
 					</div>
168 168
 
@@ -171,70 +171,70 @@  discard block
 block discarded – undo
171 171
 
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
174
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
175
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
176 176
 						</div>
177 177
 					</div>
178
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
178
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
179 179
 				</div>
180 180
 
181 181
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
182 182
 
183 183
 					<input type="hidden" v-model="items[idx]['attribute.lists.type']"
184
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
184
+						v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'attribute.lists.type'))); ?>'.replace( 'idx', idx )" />
185 185
 
186
-					<?php $listTypes = $this->get( 'textListTypes', [] ); ?>
187
-					<?php if( count( $listTypes ) > 1 ) : ?>
186
+					<?php $listTypes = $this->get('textListTypes', []); ?>
187
+					<?php if (count($listTypes) > 1) : ?>
188 188
 						<div class="form-group row mandatory">
189
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
189
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
190 190
 							<div class="col-sm-8">
191
-								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
192
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
191
+								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
192
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'attribute.lists.type'))); ?>'.replace('idx', idx)"
193 193
 									v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
194 194
 									v-model="items[idx]['attribute.lists.type']" >
195 195
 
196
-									<?php foreach( $this->get( 'textListTypes', [] ) as $typeItem ) : ?>
197
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['attribute.lists.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
198
-											<?= $enc->html( $typeItem->getLabel() ); ?>
196
+									<?php foreach ($this->get('textListTypes', []) as $typeItem) : ?>
197
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['attribute.lists.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
198
+											<?= $enc->html($typeItem->getLabel()); ?>
199 199
 										</option>
200 200
 									<?php endforeach; ?>
201 201
 								</select>
202 202
 							</div>
203 203
 							<div class="col-sm-12 form-text text-muted help-text">
204
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
204
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
205 205
 							</div>
206 206
 						</div>
207 207
 					<?php else : ?>
208 208
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
210
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
209
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'attribute.lists.type'))); ?>'.replace('idx', idx)"
210
+							value="<?= $enc->attr(key($listTypes)); ?>"
211 211
 							v-model="items[idx]['attribute.lists.type']" />
212 212
 					<?php endif; ?>
213 213
 
214 214
 					<div class="form-group row optional">
215
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
215
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
216 216
 						<div class="col-sm-8">
217
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
218
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
219
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
217
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
218
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'attribute.lists.datestart'))); ?>'.replace('idx', idx)"
219
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
220 220
 								v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
221 221
 								v-model="items[idx]['attribute.lists.datestart']" />
222 222
 						</div>
223 223
 						<div class="col-sm-12 form-text text-muted help-text">
224
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
224
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
225 225
 						</div>
226 226
 					</div>
227 227
 					<div class="form-group row optional">
228
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
228
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
229 229
 						<div class="col-sm-8">
230
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
231
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
232
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
230
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
231
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'attribute.lists.dateend'))); ?>'.replace('idx', idx)"
232
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
233 233
 								v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
234 234
 								v-model="items[idx]['attribute.lists.dateend']" />
235 235
 						</div>
236 236
 						<div class="col-sm-12 form-text text-muted help-text">
237
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
237
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
238 238
 						</div>
239 239
 					</div>
240 240
 				</div>
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
 						<thead>
245 245
 							<tr>
246 246
 								<th>
247
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
247
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
248 248
 									<div class="form-text text-muted help-text">
249
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
249
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
250 250
 									</div>
251 251
 								</th>
252 252
 								<th>
253
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
253
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
254 254
 								</th>
255 255
 								<th class="actions">
256
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
256
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
257
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
258 258
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -267,21 +267,21 @@  discard block
 block discarded – undo
267 267
 								<td>
268 268
 									<input is="auto-complete"
269 269
 										v-model="items[idx]['config']['key'][pos]"
270
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
270
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
271 271
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
272
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
272
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
273 273
 										v-bind:keys="[]" />
274 274
 								</td>
275 275
 								<td>
276
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
277
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
276
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
277
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
278 278
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
279 279
 										v-model="items[idx]['config']['val'][pos]" />
280 280
 								</td>
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('attribute.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
283
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
284
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -290,14 +290,14 @@  discard block
 block discarded – undo
290 290
 					</table>
291 291
 				</div>
292 292
 
293
-				<?= $this->get( 'textBody' ); ?>
293
+				<?= $this->get('textBody'); ?>
294 294
 
295 295
 			</div>
296 296
 		</div>
297 297
 
298 298
 		<div class="card-tools-more">
299
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
299
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
300
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
301 301
 				v-on:click="addItem('attribute.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['attribute.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-property-standard.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
 <div id="property" class="item-property tab-pane fade" role="tabpanel" aria-labelledby="property">
19 19
 
20 20
 	<table class="property-list table table-default"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'propertyData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('propertyData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27 27
 				<th colspan="3">
28
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Properties' ) ); ?></span>
28
+					<span class="help"><?= $enc->html($this->translate('admin', 'Properties')); ?></span>
29 29
 					<div class="form-text text-muted help-text">
30
-						<?= $enc->html( $this->translate( 'admin', 'Attribute properties that are not shared with other attributes' ) ); ?>
30
+						<?= $enc->html($this->translate('admin', 'Attribute properties that are not shared with other attributes')); ?>
31 31
 					</div>
32 32
 				</th>
33 33
 				<th class="actions">
34
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
35
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
36 36
 						v-on:click="addItem('attribute.property.')">
37 37
 					</div>
38 38
 				</th>
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
 			<tr v-for="(entry, idx) in items" v-bind:key="idx" v-bind:class="checkSite('attribute.property.siteid', idx) ? 'readonly' : ''">
45 45
 				<td class="property-type">
46 46
 					<input class="item-id" type="hidden" v-bind:value="entry['attribute.property.id']"
47
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.id' ) ) ); ?>'.replace('idx', idx)" />
47
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.id'))); ?>'.replace('idx', idx)" />
48 48
 
49
-					<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
50
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.type' ) ) ); ?>'.replace('idx', idx)"
49
+					<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
50
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.type'))); ?>'.replace('idx', idx)"
51 51
 						v-bind:readonly="checkSite('attribute.property.siteid', idx)"
52 52
 						v-model="items[idx]['attribute.property.type']" >
53 53
 
54
-						<?php foreach( $this->get( 'propertyTypes', [] ) as $id => $item ) : ?>
55
-							<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['attribute.property.type'] == '<?= $enc->attr( $id ) ?>'" >
56
-								<?= $enc->html( $item->getLabel() ); ?>
54
+						<?php foreach ($this->get('propertyTypes', []) as $id => $item) : ?>
55
+							<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['attribute.property.type'] == '<?= $enc->attr($id) ?>'" >
56
+								<?= $enc->html($item->getLabel()); ?>
57 57
 							</option>
58 58
 						<?php endforeach; ?>
59 59
 
@@ -61,34 +61,34 @@  discard block
 block discarded – undo
61 61
 				</td>
62 62
 
63 63
 				<td class="property-language">
64
-					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get( 'tabindex' ); ?>"
65
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.languageid' ) ) ); ?>'.replace('idx', idx)"
64
+					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get('tabindex'); ?>"
65
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.languageid'))); ?>'.replace('idx', idx)"
66 66
 						v-bind:readonly="checkSite('attribute.property.siteid', idx)"
67 67
 						v-model="items[idx]['attribute.property.languageid']" >
68 68
 
69 69
 						<option v-bind:value="null">
70
-							<?= $enc->html( $this->translate( 'admin', 'All' ) ); ?>
70
+							<?= $enc->html($this->translate('admin', 'All')); ?>
71 71
 						</option>
72 72
 
73
-						<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
74
-							<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['attribute.property.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
75
-								<?= $enc->html( $langItem->getLabel() ); ?>
73
+						<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
74
+							<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['attribute.property.languageid'] == '<?= $enc->attr($langId) ?>'" >
75
+								<?= $enc->html($langItem->getLabel()); ?>
76 76
 							</option>
77 77
 						<?php endforeach; ?>
78 78
 					</select>
79 79
 				</td>
80 80
 
81 81
 				<td class="property-value">
82
-					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
83
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.value' ) ) ); ?>'.replace('idx', idx)"
84
-						placeholder="<?= $enc->attr( $this->translate( 'admin', 'Property value (required)' ) ); ?>"
82
+					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get('tabindex'); ?>"
83
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.value'))); ?>'.replace('idx', idx)"
84
+						placeholder="<?= $enc->attr($this->translate('admin', 'Property value (required)')); ?>"
85 85
 						v-bind:readonly="checkSite('attribute.property.siteid', idx)"
86 86
 						v-model="items[idx]['attribute.property.value']" >
87 87
 				</td>
88 88
 
89 89
 				<td class="actions">
90
-					<div v-if="!checkSite('attribute.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
91
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
90
+					<div v-if="!checkSite('attribute.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
91
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
92 92
 						v-on:click.stop="removeItem(idx)">
93 93
 					</div>
94 94
 				</td>
@@ -97,5 +97,5 @@  discard block
 block discarded – undo
97 97
 		</tbody>
98 98
 	</table>
99 99
 
100
-	<?= $this->get( 'propertyBody' ); ?>
100
+	<?= $this->get('propertyBody'); ?>
101 101
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/list-standard.php 1 patch
Spacing   +97 added lines, -97 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/attribute/fields
@@ -53,45 +53,45 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['attribute.status', 'attribute.type', 'attribute.code', 'attribute.label'];
56
-$default = $this->config( 'admin/jqadm/attribute/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/attribute/fields', $default );
56
+$default = $this->config('admin/jqadm/attribute/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/attribute/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'attribute.id' => $this->translate( 'admin', 'ID' ),
69
-	'attribute.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'attribute.status' => $this->translate( 'admin', 'Status' ),
71
-	'attribute.type' => $this->translate( 'admin', 'Type' ),
72
-	'attribute.code' => $this->translate( 'admin', 'Code' ),
73
-	'attribute.label' => $this->translate( 'admin', 'Label' ),
74
-	'attribute.position' => $this->translate( 'admin', 'Position' ),
75
-	'attribute.ctime' => $this->translate( 'admin', 'Created' ),
76
-	'attribute.mtime' => $this->translate( 'admin', 'Modified' ),
77
-	'attribute.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'attribute.id' => $this->translate('admin', 'ID'),
69
+	'attribute.domain' => $this->translate('admin', 'Domain'),
70
+	'attribute.status' => $this->translate('admin', 'Status'),
71
+	'attribute.type' => $this->translate('admin', 'Type'),
72
+	'attribute.code' => $this->translate('admin', 'Code'),
73
+	'attribute.label' => $this->translate('admin', 'Label'),
74
+	'attribute.position' => $this->translate('admin', 'Position'),
75
+	'attribute.ctime' => $this->translate('admin', 'Created'),
76
+	'attribute.mtime' => $this->translate('admin', 'Modified'),
77
+	'attribute.editor' => $this->translate('admin', 'Editor'),
78 78
 ];
79 79
 
80 80
 ?>
81
-<?php $this->block()->start( 'jqadm_content' ); ?>
81
+<?php $this->block()->start('jqadm_content'); ?>
82 82
 
83 83
 <nav class="main-navbar">
84 84
 
85 85
 	<span class="navbar-brand">
86
-		<?= $enc->html( $this->translate( 'admin', 'Attribute' ) ); ?>
87
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
86
+		<?= $enc->html($this->translate('admin', 'Attribute')); ?>
87
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
88 88
 	</span>
89 89
 
90 90
 	<?= $this->partial(
91
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
92
-			'filter' => $this->session( 'aimeos/admin/jqadm/attribute/filter', [] ),
93
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
94
-			'filterOperators' => $this->get( 'filterOperators', [] ),
91
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
92
+			'filter' => $this->session('aimeos/admin/jqadm/attribute/filter', []),
93
+			'filterAttributes' => $this->get('filterAttributes', []),
94
+			'filterOperators' => $this->get('filterOperators', []),
95 95
 			'params' => $params,
96 96
 		]
97 97
 	); ?>
@@ -99,33 +99,33 @@  discard block
 block discarded – undo
99 99
 
100 100
 
101 101
 <?= $this->partial(
102
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
103
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
104
-		'page' => $this->session( 'aimeos/admin/jqadm/attribute/page', [] )]
102
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
103
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
104
+		'page' => $this->session('aimeos/admin/jqadm/attribute/page', [])]
105 105
 	);
106 106
 ?>
107 107
 
108
-<form class="list list-attribute" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
108
+<form class="list list-attribute" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
109 109
 	<?= $this->csrf()->formfield(); ?>
110 110
 
111 111
 	<table class="list-items table table-hover table-striped">
112 112
 		<thead class="list-header">
113 113
 			<tr>
114 114
 				<?= $this->partial(
115
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
116
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/attribute/sort' )]
115
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
116
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/attribute/sort')]
117 117
 					);
118 118
 				?>
119 119
 
120 120
 				<th class="actions">
121 121
 					<a class="btn fa act-add" tabindex="1"
122
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
123
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
124
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
122
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
123
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
124
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
125 125
 					</a>
126 126
 
127 127
 					<?= $this->partial(
128
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
128
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
129 129
 							['fields' => $fields, 'data' => $columnList]
130 130
 						);
131 131
 					?>
@@ -135,21 +135,21 @@  discard block
 block discarded – undo
135 135
 		<tbody>
136 136
 
137 137
 			<?= $this->partial(
138
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
139
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/attribute/filter', [] ),
138
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
139
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/attribute/filter', []),
140 140
 					'data' => [
141 141
 						'attribute.id' => ['op' => '=='],
142 142
 						'attribute.domain' => ['op' => '==', 'type' => 'select', 'val' => [
143
-							'product' => $this->translate( 'admin', 'product' ),
144
-							'catalog' => $this->translate( 'admin', 'catalog' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'text' => $this->translate( 'admin', 'text' ),
143
+							'product' => $this->translate('admin', 'product'),
144
+							'catalog' => $this->translate('admin', 'catalog'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'text' => $this->translate('admin', 'text'),
147 147
 						]],
148 148
 						'attribute.status' => ['op' => '==', 'type' => 'select', 'val' => [
149
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
150
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
151
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
152
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
149
+							'1' => $this->translate('mshop/code', 'status:1'),
150
+							'0' => $this->translate('mshop/code', 'status:0'),
151
+							'-1' => $this->translate('mshop/code', 'status:-1'),
152
+							'-2' => $this->translate('mshop/code', 'status:-2'),
153 153
 						]],
154 154
 						'attribute.type' => ['op' => '==', 'type' => 'select', 'val' => $typeList],
155 155
 						'attribute.code' => [],
@@ -162,50 +162,50 @@  discard block
 block discarded – undo
162 162
 				] );
163 163
 			?>
164 164
 
165
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
166
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
167
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
168
-					<?php if( in_array( 'attribute.id', $fields ) ) : ?>
169
-						<td class="attribute-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
165
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
166
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
167
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
168
+					<?php if (in_array('attribute.id', $fields)) : ?>
169
+						<td class="attribute-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
170 170
 					<?php endif; ?>
171
-					<?php if( in_array( 'attribute.domain', $fields ) ) : ?>
172
-						<td class="attribute-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
171
+					<?php if (in_array('attribute.domain', $fields)) : ?>
172
+						<td class="attribute-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'attribute.status', $fields ) ) : ?>
175
-						<td class="attribute-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
174
+					<?php if (in_array('attribute.status', $fields)) : ?>
175
+						<td class="attribute-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'attribute.type', $fields ) ) : ?>
178
-						<td class="attribute-type"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getType() ); ?></a></td>
177
+					<?php if (in_array('attribute.type', $fields)) : ?>
178
+						<td class="attribute-type"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getType()); ?></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'attribute.code', $fields ) ) : ?>
181
-						<td class="attribute-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('attribute.code', $fields)) : ?>
181
+						<td class="attribute-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.label', $fields ) ) : ?>
184
-						<td class="attribute-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('attribute.label', $fields)) : ?>
184
+						<td class="attribute-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'attribute.position', $fields ) ) : ?>
187
-						<td class="attribute-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('attribute.position', $fields)) : ?>
187
+						<td class="attribute-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'attribute.ctime', $fields ) ) : ?>
190
-						<td class="attribute-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('attribute.ctime', $fields)) : ?>
190
+						<td class="attribute-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'attribute.mtime', $fields ) ) : ?>
193
-						<td class="attribute-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('attribute.mtime', $fields)) : ?>
193
+						<td class="attribute-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'attribute.editor', $fields ) ) : ?>
196
-						<td class="attribute-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('attribute.editor', $fields)) : ?>
196
+						<td class="attribute-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, ['resource' => 'attribute', '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, ['resource' => 'attribute', 'id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/attribute/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/attribute/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-price-standard.php 2 patches
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.type', '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-listtype="<?= key( $this->get( 'priceListTypes', [] ) ) ?>"
24
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
22
+		data-items="<?= $enc->attr(json_encode($this->get('priceData', []))); ?>"
23
+		data-listtype="<?= 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-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
169
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.type' ) ) ); ?>'.replace('idx', idx)"
168
+								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
169
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.type'))); ?>'.replace('idx', idx)"
170 170
 									v-bind:readonly="checkSite('price.siteid', idx)"
171 171
 									v-model="items[idx]['price.type']" >
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 $typeItem ) : ?>
177
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="items[idx]['price.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
178
-											<?= $enc->html( $typeItem->getLabel() ); ?>
176
+									<?php foreach ((array) $priceTypes as $typeItem) : ?>
177
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="items[idx]['price.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
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-type" type="hidden"
189
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.type' ) ) ); ?>'.replace('idx', idx)"
190
-							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
189
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'price.type'))); ?>'.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-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
230
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
229
+								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
230
+									v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.type'))); ?>'.replace('idx', idx)"
231 231
 									v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
232 232
 									v-model="items[idx]['attribute.lists.type']" >
233 233
 
234
-									<?php foreach( $this->get( 'priceListTypes', [] ) as $typeItem ) : ?>
235
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['attribute.lists.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
236
-											<?= $enc->html( $typeItem->getLabel() ); ?>
234
+									<?php foreach ($this->get('priceListTypes', []) as $typeItem) : ?>
235
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['attribute.lists.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
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-type" type="hidden"
247
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
248
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
247
+							v-bind:name="'<?= $enc->attr($this->formparam(array('price', 'idx', 'attribute.lists.type'))); ?>'.replace('idx', idx)"
248
+							value="<?= $enc->attr(key($listTypes)); ?>"
249 249
 							v-model="items[idx]['attribute.lists.type']" />
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.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -154,9 +154,12 @@  discard block
 block discarded – undo
154 154
 								</select>
155 155
 							</div>
156 156
 						</div>
157
-					<?php else : ?>
157
+					<?php else {
158
+	: ?>
158 159
 						<input class="item-currencyid" type="hidden"
159
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
160
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) );
161
+}
162
+?>'.replace('idx', idx)"
160 163
 							value="<?= $enc->attr( key( $currencies ) ); ?>" />
161 164
 					<?php endif; ?>
162 165
 
@@ -184,9 +187,12 @@  discard block
 block discarded – undo
184 187
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
185 188
 							</div>
186 189
 						</div>
187
-					<?php else : ?>
190
+					<?php else {
191
+	: ?>
188 192
 						<input class="item-type" type="hidden"
189
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.type' ) ) ); ?>'.replace('idx', idx)"
193
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.type' ) ) );
194
+}
195
+?>'.replace('idx', idx)"
190 196
 							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
191 197
 					<?php endif; ?>
192 198
 
@@ -242,9 +248,12 @@  discard block
 block discarded – undo
242 248
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
243 249
 							</div>
244 250
 						</div>
245
-					<?php else : ?>
251
+					<?php else {
252
+	: ?>
246 253
 						<input class="listitem-type" type="hidden"
247
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
254
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) );
255
+}
256
+?>'.replace('idx', idx)"
248 257
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
249 258
 							v-model="items[idx]['attribute.lists.type']" />
250 259
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/plugin/item-standard.php 1 patch
Spacing   +108 added lines, -108 removed lines patch added patch discarded remove patch
@@ -5,46 +5,46 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$attr = function( $list, $key, $code ) {
9
-	$map = ( isset( $list[$key] ) ? $list[$key]->toArray() : [] );
10
-	return ( isset( $map[$code] ) ? $map[$code] : '' );
8
+$attr = function($list, $key, $code) {
9
+	$map = (isset($list[$key]) ? $list[$key]->toArray() : []);
10
+	return (isset($map[$code]) ? $map[$code] : '');
11 11
 };
12 12
 
13
-$selected = function( $key, $code ) {
14
-	return ( $key == $code ? 'selected="selected"' : '' );
13
+$selected = function($key, $code) {
14
+	return ($key == $code ? 'selected="selected"' : '');
15 15
 };
16 16
 
17 17
 
18
-$target = $this->config( 'admin/jqadm/url/save/target' );
19
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
20
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
21
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
18
+$target = $this->config('admin/jqadm/url/save/target');
19
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
20
+$action = $this->config('admin/jqadm/url/save/action', 'save');
21
+$config = $this->config('admin/jqadm/url/save/config', []);
22 22
 
23
-$attributes = $this->get( 'itemAttributes', [] );
24
-$params = $this->get( 'pageParams', [] );
23
+$attributes = $this->get('itemAttributes', []);
24
+$params = $this->get('pageParams', []);
25 25
 
26 26
 $enc = $this->encoder();
27 27
 
28 28
 
29 29
 ?>
30
-<?php $this->block()->start( 'jqadm_content' ); ?>
30
+<?php $this->block()->start('jqadm_content'); ?>
31 31
 
32 32
 <form class="item item-plugin form-horizontal" method="POST" enctype="multipart/form-data"
33
-	action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
34
-	<input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.id' ) ) ); ?>"
35
-		value="<?= $enc->attr( $this->get( 'itemData/plugin.id' ) ); ?>" />
36
-	<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
33
+	action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
34
+	<input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'plugin.id'))); ?>"
35
+		value="<?= $enc->attr($this->get('itemData/plugin.id')); ?>" />
36
+	<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
37 37
 	<?= $this->csrf()->formfield(); ?>
38 38
 
39 39
 	<nav class="main-navbar">
40 40
 		<span class="navbar-brand">
41
-			<?= $enc->html( $this->translate( 'admin', 'Plugin' ) ); ?>:
42
-			<?= $enc->html( $this->get( 'itemData/plugin.id' ) ); ?> -
43
-			<?= $enc->html( $this->get( 'itemData/plugin.provider', $this->translate( 'admin', 'New' ) ) ); ?>
44
-			<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/plugin.siteid' ) ) ); ?>)</span>
41
+			<?= $enc->html($this->translate('admin', 'Plugin')); ?>:
42
+			<?= $enc->html($this->get('itemData/plugin.id')); ?> -
43
+			<?= $enc->html($this->get('itemData/plugin.provider', $this->translate('admin', 'New'))); ?>
44
+			<span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/plugin.siteid'))); ?>)</span>
45 45
 		</span>
46 46
 		<div class="item-actions">
47
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
47
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
48 48
 		</div>
49 49
 	</nav>
50 50
 
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 
56 56
 				<li class="nav-item basic">
57 57
 					<a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic">
58
-						<?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?>
58
+						<?= $enc->html($this->translate('admin', 'Basic')); ?>
59 59
 					</a>
60 60
 				</li>
61 61
 
62
-				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
63
-					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
64
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
65
-							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
62
+				<?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?>
63
+					<li class="nav-item <?= $enc->attr($subpart); ?>">
64
+						<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
65
+							<?= $enc->html($this->translate('admin', $subpart)); ?>
66 66
 						</a>
67 67
 					</li>
68 68
 				<?php endforeach; ?>
@@ -71,16 +71,16 @@  discard block
 block discarded – undo
71 71
 
72 72
 			<div class="item-meta text-muted">
73 73
 				<small>
74
-					<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
75
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/plugin.mtime' ) ); ?></span>
74
+					<?= $enc->html($this->translate('admin', 'Modified')); ?>:
75
+					<span class="meta-value"><?= $enc->html($this->get('itemData/plugin.mtime')); ?></span>
76 76
 				</small>
77 77
 				<small>
78
-					<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
79
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/plugin.ctime' ) ); ?></span>
78
+					<?= $enc->html($this->translate('admin', 'Created')); ?>:
79
+					<span class="meta-value"><?= $enc->html($this->get('itemData/plugin.ctime')); ?></span>
80 80
 				</small>
81 81
 				<small>
82
-					<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
83
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/plugin.editor' ) ); ?></span>
82
+					<?= $enc->html($this->translate('admin', 'Editor')); ?>:
83
+					<span class="meta-value"><?= $enc->html($this->get('itemData/plugin.editor')); ?></span>
84 84
 				</small>
85 85
 			</div>
86 86
 		</div>
@@ -89,116 +89,116 @@  discard block
 block discarded – undo
89 89
 
90 90
 			<div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic">
91 91
 
92
-				<div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?>">
92
+				<div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?>">
93 93
 					<div class="form-group row mandatory">
94
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
94
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
95 95
 						<div class="col-sm-8">
96 96
 							<select class="form-control custom-select item-status" required="required" tabindex="1"
97
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.status' ) ) ); ?>"
98
-								<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> >
97
+								name="<?= $enc->attr($this->formparam(array('item', 'plugin.status'))); ?>"
98
+								<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> >
99 99
 								<option value="">
100
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
100
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
101 101
 								</option>
102
-								<option value="1" <?= $selected( $this->get( 'itemData/plugin.status', 1 ), 1 ); ?> >
103
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
102
+								<option value="1" <?= $selected($this->get('itemData/plugin.status', 1), 1); ?> >
103
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
104 104
 								</option>
105
-								<option value="0" <?= $selected( $this->get( 'itemData/plugin.status', 1 ), 0 ); ?> >
106
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
105
+								<option value="0" <?= $selected($this->get('itemData/plugin.status', 1), 0); ?> >
106
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
107 107
 								</option>
108
-								<option value="-1" <?= $selected( $this->get( 'itemData/plugin.status', 1 ), -1 ); ?> >
109
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
108
+								<option value="-1" <?= $selected($this->get('itemData/plugin.status', 1), -1); ?> >
109
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
110 110
 								</option>
111
-								<option value="-2" <?= $selected( $this->get( 'itemData/plugin.status', 1 ), -2 ); ?> >
112
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
111
+								<option value="-2" <?= $selected($this->get('itemData/plugin.status', 1), -2); ?> >
112
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
113 113
 								</option>
114 114
 							</select>
115 115
 						</div>
116 116
 					</div>
117 117
 					<div class="form-group row mandatory">
118
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
118
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
119 119
 						<div class="col-sm-8">
120 120
 							<select class="form-control custom-select item-type" required="required" tabindex="1"
121
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); ?>"
122
-								<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> >
121
+								name="<?= $enc->attr($this->formparam(array('item', 'plugin.type'))); ?>"
122
+								<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> >
123 123
 								<option value="">
124
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
124
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
125 125
 								</option>
126 126
 
127
-								<?php foreach( $this->get( 'itemTypes', [] ) as $typeItem ) : ?>
128
-									<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" <?= $selected( $this->get( 'itemData/plugin.type', 'order' ), $typeItem->getCode() ); ?> >
129
-										<?= $enc->html( $typeItem->getLabel() ); ?>
127
+								<?php foreach ($this->get('itemTypes', []) as $typeItem) : ?>
128
+									<option value="<?= $enc->attr($typeItem->getCode()); ?>" <?= $selected($this->get('itemData/plugin.type', 'order'), $typeItem->getCode()); ?> >
129
+										<?= $enc->html($typeItem->getLabel()); ?>
130 130
 									</option>
131 131
 								<?php endforeach; ?>
132 132
 							</select>
133 133
 						</div>
134 134
 					</div>
135 135
 					<div class="form-group row mandatory">
136
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
136
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
137 137
 						<div class="col-sm-8">
138 138
 							<input class="form-control item-label" type="text" required="required" tabindex="1"
139
-								name="<?= $this->formparam( array( 'item', 'plugin.label' ) ); ?>"
140
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>"
141
-								value="<?= $enc->attr( $this->get( 'itemData/plugin.label' ) ); ?>"
142
-								<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> />
139
+								name="<?= $this->formparam(array('item', 'plugin.label')); ?>"
140
+								placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>"
141
+								value="<?= $enc->attr($this->get('itemData/plugin.label')); ?>"
142
+								<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> />
143 143
 						</div>
144 144
 						<div class="col-sm-12 form-text text-muted help-text">
145
-							<?= $enc->html( $this->translate( 'admin', 'Internal article name, will be used on the web site if no product name for the language is available' ) ); ?>
145
+							<?= $enc->html($this->translate('admin', 'Internal article name, will be used on the web site if no product name for the language is available')); ?>
146 146
 						</div>
147 147
 					</div>
148 148
 					<div class="form-group row mandatory">
149
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Provider' ) ); ?></label>
149
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Provider')); ?></label>
150 150
 						<div class="col-sm-8 input-group">
151 151
 							<input class="form-control item-provider combobox" type="text" required="required" tabindex="1" pattern="[A-Za-z0-9]+(,[A-Za-z0-9]+)*"
152
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.provider' ) ) ); ?>"
153
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Provider/decorator class names (required)' ) ); ?>"
154
-								value="<?= $enc->attr( $this->get( 'itemData/plugin.provider' ) ); ?>"
155
-								data-order="<?= implode( ',', $this->get( 'itemProviders/order', [] ) ); ?>"
156
-								<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> />
152
+								name="<?= $enc->attr($this->formparam(array('item', 'plugin.provider'))); ?>"
153
+								placeholder="<?= $enc->attr($this->translate('admin', 'Provider/decorator class names (required)')); ?>"
154
+								value="<?= $enc->attr($this->get('itemData/plugin.provider')); ?>"
155
+								data-order="<?= implode(',', $this->get('itemProviders/order', [])); ?>"
156
+								<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> />
157 157
 							<div class="dropdown input-group-append">
158 158
 								<button class="btn btn-secondary" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">+</button>
159 159
 								<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="decoratorButton">
160
-									<?php foreach( $this->get( 'itemDecorators', [] ) as $name ) : ?>
161
-										<li class="dropdown-item"><a class="decorator-name" href="#" data-name="<?= $enc->attr( $name ); ?>"><?= $enc->html( $name ); ?></a></li>
160
+									<?php foreach ($this->get('itemDecorators', []) as $name) : ?>
161
+										<li class="dropdown-item"><a class="decorator-name" href="#" data-name="<?= $enc->attr($name); ?>"><?= $enc->html($name); ?></a></li>
162 162
 									<?php endforeach; ?>
163 163
 								</ul>
164 164
 							</div>
165 165
 						</div>
166 166
 						<div class="col-sm-12 form-text text-muted help-text">
167
-							<?= $enc->html( $this->translate( 'admin', 'One provider and zero or more decorator class names separated by commas' ) ); ?>
167
+							<?= $enc->html($this->translate('admin', 'One provider and zero or more decorator class names separated by commas')); ?>
168 168
 						</div>
169 169
 					</div>
170 170
 					<div class="form-group row mandatory">
171
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label>
171
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label>
172 172
 						<div class="col-sm-8">
173 173
 							<input class="form-control item-position" type="number" required="required" tabindex="1"
174
-								name="<?= $this->formparam( array( 'item', 'plugin.position' ) ); ?>"
175
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Plugin position (required)' ) ); ?>"
176
-								value="<?= $enc->attr( $this->get( 'itemData/plugin.position' ) ); ?>"
177
-								<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> />
174
+								name="<?= $this->formparam(array('item', 'plugin.position')); ?>"
175
+								placeholder="<?= $enc->attr($this->translate('admin', 'Plugin position (required)')); ?>"
176
+								value="<?= $enc->attr($this->get('itemData/plugin.position')); ?>"
177
+								<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> />
178 178
 						</div>
179 179
 						<div class="col-sm-12 form-text text-muted help-text">
180
-							<?= $enc->html( $this->translate( 'admin', 'Execution order of the plugins' ) ); ?>
180
+							<?= $enc->html($this->translate('admin', 'Execution order of the plugins')); ?>
181 181
 						</div>
182 182
 					</div>
183 183
 				</div><!--
184 184
 
185
-				--><div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?>">
185
+				--><div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?>">
186 186
 					<table class="item-config table table-striped">
187 187
 						<thead>
188 188
 							<tr>
189 189
 								<th class="config-row-key">
190
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
190
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
191 191
 									<div class="form-text text-muted help-text">
192
-										<?= $enc->html( $this->translate( 'admin', 'Plugin provider or plugin decorator configuration name' ) ); ?>
192
+										<?= $enc->html($this->translate('admin', 'Plugin provider or plugin decorator configuration name')); ?>
193 193
 									</div>
194 194
 								</th>
195 195
 								<th>
196
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
196
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
197 197
 								</th class="config-row-value">
198 198
 								<th class="actions">
199
-									<?php if( !$this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ) ) : ?>
199
+									<?php if (!$this->site()->readonly($this->get('itemData/plugin.siteid'))) : ?>
200 200
 										<div class="btn act-add fa" tabindex="1"
201
-											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
201
+											title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>">
202 202
 										</div>
203 203
 									<?php endif; ?>
204 204
 								</th>
@@ -206,26 +206,26 @@  discard block
 block discarded – undo
206 206
 						</thead>
207 207
 						<tbody>
208 208
 
209
-							<?php foreach( (array) $this->get( 'itemData/config/key', [] ) as $idx => $key ) : ?>
209
+							<?php foreach ((array) $this->get('itemData/config/key', []) as $idx => $key) : ?>
210 210
 								<tr class="config-item">
211 211
 									<td class="config-row-key">
212 212
 										<input type="text" class="config-key form-control" tabindex="1"
213
-											name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>"
214
-											value="<?= $enc->attr( $this->get( 'itemData/config/key/' . $idx, $key ) ); ?>"
215
-											<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> />
213
+											name="<?= $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>"
214
+											value="<?= $enc->attr($this->get('itemData/config/key/' . $idx, $key)); ?>"
215
+											<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> />
216 216
 										<div class="form-text text-muted help-text"></div>
217 217
 									</td>
218 218
 									<td class="config-row-value">
219
-										<?php $cfgval = $this->get( 'itemData/config/val/' . $idx ); ?>
219
+										<?php $cfgval = $this->get('itemData/config/val/' . $idx); ?>
220 220
 										<input type="text" class="config-value form-control config-type" tabindex="1"
221
-											name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>"
222
-											value="<?= $enc->attr( !is_scalar( $cfgval ) ? json_encode( $cfgval ) : $cfgval ); ?>"
223
-											<?= $this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ); ?> />
221
+											name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>"
222
+											value="<?= $enc->attr(!is_scalar($cfgval) ? json_encode($cfgval) : $cfgval); ?>"
223
+											<?= $this->site()->readonly($this->get('itemData/plugin.siteid')); ?> />
224 224
 									</td>
225 225
 									<td class="actions">
226
-										<?php if( !$this->site()->readonly( $this->get( 'itemData/plugin.siteid' ) ) ) : ?>
226
+										<?php if (!$this->site()->readonly($this->get('itemData/plugin.siteid'))) : ?>
227 227
 											<div class="btn act-delete fa" tabindex="1"
228
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
228
+												title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
229 229
 											</div>
230 230
 										<?php endif; ?>
231 231
 									</td>
@@ -235,20 +235,20 @@  discard block
 block discarded – undo
235 235
 							<tr class="config-item prototype">
236 236
 								<td class="config-row-key">
237 237
 									<input type="text" class="config-key form-control" tabindex="1" disabled="disabled"
238
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>" />
238
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>" />
239 239
 									<div class="form-text text-muted help-text"></div>
240 240
 								</td>
241 241
 								<td class="config-row-value">
242 242
 
243 243
 									<div class="config-type config-type-map">
244 244
 										<input type="text" class="config-value form-control" tabindex="1" disabled="disabled"
245
-											name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
245
+											name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
246 246
 
247 247
 										<table class="table table-striped config-map-table">
248 248
 											<tr class="config-map-row prototype-map">
249 249
 												<td class="config-map-actions">
250 250
 													<div class="btn act-delete fa" tabindex="1"
251
-														title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
251
+														title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
252 252
 													</div>
253 253
 												</td>
254 254
 												<td class="config-map-row-key">
@@ -261,12 +261,12 @@  discard block
 block discarded – undo
261 261
 											<tr class="config-map-actions">
262 262
 												<td class="config-map-action-add">
263 263
 													<div class="btn act-add fa" tabindex="1"
264
-														title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry') ); ?>">
264
+														title="<?= $enc->attr($this->translate('admin', 'Insert new entry')); ?>">
265 265
 													</div>
266 266
 												</td>
267 267
 												<td class="config-map-action-update" colspan="2">
268 268
 													<div class="btn btn-primary act-update" tabindex="1">
269
-														<?= $enc->attr( $this->translate( 'admin', 'OK') ); ?>
269
+														<?= $enc->attr($this->translate('admin', 'OK')); ?>
270 270
 													</div>
271 271
 												</td>
272 272
 											</tr>
@@ -274,37 +274,37 @@  discard block
 block discarded – undo
274 274
 									</div>
275 275
 
276 276
 									<select class="config-value form-control config-type config-type-select" tabindex="1" disabled="disabled"
277
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" >
277
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" >
278 278
 									</select>
279 279
 
280 280
 									<select class="config-value form-control config-type config-type-boolean" tabindex="1" disabled="disabled"
281
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" >
281
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" >
282 282
 										<option value=""></option>
283
-										<option value="0"><?= $enc->html( $this->translate( 'client', 'no' ) ); ?></option>
284
-										<option value="1"><?= $enc->html( $this->translate( 'client', 'yes' ) ); ?></option>
283
+										<option value="0"><?= $enc->html($this->translate('client', 'no')); ?></option>
284
+										<option value="1"><?= $enc->html($this->translate('client', 'yes')); ?></option>
285 285
 									</select>
286 286
 
287 287
 									<input type="text" class="config-value form-control config-type config-type-string" tabindex="1" disabled="disabled"
288
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
288
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
289 289
 
290 290
 									<input type="number" class="config-value form-control config-type config-type-number" tabindex="1" disabled="disabled"
291
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" step="0.01" />
291
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" step="0.01" />
292 292
 
293 293
 									<input type="number" class="config-value form-control config-type config-type-integer" tabindex="1" disabled="disabled"
294
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
294
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
295 295
 
296 296
 									<input type="date" class="config-value form-control config-type config-type-date" tabindex="1" disabled="disabled"
297
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
297
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
298 298
 
299 299
 									<input type="datetime-local" class="config-value form-control config-type config-type-datetime" tabindex="1" disabled="disabled"
300
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
300
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
301 301
 
302 302
 									<input type="time" class="config-value form-control config-type config-type-time" tabindex="1" disabled="disabled"
303
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
303
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
304 304
 								</td>
305 305
 								<td class="actions">
306 306
 									<div class="btn act-delete fa" tabindex="1"
307
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
307
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
308 308
 									</div>
309 309
 								</td>
310 310
 							</tr>
@@ -314,12 +314,12 @@  discard block
 block discarded – undo
314 314
 
315 315
 			</div>
316 316
 
317
-			<?= $this->get( 'itemBody' ); ?>
317
+			<?= $this->get('itemBody'); ?>
318 318
 
319 319
 		</div>
320 320
 
321 321
 		<div class="item-actions">
322
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
322
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
323 323
 		</div>
324 324
 	</div>
325 325
 </form>
@@ -327,4 +327,4 @@  discard block
 block discarded – undo
327 327
 <?php $this->block()->stop(); ?>
328 328
 
329 329
 
330
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
330
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/plugin/list-standard.php 1 patch
Spacing   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  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
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/plugin/fields
@@ -49,45 +49,45 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['plugin.status', 'plugin.label', 'plugin.provider', 'plugin.position'];
52
-$default = $this->config( 'admin/jqadm/plugin/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/plugin/fields', $default );
52
+$default = $this->config('admin/jqadm/plugin/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/plugin/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $typeList = [];
59
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
59
+foreach ($this->get('itemTypes', []) as $typeItem) {
60 60
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
61 61
 }
62 62
 
63 63
 $columnList = [
64
-	'plugin.id' => $this->translate( 'admin', 'ID' ),
65
-	'plugin.status' => $this->translate( 'admin', 'Status' ),
66
-	'plugin.type' => $this->translate( 'admin', 'Type' ),
67
-	'plugin.position' => $this->translate( 'admin', 'Position' ),
68
-	'plugin.label' => $this->translate( 'admin', 'Label' ),
69
-	'plugin.provider' => $this->translate( 'admin', 'Provider' ),
70
-	'plugin.config' => $this->translate( 'admin', 'Config' ),
71
-	'plugin.ctime' => $this->translate( 'admin', 'Created' ),
72
-	'plugin.mtime' => $this->translate( 'admin', 'Modified' ),
73
-	'plugin.editor' => $this->translate( 'admin', 'Editor' ),
64
+	'plugin.id' => $this->translate('admin', 'ID'),
65
+	'plugin.status' => $this->translate('admin', 'Status'),
66
+	'plugin.type' => $this->translate('admin', 'Type'),
67
+	'plugin.position' => $this->translate('admin', 'Position'),
68
+	'plugin.label' => $this->translate('admin', 'Label'),
69
+	'plugin.provider' => $this->translate('admin', 'Provider'),
70
+	'plugin.config' => $this->translate('admin', 'Config'),
71
+	'plugin.ctime' => $this->translate('admin', 'Created'),
72
+	'plugin.mtime' => $this->translate('admin', 'Modified'),
73
+	'plugin.editor' => $this->translate('admin', 'Editor'),
74 74
 ];
75 75
 
76 76
 ?>
77
-<?php $this->block()->start( 'jqadm_content' ); ?>
77
+<?php $this->block()->start('jqadm_content'); ?>
78 78
 
79 79
 <nav class="main-navbar">
80 80
 
81 81
 	<span class="navbar-brand">
82
-		<?= $enc->html( $this->translate( 'admin', 'Plugin' ) ); ?>
83
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
82
+		<?= $enc->html($this->translate('admin', 'Plugin')); ?>
83
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
84 84
 	</span>
85 85
 
86 86
 	<?= $this->partial(
87
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
88
-			'filter' => $this->session( 'aimeos/admin/jqadm/plugin/filter', [] ),
89
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
90
-			'filterOperators' => $this->get( 'filterOperators', [] ),
87
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
88
+			'filter' => $this->session('aimeos/admin/jqadm/plugin/filter', []),
89
+			'filterAttributes' => $this->get('filterAttributes', []),
90
+			'filterOperators' => $this->get('filterOperators', []),
91 91
 			'params' => $params,
92 92
 		]
93 93
 	); ?>
@@ -95,33 +95,33 @@  discard block
 block discarded – undo
95 95
 
96 96
 
97 97
 <?= $this->partial(
98
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
99
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
100
-		'page' => $this->session( 'aimeos/admin/jqadm/plugin/page', [] )]
98
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
99
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
100
+		'page' => $this->session('aimeos/admin/jqadm/plugin/page', [])]
101 101
 	);
102 102
 ?>
103 103
 
104
-<form class="list list-product" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
104
+<form class="list list-product" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
105 105
 	<?= $this->csrf()->formfield(); ?>
106 106
 
107 107
 	<table class="list-items table table-hover table-striped">
108 108
 		<thead class="list-header">
109 109
 			<tr>
110 110
 				<?= $this->partial(
111
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
112
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/plugin/sort' )]
111
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
112
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/plugin/sort')]
113 113
 					);
114 114
 				?>
115 115
 
116 116
 				<th class="actions">
117 117
 					<a class="btn fa act-add" tabindex="1"
118
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
119
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
120
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
118
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
119
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
120
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
121 121
 					</a>
122 122
 
123 123
 					<?= $this->partial(
124
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
124
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
125 125
 							['fields' => $fields, 'data' => $columnList]
126 126
 						);
127 127
 					?>
@@ -131,15 +131,15 @@  discard block
 block discarded – undo
131 131
 		<tbody>
132 132
 
133 133
 			<?= $this->partial(
134
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
135
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/plugin/filter', [] ),
134
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
135
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/plugin/filter', []),
136 136
 					'data' => [
137 137
 						'plugin.id' => ['op' => '=='],
138 138
 						'plugin.status' => ['op' => '==', 'type' => 'select', 'val' => [
139
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
140
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
141
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
142
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
139
+							'1' => $this->translate('mshop/code', 'status:1'),
140
+							'0' => $this->translate('mshop/code', 'status:0'),
141
+							'-1' => $this->translate('mshop/code', 'status:-1'),
142
+							'-2' => $this->translate('mshop/code', 'status:-2'),
143 143
 						]],
144 144
 						'plugin.type' => ['op' => '==', 'type' => 'select', 'val' => $typeList],
145 145
 						'plugin.position' => ['op' => '>=', 'type' => 'number'],
@@ -153,58 +153,58 @@  discard block
 block discarded – undo
153 153
 				] );
154 154
 			?>
155 155
 
156
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
157
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
158
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
159
-					<?php if( in_array( 'plugin.id', $fields ) ) : ?>
160
-						<td class="plugin-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
156
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
157
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
158
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
159
+					<?php if (in_array('plugin.id', $fields)) : ?>
160
+						<td class="plugin-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
161 161
 					<?php endif; ?>
162
-					<?php if( in_array( 'plugin.status', $fields ) ) : ?>
163
-						<td class="plugin-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
162
+					<?php if (in_array('plugin.status', $fields)) : ?>
163
+						<td class="plugin-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
164 164
 					<?php endif; ?>
165
-					<?php if( in_array( 'plugin.type', $fields ) ) : ?>
166
-						<td class="plugin-type"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getType() ); ?></a></td>
165
+					<?php if (in_array('plugin.type', $fields)) : ?>
166
+						<td class="plugin-type"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getType()); ?></a></td>
167 167
 					<?php endif; ?>
168
-					<?php if( in_array( 'plugin.position', $fields ) ) : ?>
169
-						<td class="plugin-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
168
+					<?php if (in_array('plugin.position', $fields)) : ?>
169
+						<td class="plugin-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
170 170
 					<?php endif; ?>
171
-					<?php if( in_array( 'plugin.label', $fields ) ) : ?>
172
-						<td class="plugin-label"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getLabel() ); ?></a></td>
171
+					<?php if (in_array('plugin.label', $fields)) : ?>
172
+						<td class="plugin-label"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getLabel()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'plugin.provider', $fields ) ) : ?>
175
-						<td class="plugin-provider"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getProvider() ); ?></a></td>
174
+					<?php if (in_array('plugin.provider', $fields)) : ?>
175
+						<td class="plugin-provider"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getProvider()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'plugin.config', $fields ) ) : ?>
177
+					<?php if (in_array('plugin.config', $fields)) : ?>
178 178
 						<td class="plugin-config config-item">
179 179
 							<a class="items-field" href="<?= $url; ?>">
180
-								<?php foreach( $item->getConfig() as $key => $value ) : ?>
181
-									<span class="config-key"><?= $enc->html( $key ); ?></span>
182
-									<span class="config-value"><?= $enc->html( !is_scalar( $value ) ? json_encode( $value ) : $value ); ?></span>
180
+								<?php foreach ($item->getConfig() as $key => $value) : ?>
181
+									<span class="config-key"><?= $enc->html($key); ?></span>
182
+									<span class="config-value"><?= $enc->html(!is_scalar($value) ? json_encode($value) : $value); ?></span>
183 183
 									<br/>
184 184
 								<?php endforeach; ?>
185 185
 							</a>
186 186
 						</td>
187 187
 					<?php endif; ?>
188
-					<?php if( in_array( 'plugin.ctime', $fields ) ) : ?>
189
-						<td class="plugin-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
188
+					<?php if (in_array('plugin.ctime', $fields)) : ?>
189
+						<td class="plugin-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
190 190
 					<?php endif; ?>
191
-					<?php if( in_array( 'plugin.mtime', $fields ) ) : ?>
192
-						<td class="plugin-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
191
+					<?php if (in_array('plugin.mtime', $fields)) : ?>
192
+						<td class="plugin-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
193 193
 					<?php endif; ?>
194
-					<?php if( in_array( 'plugin.editor', $fields ) ) : ?>
195
-						<td class="plugin-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
194
+					<?php if (in_array('plugin.editor', $fields)) : ?>
195
+						<td class="plugin-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
196 196
 					<?php endif; ?>
197 197
 
198 198
 					<td class="actions">
199 199
 						<a class="btn act-copy fa" tabindex="1"
200
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
201
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
202
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
203
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
200
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
201
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
202
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
203
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
204 204
 							<a class="btn act-delete fa" tabindex="1"
205
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'plugin', 'id' => $id] + $params, [], $delConfig ) ); ?>"
206
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
207
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
205
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['resource' => 'plugin', 'id' => $id] + $params, [], $delConfig)); ?>"
206
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
207
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
208 208
 						<?php endif; ?>
209 209
 					</td>
210 210
 				</tr>
@@ -212,18 +212,18 @@  discard block
 block discarded – undo
212 212
 		</tbody>
213 213
 	</table>
214 214
 
215
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
216
-		<?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?>
215
+	<?php if ($this->get('items', []) === []) : ?>
216
+		<?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?>
217 217
 	<?php endif; ?>
218 218
 </form>
219 219
 
220 220
 <?= $this->partial(
221
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
222
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
223
-		'page' => $this->session( 'aimeos/admin/jqadm/plugin/page', [] )]
221
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
222
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
223
+		'page' => $this->session('aimeos/admin/jqadm/plugin/page', [])]
224 224
 	);
225 225
 ?>
226 226
 
227 227
 <?php $this->block()->stop(); ?>
228 228
 
229
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
229
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-standard.php 1 patch
Spacing   +107 added lines, -107 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2015-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12 12
 $enc = $this->encoder();
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  * @see admin/jqadm/url/save/action
27 27
  * @see admin/jqadm/url/save/config
28 28
  */
29
-$target = $this->config( 'admin/jqadm/url/save/target' );
29
+$target = $this->config('admin/jqadm/url/save/target');
30 30
 
31 31
 /** admin/jqadm/url/save/controller
32 32
  * Name of the controller whose action should be called
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  * @see admin/jqadm/url/save/action
43 43
  * @see admin/jqadm/url/save/config
44 44
  */
45
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
45
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
46 46
 
47 47
 /** admin/jqadm/url/save/action
48 48
  * Name of the action that should create the output
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
  * @see admin/jqadm/url/save/controller
59 59
  * @see admin/jqadm/url/save/config
60 60
  */
61
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
61
+$action = $this->config('admin/jqadm/url/save/action', 'save');
62 62
 
63 63
 /** admin/jqadm/url/save/config
64 64
  * Associative list of configuration options used for generating the URL
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
  * @see admin/jqadm/url/save/controller
81 81
  * @see admin/jqadm/url/save/action
82 82
  */
83
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
83
+$config = $this->config('admin/jqadm/url/save/config', []);
84 84
 
85 85
 
86 86
 /** admin/jqadm/product/item/config/suggest
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  * @category Developer
95 95
  * @see admin/jqadm/catalog/item/config/suggest
96 96
  */
97
-$cfgSuggest = $this->config( 'admin/jqadm/product/item/config/suggest', ['css-class'] );
97
+$cfgSuggest = $this->config('admin/jqadm/product/item/config/suggest', ['css-class']);
98 98
 
99 99
 
100 100
 /** admin/jqadm/partial/itemactions
@@ -118,26 +118,26 @@  discard block
 block discarded – undo
118 118
  */
119 119
 
120 120
 
121
-$params = $this->get( 'pageParams', [] );
121
+$params = $this->get('pageParams', []);
122 122
 
123 123
 
124 124
 ?>
125
-<?php $this->block()->start( 'jqadm_content' ); ?>
125
+<?php $this->block()->start('jqadm_content'); ?>
126 126
 
127
-<form class="item item-product form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
128
-	<input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'product.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/product.id' ) ); ?>" />
129
-	<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
127
+<form class="item item-product form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
128
+	<input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'product.id'))); ?>" value="<?= $enc->attr($this->get('itemData/product.id')); ?>" />
129
+	<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
130 130
 	<?= $this->csrf()->formfield(); ?>
131 131
 
132 132
 	<nav class="main-navbar">
133 133
 		<span class="navbar-brand">
134
-			<?= $enc->html( $this->translate( 'admin', 'Product' ) ); ?>:
135
-			<?= $enc->html( $this->get( 'itemData/product.id' ) ); ?> -
136
-			<?= $enc->html( $this->get( 'itemData/product.label', $this->translate( 'admin', 'New' ) ) ); ?>
137
-			<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/product.siteid' ) ) ); ?>)</span>
134
+			<?= $enc->html($this->translate('admin', 'Product')); ?>:
135
+			<?= $enc->html($this->get('itemData/product.id')); ?> -
136
+			<?= $enc->html($this->get('itemData/product.label', $this->translate('admin', 'New'))); ?>
137
+			<span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/product.siteid'))); ?>)</span>
138 138
 		</span>
139 139
 		<div class="item-actions">
140
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
140
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
141 141
 		</div>
142 142
 	</nav>
143 143
 
@@ -148,14 +148,14 @@  discard block
 block discarded – undo
148 148
 
149 149
 				<li class="nav-item basic">
150 150
 					<a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic">
151
-						<?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?>
151
+						<?= $enc->html($this->translate('admin', 'Basic')); ?>
152 152
 					</a>
153 153
 				</li>
154 154
 
155
-				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
156
-					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
157
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
158
-							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
155
+				<?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?>
156
+					<li class="nav-item <?= $enc->attr($subpart); ?>">
157
+						<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
158
+							<?= $enc->html($this->translate('admin', $subpart)); ?>
159 159
 						</a>
160 160
 					</li>
161 161
 				<?php endforeach; ?>
@@ -164,16 +164,16 @@  discard block
 block discarded – undo
164 164
 
165 165
 			<div class="item-meta text-muted">
166 166
 				<small>
167
-					<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
168
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/product.mtime' ) ); ?></span>
167
+					<?= $enc->html($this->translate('admin', 'Modified')); ?>:
168
+					<span class="meta-value"><?= $enc->html($this->get('itemData/product.mtime')); ?></span>
169 169
 				</small>
170 170
 				<small>
171
-					<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
172
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/product.ctime' ) ); ?></span>
171
+					<?= $enc->html($this->translate('admin', 'Created')); ?>:
172
+					<span class="meta-value"><?= $enc->html($this->get('itemData/product.ctime')); ?></span>
173 173
 				</small>
174 174
 				<small>
175
-					<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
176
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/product.editor' ) ); ?></span>
175
+					<?= $enc->html($this->translate('admin', 'Editor')); ?>:
176
+					<span class="meta-value"><?= $enc->html($this->get('itemData/product.editor')); ?></span>
177 177
 				</small>
178 178
 			</div>
179 179
 		</div>
@@ -182,146 +182,146 @@  discard block
 block discarded – undo
182 182
 
183 183
 			<div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic">
184 184
 
185
-				<div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?>">
185
+				<div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/product.siteid')); ?>">
186 186
 					<div class="form-group row mandatory">
187
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
187
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
188 188
 						<div class="col-sm-8">
189 189
 							<select class="form-control custom-select item-status" required="required" tabindex="1"
190
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.status' ) ) ); ?>"
191
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> >
190
+								name="<?= $enc->attr($this->formparam(array('item', 'product.status'))); ?>"
191
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> >
192 192
 								<option value="">
193
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
193
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
194 194
 								</option>
195
-								<option value="1" <?= $selected( $this->get( 'itemData/product.status', 1 ), 1 ); ?> >
196
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
195
+								<option value="1" <?= $selected($this->get('itemData/product.status', 1), 1); ?> >
196
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
197 197
 								</option>
198
-								<option value="0" <?= $selected( $this->get( 'itemData/product.status', 1 ), 0 ); ?> >
199
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
198
+								<option value="0" <?= $selected($this->get('itemData/product.status', 1), 0); ?> >
199
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
200 200
 								</option>
201
-								<option value="-1" <?= $selected( $this->get( 'itemData/product.status', 1 ), -1 ); ?> >
202
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
201
+								<option value="-1" <?= $selected($this->get('itemData/product.status', 1), -1); ?> >
202
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
203 203
 								</option>
204
-								<option value="-2" <?= $selected( $this->get( 'itemData/product.status', 1 ), -2 ); ?> >
205
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
204
+								<option value="-2" <?= $selected($this->get('itemData/product.status', 1), -2); ?> >
205
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
206 206
 								</option>
207 207
 							</select>
208 208
 						</div>
209 209
 					</div>
210 210
 					<div class="form-group row mandatory">
211
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
211
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
212 212
 						<div class="col-sm-8">
213 213
 							<select class="form-control custom-select item-type" required="required" tabindex="1"
214
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); ?>"
215
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> >
214
+								name="<?= $enc->attr($this->formparam(array('item', 'product.type'))); ?>"
215
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> >
216 216
 								<option value="">
217
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
217
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
218 218
 								</option>
219 219
 
220
-								<?php foreach( $this->get( 'itemTypes', [] ) as $typeItem ) : ?>
221
-									<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" <?= $selected( $this->get( 'itemData/product.type' ), $typeItem->getCode() ); ?> >
222
-										<?= $enc->html( $typeItem->getLabel() ); ?>
220
+								<?php foreach ($this->get('itemTypes', []) as $typeItem) : ?>
221
+									<option value="<?= $enc->attr($typeItem->getCode()); ?>" <?= $selected($this->get('itemData/product.type'), $typeItem->getCode()); ?> >
222
+										<?= $enc->html($typeItem->getLabel()); ?>
223 223
 									</option>
224 224
 								<?php endforeach; ?>
225 225
 							</select>
226 226
 						</div>
227 227
 					</div>
228 228
 					<div class="form-group row mandatory">
229
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'SKU' ) ); ?></label>
229
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'SKU')); ?></label>
230 230
 						<div class="col-sm-8">
231 231
 							<input class="form-control item-code" type="text" required="required" tabindex="1"
232
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.code' ) ) ); ?>"
233
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'EAN, SKU or article number (required)' ) ); ?>"
234
-								value="<?= $enc->attr( $this->get( 'itemData/product.code' ) ); ?>"
235
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
232
+								name="<?= $enc->attr($this->formparam(array('item', 'product.code'))); ?>"
233
+								placeholder="<?= $enc->attr($this->translate('admin', 'EAN, SKU or article number (required)')); ?>"
234
+								value="<?= $enc->attr($this->get('itemData/product.code')); ?>"
235
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
236 236
 						</div>
237 237
 						<div class="col-sm-12 form-text text-muted help-text">
238
-							<?= $enc->html( $this->translate( 'admin', 'Unique article code related to stock levels, e.g. from the ERP system, an EAN/GTIN number or self invented' ) ); ?>
238
+							<?= $enc->html($this->translate('admin', 'Unique article code related to stock levels, e.g. from the ERP system, an EAN/GTIN number or self invented')); ?>
239 239
 						</div>
240 240
 					</div>
241 241
 					<div class="form-group row mandatory">
242
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
242
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
243 243
 						<div class="col-sm-8">
244 244
 							<input class="form-control item-label" type="text" required="required" tabindex="1"
245
-								name="<?= $this->formparam( array( 'item', 'product.label' ) ); ?>"
246
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>"
247
-								value="<?= $enc->attr( $this->get( 'itemData/product.label' ) ); ?>"
248
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
245
+								name="<?= $this->formparam(array('item', 'product.label')); ?>"
246
+								placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>"
247
+								value="<?= $enc->attr($this->get('itemData/product.label')); ?>"
248
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
249 249
 						</div>
250 250
 						<div class="col-sm-12 form-text text-muted help-text">
251
-							<?= $enc->html( $this->translate( 'admin', 'Internal article name, will be used on the web site and for searching only if no other product names in any language exist' ) ); ?>
251
+							<?= $enc->html($this->translate('admin', 'Internal article name, will be used on the web site and for searching only if no other product names in any language exist')); ?>
252 252
 						</div>
253 253
 					</div>
254 254
 					<div class="form-group row optional">
255
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
255
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
256 256
 						<div class="col-sm-8">
257 257
 							<input class="form-control item-datestart" type="datetime-local" tabindex="1"
258
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.datestart' ) ) ); ?>"
259
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
260
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'itemData/product.datestart' ) ) ); ?>"
261
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
258
+								name="<?= $enc->attr($this->formparam(array('item', 'product.datestart'))); ?>"
259
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
260
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('itemData/product.datestart'))); ?>"
261
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
262 262
 						</div>
263 263
 						<div class="col-sm-12 form-text text-muted help-text">
264
-							<?= $enc->html( $this->translate( 'admin', 'The article is only shown on the web site after that date and time, useful or seasonal articles' ) ); ?>
264
+							<?= $enc->html($this->translate('admin', 'The article is only shown on the web site after that date and time, useful or seasonal articles')); ?>
265 265
 						</div>
266 266
 					</div>
267 267
 					<div class="form-group row optional">
268
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
268
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
269 269
 						<div class="col-sm-8">
270 270
 							<input class="form-control item-dateend" type="datetime-local" tabindex="1"
271
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.dateend' ) ) ); ?>"
272
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
273
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'itemData/product.dateend' ) ) ); ?>"
274
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
271
+								name="<?= $enc->attr($this->formparam(array('item', 'product.dateend'))); ?>"
272
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
273
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('itemData/product.dateend'))); ?>"
274
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
275 275
 						</div>
276 276
 						<div class="col-sm-12 form-text text-muted help-text">
277
-							<?= $enc->html( $this->translate( 'admin', 'The article is only shown on the web site until that date and time, useful or seasonal articles' ) ); ?>
277
+							<?= $enc->html($this->translate('admin', 'The article is only shown on the web site until that date and time, useful or seasonal articles')); ?>
278 278
 						</div>
279 279
 					</div>
280 280
 					<div class="form-group row optional">
281
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?></label>
281
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Created')); ?></label>
282 282
 						<div class="col-sm-8">
283 283
 							<input class="form-control item-ctime" type="datetime-local" tabindex="1"
284
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.ctime' ) ) ); ?>"
285
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
286
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'itemData/product.ctime' ) ) ); ?>"
287
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
284
+								name="<?= $enc->attr($this->formparam(array('item', 'product.ctime'))); ?>"
285
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
286
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('itemData/product.ctime'))); ?>"
287
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
288 288
 						</div>
289 289
 						<div class="col-sm-12 form-text text-muted help-text">
290
-							<?= $enc->html( $this->translate( 'admin', 'Since when the product is available, used for sorting in the front-end' ) ); ?>
290
+							<?= $enc->html($this->translate('admin', 'Since when the product is available, used for sorting in the front-end')); ?>
291 291
 						</div>
292 292
 					</div>
293 293
 					<div class="form-group row optional warning">
294
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'URL target' ) ); ?></label>
294
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'URL target')); ?></label>
295 295
 						<div class="col-sm-8">
296 296
 							<input class="form-control item-target" type="text" tabindex="1"
297
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'product.target' ) ) ); ?>"
298
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Route or page ID (optional)' ) ); ?>"
299
-								value="<?= $enc->attr( $this->get( 'itemData/product.target' ) ); ?>"
300
-								<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
297
+								name="<?= $enc->attr($this->formparam(array('item', 'product.target'))); ?>"
298
+								placeholder="<?= $enc->attr($this->translate('admin', 'Route or page ID (optional)')); ?>"
299
+								value="<?= $enc->attr($this->get('itemData/product.target')); ?>"
300
+								<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
301 301
 						</div>
302 302
 						<div class="col-sm-12 form-text text-muted help-text">
303
-							<?= $enc->html( $this->translate( 'admin', 'Route name or page ID of the product detail page if this product should shown on a different page' ) ); ?>
303
+							<?= $enc->html($this->translate('admin', 'Route name or page ID of the product detail page if this product should shown on a different page')); ?>
304 304
 						</div>
305 305
 					</div>
306 306
 				</div><!--
307 307
 
308
-				--><div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?>">
309
-							<table class="item-config table table-striped" data-keys="<?= $enc->attr( json_encode( $cfgSuggest ) ); ?>">
308
+				--><div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/product.siteid')); ?>">
309
+							<table class="item-config table table-striped" data-keys="<?= $enc->attr(json_encode($cfgSuggest)); ?>">
310 310
 						<thead>
311 311
 							<tr>
312 312
 								<th>
313
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
313
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
314 314
 									<div class="form-text text-muted help-text">
315
-										<?= $enc->html( $this->translate( 'admin', 'Article specific configuration options, will be available as key/value pairs in the templates' ) ); ?>
315
+										<?= $enc->html($this->translate('admin', 'Article specific configuration options, will be available as key/value pairs in the templates')); ?>
316 316
 									</div>
317 317
 								</th>
318 318
 								<th>
319
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
319
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
320 320
 								</th>
321 321
 								<th class="actions">
322
-									<?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?>
322
+									<?php if (!$this->site()->readonly($this->get('itemData/product.siteid'))) : ?>
323 323
 										<div class="btn act-add fa" tabindex="1"
324
-											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
324
+											title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>">
325 325
 										</div>
326 326
 									<?php endif; ?>
327 327
 								</th>
@@ -329,24 +329,24 @@  discard block
 block discarded – undo
329 329
 						</thead>
330 330
 						<tbody>
331 331
 
332
-							<?php foreach( (array) $this->get( 'itemData/config/key', [] ) as $idx => $key ) : ?>
332
+							<?php foreach ((array) $this->get('itemData/config/key', []) as $idx => $key) : ?>
333 333
 								<tr class="config-item">
334 334
 									<td>
335 335
 										<input type="text" class="config-key form-control" tabindex="1"
336
-											name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>"
337
-											value="<?= $enc->attr( $this->get( 'itemData/config/key/' . $idx, $key ) ); ?>"
338
-											<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
336
+											name="<?= $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>"
337
+											value="<?= $enc->attr($this->get('itemData/config/key/' . $idx, $key)); ?>"
338
+											<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
339 339
 									</td>
340 340
 									<td>
341 341
 										<input type="text" class="config-value form-control" tabindex="1"
342
-											name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>"
343
-											value="<?= $enc->attr( $this->get( 'itemData/config/val/' . $idx ) ); ?>"
344
-											<?= $this->site()->readonly( $this->get( 'itemData/product.siteid' ) ); ?> />
342
+											name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>"
343
+											value="<?= $enc->attr($this->get('itemData/config/val/' . $idx)); ?>"
344
+											<?= $this->site()->readonly($this->get('itemData/product.siteid')); ?> />
345 345
 									</td>
346 346
 									<td class="actions">
347
-										<?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?>
347
+										<?php if (!$this->site()->readonly($this->get('itemData/product.siteid'))) : ?>
348 348
 											<div class="btn act-delete fa" tabindex="1"
349
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
349
+												title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
350 350
 											</div>
351 351
 										<?php endif; ?>
352 352
 									</td>
@@ -356,16 +356,16 @@  discard block
 block discarded – undo
356 356
 							<tr class="prototype">
357 357
 								<td>
358 358
 									<input type="text" class="config-key form-control" tabindex="1" disabled="disabled"
359
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>" />
359
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>" />
360 360
 								</td>
361 361
 								<td>
362 362
 									<input type="text" class="config-value form-control" tabindex="1" disabled="disabled"
363
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" />
363
+										name="<?= $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" />
364 364
 								</td>
365 365
 								<td class="actions">
366
-									<?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?>
366
+									<?php if (!$this->site()->readonly($this->get('itemData/product.siteid'))) : ?>
367 367
 										<div class="btn act-delete fa" tabindex="1"
368
-											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
368
+											title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
369 369
 										</div>
370 370
 									<?php endif; ?>
371 371
 								</td>
@@ -376,12 +376,12 @@  discard block
 block discarded – undo
376 376
 
377 377
 			</div>
378 378
 
379
-			<?= $this->get( 'itemBody' ); ?>
379
+			<?= $this->get('itemBody'); ?>
380 380
 
381 381
 		</div>
382 382
 
383 383
 		<div class="item-actions">
384
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
384
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
385 385
 		</div>
386 386
 	</div>
387 387
 </form>
@@ -389,4 +389,4 @@  discard block
 block discarded – undo
389 389
 <?php $this->block()->stop(); ?>
390 390
 
391 391
 
392
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
392
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-stock-standard.php 2 patches
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 
9 9
 $enc = $this->encoder();
10
-$stockTypes = $this->get( 'stockTypes', [] );
10
+$stockTypes = $this->get('stockTypes', []);
11 11
 
12 12
 $keys = ['stock.id', 'stock.siteid', 'stock.type', 'stock.stocklevel', 'stock.dateback'];
13 13
 
@@ -16,37 +16,37 @@  discard block
 block discarded – undo
16 16
 <div id="stock" class="item-stock content-block tab-pane fade" role="tabpanel" aria-labelledby="stock">
17 17
 
18 18
 	<table class="stock-list table table-default"
19
-		data-items="<?= $enc->attr( json_encode( $this->get( 'stockData', [] ) ) ); ?>"
20
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
19
+		data-items="<?= $enc->attr(json_encode($this->get('stockData', []))); ?>"
20
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
21 21
 		data-prefix="stock."
22 22
 		data-siteid="<?= $this->site()->siteid() ?>"
23
-		data-numtypes="<?= count( $stockTypes ) ?>" >
23
+		data-numtypes="<?= count($stockTypes) ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27
-				<?php if( count( $stockTypes ) > 1 ) : ?>
27
+				<?php if (count($stockTypes) > 1) : ?>
28 28
 					<th class="stock-type">
29
-						<span class="help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></span>
29
+						<span class="help"><?= $enc->html($this->translate('admin', 'Type')); ?></span>
30 30
 						<div class="form-text text-muted help-text">
31
-							<?= $enc->html( $this->translate( 'admin', 'Warehouse or local store if your articles are available at several locations' ) ); ?>
31
+							<?= $enc->html($this->translate('admin', 'Warehouse or local store if your articles are available at several locations')); ?>
32 32
 						</div>
33 33
 					</th>
34 34
 				<?php endif; ?>
35 35
 				<th class="stock-stocklevel">
36
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Stock level' ) ); ?></span>
36
+					<span class="help"><?= $enc->html($this->translate('admin', 'Stock level')); ?></span>
37 37
 					<div class="form-text text-muted help-text">
38
-						<?= $enc->html( $this->translate( 'admin', 'Number of articles currently in stock, leave empty for an unlimited quantity' ) ); ?>
38
+						<?= $enc->html($this->translate('admin', 'Number of articles currently in stock, leave empty for an unlimited quantity')); ?>
39 39
 					</div>
40 40
 				</th>
41 41
 				<th class="stock-databack">
42
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Back in stock' ) ); ?></span>
42
+					<span class="help"><?= $enc->html($this->translate('admin', 'Back in stock')); ?></span>
43 43
 					<div class="form-text text-muted help-text">
44
-						<?= $enc->html( $this->translate( 'admin', 'Shown if the article reached a stock level of zero' ) ); ?>
44
+						<?= $enc->html($this->translate('admin', 'Shown if the article reached a stock level of zero')); ?>
45 45
 					</div>
46 46
 				</th>
47 47
 				<th class="actions">
48
-					<div v-if="(items['stock.id'] || []).length < numtypes" class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
49
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
48
+					<div v-if="(items['stock.id'] || []).length < numtypes" class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
49
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
50 50
 						v-on:click="addItem()">
51 51
 					</div>
52 52
 				</th>
@@ -55,48 +55,48 @@  discard block
 block discarded – undo
55 55
 		<tbody>
56 56
 
57 57
 			<tr v-for="(id, idx) in items['stock.id']" v-bind:key="idx" class="stock-row">
58
-				<?php if( count( $stockTypes ) > 1 ) : ?>
58
+				<?php if (count($stockTypes) > 1) : ?>
59 59
 					<td class="stock-type mandatory">
60
-						<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
61
-							name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.type', '' ) ) ); ?>"
60
+						<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
61
+							name="<?= $enc->attr($this->formparam(array('stock', 'stock.type', ''))); ?>"
62 62
 							v-bind:readonly="checkSite('stock.siteid', idx)"
63 63
 							v-model="items['stock.type'][idx]" >
64 64
 
65 65
 							<option value="" disable>
66
-								<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
66
+								<?= $enc->html($this->translate('admin', 'Please select')); ?>
67 67
 							</option>
68 68
 
69
-							<?php foreach( $stockTypes as $typeItem ) : ?>
70
-								<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="items['stock.type'][idx] == '<?= $enc->attr( $typeItem->getCode() ) ?>'">
71
-									<?= $enc->html( $typeItem->getLabel() ) ?>
69
+							<?php foreach ($stockTypes as $typeItem) : ?>
70
+								<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="items['stock.type'][idx] == '<?= $enc->attr($typeItem->getCode()) ?>'">
71
+									<?= $enc->html($typeItem->getLabel()) ?>
72 72
 								</option>
73 73
 							<?php endforeach; ?>
74 74
 						</select>
75 75
 					</td>
76 76
 				<?php else : ?>
77 77
 					<input class="item-type" type="hidden"
78
-						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.type', '' ) ) ); ?>"
79
-						value="<?= $enc->attr( key( $stockTypes ) ); ?>" />
78
+						name="<?= $enc->attr($this->formparam(array('stock', 'stock.type', ''))); ?>"
79
+						value="<?= $enc->attr(key($stockTypes)); ?>" />
80 80
 				<?php endif; ?>
81 81
 				<td class="stock-stocklevel optional">
82
-					<input class="form-control item-stocklevel" type="number" step="1" min="0" tabindex="<?= $this->get( 'tabindex' ); ?>"
83
-						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.stocklevel', '' ) ) ); ?>"
82
+					<input class="form-control item-stocklevel" type="number" step="1" min="0" tabindex="<?= $this->get('tabindex'); ?>"
83
+						name="<?= $enc->attr($this->formparam(array('stock', 'stock.stocklevel', ''))); ?>"
84 84
 						v-bind:readonly="checkSite('stock.siteid', idx)"
85 85
 						v-model="items['stock.stocklevel'][idx]" />
86 86
 				</td>
87 87
 				<td class="stock-databack optional">
88
-					<input class="form-control item-dateback" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
89
-						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.dateback', '' ) ) ); ?>"
90
-						placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
88
+					<input class="form-control item-dateback" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
89
+						name="<?= $enc->attr($this->formparam(array('stock', 'stock.dateback', ''))); ?>"
90
+						placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
91 91
 						v-bind:readonly="checkSite('stock.siteid', idx)"
92 92
 						v-model="items['stock.dateback'][idx]" />
93 93
 				</td>
94 94
 				<td class="actions">
95 95
 					<input class="item-id" type="hidden" v-model="items['stock.id'][idx]"
96
-						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.id', '' ) ) ); ?>" />
96
+						name="<?= $enc->attr($this->formparam(array('stock', 'stock.id', ''))); ?>" />
97 97
 
98
-					<div v-if="!checkSite('stock.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
98
+					<div v-if="!checkSite('stock.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
99
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
100 100
 						v-on:click.stop="removeItem(idx)">
101 101
 					</div>
102 102
 				</td>
@@ -105,6 +105,6 @@  discard block
 block discarded – undo
105 105
 		</tbody>
106 106
 	</table>
107 107
 
108
-	<?= $this->get( 'stockBody' ); ?>
108
+	<?= $this->get('stockBody'); ?>
109 109
 
110 110
 </div>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,9 +73,12 @@
 block discarded – undo
73 73
 							<?php endforeach; ?>
74 74
 						</select>
75 75
 					</td>
76
-				<?php else : ?>
76
+				<?php else {
77
+	: ?>
77 78
 					<input class="item-type" type="hidden"
78
-						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.type', '' ) ) ); ?>"
79
+						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.type', '' ) ) );
80
+}
81
+?>"
79 82
 						value="<?= $enc->attr( key( $stockTypes ) ); ?>" />
80 83
 				<?php endif; ?>
81 84
 				<td class="stock-stocklevel optional">
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-text-standard.php 2 patches
Spacing   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 ?>
18 18
 <div id="text" class="item-text content-block tab-pane fade" role="tablist" aria-labelledby="text">
19 19
 	<div id="item-text-group" role="tablist" aria-multiselectable="true"
20
-		data-items="<?= $enc->attr( json_encode( $this->get( 'textData', [] ) ) ); ?>"
21
-		data-listtype="<?= key( $this->get( 'textListTypes', [] ) ) ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
20
+		data-items="<?= $enc->attr(json_encode($this->get('textData', []))); ?>"
21
+		data-listtype="<?= key($this->get('textListTypes', [])) ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -28,16 +28,16 @@  discard block
 block discarded – undo
28 28
 				v-bind:data-target="'#item-text-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
31
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
32
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
36 36
 				&nbsp;
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('product.lists.siteid', idx)"
39
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
39
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
40
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 				v-bind:aria-labelledby="'item-text-group-item-' + idx" role="tabpanel" class="card-block collapse row">
48 48
 
49 49
 				<input type="hidden" v-model="items[idx]['text.id']"
50
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.id' ) ) ); ?>'.replace('idx', idx)" />
50
+					v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.id'))); ?>'.replace('idx', idx)" />
51 51
 
52 52
 				<div class="col-xl-6">
53 53
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 							<textarea is="html-editor" class="form-control item-content" required="required" v-once
57 57
 								v-model="items[idx]['text.content']"
58 58
 								v-bind:value="items[idx]['text.content']"
59
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.content' ) ) ); ?>'.replace('idx', idx)"
59
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.content'))); ?>'.replace('idx', idx)"
60 60
 								v-bind:readonly="checkSite('text.siteid', idx)"
61
-								v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
61
+								v-bind:tabindex="<?= $this->get('tabindex'); ?>"
62 62
 							></textarea>
63 63
 						</div>
64 64
 					</div>
@@ -68,101 +68,101 @@  discard block
 block discarded – undo
68 68
 				<div class="col-xl-6">
69 69
 
70 70
 					<div class="form-group row mandatory">
71
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
71
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
72 72
 						<div class="col-sm-8">
73
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
74
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.status' ) ) ); ?>'.replace('idx', idx)"
73
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
74
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.status'))); ?>'.replace('idx', idx)"
75 75
 								v-bind:readonly="checkSite('text.siteid', idx)"
76 76
 								v-model="items[idx]['text.status']" >
77 77
 								<option value="1" v-bind:selected="entry['text.status'] == 1" >
78
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
78
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
79 79
 								</option>
80 80
 								<option value="0" v-bind:selected="entry['text.status'] == 0" >
81
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
81
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
82 82
 								</option>
83 83
 								<option value="-1" v-bind:selected="entry['text.status'] == -1" >
84
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
84
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
85 85
 								</option>
86 86
 								<option value="-2" v-bind:selected="entry['text.status'] == -2" >
87
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
87
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
88 88
 								</option>
89 89
 							</select>
90 90
 						</div>
91 91
 					</div>
92 92
 
93
-					<?php $languages = $this->get( 'pageLangItems', [] ); ?>
94
-					<?php if( count( $languages ) > 1 ) : ?>
93
+					<?php $languages = $this->get('pageLangItems', []); ?>
94
+					<?php if (count($languages) > 1) : ?>
95 95
 						<div class="form-group row mandatory">
96
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
96
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
97 97
 							<div class="col-sm-8">
98
-								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
98
+								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
99
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
100 100
 									v-bind:readonly="checkSite('text.siteid', idx)"
101 101
 									v-model="items[idx]['text.languageid']" >
102 102
 
103 103
 									<option value="" disable >
104
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
104
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
105 105
 									</option>
106 106
 
107
-									<?php foreach( $languages as $langId => $langItem ) : ?>
108
-										<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
109
-											<?= $enc->html( $langItem->getLabel() ); ?>
107
+									<?php foreach ($languages as $langId => $langItem) : ?>
108
+										<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr($langId) ?>'" >
109
+											<?= $enc->html($langItem->getLabel()); ?>
110 110
 										</option>
111 111
 									<?php endforeach; ?>
112 112
 								</select>
113 113
 							</div>
114 114
 							<div class="col-sm-12 form-text text-muted help-text">
115
-								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
115
+								<?= $enc->html($this->translate('admin', 'Language of the entered text')); ?>
116 116
 							</div>
117 117
 						</div>
118 118
 					<?php else : ?>
119 119
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
-							value="<?= $enc->attr( key( $languages ) ); ?>" />
120
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
121
+							value="<?= $enc->attr(key($languages)); ?>" />
122 122
 					<?php endif; ?>
123 123
 
124
-					<?php $textTypes = $this->get( 'textTypes', [] ); ?>
125
-					<?php if( count( $textTypes ) > 1 ) : ?>
124
+					<?php $textTypes = $this->get('textTypes', []); ?>
125
+					<?php if (count($textTypes) > 1) : ?>
126 126
 						<div class="form-group row mandatory">
127
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
127
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
128 128
 							<div class="col-sm-8">
129
-								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
130
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
129
+								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
130
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
131 131
 									v-bind:readonly="checkSite('text.siteid', idx)"
132 132
 									v-model="items[idx]['text.type']" >
133 133
 
134 134
 									<option value="" disable >
135
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
135
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
136 136
 									</option>
137 137
 
138
-									<?php foreach( (array) $textTypes as $typeItem ) : ?>
139
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
140
-											<?= $enc->html( $typeItem->getLabel() ); ?>
138
+									<?php foreach ((array) $textTypes as $typeItem) : ?>
139
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
140
+											<?= $enc->html($typeItem->getLabel()); ?>
141 141
 										</option>
142 142
 									<?php endforeach; ?>
143 143
 								</select>
144 144
 							</div>
145 145
 							<div class="col-sm-12 form-text text-muted help-text">
146
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
146
+								<?= $enc->html($this->translate('admin', 'Types for additional texts like per one lb/kg or per month')); ?>
147 147
 							</div>
148 148
 						</div>
149 149
 					<?php else : ?>
150 150
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
152
-							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
151
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
152
+							value="<?= $enc->attr(key($textTypes)); ?>" />
153 153
 					<?php endif; ?>
154 154
 
155 155
 					<div class="form-group row optional">
156
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
156
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
157 157
 						<div class="col-sm-8">
158
-							<input class="form-control item-label" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
159
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.label' ) ) ); ?>'.replace('idx', idx)"
160
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Label' ) ); ?>"
158
+							<input class="form-control item-label" type="text" tabindex="<?= $this->get('tabindex'); ?>"
159
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.label'))); ?>'.replace('idx', idx)"
160
+								placeholder="<?= $enc->attr($this->translate('admin', 'Label')); ?>"
161 161
 								v-bind:readonly="checkSite('text.siteid', idx)"
162 162
 								v-model="items[idx]['text.label']" />
163 163
 						</div>
164 164
 						<div class="col-sm-12 form-text text-muted help-text">
165
-							<?= $enc->html( $this->translate( 'admin', 'Description of the text content if it\'s in a foreign language' ) ); ?>
165
+							<?= $enc->html($this->translate('admin', 'Description of the text content if it\'s in a foreign language')); ?>
166 166
 						</div>
167 167
 					</div>
168 168
 
@@ -171,70 +171,70 @@  discard block
 block discarded – undo
171 171
 
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
174
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
175
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
176 176
 						</div>
177 177
 					</div>
178
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
178
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
179 179
 				</div>
180 180
 
181 181
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
182 182
 
183 183
 					<input type="hidden" v-model="items[idx]['product.lists.type']"
184
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
184
+						v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'product.lists.type'))); ?>'.replace( 'idx', idx )" />
185 185
 
186
-					<?php $listTypes = $this->get( 'textListTypes', [] ); ?>
187
-					<?php if( count( $listTypes ) > 1 ) : ?>
186
+					<?php $listTypes = $this->get('textListTypes', []); ?>
187
+					<?php if (count($listTypes) > 1) : ?>
188 188
 						<div class="form-group row mandatory">
189
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
189
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
190 190
 							<div class="col-sm-8">
191
-								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
192
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.type' ) ) ); ?>'.replace('idx', idx)"
191
+								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
192
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'product.lists.type'))); ?>'.replace('idx', idx)"
193 193
 									v-bind:readonly="checkSite('product.lists.siteid', idx)"
194 194
 									v-model="items[idx]['product.lists.type']" >
195 195
 
196
-									<?php foreach( $this->get( 'textListTypes', [] ) as $typeItem ) : ?>
197
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['product.lists.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
198
-											<?= $enc->html( $typeItem->getLabel() ); ?>
196
+									<?php foreach ($this->get('textListTypes', []) as $typeItem) : ?>
197
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['product.lists.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
198
+											<?= $enc->html($typeItem->getLabel()); ?>
199 199
 										</option>
200 200
 									<?php endforeach; ?>
201 201
 								</select>
202 202
 							</div>
203 203
 							<div class="col-sm-12 form-text text-muted help-text">
204
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
204
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
205 205
 							</div>
206 206
 						</div>
207 207
 					<?php else : ?>
208 208
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.type' ) ) ); ?>'.replace('idx', idx)"
210
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
209
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'product.lists.type'))); ?>'.replace('idx', idx)"
210
+							value="<?= $enc->attr(key($listTypes)); ?>"
211 211
 							v-model="items[idx]['product.lists.type']" />
212 212
 					<?php endif; ?>
213 213
 
214 214
 					<div class="form-group row optional">
215
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
215
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
216 216
 						<div class="col-sm-8">
217
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
218
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
219
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
217
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
218
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'product.lists.datestart'))); ?>'.replace('idx', idx)"
219
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
220 220
 								v-bind:readonly="checkSite('product.lists.siteid', idx)"
221 221
 								v-model="items[idx]['product.lists.datestart']" />
222 222
 						</div>
223 223
 						<div class="col-sm-12 form-text text-muted help-text">
224
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
224
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
225 225
 						</div>
226 226
 					</div>
227 227
 					<div class="form-group row optional">
228
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
228
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
229 229
 						<div class="col-sm-8">
230
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
231
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
232
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
230
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
231
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'product.lists.dateend'))); ?>'.replace('idx', idx)"
232
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
233 233
 								v-bind:readonly="checkSite('product.lists.siteid', idx)"
234 234
 								v-model="items[idx]['product.lists.dateend']" />
235 235
 						</div>
236 236
 						<div class="col-sm-12 form-text text-muted help-text">
237
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
237
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
238 238
 						</div>
239 239
 					</div>
240 240
 				</div>
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
 						<thead>
245 245
 							<tr>
246 246
 								<th>
247
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
247
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
248 248
 									<div class="form-text text-muted help-text">
249
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
249
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
250 250
 									</div>
251 251
 								</th>
252 252
 								<th>
253
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
253
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
254 254
 								</th>
255 255
 								<th class="actions">
256
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
256
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
257
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
258 258
 										v-bind:readonly="checkSite('product.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -267,21 +267,21 @@  discard block
 block discarded – undo
267 267
 								<td>
268 268
 									<input is="auto-complete"
269 269
 										v-model="items[idx]['config']['key'][pos]"
270
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
270
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
271 271
 										v-bind:readonly="checkSite('product.lists.siteid', idx)"
272
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
272
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
273 273
 										v-bind:keys="[]" />
274 274
 								</td>
275 275
 								<td>
276
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
277
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
276
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
277
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
278 278
 										v-bind:readonly="checkSite('product.lists.siteid', idx)"
279 279
 										v-model="items[idx]['config']['val'][pos]" />
280 280
 								</td>
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('product.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
283
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
284
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -290,14 +290,14 @@  discard block
 block discarded – undo
290 290
 					</table>
291 291
 				</div>
292 292
 
293
-				<?= $this->get( 'textBody' ); ?>
293
+				<?= $this->get('textBody'); ?>
294 294
 
295 295
 			</div>
296 296
 		</div>
297 297
 
298 298
 		<div class="card-tools-more">
299
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
299
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
300
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
301 301
 				v-on:click="addItem('product.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'product.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['product.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.