@@ -7,7 +7,8 @@ discard block |
||
7 | 7 | |
8 | 8 | if( $this->get( 'standardUrlExternal', true ) ) |
9 | 9 | { |
10 | - $namefcn = function( $view, $key ) { |
|
10 | + $namefcn = function( $view, $key ) |
|
11 | + { |
|
11 | 12 | |
12 | 13 | $key = (array) $key; |
13 | 14 | $name = array_shift( $key ); |
@@ -18,15 +19,16 @@ discard block |
||
18 | 19 | |
19 | 20 | return $name; |
20 | 21 | }; |
21 | -} |
|
22 | -else |
|
22 | +} else |
|
23 | 23 | { |
24 | - $namefcn = function( $view, $key ) { |
|
24 | + $namefcn = function( $view, $key ) |
|
25 | + { |
|
25 | 26 | return $view->formparam( (array) $key ); |
26 | 27 | }; |
27 | 28 | } |
28 | 29 | |
29 | -$testfcn = function( $list, $key, $default = '' ) { |
|
30 | +$testfcn = function( $list, $key, $default = '' ) |
|
31 | +{ |
|
30 | 32 | return ( isset( $list[$key] ) ? $list[$key] : $default ); |
31 | 33 | }; |
32 | 34 | |
@@ -93,9 +95,12 @@ discard block |
||
93 | 95 | <p class="order-notice"> |
94 | 96 | <?= $enc->html( $this->translate( 'client', 'Please enter your payment details' ), $enc::TRUST ); ?> |
95 | 97 | </p> |
96 | - <?php else : ?> |
|
98 | + <?php else { |
|
99 | + : ?> |
|
97 | 100 | <p class="order-notice"> |
98 | - <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); ?> |
|
101 | + <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); |
|
102 | +} |
|
103 | +?> |
|
99 | 104 | </p> |
100 | 105 | <?php endif; ?> |
101 | 106 | |
@@ -112,10 +117,13 @@ discard block |
||
112 | 117 | /> |
113 | 118 | <?php endforeach; ?> |
114 | 119 | |
115 | - <?php else : ?> |
|
120 | + <?php else { |
|
121 | + : ?> |
|
116 | 122 | |
117 | 123 | <input type="hidden" |
118 | - name="<?= $enc->attr( $namefcn( $this, $item->getInternalCode() ) ); ?>" |
|
124 | + name="<?= $enc->attr( $namefcn( $this, $item->getInternalCode() ) ); |
|
125 | +} |
|
126 | +?>" |
|
119 | 127 | value="<?= $enc->attr( $item->getDefault() ); ?>" |
120 | 128 | /> |
121 | 129 | |
@@ -207,8 +215,7 @@ discard block |
||
207 | 215 | foreach( (array) $item->getDefault() as $key2 => $value ){ |
208 | 216 | $urlParams[] = $namefcn( $this, array( $item->getInternalCode(), $key2 ) ) . '=' . urlencode( $value ); |
209 | 217 | } |
210 | - } |
|
211 | - else |
|
218 | + } else |
|
212 | 219 | { |
213 | 220 | $urlParams[] = $namefcn( $this, $item->getInternalCode() ) . '=' . urlencode( $item->getDefault() ); |
214 | 221 | } |
@@ -222,10 +229,13 @@ discard block |
||
222 | 229 | <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?> |
223 | 230 | </a> |
224 | 231 | |
225 | - <?php else : ?> |
|
232 | + <?php else { |
|
233 | + : ?> |
|
226 | 234 | |
227 | 235 | <button class="btn btn-primary btn-lg btn-action"> |
228 | - <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?> |
|
236 | + <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); |
|
237 | +} |
|
238 | +?> |
|
229 | 239 | </button> |
230 | 240 | |
231 | 241 | <?php endif; ?> |
@@ -87,8 +87,11 @@ |
||
87 | 87 | $this->config( 'client/html/checkout/standard/summary/address', 'common/summary/address-standard' ), |
88 | 88 | array( 'address' => $addresses['delivery'], 'type' => 'delivery' ) |
89 | 89 | ); ?> |
90 | - <?php else : ?> |
|
91 | - <?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?> |
|
90 | + <?php else { |
|
91 | + : ?> |
|
92 | + <?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); |
|
93 | +} |
|
94 | +?> |
|
92 | 95 | <?php endif; ?> |
93 | 96 | </div> |
94 | 97 | </div> |
@@ -64,8 +64,11 @@ |
||
64 | 64 | <a href="<?= $enc->attr( $this->url( $checkoutTarget, $checkoutController, $checkoutAction, array( 'c_step' => $name ), [], $checkoutConfig ) ); ?>"> |
65 | 65 | <?= $enc->html( $this->translate( 'client', $name ) ); ?> |
66 | 66 | </a> |
67 | - <?php else : ?> |
|
68 | - <?= $enc->html( $this->translate( 'client', $name ) ); ?> |
|
67 | + <?php else { |
|
68 | + : ?> |
|
69 | + <?= $enc->html( $this->translate( 'client', $name ) ); |
|
70 | +} |
|
71 | +?> |
|
69 | 72 | <?php endif; ?> |
70 | 73 | </li> |
71 | 74 |
@@ -11,15 +11,18 @@ |
||
11 | 11 | throw new \Aimeos\Client\Html\Exception( 'No "address" item to address partial given' ); |
12 | 12 | } |
13 | 13 | |
14 | -$testfcn = function( $list, $key, $default = '' ) { |
|
14 | +$testfcn = function( $list, $key, $default = '' ) |
|
15 | +{ |
|
15 | 16 | return ( isset( $list[$key] ) ? $list[$key] : $default ); |
16 | 17 | }; |
17 | 18 | |
18 | -$selectfcn = function( $list, $key, $value ) { |
|
19 | +$selectfcn = function( $list, $key, $value ) |
|
20 | +{ |
|
19 | 21 | return ( isset( $list[$key] ) && $list[$key] == $value ? 'selected="selected"' : '' ); |
20 | 22 | }; |
21 | 23 | |
22 | -$disablefcn = function( $list, $key ) { |
|
24 | +$disablefcn = function( $list, $key ) |
|
25 | +{ |
|
23 | 26 | return ( !isset( $list[$key] ) ? 'disabled="disabled"' : '' ); |
24 | 27 | }; |
25 | 28 |
@@ -156,10 +156,13 @@ |
||
156 | 156 | <?php endforeach; ?> |
157 | 157 | </ul> |
158 | 158 | |
159 | - <?php else : ?> |
|
159 | + <?php else { |
|
160 | + : ?> |
|
160 | 161 | |
161 | 162 | <select class="form-control select-list" |
162 | - name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); ?>" |
|
163 | + name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); |
|
164 | +} |
|
165 | +?>" |
|
163 | 166 | data-index="<?= $index++; ?>" data-type="<?= $enc->attr( $code ); ?>" > |
164 | 167 | |
165 | 168 | <?php if( $preselect === false ) : ?> |
@@ -132,8 +132,11 @@ discard block |
||
132 | 132 | $this->translate( 'currency', $priceItem->getCurrencyId() ), |
133 | 133 | ( $value < 0 ? '−' : '+' ) |
134 | 134 | ), $enc::TRUST ); ?> |
135 | - <?php else : ?> |
|
136 | - <?= $enc->html( $attribute->getName(), $enc::TRUST ); ?> |
|
135 | + <?php else { |
|
136 | + : ?> |
|
137 | + <?= $enc->html( $attribute->getName(), $enc::TRUST ); |
|
138 | +} |
|
139 | +?> |
|
137 | 140 | <?php endif; ?> |
138 | 141 | |
139 | 142 | </label> |
@@ -142,10 +145,13 @@ discard block |
||
142 | 145 | <?php endforeach; ?> |
143 | 146 | </ul> |
144 | 147 | |
145 | - <?php else : ?> |
|
148 | + <?php else { |
|
149 | + : ?> |
|
146 | 150 | |
147 | 151 | <input type="hidden" value="1" |
148 | - name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'qty', '' ) ) ); ?>" |
|
152 | + name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'qty', '' ) ) ); |
|
153 | +} |
|
154 | +?>" |
|
149 | 155 | /> |
150 | 156 | |
151 | 157 | <select class="form-control select-list" name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'id', '' ) ) ); ?>"> |
@@ -165,8 +171,11 @@ discard block |
||
165 | 171 | $this->translate( 'currency', $priceItem->getCurrencyId() ), |
166 | 172 | ( $value < 0 ? '−' : '+' ) |
167 | 173 | ), $enc::TRUST ); ?> |
168 | - <?php else : ?> |
|
169 | - <?= $enc->html( $attribute->getName(), $enc::TRUST ); ?> |
|
174 | + <?php else { |
|
175 | + : ?> |
|
176 | + <?= $enc->html( $attribute->getName(), $enc::TRUST ); |
|
177 | +} |
|
178 | +?> |
|
170 | 179 | <?php endif; ?> |
171 | 180 | |
172 | 181 | </option> |
@@ -141,8 +141,11 @@ |
||
141 | 141 | </div> |
142 | 142 | </noscript> |
143 | 143 | <div class="media-item lazy-image" data-src="<?= $mediaUrl; ?>"></div> |
144 | - <?php else : ?> |
|
145 | - <div class="media-item" data-src="<?= $mediaUrl; ?>"></div> |
|
144 | + <?php else { |
|
145 | + : ?> |
|
146 | + <div class="media-item" data-src="<?= $mediaUrl; |
|
147 | +} |
|
148 | +?>"></div> |
|
146 | 149 | <?php endif; ?> |
147 | 150 | <?php endforeach; ?> |
148 | 151 | </div> |
@@ -128,8 +128,7 @@ discard block |
||
128 | 128 | $priceRebate = $price->getRebate(); |
129 | 129 | $priceTaxflag = $price->getTaxFlag(); |
130 | 130 | $priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ); |
131 | -} |
|
132 | -else |
|
131 | +} else |
|
133 | 132 | { |
134 | 133 | $priceValue = '0.00'; |
135 | 134 | $priceRebate = '0.00'; |
@@ -285,9 +284,12 @@ discard block |
||
285 | 284 | <?php if( $product->getQuantity() > 1 ) : ?> |
286 | 285 | <?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() - 1 ); ?> |
287 | 286 | <a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">−</a> |
288 | - <?php else : ?> |
|
287 | + <?php else { |
|
288 | + : ?> |
|
289 | 289 | |
290 | - <?php endif; ?> |
|
290 | + <?php endif; |
|
291 | +} |
|
292 | +?> |
|
291 | 293 | |
292 | 294 | <input class="value" type="text" |
293 | 295 | name="<?= $enc->attr( $this->formparam( array( 'b_prod', $position, 'quantity' ) ) ); ?>" |
@@ -301,8 +303,11 @@ discard block |
||
301 | 303 | <?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() + 1 ); ?> |
302 | 304 | <a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">+</a> |
303 | 305 | |
304 | - <?php else : ?> |
|
305 | - <?= $enc->html( $product->getQuantity() ); ?> |
|
306 | + <?php else { |
|
307 | + : ?> |
|
308 | + <?= $enc->html( $product->getQuantity() ); |
|
309 | +} |
|
310 | +?> |
|
306 | 311 | <?php endif; ?> |
307 | 312 | </td> |
308 | 313 | |
@@ -399,8 +404,11 @@ discard block |
||
399 | 404 | <tr class="tax"> |
400 | 405 | <?php if( $priceItem->getTaxFlag() ) : ?> |
401 | 406 | <td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', 'Incl. %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td> |
402 | - <?php else : ?> |
|
403 | - <td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td> |
|
407 | + <?php else { |
|
408 | + : ?> |
|
409 | + <td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); |
|
410 | +} |
|
411 | +?></td> |
|
404 | 412 | <?php endif; ?> |
405 | 413 | <td class="price"><?= $enc->html( sprintf( $priceFormat, $this->number( $taxValue ), $priceCurrency ) ); ?></td> |
406 | 414 | <?php if( $modify ) : ?> |
@@ -38,8 +38,11 @@ |
||
38 | 38 | <span class="name"> |
39 | 39 | <?php if( $attribute->getName() != '' ) : ?> |
40 | 40 | <?= $enc->html( $attribute->getName() ); ?> |
41 | - <?php else : ?> |
|
42 | - <?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ); ?> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
43 | + <?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ); |
|
44 | +} |
|
45 | +?> |
|
43 | 46 | <?php endif; ?> |
44 | 47 | </span> |
45 | 48 |