@@ -59,8 +59,11 @@ |
||
59 | 59 | |
60 | 60 | <?php elseif( ( $search = $this->param( 'f_search', null ) ) != null ) : /// Product search hint with user provided search string (%1$s) ?> |
61 | 61 | <title><?= $enc->html( sprintf( $this->translate( 'client', 'Result for "%1$s"' ), strip_tags( $search ) ) ); ?></title> |
62 | - <?php else : ?> |
|
63 | - <title><?= $enc->html( $this->translate( 'client', 'Our products' ) ); ?></title> |
|
62 | + <?php else { |
|
63 | + : ?> |
|
64 | + <title><?= $enc->html( $this->translate( 'client', 'Our products' ) ); |
|
65 | +} |
|
66 | +?></title> |
|
64 | 67 | <?php endif; ?> |
65 | 68 | |
66 | 69 |
@@ -204,7 +204,7 @@ |
||
204 | 204 | { |
205 | 205 | if( is_array( $item->getDefault() ) ) |
206 | 206 | { |
207 | - foreach( (array) $item->getDefault() as $key2 => $value ){ |
|
207 | + foreach( (array) $item->getDefault() as $key2 => $value ) { |
|
208 | 208 | $urlParams[] = $namefcn( $this, array( $item->getInternalCode(), $key2 ) ) . '=' . urlencode( $value ); |
209 | 209 | } |
210 | 210 | } |
@@ -18,8 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | return $name; |
20 | 20 | }; |
21 | -} |
|
22 | -else |
|
21 | +} else |
|
23 | 22 | { |
24 | 23 | $namefcn = function( $view, $key ) { |
25 | 24 | return $view->formparam( (array) $key ); |
@@ -93,9 +92,12 @@ discard block |
||
93 | 92 | <p class="order-notice"> |
94 | 93 | <?= $enc->html( $this->translate( 'client', 'Please enter your payment details' ), $enc::TRUST ); ?> |
95 | 94 | </p> |
96 | - <?php else : ?> |
|
95 | + <?php else { |
|
96 | + : ?> |
|
97 | 97 | <p class="order-notice"> |
98 | - <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); ?> |
|
98 | + <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); |
|
99 | +} |
|
100 | +?> |
|
99 | 101 | </p> |
100 | 102 | <?php endif; ?> |
101 | 103 | |
@@ -111,8 +113,11 @@ discard block |
||
111 | 113 | /> |
112 | 114 | <?php endforeach; ?> |
113 | 115 | |
114 | - <?php else : ?> |
|
115 | - <input type="hidden" id="process-<?= $key; ?>" |
|
116 | + <?php else { |
|
117 | + : ?> |
|
118 | + <input type="hidden" id="process-<?= $key; |
|
119 | +} |
|
120 | +?>" |
|
116 | 121 | name="<?= $enc->attr( $namefcn( $this, $item->getInternalCode() ) ); ?>" |
117 | 122 | value="<?= $enc->attr( $item->getDefault() ); ?>" |
118 | 123 | /> |
@@ -202,8 +207,7 @@ discard block |
||
202 | 207 | foreach( (array) $item->getDefault() as $key2 => $value ){ |
203 | 208 | $urlParams[] = $namefcn( $this, array( $item->getInternalCode(), $key2 ) ) . '=' . urlencode( $value ); |
204 | 209 | } |
205 | - } |
|
206 | - else |
|
210 | + } else |
|
207 | 211 | { |
208 | 212 | $urlParams[] = $namefcn( $this, $item->getInternalCode() ) . '=' . urlencode( $item->getDefault() ); |
209 | 213 | } |
@@ -217,9 +221,12 @@ discard block |
||
217 | 221 | <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?> |
218 | 222 | </a> |
219 | 223 | |
220 | - <?php else : ?> |
|
224 | + <?php else { |
|
225 | + : ?> |
|
221 | 226 | <button class="btn btn-primary btn-lg btn-action"> |
222 | - <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?> |
|
227 | + <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); |
|
228 | +} |
|
229 | +?> |
|
223 | 230 | </button> |
224 | 231 | |
225 | 232 | <?php endif; ?> |
@@ -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 |
@@ -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> |
@@ -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 |
@@ -20,8 +20,11 @@ |
||
20 | 20 | |
21 | 21 | <?php if( ( $pass = $this->get( 'extAccountPassword' ) ) !== null ) : ?> |
22 | 22 | <?= $this->translate( 'client', 'Password' ); ?>: <?= $pass; ?> |
23 | -<?php else : ?> |
|
24 | - <?= $this->translate( 'client', 'Password' ); ?>: <?= $this->translate( 'client', 'Like entered by you' ); ?> |
|
23 | +<?php else { |
|
24 | + : ?> |
|
25 | + <?= $this->translate( 'client', 'Password' ); |
|
26 | +} |
|
27 | +?>: <?= $this->translate( 'client', 'Like entered by you' ); ?> |
|
25 | 28 | <?php endif; ?> |
26 | 29 | |
27 | 30 |
@@ -125,9 +125,12 @@ |
||
125 | 125 | |
126 | 126 | <?php if( ( $mediaItem = reset( $mediaItems ) ) !== false ) : ?> |
127 | 127 | <div class="media-item" style="background-image: url('<?= $this->content( $mediaItem->getPreview() ); ?>')"></div> |
128 | - <?php else : ?> |
|
128 | + <?php else { |
|
129 | + : ?> |
|
129 | 130 | <div class="media-item"></div> |
130 | - <?php endif; ?> |
|
131 | + <?php endif; |
|
132 | +} |
|
133 | +?> |
|
131 | 134 | |
132 | 135 | <h3 class="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3> |
133 | 136 | <div class="price-list"> |
@@ -126,9 +126,12 @@ |
||
126 | 126 | |
127 | 127 | <?php if( ( $mediaItem = reset( $mediaItems ) ) !== false ) : ?> |
128 | 128 | <div class="media-item" style="background-image: url('<?= $this->content( $mediaItem->getPreview() ); ?>')"></div> |
129 | - <?php else : ?> |
|
129 | + <?php else { |
|
130 | + : ?> |
|
130 | 131 | <div class="media-item"></div> |
131 | - <?php endif; ?> |
|
132 | + <?php endif; |
|
133 | +} |
|
134 | +?> |
|
132 | 135 | |
133 | 136 | <h3 class="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3> |
134 | 137 |