@@ -71,9 +71,12 @@ |
||
| 71 | 71 | </a> |
| 72 | 72 | </li> |
| 73 | 73 | <?php endforeach; ?> |
| 74 | - <?php else : ?> |
|
| 74 | + <?php else { |
|
| 75 | + : ?> |
|
| 75 | 76 | <li> |
| 76 | - <a href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $params, [], $listConfig ) ); ?>"> |
|
| 77 | + <a href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $params, [], $listConfig ) ); |
|
| 78 | +} |
|
| 79 | +?>"> |
|
| 77 | 80 | <?= $enc->html( $this->translate( 'client', 'Your search result' ), $enc::TRUST ); ?> |
| 78 | 81 | </a> |
| 79 | 82 | </li> |
@@ -103,7 +103,10 @@ |
||
| 103 | 103 | <?php $current = $params; if( is_array( $current['f_optid'] ) ) { unset( $current['f_optid'][$key] ); } ?> |
| 104 | 104 | <?php elseif( isset( $oneIds[$attrType] ) && ( $key = array_search( $id, (array) $oneIds[$attrType] ) ) !== false ) : ?> |
| 105 | 105 | <?php $current = $params; if( is_array( $current['f_oneid'][$attrType] ) ) { unset( $current['f_oneid'][$attrType][$key] ); } ?> |
| 106 | - <?php else : continue; ?> |
|
| 106 | + <?php else { |
|
| 107 | + : continue; |
|
| 108 | +} |
|
| 109 | +?> |
|
| 107 | 110 | <?php endif; ?> |
| 108 | 111 | <li class="attr-item"> |
| 109 | 112 | <a class="attr-name" href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $current, [], $listConfig ) ); ?>"> |
@@ -129,9 +129,12 @@ |
||
| 129 | 129 | <?php $mediaItems = $productItem->getRefItems( 'media', 'default', 'default' ); ?> |
| 130 | 130 | <?php if( ( $mediaItem = reset( $mediaItems ) ) !== false ) : ?> |
| 131 | 131 | <div class="media-item" style="background-image: url('<?= $this->content( $mediaItem->getPreview() ); ?>')"></div> |
| 132 | - <?php else : ?> |
|
| 132 | + <?php else { |
|
| 133 | + : ?> |
|
| 133 | 134 | <div class="media-item"></div> |
| 134 | - <?php endif; ?> |
|
| 135 | + <?php endif; |
|
| 136 | +} |
|
| 137 | +?> |
|
| 135 | 138 | |
| 136 | 139 | <h3 class="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3> |
| 137 | 140 | <div class="price-list"> |
@@ -149,14 +149,17 @@ |
||
| 149 | 149 | $searchText, |
| 150 | 150 | $total |
| 151 | 151 | ), $enc::TRUST ); ?> |
| 152 | - <?php else : ?> |
|
| 152 | + <?php else { |
|
| 153 | + : ?> |
|
| 153 | 154 | <?= $enc->html( sprintf( |
| 154 | 155 | $this->translate( |
| 155 | 156 | 'client', |
| 156 | 157 | 'No articles found for <span class="searchstring">"%1$s"</span>. Please try again with a different keyword.' |
| 157 | 158 | ), |
| 158 | 159 | $searchText |
| 159 | - ), $enc::TRUST ); ?> |
|
| 160 | + ), $enc::TRUST ); |
|
| 161 | +} |
|
| 162 | +?> |
|
| 160 | 163 | <?php endif; ?> |
| 161 | 164 | |
| 162 | 165 | </div> |
@@ -55,8 +55,11 @@ |
||
| 55 | 55 | </div> |
| 56 | 56 | </noscript> |
| 57 | 57 | <div class="media-item lazy-image" data-src="<?= $mediaUrl; ?>"></div> |
| 58 | - <?php else : ?> |
|
| 59 | - <div class="media-item" data-src="<?= $mediaUrl; ?>"></div> |
|
| 58 | + <?php else { |
|
| 59 | + : ?> |
|
| 60 | + <div class="media-item" data-src="<?= $mediaUrl; |
|
| 61 | +} |
|
| 62 | +?>"></div> |
|
| 60 | 63 | <?php endif; ?> |
| 61 | 64 | <?php endforeach; ?> |
| 62 | 65 | </a><!-- |
@@ -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 | |
@@ -58,8 +58,11 @@ |
||
| 58 | 58 | $this->config( 'client/html/checkout/confirm/summary/address', 'common/summary/address-standard' ), |
| 59 | 59 | array( 'address' => $addresses['delivery'], 'type' => 'delivery' ) |
| 60 | 60 | ); ?> |
| 61 | - <?php else : ?> |
|
| 62 | - <?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?> |
|
| 61 | + <?php else { |
|
| 62 | + : ?> |
|
| 63 | + <?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); |
|
| 64 | +} |
|
| 65 | +?> |
|
| 63 | 66 | <?php endif; ?> |
| 64 | 67 | </div> |
| 65 | 68 | </div> |
@@ -28,9 +28,12 @@ |
||
| 28 | 28 | $disablenew = (bool) $this->config( 'client/html/common/address/billing/disable-new', false ); |
| 29 | 29 | |
| 30 | 30 | |
| 31 | -try { |
|
| 31 | +try |
|
| 32 | +{ |
|
| 32 | 33 | $addrArray = $this->standardBasket->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT )->toArray(); |
| 33 | -} catch( Exception $e ) { |
|
| 34 | +} |
|
| 35 | +catch( Exception $e ) |
|
| 36 | +{ |
|
| 34 | 37 | $addrArray = []; |
| 35 | 38 | } |
| 36 | 39 | |
@@ -72,13 +72,16 @@ |
||
| 72 | 72 | $currency ) |
| 73 | 73 | ); ?> |
| 74 | 74 | </span> |
| 75 | - <?php else : ?> |
|
| 75 | + <?php else { |
|
| 76 | + : ?> |
|
| 76 | 77 | <span class="price-value"> |
| 77 | 78 | <?= $enc->html( sprintf( |
| 78 | 79 | $priceFormat, |
| 79 | 80 | $this->number( $servicePrices[$id]->getCosts() ), |
| 80 | 81 | $currency ) |
| 81 | - ); ?> |
|
| 82 | + ); |
|
| 83 | +} |
|
| 84 | +?> |
|
| 82 | 85 | </span> |
| 83 | 86 | <?php endif; ?> |
| 84 | 87 | |