Completed
Push — master ( 0229de...f71bfb )
by Aimeos
04:41
created
admin/jqadm/templates/customer/item-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,8 +133,11 @@
 block discarded – undo
133 133
 										</option>
134 134
 									<?php endforeach; ?>
135 135
 								</select>
136
-							<?php else : ?>
137
-								<?php $language = ( ( $item = reset( $languages ) ) !== false ? $item->getId() : '' ); ?>
136
+							<?php else {
137
+	: ?>
138
+								<?php $language = ( ( $item = reset( $languages ) ) !== false ? $item->getId() : '' );
139
+}
140
+?>
138 141
 								<input class="item-languageid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); ?>" value="<?= $enc->attr( $language ); ?>" />
139 142
 							<?php endif; ?>
140 143
 						</div>
Please login to merge, or discard this patch.
Spacing   +183 added lines, -183 removed lines patch added patch discarded remove patch
@@ -5,38 +5,38 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12 12
 $enc = $this->encoder();
13 13
 
14 14
 
15
-$target = $this->config( 'admin/jqadm/url/save/target' );
16
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
17
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
18
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
15
+$target = $this->config('admin/jqadm/url/save/target');
16
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
17
+$action = $this->config('admin/jqadm/url/save/action', 'save');
18
+$config = $this->config('admin/jqadm/url/save/config', []);
19 19
 
20
-$params = $this->get( 'pageParams', [] );
20
+$params = $this->get('pageParams', []);
21 21
 
22 22
 
23 23
 ?>
24
-<?php $this->block()->start( 'jqadm_content' ); ?>
24
+<?php $this->block()->start('jqadm_content'); ?>
25 25
 
26
-<form class="item item-customer form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
27
-	<input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/customer.id' ) ); ?>" />
28
-	<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
26
+<form class="item item-customer form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
27
+	<input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'customer.id'))); ?>" value="<?= $enc->attr($this->get('itemData/customer.id')); ?>" />
28
+	<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
29 29
 	<?= $this->csrf()->formfield(); ?>
30 30
 
31 31
 	<nav class="main-navbar">
32 32
 		<span class="navbar-brand">
33
-			<?= $enc->html( $this->translate( 'admin', 'Customer' ) ); ?>:
34
-			<?= $enc->html( $this->get( 'itemData/customer.id' ) ); ?> -
35
-			<?= $enc->html( $this->get( 'itemData/customer.label', $this->translate( 'admin', 'New' ) ) ); ?>
36
-			<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/customer.siteid' ) ) ); ?>)</span>
33
+			<?= $enc->html($this->translate('admin', 'Customer')); ?>:
34
+			<?= $enc->html($this->get('itemData/customer.id')); ?> -
35
+			<?= $enc->html($this->get('itemData/customer.label', $this->translate('admin', 'New'))); ?>
36
+			<span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/customer.siteid'))); ?>)</span>
37 37
 		</span>
38 38
 		<div class="item-actions">
39
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
39
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
40 40
 		</div>
41 41
 	</nav>
42 42
 
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 
48 48
 				<li class="nav-item basic">
49 49
 					<a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic">
50
-						<?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?>
50
+						<?= $enc->html($this->translate('admin', 'Basic')); ?>
51 51
 					</a>
52 52
 				</li>
53 53
 
54
-				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
55
-					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
56
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
57
-							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
54
+				<?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?>
55
+					<li class="nav-item <?= $enc->attr($subpart); ?>">
56
+						<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
57
+							<?= $enc->html($this->translate('admin', $subpart)); ?>
58 58
 						</a>
59 59
 					</li>
60 60
 				<?php endforeach; ?>
@@ -63,89 +63,89 @@  discard block
 block discarded – undo
63 63
 
64 64
 			<div class="item-meta text-muted">
65 65
 				<small>
66
-					<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
67
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/customer.mtime' ) ); ?></span>
66
+					<?= $enc->html($this->translate('admin', 'Modified')); ?>:
67
+					<span class="meta-value"><?= $enc->html($this->get('itemData/customer.mtime')); ?></span>
68 68
 				</small>
69 69
 				<small>
70
-					<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
71
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/customer.ctime' ) ); ?></span>
70
+					<?= $enc->html($this->translate('admin', 'Created')); ?>:
71
+					<span class="meta-value"><?= $enc->html($this->get('itemData/customer.ctime')); ?></span>
72 72
 				</small>
73 73
 				<small>
74
-					<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
75
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/customer.editor' ) ); ?></span>
74
+					<?= $enc->html($this->translate('admin', 'Editor')); ?>:
75
+					<span class="meta-value"><?= $enc->html($this->get('itemData/customer.editor')); ?></span>
76 76
 				</small>
77 77
 			</div>
78 78
 		</div>
79 79
 
80 80
 		<div class="col-md-9 item-content tab-content">
81
-			<?php $readonly = ( $this->access( 'admin' ) === false ? $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ) : '' ); ?>
81
+			<?php $readonly = ($this->access('admin') === false ? $this->site()->readonly($this->get('itemData/customer.siteid')) : ''); ?>
82 82
 
83 83
 			<div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic">
84 84
 
85 85
 				<div class="col-xl-6 content-block <?= $readonly ?>">
86 86
 					<div class="form-group row mandatory">
87
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
87
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
88 88
 						<div class="col-sm-8">
89 89
 							<select class="form-control custom-select item-status" required="required" tabindex="1"
90
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.status' ) ) ); ?>"
91
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> >
90
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.status'))); ?>"
91
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> >
92 92
 								<option value="">
93
-									<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
93
+									<?= $enc->attr($this->translate('admin', 'Please select')); ?>
94 94
 								</option>
95
-								<option value="1" <?= $selected( $this->get( 'itemData/customer.status', 1 ), 1 ); ?> >
96
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
95
+								<option value="1" <?= $selected($this->get('itemData/customer.status', 1), 1); ?> >
96
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
97 97
 								</option>
98
-								<option value="0" <?= $selected( $this->get( 'itemData/customer.status', 1 ), 0 ); ?> >
99
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
98
+								<option value="0" <?= $selected($this->get('itemData/customer.status', 1), 0); ?> >
99
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
100 100
 								</option>
101
-								<option value="-1" <?= $selected( $this->get( 'itemData/customer.status', 1 ), -1 ); ?> >
102
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
101
+								<option value="-1" <?= $selected($this->get('itemData/customer.status', 1), -1); ?> >
102
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
103 103
 								</option>
104
-								<option value="-2" <?= $selected( $this->get( 'itemData/customer.status', 1 ), -2 ); ?> >
105
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
104
+								<option value="-2" <?= $selected($this->get('itemData/customer.status', 1), -2); ?> >
105
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
106 106
 								</option>
107 107
 							</select>
108 108
 						</div>
109 109
 					</div>
110 110
 					<div class="form-group row mandatory">
111
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'E-Mail' ) ); ?></label>
111
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'E-Mail')); ?></label>
112 112
 						<div class="col-sm-8">
113 113
 							<input class="form-control item-email" type="email" required="required" tabindex="1" autocomplete="off"
114
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.email' ) ) ); ?>"
115
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'E-Mail address (required)' ) ); ?>"
116
-								value="<?= $enc->attr( $this->get( 'itemData/customer.email' ) ); ?>"
117
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
114
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.email'))); ?>"
115
+								placeholder="<?= $enc->attr($this->translate('admin', 'E-Mail address (required)')); ?>"
116
+								value="<?= $enc->attr($this->get('itemData/customer.email')); ?>"
117
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
118 118
 						</div>
119 119
 						<div class="col-sm-12 form-text text-muted help-text">
120
-							<?= $enc->html( $this->translate( 'admin', 'Unique customer e-mail address' ) ); ?>
120
+							<?= $enc->html($this->translate('admin', 'Unique customer e-mail address')); ?>
121 121
 						</div>
122 122
 					</div>
123 123
 					<div class="form-group row mandatory">
124
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Password' ) ); ?></label>
124
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Password')); ?></label>
125 125
 						<div class="col-sm-8">
126 126
 							<input class="form-control item-password" type="password" required="required" tabindex="1" autocomplete="off"
127
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.password' ) ) ); ?>"
128
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Password (required)' ) ); ?>"
129
-								value="<?= $enc->attr( $this->get( 'itemData/customer.password' ) ); ?>"
130
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
127
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.password'))); ?>"
128
+								placeholder="<?= $enc->attr($this->translate('admin', 'Password (required)')); ?>"
129
+								value="<?= $enc->attr($this->get('itemData/customer.password')); ?>"
130
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
131 131
 						</div>
132 132
 						<div class="col-sm-12 form-text text-muted help-text">
133
-							<?= $enc->html( $this->translate( 'admin', 'Customer password' ) ); ?>
133
+							<?= $enc->html($this->translate('admin', 'Customer password')); ?>
134 134
 						</div>
135 135
 					</div>
136 136
 				</div><!--
137 137
 
138 138
 				--><div class="col-xl-6 content-block <?= $readonly ?>">
139 139
 					<div class="form-group row optional">
140
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'User groups' ) ); ?></label>
140
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'User groups')); ?></label>
141 141
 						<div class="col-sm-8">
142 142
 							<select class="form-control item-groups" tabindex="1" size="7" multiple
143
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.groups', '' ) ) ); ?>"
144
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> >
143
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.groups', ''))); ?>"
144
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> >
145 145
 
146
-								<?php foreach( $this->get( 'itemGroups', [] ) as $groupId => $groupItem ) : ?>
147
-									<option value="<?= $enc->attr( $groupId ); ?>" <?= $selected( in_array( $groupId, $this->get( 'itemData/customer.groups', [] ) ), true ); ?> >
148
-										<?= $enc->html( $groupItem->getLabel() ); ?>
146
+								<?php foreach ($this->get('itemGroups', []) as $groupId => $groupItem) : ?>
147
+									<option value="<?= $enc->attr($groupId); ?>" <?= $selected(in_array($groupId, $this->get('itemData/customer.groups', [])), true); ?> >
148
+										<?= $enc->html($groupItem->getLabel()); ?>
149 149
 									</option>
150 150
 								<?php endforeach; ?>
151 151
 							</select>
@@ -154,284 +154,284 @@  discard block
 block discarded – undo
154 154
 				</div><!--
155 155
 
156 156
 				--><div class="col-xl-6 content-block <?= $readonly ?>">
157
-					<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Personal data' ) ); ?></h2>
157
+					<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Personal data')); ?></h2>
158 158
 					<div class="form-group row mandatory">
159
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
159
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
160 160
 						<div class="col-sm-8">
161 161
 
162
-							<?php $languages = $this->get( 'pageLangItems', [] ); ?>
163
-							<?php if( count( $languages ) > 1 ) : ?>
162
+							<?php $languages = $this->get('pageLangItems', []); ?>
163
+							<?php if (count($languages) > 1) : ?>
164 164
 								<select class="form-control custom-select item-languageid" required="required" tabindex="1"
165
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); ?>"
166
-									<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> >
165
+									name="<?= $enc->attr($this->formparam(array('item', 'customer.languageid'))); ?>"
166
+									<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> >
167 167
 									<option value="">
168
-										<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
168
+										<?= $enc->html($this->translate('admin', 'Please select')); ?>
169 169
 									</option>
170 170
 
171
-									<?php foreach( $languages as $langId => $langItem ) : ?>
172
-										<option value="<?= $enc->attr( $langId ); ?>" <?= $selected( $this->get( 'itemData/customer.languageid', '' ), $langId ); ?> >
173
-											<?= $enc->html( $this->translate( 'language', $langId ) ); ?>
171
+									<?php foreach ($languages as $langId => $langItem) : ?>
172
+										<option value="<?= $enc->attr($langId); ?>" <?= $selected($this->get('itemData/customer.languageid', ''), $langId); ?> >
173
+											<?= $enc->html($this->translate('language', $langId)); ?>
174 174
 										</option>
175 175
 									<?php endforeach; ?>
176 176
 								</select>
177 177
 							<?php else : ?>
178
-								<?php $language = ( ( $item = reset( $languages ) ) !== false ? $item->getId() : '' ); ?>
179
-								<input class="item-languageid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); ?>" value="<?= $enc->attr( $language ); ?>" />
178
+								<?php $language = (($item = reset($languages)) !== false ? $item->getId() : ''); ?>
179
+								<input class="item-languageid" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'customer.languageid'))); ?>" value="<?= $enc->attr($language); ?>" />
180 180
 							<?php endif; ?>
181 181
 						</div>
182 182
 					</div>
183 183
 					<div class="form-group row optional">
184
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Salutation' ) ); ?></label>
184
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Salutation')); ?></label>
185 185
 						<div class="col-sm-8">
186 186
 							<select class="form-control custom-select item-salutation" tabindex="1"
187
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.salutation' ) ) ); ?>"
188
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> >
189
-								<option value="" <?= $selected( $this->get( 'itemData/customer.salutation', '' ), '' ); ?> >
190
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
187
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.salutation'))); ?>"
188
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> >
189
+								<option value="" <?= $selected($this->get('itemData/customer.salutation', ''), ''); ?> >
190
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
191 191
 								</option>
192
-								<option value="company" <?= $selected( $this->get( 'itemData/customer.salutation', '' ), 'company' ); ?> >
193
-									<?= $enc->html( $this->translate( 'client/code', 'company' ) ); ?>
192
+								<option value="company" <?= $selected($this->get('itemData/customer.salutation', ''), 'company'); ?> >
193
+									<?= $enc->html($this->translate('client/code', 'company')); ?>
194 194
 								</option>
195
-								<option value="mr" <?= $selected( $this->get( 'itemData/customer.salutation', '' ), 'mr' ); ?> >
196
-									<?= $enc->html( $this->translate( 'client/code', 'mr' ) ); ?>
195
+								<option value="mr" <?= $selected($this->get('itemData/customer.salutation', ''), 'mr'); ?> >
196
+									<?= $enc->html($this->translate('client/code', 'mr')); ?>
197 197
 								</option>
198
-								<option value="mrs" <?= $selected( $this->get( 'itemData/customer.salutation', '' ), 'mrs' ); ?> >
199
-									<?= $enc->html( $this->translate( 'client/code', 'mrs' ) ); ?>
198
+								<option value="mrs" <?= $selected($this->get('itemData/customer.salutation', ''), 'mrs'); ?> >
199
+									<?= $enc->html($this->translate('client/code', 'mrs')); ?>
200 200
 								</option>
201
-								<option value="miss" <?= $selected( $this->get( 'itemData/customer.salutation', '' ), 'miss' ); ?> >
202
-									<?= $enc->html( $this->translate( 'client/code', 'miss' ) ); ?>
201
+								<option value="miss" <?= $selected($this->get('itemData/customer.salutation', ''), 'miss'); ?> >
202
+									<?= $enc->html($this->translate('client/code', 'miss')); ?>
203 203
 								</option>
204 204
 							</select>
205 205
 						</div>
206 206
 						<div class="col-sm-12 form-text text-muted help-text">
207
-							<?= $enc->html( $this->translate( 'admin', 'How the customer is addressed in e-mails' ) ); ?>
207
+							<?= $enc->html($this->translate('admin', 'How the customer is addressed in e-mails')); ?>
208 208
 						</div>
209 209
 					</div>
210 210
 					<div class="form-group row optional">
211
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Title' ) ); ?></label>
211
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Title')); ?></label>
212 212
 						<div class="col-sm-8">
213 213
 							<input class="form-control item-title" type="text" tabindex="1"
214
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.title' ) ) ); ?>"
215
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Honorary title (optional)' ) ); ?>"
216
-								value="<?= $enc->attr( $this->get( 'itemData/customer.title' ) ); ?>"
217
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
214
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.title'))); ?>"
215
+								placeholder="<?= $enc->attr($this->translate('admin', 'Honorary title (optional)')); ?>"
216
+								value="<?= $enc->attr($this->get('itemData/customer.title')); ?>"
217
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
218 218
 						</div>
219 219
 						<div class="col-sm-12 form-text text-muted help-text">
220
-							<?= $enc->html( $this->translate( 'admin', 'Honorary titles like Dr., Ph.D, etc.' ) ); ?>
220
+							<?= $enc->html($this->translate('admin', 'Honorary titles like Dr., Ph.D, etc.')); ?>
221 221
 						</div>
222 222
 					</div>
223 223
 					<div class="form-group row mandatory">
224
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Last name' ) ); ?></label>
224
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Last name')); ?></label>
225 225
 						<div class="col-sm-8">
226 226
 							<input class="form-control item-lastname" type="text" required="required" tabindex="1"
227
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.lastname' ) ) ); ?>"
228
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Last name (required)' ) ); ?>"
229
-								value="<?= $enc->attr( $this->get( 'itemData/customer.lastname' ) ); ?>"
230
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
227
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.lastname'))); ?>"
228
+								placeholder="<?= $enc->attr($this->translate('admin', 'Last name (required)')); ?>"
229
+								value="<?= $enc->attr($this->get('itemData/customer.lastname')); ?>"
230
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
231 231
 						</div>
232 232
 						<div class="col-sm-12 form-text text-muted help-text">
233
-							<?= $enc->html( $this->translate( 'admin', 'Last name of the person or full name in cultures where no first names are used' ) ); ?>
233
+							<?= $enc->html($this->translate('admin', 'Last name of the person or full name in cultures where no first names are used')); ?>
234 234
 						</div>
235 235
 					</div>
236 236
 					<div class="form-group row optional">
237
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'First name' ) ); ?></label>
237
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'First name')); ?></label>
238 238
 						<div class="col-sm-8">
239 239
 							<input class="form-control item-firstname" type="text" tabindex="1"
240
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.firstname' ) ) ); ?>"
241
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'First name (optional)' ) ); ?>"
242
-								value="<?= $enc->attr( $this->get( 'itemData/customer.firstname' ) ); ?>"
243
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
240
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.firstname'))); ?>"
241
+								placeholder="<?= $enc->attr($this->translate('admin', 'First name (optional)')); ?>"
242
+								value="<?= $enc->attr($this->get('itemData/customer.firstname')); ?>"
243
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
244 244
 						</div>
245 245
 						<div class="col-sm-12 form-text text-muted help-text">
246
-							<?= $enc->html( $this->translate( 'admin', 'First name of the person if used in cultures where they are used' ) ); ?>
246
+							<?= $enc->html($this->translate('admin', 'First name of the person if used in cultures where they are used')); ?>
247 247
 						</div>
248 248
 					</div>
249 249
 					<div class="form-group row optional">
250
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Birthday' ) ); ?></label>
250
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Birthday')); ?></label>
251 251
 						<div class="col-sm-8">
252 252
 							<input class="form-control item-birthday" type="date" tabindex="1"
253
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.birthday' ) ) ); ?>"
254
-								value="<?= $enc->attr( $this->get( 'itemData/customer.birthday' ) ); ?>"
255
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
253
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.birthday'))); ?>"
254
+								value="<?= $enc->attr($this->get('itemData/customer.birthday')); ?>"
255
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
256 256
 						</div>
257 257
 						<div class="col-sm-12 form-text text-muted help-text">
258
-							<?= $enc->html( $this->translate( 'admin', 'Birthday of the customer' ) ); ?>
258
+							<?= $enc->html($this->translate('admin', 'Birthday of the customer')); ?>
259 259
 						</div>
260 260
 					</div>
261 261
 				</div><!--
262 262
 
263 263
 				--><div class="col-xl-6 content-block <?= $readonly ?>">
264
-					<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Billing address' ) ); ?></h2>
264
+					<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Billing address')); ?></h2>
265 265
 					<div class="form-group row optional">
266
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Street' ) ); ?></label>
266
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Street')); ?></label>
267 267
 						<div class="col-sm-8">
268 268
 							<input class="form-control item-address1" type="text" tabindex="1"
269
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.address1' ) ) ); ?>"
270
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Street name (optional)' ) ); ?>"
271
-								value="<?= $enc->attr( $this->get( 'itemData/customer.address1' ) ); ?>"
272
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
269
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.address1'))); ?>"
270
+								placeholder="<?= $enc->attr($this->translate('admin', 'Street name (optional)')); ?>"
271
+								value="<?= $enc->attr($this->get('itemData/customer.address1')); ?>"
272
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
273 273
 						</div>
274 274
 						<div class="col-sm-12 form-text text-muted help-text">
275
-							<?= $enc->html( $this->translate( 'admin', 'First name of the person if used in cultures where they are used' ) ); ?>
275
+							<?= $enc->html($this->translate('admin', 'First name of the person if used in cultures where they are used')); ?>
276 276
 						</div>
277 277
 					</div>
278 278
 					<div class="form-group row optional">
279
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'House number' ) ); ?></label>
279
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'House number')); ?></label>
280 280
 						<div class="col-sm-8">
281 281
 							<input class="form-control item-address2" type="text" tabindex="1"
282
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.address2' ) ) ); ?>"
283
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'House number (optional)' ) ); ?>"
284
-								value="<?= $enc->attr( $this->get( 'itemData/customer.address2' ) ); ?>"
285
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
282
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.address2'))); ?>"
283
+								placeholder="<?= $enc->attr($this->translate('admin', 'House number (optional)')); ?>"
284
+								value="<?= $enc->attr($this->get('itemData/customer.address2')); ?>"
285
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
286 286
 						</div>
287 287
 						<div class="col-sm-12 form-text text-muted help-text">
288
-							<?= $enc->html( $this->translate( 'admin', 'Address identifier of the customer\'s house for delivery' ) ); ?>
288
+							<?= $enc->html($this->translate('admin', 'Address identifier of the customer\'s house for delivery')); ?>
289 289
 						</div>
290 290
 					</div>
291 291
 					<div class="form-group row optional">
292
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Floor / Appartment' ) ); ?></label>
292
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Floor / Appartment')); ?></label>
293 293
 						<div class="col-sm-8">
294 294
 							<input class="form-control item-address3" type="text" tabindex="1"
295
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.address3' ) ) ); ?>"
296
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Floor and/or apartment (optional)' ) ); ?>"
297
-								value="<?= $enc->attr( $this->get( 'itemData/customer.address3' ) ); ?>"
298
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
295
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.address3'))); ?>"
296
+								placeholder="<?= $enc->attr($this->translate('admin', 'Floor and/or apartment (optional)')); ?>"
297
+								value="<?= $enc->attr($this->get('itemData/customer.address3')); ?>"
298
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
299 299
 						</div>
300 300
 						<div class="col-sm-12 form-text text-muted help-text">
301
-							<?= $enc->html( $this->translate( 'admin', 'Additional information where the customer\'s apartment can be found' ) ); ?>
301
+							<?= $enc->html($this->translate('admin', 'Additional information where the customer\'s apartment can be found')); ?>
302 302
 						</div>
303 303
 					</div>
304 304
 					<div class="form-group row optional">
305
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Zip code' ) ); ?></label>
305
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Zip code')); ?></label>
306 306
 						<div class="col-sm-8">
307 307
 							<input class="form-control item-postal" type="text" tabindex="1"
308
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.postal' ) ) ); ?>"
309
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Zip code (optional)' ) ); ?>"
310
-								value="<?= $enc->attr( $this->get( 'itemData/customer.postal' ) ); ?>"
311
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
308
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.postal'))); ?>"
309
+								placeholder="<?= $enc->attr($this->translate('admin', 'Zip code (optional)')); ?>"
310
+								value="<?= $enc->attr($this->get('itemData/customer.postal')); ?>"
311
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
312 312
 						</div>
313 313
 						<div class="col-sm-12 form-text text-muted help-text">
314
-							<?= $enc->html( $this->translate( 'admin', 'Postal code for delivery if used in the area the customer is living' ) ); ?>
314
+							<?= $enc->html($this->translate('admin', 'Postal code for delivery if used in the area the customer is living')); ?>
315 315
 						</div>
316 316
 					</div>
317 317
 					<div class="form-group row mandatory">
318
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'City' ) ); ?></label>
318
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'City')); ?></label>
319 319
 						<div class="col-sm-8">
320 320
 							<input class="form-control item-city" type="text" required="required" tabindex="1"
321
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.city' ) ) ); ?>"
322
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'City or town name (required)' ) ); ?>"
323
-								value="<?= $enc->attr( $this->get( 'itemData/customer.city' ) ); ?>"
324
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
321
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.city'))); ?>"
322
+								placeholder="<?= $enc->attr($this->translate('admin', 'City or town name (required)')); ?>"
323
+								value="<?= $enc->attr($this->get('itemData/customer.city')); ?>"
324
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
325 325
 						</div>
326 326
 					</div>
327 327
 					<div class="form-group row mandatory">
328
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Country' ) ); ?></label>
328
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Country')); ?></label>
329 329
 						<div class="col-sm-8">
330 330
 							<select class="combobox item-countryid" required="required" tabindex="1" maxlength="2" pattern="^[a-zA-Z]{2}$"
331
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.countryid' ) ) ); ?>"
332
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
333
-								<option value="<?= $enc->attr( $this->get( 'itemData/customer.countryid' ) ); ?>" >
334
-									<?= $enc->html( $this->get( 'itemData/customer.countryid' ) ); ?>
331
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.countryid'))); ?>"
332
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
333
+								<option value="<?= $enc->attr($this->get('itemData/customer.countryid')); ?>" >
334
+									<?= $enc->html($this->get('itemData/customer.countryid')); ?>
335 335
 								</option>
336 336
 							</select>
337 337
 						</div>
338 338
 						<div class="col-sm-12 form-text text-muted help-text">
339
-							<?= $enc->html( $this->translate( 'admin', 'Two letter ISO country code' ) ); ?>
339
+							<?= $enc->html($this->translate('admin', 'Two letter ISO country code')); ?>
340 340
 						</div>
341 341
 					</div>
342 342
 					<div class="form-group row optional">
343
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'State' ) ); ?></label>
343
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'State')); ?></label>
344 344
 						<div class="col-sm-8">
345 345
 							<input class="form-control item-state" type="text" tabindex="1"
346
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.state' ) ) ); ?>"
347
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Country state code (optional)' ) ); ?>"
348
-								value="<?= $enc->attr( $this->get( 'itemData/customer.state' ) ); ?>"
349
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
346
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.state'))); ?>"
347
+								placeholder="<?= $enc->attr($this->translate('admin', 'Country state code (optional)')); ?>"
348
+								value="<?= $enc->attr($this->get('itemData/customer.state')); ?>"
349
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
350 350
 						</div>
351 351
 						<div class="col-sm-12 form-text text-muted help-text">
352
-							<?= $enc->html( $this->translate( 'admin', 'Short state code (e.g. NY) if used in the country the customer is living' ) ); ?>
352
+							<?= $enc->html($this->translate('admin', 'Short state code (e.g. NY) if used in the country the customer is living')); ?>
353 353
 						</div>
354 354
 					</div>
355 355
 				</div><!--
356 356
 
357 357
 				--><div class="col-xl-6 content-block <?= $readonly ?>">
358
-					<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Communication' ) ); ?></h2>
358
+					<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Communication')); ?></h2>
359 359
 					<div class="form-group row optional">
360
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Telephone' ) ); ?></label>
360
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Telephone')); ?></label>
361 361
 						<div class="col-sm-8">
362 362
 							<input class="form-control item-telephone" type="tel" tabindex="1"
363
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.telephone' ) ) ); ?>"
364
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Telephone number (optional)' ) ); ?>"
365
-								value="<?= $enc->attr( $this->get( 'itemData/customer.telephone' ) ); ?>"
366
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
363
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.telephone'))); ?>"
364
+								placeholder="<?= $enc->attr($this->translate('admin', 'Telephone number (optional)')); ?>"
365
+								value="<?= $enc->attr($this->get('itemData/customer.telephone')); ?>"
366
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
367 367
 						</div>
368 368
 						<div class="col-sm-12 form-text text-muted help-text">
369
-							<?= $enc->html( $this->translate( 'admin', '(International) telephone number without separation characters, can start with a "+"' ) ); ?>
369
+							<?= $enc->html($this->translate('admin', '(International) telephone number without separation characters, can start with a "+"')); ?>
370 370
 						</div>
371 371
 					</div>
372 372
 					<div class="form-group row optional">
373
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Facsimile' ) ); ?></label>
373
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Facsimile')); ?></label>
374 374
 						<div class="col-sm-8">
375 375
 							<input class="form-control item-telefax" type="text" tabindex="1"
376
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.telefax' ) ) ); ?>"
377
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Facsimile number (optional)' ) ); ?>"
378
-								value="<?= $enc->attr( $this->get( 'itemData/customer.telefax' ) ); ?>"
379
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
376
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.telefax'))); ?>"
377
+								placeholder="<?= $enc->attr($this->translate('admin', 'Facsimile number (optional)')); ?>"
378
+								value="<?= $enc->attr($this->get('itemData/customer.telefax')); ?>"
379
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
380 380
 						</div>
381 381
 						<div class="col-sm-12 form-text text-muted help-text">
382
-							<?= $enc->html( $this->translate( 'admin', '(International) facsimilie number without separation characters, can start with a "+"' ) ); ?>
382
+							<?= $enc->html($this->translate('admin', '(International) facsimilie number without separation characters, can start with a "+"')); ?>
383 383
 						</div>
384 384
 					</div>
385 385
 					<div class="form-group row optional">
386
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Web site' ) ); ?></label>
386
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Web site')); ?></label>
387 387
 						<div class="col-sm-8">
388 388
 							<input class="form-control item-website" type="url" tabindex="1"
389
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.website' ) ) ); ?>"
390
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Web site URL (optional)' ) ); ?>"
391
-								value="<?= $enc->attr( $this->get( 'itemData/customer.website' ) ); ?>"
392
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
389
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.website'))); ?>"
390
+								placeholder="<?= $enc->attr($this->translate('admin', 'Web site URL (optional)')); ?>"
391
+								value="<?= $enc->attr($this->get('itemData/customer.website')); ?>"
392
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
393 393
 						</div>
394 394
 						<div class="col-sm-12 form-text text-muted help-text">
395
-							<?= $enc->html( $this->translate( 'admin', 'URL of the customer web site' ) ); ?>
395
+							<?= $enc->html($this->translate('admin', 'URL of the customer web site')); ?>
396 396
 						</div>
397 397
 					</div>
398 398
 				</div><!--
399 399
 
400 400
 				--><div class="col-xl-6 content-block <?= $readonly ?>">
401
-					<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Company details' ) ); ?></h2>
401
+					<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Company details')); ?></h2>
402 402
 					<div class="form-group row optional">
403
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Company' ) ); ?></label>
403
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Company')); ?></label>
404 404
 						<div class="col-sm-8">
405 405
 							<input class="form-control item-company" type="text" tabindex="1"
406
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.company' ) ) ); ?>"
407
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Company name (optional)' ) ); ?>"
408
-								value="<?= $enc->attr( $this->get( 'itemData/customer.company' ) ); ?>"
409
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
406
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.company'))); ?>"
407
+								placeholder="<?= $enc->attr($this->translate('admin', 'Company name (optional)')); ?>"
408
+								value="<?= $enc->attr($this->get('itemData/customer.company')); ?>"
409
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
410 410
 						</div>
411 411
 					</div>
412 412
 					<div class="form-group row optional">
413
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'VAT ID' ) ); ?></label>
413
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'VAT ID')); ?></label>
414 414
 						<div class="col-sm-8">
415 415
 							<input class="form-control item-vatid" type="text" tabindex="1"
416
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.vatid' ) ) ); ?>"
417
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Value added tax identifier (optional)' ) ); ?>"
418
-								value="<?= $enc->attr( $this->get( 'itemData/customer.vatid' ) ); ?>"
419
-								<?= $this->site()->readonly( $this->get( 'itemData/customer.siteid' ) ); ?> />
416
+								name="<?= $enc->attr($this->formparam(array('item', 'customer.vatid'))); ?>"
417
+								placeholder="<?= $enc->attr($this->translate('admin', 'Value added tax identifier (optional)')); ?>"
418
+								value="<?= $enc->attr($this->get('itemData/customer.vatid')); ?>"
419
+								<?= $this->site()->readonly($this->get('itemData/customer.siteid')); ?> />
420 420
 						</div>
421 421
 						<div class="col-sm-12 form-text text-muted help-text">
422
-							<?= $enc->html( $this->translate( 'admin', 'Official VAT ID to determine if the tax needs to be billed in invoices' ) ); ?>
422
+							<?= $enc->html($this->translate('admin', 'Official VAT ID to determine if the tax needs to be billed in invoices')); ?>
423 423
 						</div>
424 424
 					</div>
425 425
 				</div>
426 426
 
427 427
 			</div>
428 428
 
429
-			<?= $this->get( 'itemBody' ); ?>
429
+			<?= $this->get('itemBody'); ?>
430 430
 
431 431
 		</div>
432 432
 
433 433
 		<div class="item-actions">
434
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
434
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
435 435
 		</div>
436 436
 	</div>
437 437
 </form>
@@ -439,4 +439,4 @@  discard block
 block discarded – undo
439 439
 <?php $this->block()->stop(); ?>
440 440
 
441 441
 
442
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
442
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-product-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,8 +374,11 @@
 block discarded – undo
374 374
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375 375
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
376 376
 								</a>
377
-							<?php else : ?>
378
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
377
+							<?php else {
378
+	: ?>
379
+								<?= $enc->html( $refId );
380
+}
381
+?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
379 382
 							<?php endif; ?>
380 383
 						</td>
381 384
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +171 added lines, -171 removed lines patch added patch discarded remove patch
@@ -5,28 +5,28 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-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
 
13 13
 $enc = $this->encoder();
14
-$params = $this->get( 'pageParams', [] );
14
+$params = $this->get('pageParams', []);
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
-$delTarget = $this->config( 'admin/jsonadm/url/target' );
27
-$delCntl = $this->config( 'admin/jsonadm/url/controller', 'Jsonadm' );
28
-$delAction = $this->config( 'admin/jsonadm/url/action', 'delete' );
29
-$delConfig = $this->config( 'admin/jsonadm/url/config', [] );
26
+$delTarget = $this->config('admin/jsonadm/url/target');
27
+$delCntl = $this->config('admin/jsonadm/url/controller', 'Jsonadm');
28
+$delAction = $this->config('admin/jsonadm/url/action', 'delete');
29
+$delConfig = $this->config('admin/jsonadm/url/config', []);
30 30
 
31 31
 
32 32
 /** admin/jqadm/customer/product/fields
@@ -44,21 +44,21 @@  discard block
 block discarded – undo
44 44
  * @category Developer
45 45
  */
46 46
 $default = ['customer.lists.position', 'customer.lists.status', 'customer.lists.type', 'customer.lists.config', 'customer.lists.refid'];
47
-$default = $this->config( 'admin/jqadm/customer/product/fields', $default );
48
-$fields = $this->session( 'aimeos/admin/jqadm/customerproduct/fields', $default );
47
+$default = $this->config('admin/jqadm/customer/product/fields', $default);
48
+$fields = $this->session('aimeos/admin/jqadm/customerproduct/fields', $default);
49 49
 
50
-$listItems = $this->get( 'productListItems', [] );
51
-$refItems = $this->get( 'productItems', [] );
50
+$listItems = $this->get('productListItems', []);
51
+$refItems = $this->get('productItems', []);
52 52
 
53 53
 
54 54
 ?>
55 55
 <div id="product" class="item-product content-block tab-pane fade" role="tabpanel" aria-labelledby="product">
56 56
 
57 57
 	<?= $this->partial(
58
-			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
59
-			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'productTotal' ),
58
+			$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
59
+			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('productTotal'),
60 60
 			'group' => 'up', 'action' => 'get', 'fragment' => 'product',
61
-			'page' => $this->session( 'aimeos/admin/jqadm/customerproduct/page', [] )]
61
+			'page' => $this->session('aimeos/admin/jqadm/customerproduct/page', [])]
62 62
 		);
63 63
 	?>
64 64
 
@@ -66,39 +66,39 @@  discard block
 block discarded – undo
66 66
 		<thead class="list-header">
67 67
 			<tr>
68 68
 				<?= $this->partial(
69
-					$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ), [
70
-						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get( 'tabindex' ),
69
+					$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'), [
70
+						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get('tabindex'),
71 71
 						'group' => 'up', 'action' => 'get', 'fragment' => 'product',
72
-						'sort' => $this->session( 'aimeos/admin/jqadm/customerproduct/sort' ),
72
+						'sort' => $this->session('aimeos/admin/jqadm/customerproduct/sort'),
73 73
 						'data' => [
74
-							'customer.lists.position' => $this->translate( 'admin', 'Position' ),
75
-							'customer.lists.status' => $this->translate( 'admin', 'Status' ),
76
-							'customer.lists.type' => $this->translate( 'admin', 'Type' ),
77
-							'customer.lists.config' => $this->translate( 'admin', 'Config' ),
78
-							'customer.lists.datestart' => $this->translate( 'admin', 'Start date' ),
79
-							'customer.lists.dateend' => $this->translate( 'admin', 'End date' ),
80
-							'customer.lists.refid' => $this->translate( 'admin', 'Product ID' ),
74
+							'customer.lists.position' => $this->translate('admin', 'Position'),
75
+							'customer.lists.status' => $this->translate('admin', 'Status'),
76
+							'customer.lists.type' => $this->translate('admin', 'Type'),
77
+							'customer.lists.config' => $this->translate('admin', 'Config'),
78
+							'customer.lists.datestart' => $this->translate('admin', 'Start date'),
79
+							'customer.lists.dateend' => $this->translate('admin', 'End date'),
80
+							'customer.lists.refid' => $this->translate('admin', 'Product ID'),
81 81
 						]
82 82
 					] );
83 83
 				?>
84 84
 
85 85
 				<th class="actions">
86
-					<a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
87
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
88
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
86
+					<a class="btn fa act-add" href="#" tabindex="<?= $this->get('tabindex'); ?>"
87
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
88
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
89 89
 					</a>
90 90
 
91 91
 					<?= $this->partial(
92
-						$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ), [
93
-							'fields' => $fields, 'group' => 'up', 'tabindex' => $this->get( 'tabindex' ),
92
+						$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'), [
93
+							'fields' => $fields, 'group' => 'up', 'tabindex' => $this->get('tabindex'),
94 94
 							'data' => [
95
-								'customer.lists.position' => $this->translate( 'admin', 'Position' ),
96
-								'customer.lists.status' => $this->translate( 'admin', 'Status' ),
97
-								'customer.lists.type' => $this->translate( 'admin', 'Type' ),
98
-								'customer.lists.config' => $this->translate( 'admin', 'Config' ),
99
-								'customer.lists.datestart' => $this->translate( 'admin', 'Start date' ),
100
-								'customer.lists.dateend' => $this->translate( 'admin', 'End date' ),
101
-								'customer.lists.refid' => $this->translate( 'admin', 'Product' ),
95
+								'customer.lists.position' => $this->translate('admin', 'Position'),
96
+								'customer.lists.status' => $this->translate('admin', 'Status'),
97
+								'customer.lists.type' => $this->translate('admin', 'Type'),
98
+								'customer.lists.config' => $this->translate('admin', 'Config'),
99
+								'customer.lists.datestart' => $this->translate('admin', 'Start date'),
100
+								'customer.lists.dateend' => $this->translate('admin', 'End date'),
101
+								'customer.lists.refid' => $this->translate('admin', 'Product'),
102 102
 							]
103 103
 						] );
104 104
 					?>
@@ -107,18 +107,18 @@  discard block
 block discarded – undo
107 107
 		</thead>
108 108
 		<tbody>
109 109
 			<?= $this->partial(
110
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
111
-					'filter' => $this->session( 'aimeos/admin/jqadm/customerproduct/filter', [] ),
112
-					'fields' => $fields, 'group' => 'up', 'tabindex' => $this->get( 'tabindex' ),
110
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
111
+					'filter' => $this->session('aimeos/admin/jqadm/customerproduct/filter', []),
112
+					'fields' => $fields, 'group' => 'up', 'tabindex' => $this->get('tabindex'),
113 113
 					'data' => [
114 114
 						'customer.lists.position' => ['op' => '>=', 'type' => 'number'],
115 115
 						'customer.lists.status' => ['op' => '==', 'type' => 'select', 'val' => [
116
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
117
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
118
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
119
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
116
+							'1' => $this->translate('mshop/code', 'status:1'),
117
+							'0' => $this->translate('mshop/code', 'status:0'),
118
+							'-1' => $this->translate('mshop/code', 'status:-1'),
119
+							'-2' => $this->translate('mshop/code', 'status:-2'),
120 120
 						]],
121
-						'customer.lists.type' => ['op' => '==', 'type' => 'select', 'val' => array_keys( $this->get( 'productListTypes', [] ) )],
121
+						'customer.lists.type' => ['op' => '==', 'type' => 'select', 'val' => array_keys($this->get('productListTypes', []))],
122 122
 						'customer.lists.config' => ['op' => '~='],
123 123
 						'customer.lists.datestart' => ['op' => '>=', 'type' => 'datetime-local'],
124 124
 						'customer.lists.dateend' => ['op' => '>=', 'type' => 'datetime-local'],
@@ -128,80 +128,80 @@  discard block
 block discarded – undo
128 128
 			?>
129 129
 
130 130
 			<tr class="list-item-new prototype">
131
-				<td colspan="<?= count( $fields ); ?>">
131
+				<td colspan="<?= count($fields); ?>">
132 132
 					<div class="content-block row">
133 133
 						<div class="col-xl-6">
134 134
 							<div class="form-group row mandatory">
135
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Product' ) ); ?></label>
135
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Product')); ?></label>
136 136
 								<div class="col-sm-8">
137 137
 									<input class="item-listid" type="hidden" disabled="disabled"
138
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.id', '' ) ) ); ?>" />
138
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.id', ''))); ?>" />
139 139
 									<input class="item-config" type="hidden" disabled="disabled"
140
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.config', '' ) ) ); ?>" />
140
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.config', ''))); ?>" />
141 141
 									<input class="item-label" type="hidden" disabled="disabled"
142
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'product.label', '' ) ) ); ?>" />
143
-									<select class="combobox-prototype item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
144
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.refid', '' ) ) ); ?>">
142
+										name="<?= $enc->attr($this->formparam(array('product', 'product.label', ''))); ?>" />
143
+									<select class="combobox-prototype item-refid" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
144
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.refid', ''))); ?>">
145 145
 									</select>
146 146
 								</div>
147 147
 							</div>
148 148
 							<div class="form-group row mandatory">
149
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
149
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
150 150
 								<div class="col-sm-8">
151
-									<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
152
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.status', '' ) ) ); ?>">
151
+									<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
152
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.status', ''))); ?>">
153 153
 										<option value="">
154
-											<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
154
+											<?= $enc->html($this->translate('admin', 'Please select')); ?>
155 155
 										</option>
156 156
 										<option value="1">
157
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
157
+											<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
158 158
 										</option>
159 159
 										<option value="0">
160
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
160
+											<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
161 161
 										</option>
162 162
 										<option value="-1">
163
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
163
+											<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
164 164
 										</option>
165 165
 										<option value="-2">
166
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
166
+											<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
167 167
 										</option>
168 168
 									</select>
169 169
 								</div>
170 170
 							</div>
171 171
 							<div class="form-group row mandatory">
172
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
172
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
173 173
 								<div class="col-sm-8">
174
-									<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
175
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.type', '' ) ) ); ?>" >
174
+									<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
175
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.type', ''))); ?>" >
176 176
 										<option value="">
177
-											<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
177
+											<?= $enc->html($this->translate('admin', 'Please select')); ?>
178 178
 										</option>
179 179
 
180
-										<?php foreach( $this->get( 'productListTypes', [] ) as $type => $item ) : ?>
181
-											<option value="<?= $enc->attr( $type ); ?>"><?= $enc->html( $type ); ?></option>
180
+										<?php foreach ($this->get('productListTypes', []) as $type => $item) : ?>
181
+											<option value="<?= $enc->attr($type); ?>"><?= $enc->html($type); ?></option>
182 182
 										<?php endforeach; ?>
183 183
 									</select>
184 184
 								</div>
185 185
 							</div>
186 186
 							<div class="form-group row optional">
187
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
187
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
188 188
 								<div class="col-sm-8">
189
-									<input class="form-control item-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
190
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.datestart', '' ) ) ); ?>" disabled="disabled" />
189
+									<input class="form-control item-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
190
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.datestart', ''))); ?>" disabled="disabled" />
191 191
 								</div>
192 192
 							</div>
193 193
 							<div class="form-group row optional">
194
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
194
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
195 195
 								<div class="col-sm-8">
196
-									<input class="form-control item-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
197
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.dateend', '' ) ) ); ?>" disabled="disabled" />
196
+									<input class="form-control item-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
197
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.dateend', ''))); ?>" disabled="disabled" />
198 198
 								</div>
199 199
 							</div>
200 200
 							<div class="form-group row optional">
201
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label>
201
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Position')); ?></label>
202 202
 								<div class="col-sm-8">
203
-									<input class="form-control item-position" type="number" step="1" tabindex="<?= $this->get( 'tabindex' ); ?>"
204
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.position', '' ) ) ); ?>" disabled="disabled" />
203
+									<input class="form-control item-position" type="number" step="1" tabindex="<?= $this->get('tabindex'); ?>"
204
+										name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.position', ''))); ?>" disabled="disabled" />
205 205
 								</div>
206 206
 							</div>
207 207
 						</div>
@@ -210,17 +210,17 @@  discard block
 block discarded – undo
210 210
 								<thead>
211 211
 									<tr>
212 212
 										<th>
213
-											<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
213
+											<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
214 214
 											<div class="form-text text-muted help-text">
215
-												<?= $enc->html( $this->translate( 'admin', 'Article specific configuration options, will be available as key/value pairs in the templates' ) ); ?>
215
+												<?= $enc->html($this->translate('admin', 'Article specific configuration options, will be available as key/value pairs in the templates')); ?>
216 216
 											</div>
217 217
 										</th>
218 218
 										<th>
219
-											<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
219
+											<?= $enc->html($this->translate('admin', 'Value')); ?>
220 220
 										</th>
221 221
 										<th class="actions">
222
-											<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
223
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
222
+											<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
223
+												title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>">
224 224
 											</div>
225 225
 										</th>
226 226
 									</tr>
@@ -228,16 +228,16 @@  discard block
 block discarded – undo
228 228
 								<tbody>
229 229
 									<tr class="prototype">
230 230
 										<td>
231
-											<input type="text" class="config-key form-control" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
232
-												name="<?= $enc->attr( $this->formparam( array( 'product', 'config', 'idx', 'key', '' ) ) ); ?>" />
231
+											<input type="text" class="config-key form-control" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
232
+												name="<?= $enc->attr($this->formparam(array('product', 'config', 'idx', 'key', ''))); ?>" />
233 233
 										</td>
234 234
 										<td>
235
-											<input type="text" class="config-value form-control" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
236
-												name="<?= $enc->attr( $this->formparam( array( 'product', 'config', 'idx', 'val', '' ) ) ); ?>" />
235
+											<input type="text" class="config-value form-control" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
236
+												name="<?= $enc->attr($this->formparam(array('product', 'config', 'idx', 'val', ''))); ?>" />
237 237
 										</td>
238 238
 										<td class="actions">
239
-											<div class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
240
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
239
+											<div class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
240
+												title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
241 241
 											</div>
242 242
 										</td>
243 243
 									</tr>
@@ -247,79 +247,79 @@  discard block
 block discarded – undo
247 247
 					</div>
248 248
 				</td>
249 249
 				<td class="actions">
250
-					<a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
251
-						title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>"
252
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>">
250
+					<a class="btn fa act-close" href="#" tabindex="<?= $this->get('tabindex'); ?>"
251
+						title="<?= $enc->attr($this->translate('admin', 'Close')); ?>"
252
+						aria-label="<?= $enc->attr($this->translate('admin', 'Close')); ?>">
253 253
 					</a>
254 254
 				</td>
255 255
 			</tr>
256 256
 
257
-			<?php foreach( $this->get( 'productData/customer.lists.id', [] ) as $idx => $listId ) : ?>
258
-				<?php $siteId = $this->get( 'productData/customer.lists.siteid/' . $idx ); ?>
259
-				<?php $refId = $this->get( 'productData/customer.lists.refid/' . $idx ); ?>
257
+			<?php foreach ($this->get('productData/customer.lists.id', []) as $idx => $listId) : ?>
258
+				<?php $siteId = $this->get('productData/customer.lists.siteid/' . $idx); ?>
259
+				<?php $refId = $this->get('productData/customer.lists.refid/' . $idx); ?>
260 260
 
261
-				<tr class="list-item <?= $this->site()->readonly( $siteId ); ?>">
262
-					<?php if( in_array( 'customer.lists.position', $fields ) ) : ?>
261
+				<tr class="list-item <?= $this->site()->readonly($siteId); ?>">
262
+					<?php if (in_array('customer.lists.position', $fields)) : ?>
263 263
 						<td class="customer-lists-position">
264
-							<input class="form-control item-position" type="number" step="1" tabindex="<?= $this->get( 'tabindex' ); ?>"
265
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.position', '' ) ) ); ?>"
266
-								value="<?= $enc->attr( $this->get( 'productData/customer.lists.position/' . $idx ) ); ?>"
267
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
264
+							<input class="form-control item-position" type="number" step="1" tabindex="<?= $this->get('tabindex'); ?>"
265
+								name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.position', ''))); ?>"
266
+								value="<?= $enc->attr($this->get('productData/customer.lists.position/' . $idx)); ?>"
267
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
268 268
 						</td>
269 269
 					<?php endif; ?>
270
-					<?php if( in_array( 'customer.lists.status', $fields ) ) : ?>
270
+					<?php if (in_array('customer.lists.status', $fields)) : ?>
271 271
 						<td class="customer-lists-status">
272
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
273
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.status', '' ) ) ); ?>"
274
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" >
272
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
273
+								name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.status', ''))); ?>"
274
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" >
275 275
 								<option value="">
276
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
276
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
277 277
 								</option>
278
-								<option value="1" <?= $selected( $this->get( 'productData/customer.lists.status/' . $idx, 1 ), 1 ); ?> >
279
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
278
+								<option value="1" <?= $selected($this->get('productData/customer.lists.status/' . $idx, 1), 1); ?> >
279
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
280 280
 								</option>
281
-								<option value="0" <?= $selected( $this->get( 'productData/customer.lists.status/' . $idx, 1 ), 0 ); ?> >
282
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
281
+								<option value="0" <?= $selected($this->get('productData/customer.lists.status/' . $idx, 1), 0); ?> >
282
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
283 283
 								</option>
284
-								<option value="-1" <?= $selected( $this->get( 'productData/customer.lists.status/' . $idx, 1 ), -1 ); ?> >
285
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
284
+								<option value="-1" <?= $selected($this->get('productData/customer.lists.status/' . $idx, 1), -1); ?> >
285
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
286 286
 								</option>
287
-								<option value="-2" <?= $selected( $this->get( 'productData/customer.lists.status/' . $idx, 1 ), -2 ); ?> >
288
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
287
+								<option value="-2" <?= $selected($this->get('productData/customer.lists.status/' . $idx, 1), -2); ?> >
288
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
289 289
 								</option>
290 290
 							</select>
291 291
 						</td>
292 292
 					<?php endif; ?>
293
-					<?php if( in_array( 'customer.lists.type', $fields ) ) : ?>
293
+					<?php if (in_array('customer.lists.type', $fields)) : ?>
294 294
 						<td class="customer-lists-type">
295
-							<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
296
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.type', '' ) ) ); ?>"
297
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" >
295
+							<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
296
+								name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.type', ''))); ?>"
297
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" >
298 298
 								<option value="">
299
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
299
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
300 300
 								</option>
301 301
 
302
-								<?php foreach( $this->get( 'productListTypes', [] ) as $type => $item ) : ?>
303
-									<option value="<?= $enc->attr( $type ); ?>" <?= $selected( $this->get( 'productData/customer.lists.type/' . $idx ), $type ); ?> >
304
-										<?= $enc->html( $type ); ?>
302
+								<?php foreach ($this->get('productListTypes', []) as $type => $item) : ?>
303
+									<option value="<?= $enc->attr($type); ?>" <?= $selected($this->get('productData/customer.lists.type/' . $idx), $type); ?> >
304
+										<?= $enc->html($type); ?>
305 305
 									</option>
306 306
 								<?php endforeach; ?>
307 307
 							</select>
308 308
 						</td>
309 309
 					<?php endif; ?>
310
-					<?php if( in_array( 'customer.lists.config', $fields ) ) : ?>
310
+					<?php if (in_array('customer.lists.config', $fields)) : ?>
311 311
 						<td class="customer-lists-config item-config">
312 312
 							<div class="config-type config-type-map">
313
-								<input type="text" class="config-value form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
314
-									name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.config', '' ) ) ); ?>"
315
-									value="<?= $enc->attr( json_encode( $this->get( 'productData/customer.lists.config/' . $idx ) ) ); ?>"
316
-									<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
313
+								<input type="text" class="config-value form-control" tabindex="<?= $this->get('tabindex'); ?>"
314
+									name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.config', ''))); ?>"
315
+									value="<?= $enc->attr(json_encode($this->get('productData/customer.lists.config/' . $idx))); ?>"
316
+									<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
317 317
 
318 318
 								<table class="table table-striped config-map-table">
319 319
 									<tr class="config-map-row prototype-map">
320 320
 										<td class="config-map-actions">
321 321
 											<div class="btn act-delete fa" tabindex="1"
322
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
322
+												title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
323 323
 											</div>
324 324
 										</td>
325 325
 										<td class="config-map-row-key">
@@ -332,12 +332,12 @@  discard block
 block discarded – undo
332 332
 									<tr class="config-map-actions">
333 333
 										<td class="config-map-action-add">
334 334
 											<div class="btn act-add fa" tabindex="1"
335
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry') ); ?>">
335
+												title="<?= $enc->attr($this->translate('admin', 'Insert new entry')); ?>">
336 336
 											</div>
337 337
 										</td>
338 338
 										<td class="config-map-action-update" colspan="2">
339 339
 											<div class="btn btn-primary act-update" tabindex="1">
340
-												<?= $enc->attr( $this->translate( 'admin', 'OK') ); ?>
340
+												<?= $enc->attr($this->translate('admin', 'OK')); ?>
341 341
 											</div>
342 342
 										</td>
343 343
 									</tr>
@@ -345,55 +345,55 @@  discard block
 block discarded – undo
345 345
 							</div>
346 346
 						</td>
347 347
 					<?php endif; ?>
348
-					<?php if( in_array( 'customer.lists.datestart', $fields ) ) : ?>
348
+					<?php if (in_array('customer.lists.datestart', $fields)) : ?>
349 349
 						<td class="customer-lists-datestart">
350
-							<input class="form-control item-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
351
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.datestart', '' ) ) ); ?>"
352
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'productData/customer.lists.datestart/' . $idx ) ) ); ?>"
353
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
350
+							<input class="form-control item-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
351
+								name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.datestart', ''))); ?>"
352
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('productData/customer.lists.datestart/' . $idx))); ?>"
353
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
354 354
 						</td>
355 355
 					<?php endif; ?>
356
-					<?php if( in_array( 'customer.lists.dateend', $fields ) ) : ?>
356
+					<?php if (in_array('customer.lists.dateend', $fields)) : ?>
357 357
 						<td class="customer-lists-dateend">
358
-							<input class="form-control item-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
359
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.dateend', '' ) ) ); ?>"
360
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'productData/customer.lists.dateend/' . $idx ) ) ); ?>"
361
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
358
+							<input class="form-control item-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
359
+								name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.dateend', ''))); ?>"
360
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('productData/customer.lists.dateend/' . $idx))); ?>"
361
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
362 362
 						</td>
363 363
 					<?php endif; ?>
364 364
 
365
-					<?php $refItem = ( isset( $refItems[$refId] ) ? $refItems[$refId] : null ); ?>
365
+					<?php $refItem = (isset($refItems[$refId]) ? $refItems[$refId] : null); ?>
366 366
 
367
-					<?php if( in_array( 'customer.lists.refid', $fields ) ) : ?>
367
+					<?php if (in_array('customer.lists.refid', $fields)) : ?>
368 368
 						<td class="customer-lists-refid">
369 369
 							<input class="form-control item-refid" type="hidden"
370
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.refid', '' ) ) ); ?>"
371
-								value="<?= $enc->attr( $refId ); ?>" disabled="disabled" />
372
-							<?php if( $refItem ) : ?>
373
-								<a class="btn act-view fa item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" target="_blank"
374
-									href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig ) ); ?>"
375
-									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry') ); ?>"
376
-									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
377
-									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
370
+								name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.refid', ''))); ?>"
371
+								value="<?= $enc->attr($refId); ?>" disabled="disabled" />
372
+							<?php if ($refItem) : ?>
373
+								<a class="btn act-view fa item-refid" tabindex="<?= $this->get('tabindex'); ?>" target="_blank"
374
+									href="<?= $enc->attr($this->url($getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig)); ?>"
375
+									title="<?= $enc->attr($this->translate('admin', 'Show entry')); ?>"
376
+									aria-label="<?= $enc->attr($this->translate('admin', 'Show')); ?>">
377
+									<?= $enc->html($refId); ?> - <?= $enc->html($refItem->getLabel() . ' (' . $refItem->getCode() . ')'); ?>
378 378
 								</a>
379 379
 							<?php else : ?>
380
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
380
+								<?= $enc->html($refId); ?> (<?= $enc->html($this->translate('admin', 'not available any more')); ?>)
381 381
 							<?php endif; ?>
382 382
 						</td>
383 383
 					<?php endif; ?>
384 384
 
385 385
 					<td class="actions">
386
-						<input type="hidden" value="<?= $enc->attr( $listId ); ?>" disabled="disabled"
387
-							name="<?= $enc->attr( $this->formparam( array( 'product', 'customer.lists.id', '' ) ) ); ?>" />
386
+						<input type="hidden" value="<?= $enc->attr($listId); ?>" disabled="disabled"
387
+							name="<?= $enc->attr($this->formparam(array('product', 'customer.lists.id', ''))); ?>" />
388 388
 
389
-						<?php if( !$this->site()->readonly( $siteId ) ) : ?>
390
-							<a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#"
391
-								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>"
392
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a>
393
-							<a class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
394
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'customer/lists', 'id' => $listId] + $params, [], $delConfig ) ); ?>"
395
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
396
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
389
+						<?php if (!$this->site()->readonly($siteId)) : ?>
390
+							<a class="btn act-edit fa" tabindex="<?= $this->get('tabindex'); ?>" href="#"
391
+								title="<?= $enc->attr($this->translate('admin', 'Edit this entry')); ?>"
392
+								aria-label="<?= $enc->attr($this->translate('admin', 'Edit')); ?>"></a>
393
+							<a class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
394
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['resource' => 'customer/lists', 'id' => $listId] + $params, [], $delConfig)); ?>"
395
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
396
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
397 397
 						<?php endif; ?>
398 398
 					</td>
399 399
 				</tr>
@@ -402,17 +402,17 @@  discard block
 block discarded – undo
402 402
 		</tbody>
403 403
 	</table>
404 404
 
405
-	<?php if( $this->get( 'productData', [] ) === [] ) : ?>
406
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
405
+	<?php if ($this->get('productData', []) === []) : ?>
406
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
407 407
 	<?php endif; ?>
408 408
 
409 409
 	<?= $this->partial(
410
-			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
411
-			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'productTotal' ),
410
+			$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
411
+			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('productTotal'),
412 412
 			'group' => 'up', 'action' => 'get', 'fragment' => 'product',
413
-			'page' =>$this->session( 'aimeos/admin/jqadm/customerproduct/page', [] )]
413
+			'page' =>$this->session('aimeos/admin/jqadm/customerproduct/page', [])]
414 414
 		);
415 415
 	?>
416 416
 
417 417
 </div>
418
-<?= $this->get( 'productBody' ); ?>
418
+<?= $this->get('productBody'); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/catalog/item-product-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,8 +374,11 @@
 block discarded – undo
374 374
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375 375
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
376 376
 								</a>
377
-							<?php else : ?>
378
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
377
+							<?php else {
378
+	: ?>
379
+								<?= $enc->html( $refId );
380
+}
381
+?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
379 382
 							<?php endif; ?>
380 383
 						</td>
381 384
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +172 added lines, -172 removed lines patch added patch discarded remove patch
@@ -5,28 +5,28 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-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
 
13 13
 $enc = $this->encoder();
14
-$params = $this->get( 'pageParams', [] );
14
+$params = $this->get('pageParams', []);
15 15
 
16
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
17
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
18
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
19
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
16
+$getTarget = $this->config('admin/jqadm/url/get/target');
17
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
18
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
19
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
20 20
 
21
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
22
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
23
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
24
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
21
+$newTarget = $this->config('admin/jqadm/url/create/target');
22
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
23
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
24
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
25 25
 
26
-$delTarget = $this->config( 'admin/jsonadm/url/target' );
27
-$delCntl = $this->config( 'admin/jsonadm/url/controller', 'Jsonadm' );
28
-$delAction = $this->config( 'admin/jsonadm/url/action', 'delete' );
29
-$delConfig = $this->config( 'admin/jsonadm/url/config', [] );
26
+$delTarget = $this->config('admin/jsonadm/url/target');
27
+$delCntl = $this->config('admin/jsonadm/url/controller', 'Jsonadm');
28
+$delAction = $this->config('admin/jsonadm/url/action', 'delete');
29
+$delConfig = $this->config('admin/jsonadm/url/config', []);
30 30
 
31 31
 
32 32
 /** admin/jqadm/catalog/product/fields
@@ -44,21 +44,21 @@  discard block
 block discarded – undo
44 44
  * @category Developer
45 45
  */
46 46
 $default = ['catalog.lists.status', 'catalog.lists.type', 'catalog.lists.position', 'catalog.lists.refid'];
47
-$default = $this->config( 'admin/jqadm/catalog/product/fields', $default );
48
-$fields = $this->session( 'aimeos/admin/jqadm/catalogproduct/fields', $default );
47
+$default = $this->config('admin/jqadm/catalog/product/fields', $default);
48
+$fields = $this->session('aimeos/admin/jqadm/catalogproduct/fields', $default);
49 49
 
50
-$listItems = $this->get( 'productListItems', [] );
51
-$refItems = $this->get( 'productItems', [] );
50
+$listItems = $this->get('productListItems', []);
51
+$refItems = $this->get('productItems', []);
52 52
 
53 53
 
54 54
 ?>
55 55
 <div id="product" class="item-product content-block tab-pane fade" role="tabpanel" aria-labelledby="product">
56 56
 
57 57
 	<?= $this->partial(
58
-			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
59
-			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'productTotal' ),
60
-			'group' => 'cp', 'action' => ( $this->param( 'id') ? 'get' : 'search' ), 'fragment' => 'product',
61
-			'page' => $this->session( 'aimeos/admin/jqadm/catalogproduct/page', [] )]
58
+			$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
59
+			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('productTotal'),
60
+			'group' => 'cp', 'action' => ($this->param('id') ? 'get' : 'search'), 'fragment' => 'product',
61
+			'page' => $this->session('aimeos/admin/jqadm/catalogproduct/page', [])]
62 62
 		);
63 63
 	?>
64 64
 
@@ -66,39 +66,39 @@  discard block
 block discarded – undo
66 66
 		<thead class="list-header">
67 67
 			<tr>
68 68
 				<?= $this->partial(
69
-					$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ), [
70
-						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get( 'tabindex' ),
71
-						'group' => 'cp', 'action' => ( $this->param( 'id') ? 'get' : 'search' ), 'fragment' => 'product',
72
-						'sort' => $this->session( 'aimeos/admin/jqadm/catalogproduct/sort' ),
69
+					$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'), [
70
+						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get('tabindex'),
71
+						'group' => 'cp', 'action' => ($this->param('id') ? 'get' : 'search'), 'fragment' => 'product',
72
+						'sort' => $this->session('aimeos/admin/jqadm/catalogproduct/sort'),
73 73
 						'data' => [
74
-							'catalog.lists.position' => $this->translate( 'admin', 'Position' ),
75
-							'catalog.lists.status' => $this->translate( 'admin', 'Status' ),
76
-							'catalog.lists.type' => $this->translate( 'admin', 'Type' ),
77
-							'catalog.lists.config' => $this->translate( 'admin', 'Config' ),
78
-							'catalog.lists.datestart' => $this->translate( 'admin', 'Start date' ),
79
-							'catalog.lists.dateend' => $this->translate( 'admin', 'End date' ),
80
-							'catalog.lists.refid' => $this->translate( 'admin', 'Product ID' ),
74
+							'catalog.lists.position' => $this->translate('admin', 'Position'),
75
+							'catalog.lists.status' => $this->translate('admin', 'Status'),
76
+							'catalog.lists.type' => $this->translate('admin', 'Type'),
77
+							'catalog.lists.config' => $this->translate('admin', 'Config'),
78
+							'catalog.lists.datestart' => $this->translate('admin', 'Start date'),
79
+							'catalog.lists.dateend' => $this->translate('admin', 'End date'),
80
+							'catalog.lists.refid' => $this->translate('admin', 'Product ID'),
81 81
 						]
82 82
 					] );
83 83
 				?>
84 84
 
85 85
 				<th class="actions">
86
-					<a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
87
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
88
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
86
+					<a class="btn fa act-add" href="#" tabindex="<?= $this->get('tabindex'); ?>"
87
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
88
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
89 89
 					</a>
90 90
 
91 91
 					<?= $this->partial(
92
-						$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ), [
93
-							'fields' => $fields, 'group' => 'cp', 'tabindex' => $this->get( 'tabindex' ),
92
+						$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'), [
93
+							'fields' => $fields, 'group' => 'cp', 'tabindex' => $this->get('tabindex'),
94 94
 							'data' => [
95
-								'catalog.lists.position' => $this->translate( 'admin', 'Position' ),
96
-								'catalog.lists.status' => $this->translate( 'admin', 'Status' ),
97
-								'catalog.lists.type' => $this->translate( 'admin', 'Type' ),
98
-								'catalog.lists.config' => $this->translate( 'admin', 'Config' ),
99
-								'catalog.lists.datestart' => $this->translate( 'admin', 'Start date' ),
100
-								'catalog.lists.dateend' => $this->translate( 'admin', 'End date' ),
101
-								'catalog.lists.refid' => $this->translate( 'admin', 'Product' ),
95
+								'catalog.lists.position' => $this->translate('admin', 'Position'),
96
+								'catalog.lists.status' => $this->translate('admin', 'Status'),
97
+								'catalog.lists.type' => $this->translate('admin', 'Type'),
98
+								'catalog.lists.config' => $this->translate('admin', 'Config'),
99
+								'catalog.lists.datestart' => $this->translate('admin', 'Start date'),
100
+								'catalog.lists.dateend' => $this->translate('admin', 'End date'),
101
+								'catalog.lists.refid' => $this->translate('admin', 'Product'),
102 102
 							]
103 103
 						] );
104 104
 					?>
@@ -107,18 +107,18 @@  discard block
 block discarded – undo
107 107
 		</thead>
108 108
 		<tbody>
109 109
 			<?= $this->partial(
110
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
111
-					'fields' => $fields, 'group' => 'cp', 'tabindex' => $this->get( 'tabindex' ),
112
-					'filter' => $this->session( 'aimeos/admin/jqadm/catalogproduct/filter', [] ),
110
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
111
+					'fields' => $fields, 'group' => 'cp', 'tabindex' => $this->get('tabindex'),
112
+					'filter' => $this->session('aimeos/admin/jqadm/catalogproduct/filter', []),
113 113
 					'data' => [
114 114
 						'catalog.lists.position' => ['op' => '>=', 'type' => 'number'],
115 115
 						'catalog.lists.status' => ['op' => '==', 'type' => 'select', 'val' => [
116
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
117
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
118
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
119
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
116
+							'1' => $this->translate('mshop/code', 'status:1'),
117
+							'0' => $this->translate('mshop/code', 'status:0'),
118
+							'-1' => $this->translate('mshop/code', 'status:-1'),
119
+							'-2' => $this->translate('mshop/code', 'status:-2'),
120 120
 						]],
121
-						'catalog.lists.type' => ['op' => '==', 'type' => 'select', 'val' => array_keys( $this->get( 'productListTypes', [] ) )],
121
+						'catalog.lists.type' => ['op' => '==', 'type' => 'select', 'val' => array_keys($this->get('productListTypes', []))],
122 122
 						'catalog.lists.config' => ['op' => '~='],
123 123
 						'catalog.lists.datestart' => ['op' => '>=', 'type' => 'datetime-local'],
124 124
 						'catalog.lists.dateend' => ['op' => '>=', 'type' => 'datetime-local'],
@@ -128,78 +128,78 @@  discard block
 block discarded – undo
128 128
 			?>
129 129
 
130 130
 			<tr class="list-item-new prototype">
131
-				<td colspan="<?= count( $fields ); ?>">
131
+				<td colspan="<?= count($fields); ?>">
132 132
 					<div class="content-block row">
133 133
 						<div class="col-xl-6">
134 134
 							<div class="form-group row mandatory">
135
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Product' ) ); ?></label>
135
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Product')); ?></label>
136 136
 								<div class="col-sm-8">
137 137
 									<input class="item-listid" type="hidden" disabled="disabled"
138
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.id', '' ) ) ); ?>" />
138
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.id', ''))); ?>" />
139 139
 									<input class="item-label" type="hidden" disabled="disabled"
140
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'product.label', '' ) ) ); ?>" />
141
-									<select class="combobox-prototype item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
142
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.refid', '' ) ) ); ?>">
140
+										name="<?= $enc->attr($this->formparam(array('product', 'product.label', ''))); ?>" />
141
+									<select class="combobox-prototype item-refid" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
142
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.refid', ''))); ?>">
143 143
 									</select>
144 144
 								</div>
145 145
 							</div>
146 146
 							<div class="form-group row mandatory">
147
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
147
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
148 148
 								<div class="col-sm-8">
149
-									<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
150
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.status', '' ) ) ); ?>">
149
+									<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
150
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.status', ''))); ?>">
151 151
 										<option value="">
152
-											<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
152
+											<?= $enc->html($this->translate('admin', 'Please select')); ?>
153 153
 										</option>
154 154
 										<option value="1">
155
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
155
+											<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
156 156
 										</option>
157 157
 										<option value="0">
158
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
158
+											<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
159 159
 										</option>
160 160
 										<option value="-1">
161
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
161
+											<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
162 162
 										</option>
163 163
 										<option value="-2">
164
-											<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
164
+											<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
165 165
 										</option>
166 166
 									</select>
167 167
 								</div>
168 168
 							</div>
169 169
 							<div class="form-group row mandatory">
170
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
170
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
171 171
 								<div class="col-sm-8">
172
-									<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
173
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.type', '' ) ) ); ?>" >
172
+									<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
173
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.type', ''))); ?>" >
174 174
 										<option value="">
175
-											<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
175
+											<?= $enc->html($this->translate('admin', 'Please select')); ?>
176 176
 										</option>
177 177
 
178
-										<?php foreach( $this->get( 'productListTypes', [] ) as $type => $item ) : ?>
179
-											<option value="<?= $enc->attr( $type ); ?>"><?= $enc->html( $type ); ?></option>
178
+										<?php foreach ($this->get('productListTypes', []) as $type => $item) : ?>
179
+											<option value="<?= $enc->attr($type); ?>"><?= $enc->html($type); ?></option>
180 180
 										<?php endforeach; ?>
181 181
 									</select>
182 182
 								</div>
183 183
 							</div>
184 184
 							<div class="form-group row optional">
185
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
185
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
186 186
 								<div class="col-sm-8">
187
-									<input class="form-control catalog-lists-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
188
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.datestart', '' ) ) ); ?>" disabled="disabled" />
187
+									<input class="form-control catalog-lists-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
188
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.datestart', ''))); ?>" disabled="disabled" />
189 189
 								</div>
190 190
 							</div>
191 191
 							<div class="form-group row optional">
192
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
192
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
193 193
 								<div class="col-sm-8">
194
-									<input class="form-control catalog-lists-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
195
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.dateend', '' ) ) ); ?>" disabled="disabled" />
194
+									<input class="form-control catalog-lists-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
195
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.dateend', ''))); ?>" disabled="disabled" />
196 196
 								</div>
197 197
 							</div>
198 198
 							<div class="form-group row optional">
199
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label>
199
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Position')); ?></label>
200 200
 								<div class="col-sm-8">
201
-									<input class="form-control catalog-lists-position" type="number" step="1" tabindex="<?= $this->get( 'tabindex' ); ?>"
202
-										name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.position', '' ) ) ); ?>" disabled="disabled" />
201
+									<input class="form-control catalog-lists-position" type="number" step="1" tabindex="<?= $this->get('tabindex'); ?>"
202
+										name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.position', ''))); ?>" disabled="disabled" />
203 203
 								</div>
204 204
 							</div>
205 205
 						</div>
@@ -208,17 +208,17 @@  discard block
 block discarded – undo
208 208
 								<thead>
209 209
 									<tr>
210 210
 										<th>
211
-											<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
211
+											<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
212 212
 											<div class="form-text text-muted help-text">
213
-												<?= $enc->html( $this->translate( 'admin', 'Article specific configuration options, will be available as key/value pairs in the templates' ) ); ?>
213
+												<?= $enc->html($this->translate('admin', 'Article specific configuration options, will be available as key/value pairs in the templates')); ?>
214 214
 											</div>
215 215
 										</th>
216 216
 										<th>
217
-											<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
217
+											<?= $enc->html($this->translate('admin', 'Value')); ?>
218 218
 										</th>
219 219
 										<th class="actions">
220 220
 											<div class="btn act-add fa" tabindex="1"
221
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
221
+												title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>">
222 222
 											</div>
223 223
 										</th>
224 224
 									</tr>
@@ -226,16 +226,16 @@  discard block
 block discarded – undo
226 226
 								<tbody>
227 227
 									<tr class="prototype">
228 228
 										<td>
229
-											<input type="text" class="config-key form-control" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
230
-												name="<?= $enc->attr( $this->formparam( array( 'product', 'config', 'idx', 'key', '' ) ) ); ?>" />
229
+											<input type="text" class="config-key form-control" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
230
+												name="<?= $enc->attr($this->formparam(array('product', 'config', 'idx', 'key', ''))); ?>" />
231 231
 										</td>
232 232
 										<td>
233
-											<input type="text" class="config-value form-control" tabindex="<?= $this->get( 'tabindex' ); ?>" disabled="disabled"
234
-												name="<?= $enc->attr( $this->formparam( array( 'product', 'config', 'idx', 'val', '' ) ) ); ?>" />
233
+											<input type="text" class="config-value form-control" tabindex="<?= $this->get('tabindex'); ?>" disabled="disabled"
234
+												name="<?= $enc->attr($this->formparam(array('product', 'config', 'idx', 'val', ''))); ?>" />
235 235
 										</td>
236 236
 										<td class="actions">
237
-											<div class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
238
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
237
+											<div class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
238
+												title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
239 239
 											</div>
240 240
 										</td>
241 241
 									</tr>
@@ -245,79 +245,79 @@  discard block
 block discarded – undo
245 245
 					</div>
246 246
 				</td>
247 247
 				<td class="actions">
248
-					<a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
249
-						title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>"
250
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>">
248
+					<a class="btn fa act-close" href="#" tabindex="<?= $this->get('tabindex'); ?>"
249
+						title="<?= $enc->attr($this->translate('admin', 'Close')); ?>"
250
+						aria-label="<?= $enc->attr($this->translate('admin', 'Close')); ?>">
251 251
 					</a>
252 252
 				</td>
253 253
 			</tr>
254 254
 
255
-			<?php foreach( $this->get( 'productData/catalog.lists.id', [] ) as $idx => $listId ) : ?>
256
-				<?php $siteId = $this->get( 'productData/catalog.lists.siteid/' . $idx ); ?>
257
-				<?php $refId = $this->get( 'productData/catalog.lists.refid/' . $idx ); ?>
255
+			<?php foreach ($this->get('productData/catalog.lists.id', []) as $idx => $listId) : ?>
256
+				<?php $siteId = $this->get('productData/catalog.lists.siteid/' . $idx); ?>
257
+				<?php $refId = $this->get('productData/catalog.lists.refid/' . $idx); ?>
258 258
 
259
-				<tr class="list-item <?= $this->site()->readonly( $siteId ); ?>">
260
-					<?php if( in_array( 'catalog.lists.position', $fields ) ) : ?>
259
+				<tr class="list-item <?= $this->site()->readonly($siteId); ?>">
260
+					<?php if (in_array('catalog.lists.position', $fields)) : ?>
261 261
 						<td class="catalog-lists-position">
262
-							<input class="form-control item-position" type="number" step="1" tabindex="<?= $this->get( 'tabindex' ); ?>"
263
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.position', '' ) ) ); ?>"
264
-								value="<?= $enc->attr( $this->get( 'productData/catalog.lists.position/' . $idx ) ); ?>"
265
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
262
+							<input class="form-control item-position" type="number" step="1" tabindex="<?= $this->get('tabindex'); ?>"
263
+								name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.position', ''))); ?>"
264
+								value="<?= $enc->attr($this->get('productData/catalog.lists.position/' . $idx)); ?>"
265
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
266 266
 						</td>
267 267
 					<?php endif; ?>
268
-					<?php if( in_array( 'catalog.lists.status', $fields ) ) : ?>
268
+					<?php if (in_array('catalog.lists.status', $fields)) : ?>
269 269
 						<td class="catalog-lists-status">
270
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
271
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.status', '' ) ) ); ?>"
272
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" >
270
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
271
+								name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.status', ''))); ?>"
272
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" >
273 273
 								<option value="">
274
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
274
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
275 275
 								</option>
276
-								<option value="1" <?= $selected( $this->get( 'productData/catalog.lists.status/' . $idx, 1 ), 1 ); ?> >
277
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
276
+								<option value="1" <?= $selected($this->get('productData/catalog.lists.status/' . $idx, 1), 1); ?> >
277
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
278 278
 								</option>
279
-								<option value="0" <?= $selected( $this->get( 'productData/catalog.lists.status/' . $idx, 1 ), 0 ); ?> >
280
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
279
+								<option value="0" <?= $selected($this->get('productData/catalog.lists.status/' . $idx, 1), 0); ?> >
280
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
281 281
 								</option>
282
-								<option value="-1" <?= $selected( $this->get( 'productData/catalog.lists.status/' . $idx, 1 ), -1 ); ?> >
283
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
282
+								<option value="-1" <?= $selected($this->get('productData/catalog.lists.status/' . $idx, 1), -1); ?> >
283
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
284 284
 								</option>
285
-								<option value="-2" <?= $selected( $this->get( 'productData/catalog.lists.status/' . $idx, 1 ), -2 ); ?> >
286
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
285
+								<option value="-2" <?= $selected($this->get('productData/catalog.lists.status/' . $idx, 1), -2); ?> >
286
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
287 287
 								</option>
288 288
 							</select>
289 289
 						</td>
290 290
 					<?php endif; ?>
291
-					<?php if( in_array( 'catalog.lists.type', $fields ) ) : ?>
291
+					<?php if (in_array('catalog.lists.type', $fields)) : ?>
292 292
 						<td class="catalog-lists-type">
293
-							<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
294
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.type', '' ) ) ); ?>"
295
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" >
293
+							<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
294
+								name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.type', ''))); ?>"
295
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" >
296 296
 								<option value="">
297
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
297
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
298 298
 								</option>
299 299
 
300
-								<?php foreach( $this->get( 'productListTypes', [] ) as $type => $item ) : ?>
301
-									<option value="<?= $enc->attr( $type ); ?>" <?= $selected( $this->get( 'productData/catalog.lists.type/' . $idx ), $type ); ?> >
302
-										<?= $enc->html( $type ); ?>
300
+								<?php foreach ($this->get('productListTypes', []) as $type => $item) : ?>
301
+									<option value="<?= $enc->attr($type); ?>" <?= $selected($this->get('productData/catalog.lists.type/' . $idx), $type); ?> >
302
+										<?= $enc->html($type); ?>
303 303
 									</option>
304 304
 								<?php endforeach; ?>
305 305
 							</select>
306 306
 						</td>
307 307
 					<?php endif; ?>
308
-					<?php if( in_array( 'catalog.lists.config', $fields ) ) : ?>
308
+					<?php if (in_array('catalog.lists.config', $fields)) : ?>
309 309
 						<td class="catalog-lists-config item-config">
310 310
 							<div class="config-type config-type-map">
311
-								<input type="text" class="config-value form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
312
-									name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.config', '' ) ) ); ?>"
313
-									value="<?= $enc->attr( json_encode( $this->get( 'productData/catalog.lists.config/' . $idx ) ) ); ?>"
314
-									<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
311
+								<input type="text" class="config-value form-control" tabindex="<?= $this->get('tabindex'); ?>"
312
+									name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.config', ''))); ?>"
313
+									value="<?= $enc->attr(json_encode($this->get('productData/catalog.lists.config/' . $idx))); ?>"
314
+									<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
315 315
 
316 316
 								<table class="table table-striped config-map-table">
317 317
 									<tr class="config-map-row prototype-map">
318 318
 										<td class="config-map-actions">
319 319
 											<div class="btn act-delete fa" tabindex="1"
320
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
320
+												title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
321 321
 											</div>
322 322
 										</td>
323 323
 										<td class="config-map-row-key">
@@ -330,12 +330,12 @@  discard block
 block discarded – undo
330 330
 									<tr class="config-map-actions">
331 331
 										<td class="config-map-action-add">
332 332
 											<div class="btn act-add fa" tabindex="1"
333
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry') ); ?>">
333
+												title="<?= $enc->attr($this->translate('admin', 'Insert new entry')); ?>">
334 334
 											</div>
335 335
 										</td>
336 336
 										<td class="config-map-action-update" colspan="2">
337 337
 											<div class="btn btn-primary act-update" tabindex="1">
338
-												<?= $enc->attr( $this->translate( 'admin', 'OK') ); ?>
338
+												<?= $enc->attr($this->translate('admin', 'OK')); ?>
339 339
 											</div>
340 340
 										</td>
341 341
 									</tr>
@@ -343,55 +343,55 @@  discard block
 block discarded – undo
343 343
 							</div>
344 344
 						</td>
345 345
 					<?php endif; ?>
346
-					<?php if( in_array( 'catalog.lists.datestart', $fields ) ) : ?>
346
+					<?php if (in_array('catalog.lists.datestart', $fields)) : ?>
347 347
 						<td class="catalog-lists-datestart">
348
-							<input class="form-control item-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
349
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.datestart', '' ) ) ); ?>"
350
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'productData/catalog.lists.datestart/' . $idx ) ) ); ?>"
351
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
348
+							<input class="form-control item-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
349
+								name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.datestart', ''))); ?>"
350
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('productData/catalog.lists.datestart/' . $idx))); ?>"
351
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
352 352
 						</td>
353 353
 					<?php endif; ?>
354
-					<?php if( in_array( 'catalog.lists.dateend', $fields ) ) : ?>
354
+					<?php if (in_array('catalog.lists.dateend', $fields)) : ?>
355 355
 						<td class="catalog-lists-dateend">
356
-							<input class="form-control item-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
357
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.dateend', '' ) ) ); ?>"
358
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'productData/catalog.lists.dateend/' . $idx ) ) ); ?>"
359
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
356
+							<input class="form-control item-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
357
+								name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.dateend', ''))); ?>"
358
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('productData/catalog.lists.dateend/' . $idx))); ?>"
359
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
360 360
 						</td>
361 361
 					<?php endif; ?>
362 362
 
363
-					<?php $refItem = ( isset( $refItems[$refId] ) ? $refItems[$refId] : null ); ?>
363
+					<?php $refItem = (isset($refItems[$refId]) ? $refItems[$refId] : null); ?>
364 364
 
365
-					<?php if( in_array( 'catalog.lists.refid', $fields ) ) : ?>
365
+					<?php if (in_array('catalog.lists.refid', $fields)) : ?>
366 366
 						<td class="catalog-lists-refid">
367 367
 							<input class="form-control item-refid" type="hidden"
368
-								name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.refid', '' ) ) ); ?>"
369
-								value="<?= $enc->attr( $refId ); ?>" disabled="disabled" />
370
-							<?php if( $refItem ) : ?>
371
-								<a class="btn act-view fa item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" target="_blank"
372
-									href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig ) ); ?>"
373
-									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry') ); ?>"
374
-									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375
-									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
368
+								name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.refid', ''))); ?>"
369
+								value="<?= $enc->attr($refId); ?>" disabled="disabled" />
370
+							<?php if ($refItem) : ?>
371
+								<a class="btn act-view fa item-refid" tabindex="<?= $this->get('tabindex'); ?>" target="_blank"
372
+									href="<?= $enc->attr($this->url($getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig)); ?>"
373
+									title="<?= $enc->attr($this->translate('admin', 'Show entry')); ?>"
374
+									aria-label="<?= $enc->attr($this->translate('admin', 'Show')); ?>">
375
+									<?= $enc->html($refId); ?> - <?= $enc->html($refItem->getLabel() . ' (' . $refItem->getCode() . ')'); ?>
376 376
 								</a>
377 377
 							<?php else : ?>
378
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
378
+								<?= $enc->html($refId); ?> (<?= $enc->html($this->translate('admin', 'not available any more')); ?>)
379 379
 							<?php endif; ?>
380 380
 						</td>
381 381
 					<?php endif; ?>
382 382
 
383 383
 					<td class="actions">
384
-						<input type="hidden" value="<?= $enc->attr( $listId ); ?>" disabled="disabled"
385
-							name="<?= $enc->attr( $this->formparam( array( 'product', 'catalog.lists.id', '' ) ) ); ?>" />
384
+						<input type="hidden" value="<?= $enc->attr($listId); ?>" disabled="disabled"
385
+							name="<?= $enc->attr($this->formparam(array('product', 'catalog.lists.id', ''))); ?>" />
386 386
 
387
-						<?php if( !$this->site()->readonly( $siteId ) ) : ?>
388
-							<a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#"
389
-								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>"
390
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a>
391
-							<a class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
392
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'catalog/lists', 'id' => $listId] + $params, [], $delConfig ) ); ?>"
393
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
394
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
387
+						<?php if (!$this->site()->readonly($siteId)) : ?>
388
+							<a class="btn act-edit fa" tabindex="<?= $this->get('tabindex'); ?>" href="#"
389
+								title="<?= $enc->attr($this->translate('admin', 'Edit this entry')); ?>"
390
+								aria-label="<?= $enc->attr($this->translate('admin', 'Edit')); ?>"></a>
391
+							<a class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
392
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['resource' => 'catalog/lists', 'id' => $listId] + $params, [], $delConfig)); ?>"
393
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
394
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
395 395
 						<?php endif; ?>
396 396
 					</td>
397 397
 				</tr>
@@ -400,17 +400,17 @@  discard block
 block discarded – undo
400 400
 		</tbody>
401 401
 	</table>
402 402
 
403
-	<?php if( $this->get( 'productData', [] ) === [] ) : ?>
404
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
403
+	<?php if ($this->get('productData', []) === []) : ?>
404
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
405 405
 	<?php endif; ?>
406 406
 
407 407
 	<?= $this->partial(
408
-			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
409
-			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'productTotal' ),
410
-			'group' => 'cp', 'action' => ( $this->param( 'id') ? 'get' : 'search' ), 'fragment' => 'product',
411
-			'page' => $this->session( 'aimeos/admin/jqadm/catalogproduct/page', [] )]
408
+			$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
409
+			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('productTotal'),
410
+			'group' => 'cp', 'action' => ($this->param('id') ? 'get' : 'search'), 'fragment' => 'product',
411
+			'page' => $this->session('aimeos/admin/jqadm/catalogproduct/page', [])]
412 412
 		);
413 413
 	?>
414 414
 
415 415
 </div>
416
-<?= $this->get( 'productBody' ); ?>
416
+<?= $this->get('productBody'); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/info-standard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 $enc = $this->encoder();
9
-$list = $this->get( 'info', [] );
9
+$list = $this->get('info', []);
10 10
 
11 11
 ?>
12
-<?php if( !empty( $list ) ) : ?>
12
+<?php if (!empty($list)) : ?>
13 13
 	<ul class="info-list alert alert-info" role="alert">
14
-		<?php	foreach( $list as $key => $entry ) : ?>
15
-			<li class="info-item" data-key="<?= $enc->attr( $key ); ?>">
14
+		<?php	foreach ($list as $key => $entry) : ?>
15
+			<li class="info-item" data-key="<?= $enc->attr($key); ?>">
16 16
 				<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
17
-				<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Info' ) ); ?></span>
18
-				<?= $enc->html( $entry ); ?>
17
+				<span class="sr-only"><?= $enc->html($this->translate('admin', 'Info')); ?></span>
18
+				<?= $enc->html($entry); ?>
19 19
 			</li>
20 20
 		<?php	endforeach; ?>
21 21
 	</ul>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/itemactions-standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -12,36 +12,36 @@
 block discarded – undo
12 12
  * - params: Associative list of current parameters
13 13
  */
14 14
 
15
-$listTarget = $this->config( 'admin/jqadm/url/search/target' );
16
-$listCntl = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
17
-$listAction = $this->config( 'admin/jqadm/url/search/action', 'search' );
18
-$listConfig = $this->config( 'admin/jqadm/url/search/config', [] );
15
+$listTarget = $this->config('admin/jqadm/url/search/target');
16
+$listCntl = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
17
+$listAction = $this->config('admin/jqadm/url/search/action', 'search');
18
+$listConfig = $this->config('admin/jqadm/url/search/config', []);
19 19
 
20
-$params = $this->get( 'params', [] );
21
-unset( $params['id'] );
20
+$params = $this->get('params', []);
21
+unset($params['id']);
22 22
 
23 23
 $enc = $this->encoder();
24 24
 
25 25
 
26 26
 ?>
27 27
 <a class="btn btn-secondary act-cancel"
28
-	title="<?= $enc->attr( $this->translate( 'admin', 'Cancel and return to list') ); ?>"
29
-	href="<?= $enc->attr( $this->url( $listTarget, $listCntl, $listAction, $params, [], $listConfig ) ); ?>">
30
-	<?= $enc->html( $this->translate( 'admin', 'Cancel' ) ); ?>
28
+	title="<?= $enc->attr($this->translate('admin', 'Cancel and return to list')); ?>"
29
+	href="<?= $enc->attr($this->url($listTarget, $listCntl, $listAction, $params, [], $listConfig)); ?>">
30
+	<?= $enc->html($this->translate('admin', 'Cancel')); ?>
31 31
 </a>
32 32
 
33 33
 <div class="btn-group">
34 34
 	<button type="submit" class="btn btn-primary act-save"
35
-		title="<?= $enc->attr( $this->translate( 'admin', 'Save entry (Ctrl+S)') ); ?>">
36
-		<?= $enc->html( $this->translate( 'admin', 'Save' ) ); ?>
35
+		title="<?= $enc->attr($this->translate('admin', 'Save entry (Ctrl+S)')); ?>">
36
+		<?= $enc->html($this->translate('admin', 'Save')); ?>
37 37
 	</button>
38 38
 	<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"
39 39
 		aria-haspopup="true" aria-expanded="false">
40
-		<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Toggle dropdown' ) ); ?></span>
40
+		<span class="sr-only"><?= $enc->html($this->translate('admin', 'Toggle dropdown')); ?></span>
41 41
 	</button>
42 42
 	<ul class="dropdown-menu dropdown-menu-right">
43
-		<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html( $this->translate( 'admin', 'Save & Close' ) ); ?></a></li>
44
-		<li class="dropdown-item"><a class="next-action" href="#" data-next="copy"><?= $enc->html( $this->translate( 'admin', 'Save & Copy' ) ); ?></a></li>
45
-		<li class="dropdown-item"><a class="next-action" href="#" data-next="create"><?= $enc->html( $this->translate( 'admin', 'Save & New' ) ); ?></a></li>
43
+		<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html($this->translate('admin', 'Save & Close')); ?></a></li>
44
+		<li class="dropdown-item"><a class="next-action" href="#" data-next="copy"><?= $enc->html($this->translate('admin', 'Save & Copy')); ?></a></li>
45
+		<li class="dropdown-item"><a class="next-action" href="#" data-next="create"><?= $enc->html($this->translate('admin', 'Save & New')); ?></a></li>
46 46
 	</ul>
47 47
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/columns-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,31 +16,31 @@
 block discarded – undo
16 16
  */
17 17
 
18 18
 
19
-$checked = function( array $list, $code ) {
20
-	return ( in_array( $code, $list ) ? 'checked="checked"' : '' );
19
+$checked = function(array $list, $code) {
20
+	return (in_array($code, $list) ? 'checked="checked"' : '');
21 21
 };
22 22
 
23 23
 
24 24
 $enc = $this->encoder();
25
-$fields = $this->get( 'fields', [] );
26
-$names = array_merge( (array) $this->get( 'group', [] ), ['fields', ''] );
25
+$fields = $this->get('fields', []);
26
+$names = array_merge((array) $this->get('group', []), ['fields', '']);
27 27
 
28 28
 
29 29
 ?>
30 30
 <div class="dropdown filter-columns">
31
-	<button class="btn act-columns fa" type="button" id="dropdownMenuButton-<?= $this->get( 'group' ) ?>"
32
-		data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
33
-		aria-label="<?= $enc->attr( $this->translate( 'admin', 'Columns' ) ); ?>"
34
-		title="<?= $enc->attr( $this->translate( 'admin', 'Columns') ); ?>">
31
+	<button class="btn act-columns fa" type="button" id="dropdownMenuButton-<?= $this->get('group') ?>"
32
+		data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="<?= $this->get('tabindex', 1); ?>"
33
+		aria-label="<?= $enc->attr($this->translate('admin', 'Columns')); ?>"
34
+		title="<?= $enc->attr($this->translate('admin', 'Columns')); ?>">
35 35
 	</button>
36
-	<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton-<?= $this->get( 'group' ) ?>">
37
-		<?php foreach( $this->get( 'data', [] ) as $key => $name ) : ?>
36
+	<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton-<?= $this->get('group') ?>">
37
+		<?php foreach ($this->get('data', []) as $key => $name) : ?>
38 38
 			<li class="dropdown-item">
39 39
 				<a href="#"><label>
40
-					<input type="checkbox" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
41
-						name="<?= $enc->attr( $this->formparam( $names ) ); ?>"
42
-						value="<?= $enc->attr( $key ); ?>" <?= $checked( $fields, $key ); ?> />
43
-					<?= $enc->html( $name ); ?>
40
+					<input type="checkbox" tabindex="<?= $this->get('tabindex', 1); ?>"
41
+						name="<?= $enc->attr($this->formparam($names)); ?>"
42
+						value="<?= $enc->attr($key); ?>" <?= $checked($fields, $key); ?> />
43
+					<?= $enc->html($name); ?>
44 44
 				</label></a>
45 45
 			</li>
46 46
 		<?php endforeach; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/listhead-standard.php 2 patches
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -19,50 +19,50 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 
22
-$sort = function( $sortcode, $code ) {
23
-	return ( $sortcode === $code ? '-' . $code : $code );
22
+$sort = function($sortcode, $code) {
23
+	return ($sortcode === $code ? '-' . $code : $code);
24 24
 };
25 25
 
26
-$sortclass = function( $sortcode, $code ) {
27
-	if( $sortcode === $code ) {
26
+$sortclass = function($sortcode, $code) {
27
+	if ($sortcode === $code) {
28 28
 		return 'sort-desc';
29 29
 	}
30
-	if( $sortcode === '-' . $code ) {
30
+	if ($sortcode === '-' . $code) {
31 31
 		return 'sort-asc';
32 32
 	}
33 33
 };
34 34
 
35 35
 
36
-if( $this->get( 'action' ) === 'get' )
36
+if ($this->get('action') === 'get')
37 37
 {
38
-	$target = $this->config( 'admin/jqadm/url/get/target' );
39
-	$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
40
-	$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
41
-	$config = $this->config( 'admin/jqadm/url/get/config', [] );
38
+	$target = $this->config('admin/jqadm/url/get/target');
39
+	$controller = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
40
+	$action = $this->config('admin/jqadm/url/get/action', 'get');
41
+	$config = $this->config('admin/jqadm/url/get/config', []);
42 42
 }
43 43
 else
44 44
 {
45
-	$target = $this->config( 'admin/jqadm/url/search/target' );
46
-	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
47
-	$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
48
-	$config = $this->config( 'admin/jqadm/url/search/config', [] );
45
+	$target = $this->config('admin/jqadm/url/search/target');
46
+	$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
47
+	$action = $this->config('admin/jqadm/url/search/action', 'search');
48
+	$config = $this->config('admin/jqadm/url/search/config', []);
49 49
 }
50 50
 
51
-$fields = $this->get( 'fields', [] );
52
-$params = $this->get( 'params', [] );
53
-$fragment = (array) $this->get( 'fragment', [] );
54
-$sortcode = $this->get( 'sort' );
51
+$fields = $this->get('fields', []);
52
+$params = $this->get('params', []);
53
+$fragment = (array) $this->get('fragment', []);
54
+$sortcode = $this->get('sort');
55 55
 
56 56
 $enc = $this->encoder();
57 57
 
58 58
 
59 59
 ?>
60
-<?php foreach( $this->get( 'data', [] ) as $key => $name ) : ?>
61
-	<?php if( in_array( $key, $fields ) ) : ?>
62
-		<th class="<?= $enc->attr( str_replace( '.', '-', $key ) ); ?>">
63
-			<a class="<?= $sortclass( $sortcode, $key ); ?>" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
64
-				href="<?= $enc->attr( $this->url( $target, $controller, $action, ['sort' => $sort( $sortcode, $key )] + $params, $fragment, $config ) ); ?>">
65
-				<?= $enc->html( $name ); ?>
60
+<?php foreach ($this->get('data', []) as $key => $name) : ?>
61
+	<?php if (in_array($key, $fields)) : ?>
62
+		<th class="<?= $enc->attr(str_replace('.', '-', $key)); ?>">
63
+			<a class="<?= $sortclass($sortcode, $key); ?>" tabindex="<?= $this->get('tabindex', 1); ?>"
64
+				href="<?= $enc->attr($this->url($target, $controller, $action, ['sort' => $sort($sortcode, $key)] + $params, $fragment, $config)); ?>">
65
+				<?= $enc->html($name); ?>
66 66
 			</a>
67 67
 		</th>
68 68
 	<?php endif; ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 	$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
40 40
 	$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
41 41
 	$config = $this->config( 'admin/jqadm/url/get/config', [] );
42
-}
43
-else
42
+} else
44 43
 {
45 44
 	$target = $this->config( 'admin/jqadm/url/search/target' );
46 45
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/error-standard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 $enc = $this->encoder();
9
-$errors = $this->get( 'errors', [] );
9
+$errors = $this->get('errors', []);
10 10
 
11 11
 ?>
12
-<?php if( !empty( $errors ) ) : ?>
12
+<?php if (!empty($errors)) : ?>
13 13
 	<ul class="error-list alert alert-danger" role="alert">
14
-		<?php	foreach( $errors as $key => $error ) : ?>
15
-			<li class="error-item" data-key="<?= $enc->attr( $key ); ?>">
14
+		<?php	foreach ($errors as $key => $error) : ?>
15
+			<li class="error-item" data-key="<?= $enc->attr($key); ?>">
16 16
 				<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
17
-				<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Error' ) ); ?></span>
18
-				<?= $enc->html( $error ); ?>
17
+				<span class="sr-only"><?= $enc->html($this->translate('admin', 'Error')); ?></span>
18
+				<?= $enc->html($error); ?>
19 19
 			</li>
20 20
 		<?php	endforeach; ?>
21 21
 	</ul>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/pagination-standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,16 +56,14 @@
 block discarded – undo
56 56
 		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57 57
 		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58 58
 		$config = $this->config( 'admin/jqadm/url/get/config', [] );
59
-	}
60
-	else
59
+	} else
61 60
 	{
62 61
 		$target = $this->config( 'admin/jqadm/url/create/target' );
63 62
 		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64 63
 		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65 64
 		$config = $this->config( 'admin/jqadm/url/create/config', [] );
66 65
 	}
67
-}
68
-else
66
+} else
69 67
 {
70 68
 	$target = $this->config( 'admin/jqadm/url/search/target' );
71 69
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -21,56 +21,56 @@  discard block
 block discarded – undo
21 21
  */
22 22
 
23 23
 
24
-$pgroup = function( array $params, $group )
24
+$pgroup = function(array $params, $group)
25 25
 {
26
-	if( $group != null ) {
26
+	if ($group != null) {
27 27
 		return [$group => ['page' => $params]];
28 28
 	}
29 29
 
30 30
 	return ['page' => $params];
31 31
 };
32 32
 
33
-$fragment = (array) $this->get( 'fragment', [] );
34
-$total = min( $this->get( 'total', 0 ), 10000 );
35
-$pOffset = $pLimit = $this->get( 'page', [] );
36
-$params = $this->get( 'pageParams', [] );
37
-$group = $this->get( 'group' );
33
+$fragment = (array) $this->get('fragment', []);
34
+$total = min($this->get('total', 0), 10000);
35
+$pOffset = $pLimit = $this->get('page', []);
36
+$params = $this->get('pageParams', []);
37
+$group = $this->get('group');
38 38
 
39
-$offset = max( $this->get( 'page/offset', 0 ), 0 );
40
-$limit = max( $this->get( 'page/limit', 25 ), 1 );
39
+$offset = max($this->get('page/offset', 0), 0);
40
+$limit = max($this->get('page/limit', 25), 1);
41 41
 
42
-$first = ( $offset > 0 ? 0 : null );
43
-$prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
44
-$next = ( $offset + $limit < $total ? $offset + $limit : null );
45
-$last = ( floor(($total - 1) / $limit) * $limit > $offset ? floor(($total - 1) / $limit) * $limit : null );
42
+$first = ($offset > 0 ? 0 : null);
43
+$prev = ($offset - $limit >= 0 ? $offset - $limit : null);
44
+$next = ($offset + $limit < $total ? $offset + $limit : null);
45
+$last = (floor(($total - 1) / $limit) * $limit > $offset ? floor(($total - 1) / $limit) * $limit : null);
46 46
 
47
-$pageCurrent = floor( $offset / $limit ) + 1;
48
-$pageTotal = ( $total != 0 ? ceil( $total / $limit ) : 1 );
47
+$pageCurrent = floor($offset / $limit) + 1;
48
+$pageTotal = ($total != 0 ? ceil($total / $limit) : 1);
49 49
 
50 50
 
51
-if( $this->get( 'action' ) === 'get' )
51
+if ($this->get('action') === 'get')
52 52
 {
53
-	if( isset( $params['id'] ) )
53
+	if (isset($params['id']))
54 54
 	{
55
-		$target = $this->config( 'admin/jqadm/url/get/target' );
56
-		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57
-		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58
-		$config = $this->config( 'admin/jqadm/url/get/config', [] );
55
+		$target = $this->config('admin/jqadm/url/get/target');
56
+		$controller = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
57
+		$action = $this->config('admin/jqadm/url/get/action', 'get');
58
+		$config = $this->config('admin/jqadm/url/get/config', []);
59 59
 	}
60 60
 	else
61 61
 	{
62
-		$target = $this->config( 'admin/jqadm/url/create/target' );
63
-		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64
-		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65
-		$config = $this->config( 'admin/jqadm/url/create/config', [] );
62
+		$target = $this->config('admin/jqadm/url/create/target');
63
+		$controller = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
64
+		$action = $this->config('admin/jqadm/url/create/action', 'create');
65
+		$config = $this->config('admin/jqadm/url/create/config', []);
66 66
 	}
67 67
 }
68 68
 else
69 69
 {
70
-	$target = $this->config( 'admin/jqadm/url/search/target' );
71
-	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
72
-	$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
73
-	$config = $this->config( 'admin/jqadm/url/search/config', [] );
70
+	$target = $this->config('admin/jqadm/url/search/target');
71
+	$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
72
+	$action = $this->config('admin/jqadm/url/search/action', 'search');
73
+	$config = $this->config('admin/jqadm/url/search/config', []);
74 74
 }
75 75
 
76 76
 
@@ -78,68 +78,68 @@  discard block
 block discarded – undo
78 78
 
79 79
 
80 80
 ?>
81
-<?php if( $total > $limit || $offset > 0 || $this->get( 'pos', 'top' ) === 'bottom' ) : ?>
81
+<?php if ($total > $limit || $offset > 0 || $this->get('pos', 'top') === 'bottom') : ?>
82 82
 	<nav class="list-page">
83 83
 		<ul class="page-offset pagination">
84
-			<li class="page-item <?= ( $first === null ? 'disabled' : '' ) ?>">
85
-				<a class="page-link" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
86
-					href="<?php $pOffset['offset'] = $first; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pOffset, $group ) + $params, $fragment, $config ) ); ?>"
87
-					aria-label="<?= $enc->attr( $this->translate( 'admin', 'First' ) ); ?>">
84
+			<li class="page-item <?= ($first === null ? 'disabled' : '') ?>">
85
+				<a class="page-link" tabindex="<?= $this->get('tabindex', 1); ?>"
86
+					href="<?php $pOffset['offset'] = $first; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pOffset, $group) + $params, $fragment, $config)); ?>"
87
+					aria-label="<?= $enc->attr($this->translate('admin', 'First')); ?>">
88 88
 					<span class="fa fa-fast-backward" aria-hidden="true"></span>
89 89
 				</a>
90 90
 			</li><!--
91
-			--><li class="page-item <?= ( $prev === null ? 'disabled' : '' ) ?>">
92
-				<a class="page-link" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
93
-					href="<?php $pOffset['offset'] = $prev; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pOffset, $group ) + $params, $fragment, $config ) ); ?>"
94
-					aria-label="<?= $enc->attr( $this->translate( 'admin', 'Previous' ) ); ?>">
91
+			--><li class="page-item <?= ($prev === null ? 'disabled' : '') ?>">
92
+				<a class="page-link" tabindex="<?= $this->get('tabindex', 1); ?>"
93
+					href="<?php $pOffset['offset'] = $prev; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pOffset, $group) + $params, $fragment, $config)); ?>"
94
+					aria-label="<?= $enc->attr($this->translate('admin', 'Previous')); ?>">
95 95
 					<span class="fa fa-step-backward" aria-hidden="true"></span>
96 96
 				</a>
97 97
 			</li><!--
98 98
 			--><li class="page-item disabled">
99
-				<a class="page-link" tabindex="<?= $this->get( 'tabindex', 1 ); ?>" href="#">
100
-					<?= $enc->html( sprintf( $this->translate( 'admin', 'Page %1$d of %2$d' ), $pageCurrent, $pageTotal ) ); ?>
99
+				<a class="page-link" tabindex="<?= $this->get('tabindex', 1); ?>" href="#">
100
+					<?= $enc->html(sprintf($this->translate('admin', 'Page %1$d of %2$d'), $pageCurrent, $pageTotal)); ?>
101 101
 				</a>
102 102
 			</li><!--
103
-			--><li class="page-item <?= ( $next === null ? 'disabled' : '' ) ?>">
104
-				<a class="page-link" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
105
-					href="<?php $pOffset['offset'] = $next; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pOffset, $group ) + $params, $fragment, $config ) ); ?>"
106
-					aria-label="<?= $enc->attr( $this->translate( 'admin', 'Next' ) ); ?>">
103
+			--><li class="page-item <?= ($next === null ? 'disabled' : '') ?>">
104
+				<a class="page-link" tabindex="<?= $this->get('tabindex', 1); ?>"
105
+					href="<?php $pOffset['offset'] = $next; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pOffset, $group) + $params, $fragment, $config)); ?>"
106
+					aria-label="<?= $enc->attr($this->translate('admin', 'Next')); ?>">
107 107
 					<span class="fa fa-step-forward" aria-hidden="true"></span>
108 108
 				</a>
109 109
 			</li><!--
110
-			--><li class="page-item <?= ( $last === null ? 'disabled' : '' ) ?>">
111
-				<a class="page-link" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
112
-					href="<?php $pOffset['offset'] = $last; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pOffset, $group ) + $params, $fragment, $config ) ); ?>"
113
-					aria-label="<?= $enc->attr( $this->translate( 'admin', 'Last' ) ); ?>">
110
+			--><li class="page-item <?= ($last === null ? 'disabled' : '') ?>">
111
+				<a class="page-link" tabindex="<?= $this->get('tabindex', 1); ?>"
112
+					href="<?php $pOffset['offset'] = $last; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pOffset, $group) + $params, $fragment, $config)); ?>"
113
+					aria-label="<?= $enc->attr($this->translate('admin', 'Last')); ?>">
114 114
 					<span class="fa fa-fast-forward" aria-hidden="true"></span>
115 115
 				</a>
116 116
 			</li>
117 117
 		</ul>
118
-		<div class="page-limit btn-group <?= ( $this->get( 'pos', 'top' ) === 'bottom' ? 'dropup' : '' ); ?>" role="group">
118
+		<div class="page-limit btn-group <?= ($this->get('pos', 'top') === 'bottom' ? 'dropup' : ''); ?>" role="group">
119 119
 			<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown"
120
-				 tabindex="<?= $this->get( 'tabindex', 1 ); ?>" aria-haspopup="true" aria-expanded="false">
120
+				 tabindex="<?= $this->get('tabindex', 1); ?>" aria-haspopup="true" aria-expanded="false">
121 121
 				<?= $limit; ?> <span class="caret"></span>
122 122
 			</button>
123 123
 			<ul class="dropdown-menu">
124 124
 				<li class="dropdown-item">
125
-					<a href="<?php $pLimit['limit'] = 25; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pLimit, $group ) + $params, $fragment, $config ) ); ?>"
126
-						tabindex="<?= $this->get( 'tabindex', 1 ); ?>">25</a>
125
+					<a href="<?php $pLimit['limit'] = 25; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pLimit, $group) + $params, $fragment, $config)); ?>"
126
+						tabindex="<?= $this->get('tabindex', 1); ?>">25</a>
127 127
 				</li>
128 128
 				<li class="dropdown-item">
129
-					<a href="<?php $pLimit['limit'] = 50; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pLimit, $group ) + $params, $fragment, $config ) ); ?>"
130
-						tabindex="<?= $this->get( 'tabindex', 1 ); ?>">50</a>
129
+					<a href="<?php $pLimit['limit'] = 50; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pLimit, $group) + $params, $fragment, $config)); ?>"
130
+						tabindex="<?= $this->get('tabindex', 1); ?>">50</a>
131 131
 				</li>
132 132
 				<li class="dropdown-item">
133
-					<a href="<?php $pLimit['limit'] = 100; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pLimit, $group ) + $params, $fragment, $config ) ); ?>"
134
-						tabindex="<?= $this->get( 'tabindex', 1 ); ?>">100</a>
133
+					<a href="<?php $pLimit['limit'] = 100; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pLimit, $group) + $params, $fragment, $config)); ?>"
134
+						tabindex="<?= $this->get('tabindex', 1); ?>">100</a>
135 135
 				</li>
136 136
 				<li class="dropdown-item">
137
-					<a href="<?php $pLimit['limit'] = 200; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pLimit, $group ) + $params, $fragment, $config ) ); ?>"
138
-						tabindex="<?= $this->get( 'tabindex', 1 ); ?>">200</a>
137
+					<a href="<?php $pLimit['limit'] = 200; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pLimit, $group) + $params, $fragment, $config)); ?>"
138
+						tabindex="<?= $this->get('tabindex', 1); ?>">200</a>
139 139
 				</li>
140 140
 				<li class="dropdown-item">
141
-					<a href="<?php $pLimit['limit'] = 500; echo $enc->attr( $this->url( $target, $controller, $action, $pgroup( $pLimit, $group ) + $params, $fragment, $config ) ); ?>"
142
-						tabindex="<?= $this->get( 'tabindex', 1 ); ?>">500</a>
141
+					<a href="<?php $pLimit['limit'] = 500; echo $enc->attr($this->url($target, $controller, $action, $pgroup($pLimit, $group) + $params, $fragment, $config)); ?>"
142
+						tabindex="<?= $this->get('tabindex', 1); ?>">500</a>
143 143
 				</li>
144 144
 			</ul>
145 145
 		</div>
Please login to merge, or discard this patch.