Completed
Push — master ( 0229de...f71bfb )
by Aimeos
04:41
created
admin/jqadm/templates/product/item-selection-standard.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@  discard block
 block discarded – undo
7 7
 
8 8
 $enc = $this->encoder();
9 9
 
10
-$target = $this->config( 'admin/jqadm/url/get/target' );
11
-$cntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
12
-$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
13
-$config = $this->config( 'admin/jqadm/url/get/config', [] );
10
+$target = $this->config('admin/jqadm/url/get/target');
11
+$cntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
12
+$action = $this->config('admin/jqadm/url/get/action', 'get');
13
+$config = $this->config('admin/jqadm/url/get/config', []);
14 14
 
15 15
 $keys = ['product.lists.siteid', 'product.lists.id', 'product.lists.refid', 'product.label', 'product.code', 'product.status'];
16 16
 
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 ?>
19 19
 <div id="selection" class="item-selection content-block tab-pane fade" role="tablist" aria-labelledby="selection">
20 20
 	<div id="item-selection-group" role="tablist" aria-multiselectable="true"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'selectionData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('selectionData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -28,25 +28,25 @@  discard block
 block discarded – undo
28 28
 				v-bind:data-target="'#item-selection-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
29 29
 				v-bind:aria-controls="'item-selection-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
31
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
32
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
36 36
 				&nbsp;
37 37
 				<div class="card-tools-right">
38
-					<a v-if="entry['product.id']" class="btn btn-card-header act-view fa" target="_blank" tabindex="<?= $this->get( 'tabindex' ); ?>"
39
-						v-bind:href="'<?= $enc->attr( $this->url( $target, $cntl, $action, ['id' => '_ID_'] + $this->get( 'pageParams', [] ), [], $config ) ); ?>'.replace('_ID_', entry['product.id'])"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'View details') ); ?>"></a>
38
+					<a v-if="entry['product.id']" class="btn btn-card-header act-view fa" target="_blank" tabindex="<?= $this->get('tabindex'); ?>"
39
+						v-bind:href="'<?= $enc->attr($this->url($target, $cntl, $action, ['id' => '_ID_'] + $this->get('pageParams', []), [], $config)); ?>'.replace('_ID_', entry['product.id'])"
40
+						title="<?= $enc->attr($this->translate('admin', 'View details')); ?>"></a>
41 41
 
42
-					<div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
43
-						title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)') ); ?>"
42
+					<div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get('tabindex'); ?>"
43
+						title="<?= $enc->attr($this->translate('admin', 'Duplicate entry (Ctrl+D)')); ?>"
44 44
 						v-on:click.stop="copyItem(idx)">
45 45
 					</div>
46 46
 
47 47
 					<div v-if="!checkSite('product.lists.siteid', idx)"
48
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
49
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
48
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
49
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
50 50
 						v-on:click.stop="removeItem(idx)">
51 51
 					</div>
52 52
 				</div>
@@ -56,62 +56,62 @@  discard block
 block discarded – undo
56 56
 				v-bind:aria-labelledby="'item-selection-group-item-' + idx" role="tabpanel" class="card-block collapse row">
57 57
 
58 58
 				<input class="item-id" type="hidden" v-model="items[idx]['product.lists.id']"
59
-					v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'product.lists.id'] ) ); ?>'.replace('idx', idx)" />
59
+					v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'product.lists.id'])); ?>'.replace('idx', idx)" />
60 60
 				<input class="item-listid" type="hidden" v-model="items[idx]['product.id']"
61
-					v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'product.id'] ) ); ?>'.replace('idx', idx)" />
61
+					v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'product.id'])); ?>'.replace('idx', idx)" />
62 62
 
63 63
 				<div class="col-xl-6">
64 64
 
65 65
 					<div class="form-group row mandatory">
66
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
66
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
67 67
 						<div class="col-sm-8">
68
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
69
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'selection', 'idx', 'product.status' ) ) ); ?>'.replace('idx', idx)"
68
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
69
+								v-bind:name="'<?= $enc->attr($this->formparam(array('selection', 'idx', 'product.status'))); ?>'.replace('idx', idx)"
70 70
 								v-bind:readonly="checkSite('product.siteid', idx)"
71 71
 								v-model="items[idx]['product.status']" >
72 72
 								<option value="1" v-bind:selected="items[idx]['product.status'] == 1" >
73
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
73
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
74 74
 								</option>
75 75
 								<option value="0" v-bind:selected="items[idx]['product.status'] == 0" >
76
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
76
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
77 77
 								</option>
78 78
 								<option value="-1" v-bind:selected="items[idx]['product.status'] == -1" >
79
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
79
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
80 80
 								</option>
81 81
 								<option value="-2" v-bind:selected="items[idx]['product.status'] == -2" >
82
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
82
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
83 83
 								</option>
84 84
 							</select>
85 85
 						</div>
86 86
 					</div>
87 87
 					<div class="form-group row mandatory">
88
-						<label class="col-lg-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'SKU' ) ); ?></label>
88
+						<label class="col-lg-4 form-control-label help"><?= $enc->html($this->translate('admin', 'SKU')); ?></label>
89 89
 						<div class="col-lg-8">
90 90
 							<input is="auto-complete"
91 91
 								v-model="items[idx]['product.code']"
92
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'EAN, SKU or article number (required)' ) ); ?>"
93
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'selection', 'idx', 'product.code' ) ) ); ?>'.replace('idx', idx)"
92
+								placeholder="<?= $enc->attr($this->translate('admin', 'EAN, SKU or article number (required)')); ?>"
93
+								v-bind:name="'<?= $enc->attr($this->formparam(array('selection', 'idx', 'product.code'))); ?>'.replace('idx', idx)"
94 94
 								v-bind:readonly="checkSite('product.lists.siteid', idx) || entry['product.lists.id'] != ''"
95
-								v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
95
+								v-bind:tabindex="<?= $this->get('tabindex'); ?>"
96 96
 								v-bind:keys="getArticles"
97 97
 								v-bind:required="'required'"
98 98
 								v-on:input="updateProductItem(idx, ...arguments)" />
99 99
 						</div>
100 100
 						<div class="col-sm-12 form-text text-muted help-text">
101
-							<?= $enc->html( $this->translate( 'admin', 'Unique article code related to stock levels, e.g. from the ERP system, an EAN/GTIN number or self invented' ) ); ?>
101
+							<?= $enc->html($this->translate('admin', 'Unique article code related to stock levels, e.g. from the ERP system, an EAN/GTIN number or self invented')); ?>
102 102
 						</div>
103 103
 					</div>
104 104
 					<div class="form-group row mandatory">
105
-						<label class="col-lg-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
105
+						<label class="col-lg-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
106 106
 						<div class="col-lg-8">
107
-							<input class="form-control item-label" type="text" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
108
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'selection', 'idx', 'product.label' ) ) ); ?>'.replace('idx', idx)"
109
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>"
107
+							<input class="form-control item-label" type="text" required="required" tabindex="<?= $this->get('tabindex'); ?>"
108
+								v-bind:name="'<?= $enc->attr($this->formparam(array('selection', 'idx', 'product.label'))); ?>'.replace('idx', idx)"
109
+								placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>"
110 110
 								v-bind:readonly="checkSite('product.siteid', idx)"
111 111
 								v-model="items[idx]['product.label']" />
112 112
 						</div>
113 113
 						<div class="col-sm-12 form-text text-muted help-text">
114
-							<?= $enc->html( $this->translate( 'admin', 'Internal article name, will be used on the web site if no product name for the language is available' ) ); ?>
114
+							<?= $enc->html($this->translate('admin', 'Internal article name, will be used on the web site if no product name for the language is available')); ?>
115 115
 						</div>
116 116
 					</div>
117 117
 
@@ -122,14 +122,14 @@  discard block
 block discarded – undo
122 122
 						<thead>
123 123
 							<tr>
124 124
 								<th>
125
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Variant attributes' ) ); ?></span>
125
+									<span class="help"><?= $enc->html($this->translate('admin', 'Variant attributes')); ?></span>
126 126
 									<div class="form-text text-muted help-text">
127
-										<?= $enc->html( $this->translate( 'admin', 'All attributes that uniquely define an article, e.g. width, length and color for jeans' ) ); ?>
127
+										<?= $enc->html($this->translate('admin', 'All attributes that uniquely define an article, e.g. width, length and color for jeans')); ?>
128 128
 									</div>
129 129
 								</th>
130 130
 								<th class="actions">
131
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
132
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
131
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
132
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
133 133
 										v-on:click="addAttributeItem(idx)">
134 134
 									</div>
135 135
 								</th>
@@ -140,21 +140,21 @@  discard block
 block discarded – undo
140 140
 							<tr v-for="(attr, attridx) in (entry['attr'] || [])">
141 141
 								<td>
142 142
 									<input class="item-attr-listid" type="hidden" v-model="items[idx]['attr'][attridx]['product.lists.id']"
143
-										v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'attr', 'attridx', 'product.lists.id'] ) ); ?>'.replace('idx', idx).replace('attridx', attridx)" />
143
+										v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'attr', 'attridx', 'product.lists.id'])); ?>'.replace('idx', idx).replace('attridx', attridx)" />
144 144
 
145 145
 									<input class="item-attr-siteid" type="hidden" v-model="items[idx]['attr'][attridx]['product.lists.siteid']"
146
-										v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'attr', 'attridx', 'product.lists.siteid'] ) ); ?>'.replace('idx', idx).replace('attridx', attridx)" />
146
+										v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'attr', 'attridx', 'product.lists.siteid'])); ?>'.replace('idx', idx).replace('attridx', attridx)" />
147 147
 
148 148
 									<input class="item-attr-type" type="hidden" v-model="items[idx]['attr'][attridx]['attribute.type']"
149
-										v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'attr', 'attridx', 'attribute.type'] ) ); ?>'.replace('idx', idx).replace('attridx', attridx)" />
149
+										v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'attr', 'attridx', 'attribute.type'])); ?>'.replace('idx', idx).replace('attridx', attridx)" />
150 150
 
151 151
 									<input class="item-attr-label" type="hidden" v-model="items[idx]['attr'][attridx]['attribute.label']"
152
-										v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'attr', 'attridx', 'attribute.label'] ) ); ?>'.replace('idx', idx).replace('attridx', attridx)" />
152
+										v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'attr', 'attridx', 'attribute.label'])); ?>'.replace('idx', idx).replace('attridx', attridx)" />
153 153
 
154 154
 									<select is="combo-box" class="form-control custom-select item-attr-refid"
155
-										v-bind:name="'<?= $enc->attr( $this->formparam( ['selection', 'idx', 'attr', 'attridx', 'product.lists.refid'] ) ); ?>'.replace('idx', idx).replace('attridx', attridx)"
155
+										v-bind:name="'<?= $enc->attr($this->formparam(['selection', 'idx', 'attr', 'attridx', 'product.lists.refid'])); ?>'.replace('idx', idx).replace('attridx', attridx)"
156 156
 										v-bind:readonly="checkSite('product.lists.siteid', idx, attridx) || attr['product.lists.id'] != ''"
157
-										v-bind:tabindex="'<?= $this->get( 'tabindex' ); ?>'"
157
+										v-bind:tabindex="'<?= $this->get('tabindex'); ?>'"
158 158
 										v-bind:label="getAttributeLabel(idx, attridx)"
159 159
 										v-bind:required="'required'"
160 160
 										v-bind:getfcn="getAttributeItems"
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
 									</select>
164 164
 								</td>
165 165
 								<td class="actions">
166
-									<div v-if="!checkSite('product.lists.siteid', idx, attridx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
167
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
166
+									<div v-if="!checkSite('product.lists.siteid', idx, attridx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
167
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
168 168
 										v-on:click.stop="removeAttributeItem(idx, attridx)">
169 169
 									</div>
170 170
 								</td>
@@ -174,14 +174,14 @@  discard block
 block discarded – undo
174 174
 					</table>
175 175
 				</div>
176 176
 
177
-				<?= $this->get( 'selectionBody' ); ?>
177
+				<?= $this->get('selectionBody'); ?>
178 178
 
179 179
 			</div>
180 180
 		</div>
181 181
 
182 182
 		<div class="card-tools-more">
183
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
184
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
183
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
184
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
185 185
 				v-on:click="addItem()" >
186 186
 			</div>
187 187
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-option-config-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,22 +18,22 @@  discard block
 block discarded – undo
18 18
 <div class="col-xl-6 content-block item-option-config">
19 19
 
20 20
 	<table class="attribute-list table table-default"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'configData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('configData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-prefix="product.lists."
24 24
 		data-siteid="<?= $this->site()->siteid() ?>" >
25 25
 
26 26
 		<thead>
27 27
 			<tr>
28 28
 				<th>
29
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Configurable' ) ); ?></span>
29
+					<span class="help"><?= $enc->html($this->translate('admin', 'Configurable')); ?></span>
30 30
 					<div class="form-text text-muted help-text">
31
-						<?= $enc->html( $this->translate( 'admin', 'Optional product components that can be chosen by the customer together with the product' ) ); ?>
31
+						<?= $enc->html($this->translate('admin', 'Optional product components that can be chosen by the customer together with the product')); ?>
32 32
 					</div>
33 33
 				</th>
34 34
 				<th class="actions">
35
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
36
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
35
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
36
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
37 37
 						v-on:click="addItem('product.lists.')">
38 38
 					</div>
39 39
 				</th>
@@ -46,18 +46,18 @@  discard block
 block discarded – undo
46 46
 
47 47
 				<td>
48 48
 					<input class="item-listid" type="hidden" v-model="items['product.lists.id'][idx]"
49
-						name="<?= $enc->attr( $this->formparam( array( 'option', 'config', 'product.lists.id', '' ) ) ); ?>" />
49
+						name="<?= $enc->attr($this->formparam(array('option', 'config', 'product.lists.id', ''))); ?>" />
50 50
 
51 51
 					<input class="item-label" type="hidden" v-model="items['attribute.label'][idx]"
52
-						name="<?= $enc->attr( $this->formparam( array( 'option', 'config', 'attribute.label', '' ) ) ); ?>" />
52
+						name="<?= $enc->attr($this->formparam(array('option', 'config', 'attribute.label', ''))); ?>" />
53 53
 
54 54
 					<input class="item-type" type="hidden" v-model="items['attribute.type'][idx]"
55
-						name="<?= $enc->attr( $this->formparam( array( 'option', 'config', 'attribute.type', '' ) ) ); ?>" />
55
+						name="<?= $enc->attr($this->formparam(array('option', 'config', 'attribute.type', ''))); ?>" />
56 56
 
57 57
 					<select is="combo-box" class="form-control custom-select item-refid"
58
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'option', 'config', 'product.lists.refid', '' ) ) ); ?>'"
58
+						v-bind:name="'<?= $enc->attr($this->formparam(array('option', 'config', 'product.lists.refid', ''))); ?>'"
59 59
 						v-bind:readonly="checkSite('product.lists.siteid', idx) || id != ''"
60
-						v-bind:tabindex="'<?= $this->get( 'tabindex' ); ?>'"
60
+						v-bind:tabindex="'<?= $this->get('tabindex'); ?>'"
61 61
 						v-bind:label="getLabel(idx)"
62 62
 						v-bind:required="'required'"
63 63
 						v-bind:getfcn="getItems"
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
 					</select>
68 68
 				</td>
69 69
 				<td class="actions">
70
-					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
71
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
70
+					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
71
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
72 72
 						v-on:click.stop="removeItem(idx)">
73 73
 				</td>
74 74
 
@@ -77,6 +77,6 @@  discard block
 block discarded – undo
77 77
 
78 78
 	</table>
79 79
 
80
-	<?= $this->get( 'configBody' ); ?>
80
+	<?= $this->get('configBody'); ?>
81 81
 
82 82
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-related-suggest-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,22 +16,22 @@  discard block
 block discarded – undo
16 16
 <div class="col-xl-6 content-block item-related-suggest">
17 17
 
18 18
 	<table class="product-list table table-default"
19
-		data-items="<?= $enc->attr( json_encode( $this->get( 'suggestData', [] ) ) ); ?>"
20
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
19
+		data-items="<?= $enc->attr(json_encode($this->get('suggestData', []))); ?>"
20
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
21 21
 		data-prefix="product.lists."
22 22
 		data-siteid="<?= $this->site()->siteid() ?>" >
23 23
 
24 24
 		<thead>
25 25
 			<tr>
26 26
 				<th>
27
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Suggested products' ) ); ?></span>
27
+					<span class="help"><?= $enc->html($this->translate('admin', 'Suggested products')); ?></span>
28 28
 					<div class="form-text text-muted help-text">
29
-						<?= $enc->html( $this->translate( 'admin', 'List of suggested products' ) ); ?>
29
+						<?= $enc->html($this->translate('admin', 'List of suggested products')); ?>
30 30
 					</div>
31 31
 				</th>
32 32
 				<th class="actions">
33
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
33
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
34
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
35 35
 						v-on:click="addItem()">
36 36
 					</div>
37 37
 				</th>
@@ -45,18 +45,18 @@  discard block
 block discarded – undo
45 45
 
46 46
 				<td>
47 47
 					<input class="item-listid" type="hidden" v-model="items['product.lists.id'][idx]"
48
-						name="<?= $enc->attr( $this->formparam( array( 'related', 'suggest', 'product.lists.id', '' ) ) ); ?>" />
48
+						name="<?= $enc->attr($this->formparam(array('related', 'suggest', 'product.lists.id', ''))); ?>" />
49 49
 
50 50
 					<input class="item-label" type="hidden" v-model="items['product.label'][idx]"
51
-						name="<?= $enc->attr( $this->formparam( array( 'related', 'suggest', 'product.label', '' ) ) ); ?>" />
51
+						name="<?= $enc->attr($this->formparam(array('related', 'suggest', 'product.label', ''))); ?>" />
52 52
 
53 53
 					<input class="item-code" type="hidden" v-model="items['product.code'][idx]"
54
-						name="<?= $enc->attr( $this->formparam( array( 'related', 'suggest', 'product.code', '' ) ) ); ?>" />
54
+						name="<?= $enc->attr($this->formparam(array('related', 'suggest', 'product.code', ''))); ?>" />
55 55
 
56 56
 					<select is="combo-box" class="form-control custom-select item-refid"
57
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'related', 'suggest', 'product.lists.refid', '' ) ) ); ?>'"
57
+						v-bind:name="'<?= $enc->attr($this->formparam(array('related', 'suggest', 'product.lists.refid', ''))); ?>'"
58 58
 						v-bind:readonly="checkSite('product.lists.siteid', idx) || id != ''"
59
-						v-bind:tabindex="'<?= $this->get( 'tabindex' ); ?>'"
59
+						v-bind:tabindex="'<?= $this->get('tabindex'); ?>'"
60 60
 						v-bind:label="getLabel(idx)"
61 61
 						v-bind:required="'required'"
62 62
 						v-bind:getfcn="getItems"
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 					</select>
67 67
 				</td>
68 68
 				<td class="actions">
69
-					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
70
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
69
+					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
70
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
71 71
 						v-on:click.stop="removeItem(idx)">
72 72
 				</td>
73 73
 			</tr>
@@ -75,6 +75,6 @@  discard block
 block discarded – undo
75 75
 		</tbody>
76 76
 	</table>
77 77
 
78
-	<?= $this->get( 'suggestBody' ); ?>
78
+	<?= $this->get('suggestBody'); ?>
79 79
 
80 80
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-related-bought-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,22 +16,22 @@  discard block
 block discarded – undo
16 16
 <div class="col-xl-6 content-block item-related-bought">
17 17
 
18 18
 	<table class="product-list table table-default"
19
-		data-items="<?= $enc->attr( json_encode( $this->get( 'boughtData', [] ) ) ); ?>"
20
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
19
+		data-items="<?= $enc->attr(json_encode($this->get('boughtData', []))); ?>"
20
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
21 21
 		data-prefix="product.lists."
22 22
 		data-siteid="<?= $this->site()->siteid() ?>" >
23 23
 
24 24
 		<thead>
25 25
 			<tr>
26 26
 				<th>
27
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Products bought together' ) ); ?></span>
27
+					<span class="help"><?= $enc->html($this->translate('admin', 'Products bought together')); ?></span>
28 28
 					<div class="form-text text-muted help-text">
29
-						<?= $enc->html( $this->translate( 'admin', 'List of products often bought together' ) ); ?>
29
+						<?= $enc->html($this->translate('admin', 'List of products often bought together')); ?>
30 30
 					</div>
31 31
 				</th>
32 32
 				<th class="actions">
33
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
33
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
34
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
35 35
 						v-on:click="addItem()">
36 36
 					</div>
37 37
 				</th>
@@ -45,18 +45,18 @@  discard block
 block discarded – undo
45 45
 
46 46
 				<td>
47 47
 					<input class="item-listid" type="hidden" v-model="items['product.lists.id'][idx]"
48
-						name="<?= $enc->attr( $this->formparam( array( 'related', 'bought', 'product.lists.id', '' ) ) ); ?>" />
48
+						name="<?= $enc->attr($this->formparam(array('related', 'bought', 'product.lists.id', ''))); ?>" />
49 49
 
50 50
 					<input class="item-label" type="hidden" v-model="items['product.label'][idx]"
51
-						name="<?= $enc->attr( $this->formparam( array( 'related', 'bought', 'product.label', '' ) ) ); ?>" />
51
+						name="<?= $enc->attr($this->formparam(array('related', 'bought', 'product.label', ''))); ?>" />
52 52
 
53 53
 					<input class="item-code" type="hidden" v-model="items['product.code'][idx]"
54
-						name="<?= $enc->attr( $this->formparam( array( 'related', 'bought', 'product.code', '' ) ) ); ?>" />
54
+						name="<?= $enc->attr($this->formparam(array('related', 'bought', 'product.code', ''))); ?>" />
55 55
 
56 56
 					<select is="combo-box" class="form-control custom-select item-refid"
57
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'related', 'bought', 'product.lists.refid', '' ) ) ); ?>'"
57
+						v-bind:name="'<?= $enc->attr($this->formparam(array('related', 'bought', 'product.lists.refid', ''))); ?>'"
58 58
 						v-bind:readonly="checkSite('product.lists.siteid', idx) || id != ''"
59
-						v-bind:tabindex="'<?= $this->get( 'tabindex' ); ?>'"
59
+						v-bind:tabindex="'<?= $this->get('tabindex'); ?>'"
60 60
 						v-bind:label="getLabel(idx)"
61 61
 						v-bind:required="'required'"
62 62
 						v-bind:getfcn="getItems"
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 					</select>
67 67
 				</td>
68 68
 				<td class="actions">
69
-					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
70
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
69
+					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
70
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
71 71
 						v-on:click.stop="removeItem(idx)">
72 72
 				</td>
73 73
 			</tr>
@@ -75,5 +75,5 @@  discard block
 block discarded – undo
75 75
 		</tbody>
76 76
 	</table>
77 77
 
78
-	<?= $this->get( 'boughtBody' ); ?>
78
+	<?= $this->get('boughtBody'); ?>
79 79
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-option-custom-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -17,22 +17,22 @@  discard block
 block discarded – undo
17 17
 <div class="col-xl-6 content-block item-option-custom">
18 18
 
19 19
 	<table class="attribute-list table table-default"
20
-		data-items="<?= $enc->attr( json_encode( $this->get( 'customData', [] ) ) ); ?>"
21
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
20
+		data-items="<?= $enc->attr(json_encode($this->get('customData', []))); ?>"
21
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
22 22
 		data-prefix="product.lists."
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27 27
 				<th>
28
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Custom' ) ); ?></span>
28
+					<span class="help"><?= $enc->html($this->translate('admin', 'Custom')); ?></span>
29 29
 					<div class="form-text text-muted help-text">
30
-						<?= $enc->html( $this->translate( 'admin', 'Product attributes stored in the basket where customers can enter their own texts or values' ) ); ?>
30
+						<?= $enc->html($this->translate('admin', 'Product attributes stored in the basket where customers can enter their own texts or values')); ?>
31 31
 					</div>
32 32
 				</th>
33 33
 				<th class="actions">
34
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
35
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
36 36
 						v-on:click="addItem('product.lists.')">
37 37
 				</th>
38 38
 			</tr>
@@ -44,18 +44,18 @@  discard block
 block discarded – undo
44 44
 
45 45
 				<td>
46 46
 					<input class="item-listid" type="hidden" v-model="items['product.lists.id'][idx]"
47
-						name="<?= $enc->attr( $this->formparam( array( 'option', 'custom', 'product.lists.id', '' ) ) ); ?>" />
47
+						name="<?= $enc->attr($this->formparam(array('option', 'custom', 'product.lists.id', ''))); ?>" />
48 48
 
49 49
 					<input class="item-label" type="hidden" v-model="items['attribute.label'][idx]"
50
-						name="<?= $enc->attr( $this->formparam( array( 'option', 'custom', 'attribute.label', '' ) ) ); ?>" />
50
+						name="<?= $enc->attr($this->formparam(array('option', 'custom', 'attribute.label', ''))); ?>" />
51 51
 
52 52
 					<input class="item-type" type="hidden" v-model="items['attribute.type'][idx]"
53
-						name="<?= $enc->attr( $this->formparam( array( 'option', 'custom', 'attribute.type', '' ) ) ); ?>" />
53
+						name="<?= $enc->attr($this->formparam(array('option', 'custom', 'attribute.type', ''))); ?>" />
54 54
 
55 55
 					<select is="combo-box" class="form-control custom-select item-refid"
56
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'option', 'custom', 'product.lists.refid', '' ) ) ); ?>'"
56
+						v-bind:name="'<?= $enc->attr($this->formparam(array('option', 'custom', 'product.lists.refid', ''))); ?>'"
57 57
 						v-bind:readonly="checkSite('product.lists.siteid', idx) || id != ''"
58
-						v-bind:tabindex="'<?= $this->get( 'tabindex' ); ?>'"
58
+						v-bind:tabindex="'<?= $this->get('tabindex'); ?>'"
59 59
 						v-bind:label="getLabel(idx)"
60 60
 						v-bind:required="'required'"
61 61
 						v-bind:getfcn="getItems"
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
 					</select>
66 66
 				</td>
67 67
 				<td class="actions">
68
-					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
69
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
68
+					<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
69
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
70 70
 						v-on:click.stop="removeItem(idx)">
71 71
 				</td>
72 72
 
@@ -75,6 +75,6 @@  discard block
 block discarded – undo
75 75
 
76 76
 	</table>
77 77
 
78
-	<?= $this->get( 'customBody' ); ?>
78
+	<?= $this->get('customBody'); ?>
79 79
 
80 80
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-bundle-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,22 +18,22 @@  discard block
 block discarded – undo
18 18
 	<div class="col-xl-6 content-block product-default">
19 19
 
20 20
 		<table class="product-list table table-default"
21
-			data-items="<?= $enc->attr( json_encode( $this->get( 'bundleData', [] ) ) ); ?>"
22
-			data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+			data-items="<?= $enc->attr(json_encode($this->get('bundleData', []))); ?>"
22
+			data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 			data-prefix="product.lists."
24 24
 			data-siteid="<?= $this->site()->siteid() ?>" >
25 25
 
26 26
 			<thead>
27 27
 				<tr>
28 28
 					<th>
29
-						<span class="help"><?= $enc->html( $this->translate( 'admin', 'Products' ) ); ?></span>
29
+						<span class="help"><?= $enc->html($this->translate('admin', 'Products')); ?></span>
30 30
 						<div class="form-text text-muted help-text">
31
-							<?= $enc->html( $this->translate( 'admin', 'List of articles that should be sold as one product, often at a reduced price' ) ); ?>
31
+							<?= $enc->html($this->translate('admin', 'List of articles that should be sold as one product, often at a reduced price')); ?>
32 32
 						</div>
33 33
 					</th>
34 34
 					<th class="actions">
35
-						<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
36
-							title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
35
+						<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
36
+							title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
37 37
 							v-on:click="addItem()">
38 38
 						</div>
39 39
 					</th>
@@ -47,18 +47,18 @@  discard block
 block discarded – undo
47 47
 
48 48
 					<td>
49 49
 						<input class="item-listid" type="hidden" v-model="items['product.lists.id'][idx]"
50
-							name="<?= $enc->attr( $this->formparam( array( 'bundle', 'product.lists.id', '' ) ) ); ?>" />
50
+							name="<?= $enc->attr($this->formparam(array('bundle', 'product.lists.id', ''))); ?>" />
51 51
 
52 52
 						<input class="item-label" type="hidden" v-model="items['product.label'][idx]"
53
-							name="<?= $enc->attr( $this->formparam( array( 'bundle', 'product.label', '' ) ) ); ?>" />
53
+							name="<?= $enc->attr($this->formparam(array('bundle', 'product.label', ''))); ?>" />
54 54
 
55 55
 						<input class="item-code" type="hidden" v-model="items['product.code'][idx]"
56
-							name="<?= $enc->attr( $this->formparam( array( 'bundle', 'product.code', '' ) ) ); ?>" />
56
+							name="<?= $enc->attr($this->formparam(array('bundle', 'product.code', ''))); ?>" />
57 57
 
58 58
 						<select is="combo-box" class="form-control custom-select item-refid"
59
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'bundle', 'product.lists.refid', '' ) ) ); ?>'"
59
+							v-bind:name="'<?= $enc->attr($this->formparam(array('bundle', 'product.lists.refid', ''))); ?>'"
60 60
 							v-bind:readonly="checkSite('product.lists.siteid', idx) || id != ''"
61
-							v-bind:tabindex="'<?= $this->get( 'tabindex' ); ?>'"
61
+							v-bind:tabindex="'<?= $this->get('tabindex'); ?>'"
62 62
 							v-bind:label="getLabel(idx)"
63 63
 							v-bind:required="'required'"
64 64
 							v-bind:getfcn="getItems"
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 						</select>
69 69
 					</td>
70 70
 					<td class="actions">
71
-						<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
72
-							title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
71
+						<div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
72
+							title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
73 73
 							v-on:click.stop="removeItem(idx)">
74 74
 					</td>
75 75
 				</tr>
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			</tbody>
78 78
 		</table>
79 79
 
80
-		<?= $this->get( 'bundleBody' ); ?>
80
+		<?= $this->get('bundleBody'); ?>
81 81
 
82 82
 	</div>
83 83
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/problem-standard.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$bytes = function( $value ) {
11
+$bytes = function($value) {
12 12
 
13
-	$result = substr( $value, 0, -1 );
13
+	$result = substr($value, 0, -1);
14 14
 
15
-	switch( substr( $value, -1 ) )
15
+	switch (substr($value, -1))
16 16
 	{
17 17
 		case 'G': case 'g': $result *= 1024;
18 18
 		case 'M': case 'm': $result *= 1024;
@@ -28,28 +28,28 @@  discard block
 block discarded – undo
28 28
 	<div class="modal-dialog">
29 29
 		<div class="modal-content">
30 30
 			<div class="modal-header">
31
-				<h4 class="modal-title"><?= $enc->html( $this->translate( 'admin', 'Problem' ) ); ?></h4>
32
-				<button type="button" class="close" data-dismiss="modal" aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"><span aria-hidden="true">&times;</span></button>
31
+				<h4 class="modal-title"><?= $enc->html($this->translate('admin', 'Problem')); ?></h4>
32
+				<button type="button" class="close" data-dismiss="modal" aria-label="<?= $enc->attr($this->translate('admin', 'Close')); ?>"><span aria-hidden="true">&times;</span></button>
33 33
 			</div>
34 34
 			<div class="modal-body">
35
-				<p class="file_uploads hidden" data-value="<?= $enc->attr( (int) ini_get( 'file_uploads' ) ); ?>">
36
-					<?= $enc->html( sprintf( $this->translate( 'admin', 'PHP setting "%1$s" is disabled' ), "file_uploads" ) ); ?>
35
+				<p class="file_uploads hidden" data-value="<?= $enc->attr((int) ini_get('file_uploads')); ?>">
36
+					<?= $enc->html(sprintf($this->translate('admin', 'PHP setting "%1$s" is disabled'), "file_uploads")); ?>
37 37
 				</p>
38
-				<p class="max_input_vars hidden" data-value="<?= $enc->attr( ini_get( 'max_input_vars' ) ); ?>">
39
-					<?= $enc->html( sprintf( $this->translate( 'admin', 'PHP setting for "%1$s" is too low' ), "max_input_vars" ) ); ?>
38
+				<p class="max_input_vars hidden" data-value="<?= $enc->attr(ini_get('max_input_vars')); ?>">
39
+					<?= $enc->html(sprintf($this->translate('admin', 'PHP setting for "%1$s" is too low'), "max_input_vars")); ?>
40 40
 				</p>
41
-				<p class="max_file_uploads hidden" data-value="<?= $enc->attr( ini_get( 'max_file_uploads' ) ); ?>">
42
-					<?= $enc->html( sprintf( $this->translate( 'admin', 'PHP setting for "%1$s" is too low' ), "max_file_uploads" ) ); ?>
41
+				<p class="max_file_uploads hidden" data-value="<?= $enc->attr(ini_get('max_file_uploads')); ?>">
42
+					<?= $enc->html(sprintf($this->translate('admin', 'PHP setting for "%1$s" is too low'), "max_file_uploads")); ?>
43 43
 				</p>
44
-				<p class="post_max_size hidden" data-value="<?= $enc->attr( $bytes( ini_get( 'post_max_size' ) ) ); ?>">
45
-					<?= $enc->html( sprintf( $this->translate( 'admin', 'PHP setting for "%1$s" is too low' ), "post_max_size" ) ); ?>
44
+				<p class="post_max_size hidden" data-value="<?= $enc->attr($bytes(ini_get('post_max_size'))); ?>">
45
+					<?= $enc->html(sprintf($this->translate('admin', 'PHP setting for "%1$s" is too low'), "post_max_size")); ?>
46 46
 				</p>
47
-				<p class="upload_max_filesize hidden" data-value="<?= $enc->attr( $bytes( ini_get( 'upload_max_filesize' ) ) ); ?>">
48
-					<?= $enc->html( sprintf( $this->translate( 'admin', 'PHP setting for "%1$s" is too low' ), "upload_max_filesize" ) ); ?>
47
+				<p class="upload_max_filesize hidden" data-value="<?= $enc->attr($bytes(ini_get('upload_max_filesize'))); ?>">
48
+					<?= $enc->html(sprintf($this->translate('admin', 'PHP setting for "%1$s" is too low'), "upload_max_filesize")); ?>
49 49
 				</p>
50 50
 			</div>
51 51
 			<div class="modal-footer">
52
-				<button type="button" class="btn btn-secondary" data-dismiss="modal"><?= $enc->html( $this->translate( 'admin', 'Close' ) ); ?></button>
52
+				<button type="button" class="btn btn-secondary" data-dismiss="modal"><?= $enc->html($this->translate('admin', 'Close')); ?></button>
53 53
 			</div>
54 54
 		</div>
55 55
 	</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/confirm-standard.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@
 block discarded – undo
12 12
 	<div class="modal-dialog">
13 13
 		<div class="modal-content">
14 14
 			<div class="modal-header">
15
-				<h4 class="modal-title"><?= $enc->html( $this->translate( 'admin', 'Delete items?' ) ); ?></h4>
16
-				<button type="button" class="close" data-dismiss="modal" aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"><span aria-hidden="true">&times;</span></button>
15
+				<h4 class="modal-title"><?= $enc->html($this->translate('admin', 'Delete items?')); ?></h4>
16
+				<button type="button" class="close" data-dismiss="modal" aria-label="<?= $enc->attr($this->translate('admin', 'Close')); ?>"><span aria-hidden="true">&times;</span></button>
17 17
 			</div>
18 18
 			<div class="modal-body">
19
-				<p><?= $enc->html( $this->translate( 'admin', 'You are going to delete one or more items. Would you like to proceed?' ) ); ?></p>
19
+				<p><?= $enc->html($this->translate('admin', 'You are going to delete one or more items. Would you like to proceed?')); ?></p>
20 20
 			</div>
21 21
 			<div class="modal-footer">
22
-				<button type="button" class="btn btn-danger" data-dismiss="modal"><?= $enc->html( $this->translate( 'admin', 'Delete' ) ); ?></button>
23
-				<button type="button" class="btn btn-secondary" data-dismiss="modal"><?= $enc->html( $this->translate( 'admin', 'Close' ) ); ?></button>
22
+				<button type="button" class="btn btn-danger" data-dismiss="modal"><?= $enc->html($this->translate('admin', 'Delete')); ?></button>
23
+				<button type="button" class="btn btn-secondary" data-dismiss="modal"><?= $enc->html($this->translate('admin', 'Close')); ?></button>
24 24
 			</div>
25 25
 		</div>
26 26
 	</div>
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Site/Standard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
 	 *
28 28
 	 * @param \Aimeos\MW\View\Iface $view View object
29 29
 	 */
30
-	public function __construct( \Aimeos\MW\View\Iface $view )
30
+	public function __construct(\Aimeos\MW\View\Iface $view)
31 31
 	{
32
-		parent::__construct( $view );
32
+		parent::__construct($view);
33 33
 		$this->siteItem = $view->pageSiteItem;
34 34
 	}
35 35
 
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
 	 * @param string $siteid ID of a site item
63 63
 	 * @return string|null Label of the site item or null if not found
64 64
 	 */
65
-	public function match( $siteid )
65
+	public function match($siteid)
66 66
 	{
67
-		if( $this->siteItem->getId() == $siteid ) {
67
+		if ($this->siteItem->getId() == $siteid) {
68 68
 			return $this->siteItem->getLabel();
69 69
 		}
70 70
 	}
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
 	 * @param string $siteid ID of a site item
77 77
 	 * @return string|null "readonly" if item is from a parent site, null if not
78 78
 	 */
79
-	public function readonly( $siteid )
79
+	public function readonly($siteid)
80 80
 	{
81
-		if( $this->siteItem->getId() != $siteid ) {
81
+		if ($this->siteItem->getId() != $siteid) {
82 82
 			return 'readonly';
83 83
 		}
84 84
 	}
Please login to merge, or discard this patch.