@@ -112,8 +112,11 @@ |
||
| 112 | 112 | </div> |
| 113 | 113 | </noscript> |
| 114 | 114 | <div class="media-item lazy-image" data-src="<?php echo $mediaUrl; ?>"></div> |
| 115 | -<?php else : ?> |
|
| 116 | - <div class="media-item" data-src="<?php echo $mediaUrl; ?>"></div> |
|
| 115 | +<?php else { |
|
| 116 | + : ?> |
|
| 117 | + <div class="media-item" data-src="<?php echo $mediaUrl; |
|
| 118 | +} |
|
| 119 | +?>"></div> |
|
| 117 | 120 | <?php endif; ?> |
| 118 | 121 | <?php endforeach; ?> |
| 119 | 122 | </div> |
@@ -49,8 +49,11 @@ |
||
| 49 | 49 | <?php if( ( $total = $this->get( 'listProductTotal', 0 ) ) > 0 ) : ?> |
| 50 | 50 | <?php $msg = $this->translate( 'client', 'Search result for <span class="searchstring">"%1$s"</span> (%2$d article)', 'Search result for <span class="searchstring">"%1$s"</span> (%2$d articles)', $total ); ?> |
| 51 | 51 | <?php echo $enc->html( sprintf( $msg, $enc->html( $searchText ), $total ), $enc::TRUST ); ?> |
| 52 | -<?php else : ?> |
|
| 53 | -<?php echo $enc->html( sprintf( $this->translate( 'client', 'No articles found for <span class="searchstring">"%1$s"</span>. Please try again with a different keyword.' ), $enc->html( $searchText ) ), $enc::TRUST ); ?> |
|
| 52 | +<?php else { |
|
| 53 | + : ?> |
|
| 54 | +<?php echo $enc->html( sprintf( $this->translate( 'client', 'No articles found for <span class="searchstring">"%1$s"</span>. Please try again with a different keyword.' ), $enc->html( $searchText ) ), $enc::TRUST ); |
|
| 55 | +} |
|
| 56 | +?> |
|
| 54 | 57 | <?php endif; ?> |
| 55 | 58 | </div> |
| 56 | 59 | <?php endif; ?> |
@@ -34,8 +34,11 @@ |
||
| 34 | 34 | </div> |
| 35 | 35 | </noscript> |
| 36 | 36 | <div class="media-item lazy-image" data-src="<?php echo $mediaUrl; ?>"></div> |
| 37 | -<?php else : ?> |
|
| 38 | - <div class="media-item" data-src="<?php echo $mediaUrl; ?>"></div> |
|
| 37 | +<?php else { |
|
| 38 | + : ?> |
|
| 39 | + <div class="media-item" data-src="<?php echo $mediaUrl; |
|
| 40 | +} |
|
| 41 | +?>"></div> |
|
| 39 | 42 | <?php endif; ?> |
| 40 | 43 | <?php endforeach; ?> |
| 41 | 44 | </div> |
@@ -119,9 +119,12 @@ |
||
| 119 | 119 | <?php $mediaItems = $productItem->getRefItems( 'media', 'default', 'default' ); ?> |
| 120 | 120 | <?php if( ( $mediaItem = reset( $mediaItems ) ) !== false ) : ?> |
| 121 | 121 | <div class="media-item" style="background-image: url('<?php echo $this->content( $mediaItem->getPreview() ); ?>')"></div> |
| 122 | -<?php else : ?> |
|
| 122 | +<?php else { |
|
| 123 | + : ?> |
|
| 123 | 124 | <div class="media-item"></div> |
| 124 | -<?php endif; ?> |
|
| 125 | +<?php endif; |
|
| 126 | +} |
|
| 127 | +?> |
|
| 125 | 128 | <h3 class="name"><?php echo $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3> |
| 126 | 129 | <div class="price-list"> |
| 127 | 130 | <?php echo $this->partial( $this->config( 'client/html/common/partials/price', 'common/partials/price-default.php' ), array( 'prices' => $productItem->getRefItems( 'price', null, 'default' ) ) ); ?> |
@@ -29,9 +29,12 @@ |
||
| 29 | 29 | <div class="media-item" style="background-image: url('<?php echo $mediaUrl; ?>')" itemscope="" itemtype="http://schema.org/ImageObject"> |
| 30 | 30 | <meta itemprop="contentUrl" content="<?php echo $mediaUrl; ?>" /> |
| 31 | 31 | </div> |
| 32 | -<?php else : ?> |
|
| 32 | +<?php else { |
|
| 33 | + : ?> |
|
| 33 | 34 | <div class="media-item"></div> |
| 34 | -<?php endif; ?> |
|
| 35 | +<?php endif; |
|
| 36 | +} |
|
| 37 | +?> |
|
| 35 | 38 | <h3 class="name" itemprop="name"><?php echo $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3> |
| 36 | 39 | <div class="price-list" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> |
| 37 | 40 | <?php echo $this->partial( $this->config( 'client/html/common/partials/price', 'common/partials/price-default.php' ), array( 'prices' => $productItem->getRefItems( 'price', null, 'default' ) ) ); ?> |
@@ -119,8 +119,7 @@ discard block |
||
| 119 | 119 | $priceRebate = $price->getRebate(); |
| 120 | 120 | $priceTaxflag = $price->getTaxFlag(); |
| 121 | 121 | $priceCurrency = $this->translate( 'client/currency', $price->getCurrencyId() ); |
| 122 | -} |
|
| 123 | -else |
|
| 122 | +} else |
|
| 124 | 123 | { |
| 125 | 124 | $priceValue = '0.00'; |
| 126 | 125 | $priceRebate = '0.00'; |
@@ -136,8 +135,7 @@ discard block |
||
| 136 | 135 | $deliveryPriceItem = $deliveryItem->getPrice(); |
| 137 | 136 | $deliveryPriceService = $deliveryPriceItem->getCosts(); |
| 138 | 137 | $deliveryPriceValue = $deliveryPriceItem->getValue(); |
| 139 | -} |
|
| 140 | -catch( Exception $e ) |
|
| 138 | +} catch( Exception $e ) |
|
| 141 | 139 | { |
| 142 | 140 | $deliveryName = ''; |
| 143 | 141 | $deliveryPriceValue = '0.00'; |
@@ -151,8 +149,7 @@ discard block |
||
| 151 | 149 | $paymentPriceItem = $paymentItem->getPrice(); |
| 152 | 150 | $paymentPriceService = $paymentPriceItem->getCosts(); |
| 153 | 151 | $paymentPriceValue = $paymentPriceItem->getValue(); |
| 154 | -} |
|
| 155 | -catch( Exception $e ) |
|
| 152 | +} catch( Exception $e ) |
|
| 156 | 153 | { |
| 157 | 154 | $paymentName = ''; |
| 158 | 155 | $paymentPriceValue = '0.00'; |
@@ -262,14 +259,20 @@ discard block |
||
| 262 | 259 | <?php if( $modify && ( $product->getFlags() & \Aimeos\MShop\Order\Item\Base\Product\Base::FLAG_IMMUTABLE ) == 0 ) : ?> |
| 263 | 260 | <?php if( $product->getQuantity() > 1 ) : ?> |
| 264 | 261 | <a class="minibutton change" href="<?php echo $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() - 1 ) + $backParams, array(), $basketConfig ) ); ?>">−</a> |
| 265 | -<?php else : ?> |
|
| 262 | +<?php else { |
|
| 263 | + : ?> |
|
| 266 | 264 | |
| 267 | -<?php endif; ?> |
|
| 265 | +<?php endif; |
|
| 266 | +} |
|
| 267 | +?> |
|
| 268 | 268 | <input class="value" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'b_prod', $position, 'quantity' ) ) ); ?>" value="<?php echo $enc->attr( $product->getQuantity() ); ?>" maxlength="10" required="required" /> |
| 269 | 269 | <input type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'b_prod', $position, 'position' ) ) ); ?>" value="<?php echo $enc->attr( $position ); ?>" /> |
| 270 | 270 | <a class="minibutton change" href="<?php echo $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() + 1 ) + $backParams, array(), $basketConfig ) ); ?>">+</a> |
| 271 | -<?php else : ?> |
|
| 272 | -<?php echo $enc->html( $product->getQuantity() ); ?> |
|
| 271 | +<?php else { |
|
| 272 | + : ?> |
|
| 273 | +<?php echo $enc->html( $product->getQuantity() ); |
|
| 274 | +} |
|
| 275 | +?> |
|
| 273 | 276 | <?php endif; ?> |
| 274 | 277 | </td> |
| 275 | 278 | <td class="unitprice"><?php echo $enc->html( sprintf( $priceFormat, $this->number( $prodPrice ), $priceCurrency ) ); ?></td> |
@@ -289,8 +292,11 @@ discard block |
||
| 289 | 292 | <a href="<?php echo $enc->attr( $this->summaryUrlServiceDelivery ); ?>"> |
| 290 | 293 | <?php echo $enc->html( $deliveryName ); ?> |
| 291 | 294 | </a> |
| 292 | -<?php else : ?> |
|
| 293 | - <?php echo $enc->html( $deliveryName ); ?> |
|
| 295 | +<?php else { |
|
| 296 | + : ?> |
|
| 297 | + <?php echo $enc->html( $deliveryName ); |
|
| 298 | +} |
|
| 299 | +?> |
|
| 294 | 300 | <?php endif; ?> |
| 295 | 301 | </td> |
| 296 | 302 | <td class="quantity">1</td> |
@@ -309,8 +315,11 @@ discard block |
||
| 309 | 315 | <a href="<?php echo $enc->attr( $this->summaryUrlServicePayment ); ?>"> |
| 310 | 316 | <?php echo $enc->html( $paymentName ); ?> |
| 311 | 317 | </a> |
| 312 | -<?php else : ?> |
|
| 313 | - <?php echo $enc->html( $paymentName ); ?> |
|
| 318 | +<?php else { |
|
| 319 | + : ?> |
|
| 320 | + <?php echo $enc->html( $paymentName ); |
|
| 321 | +} |
|
| 322 | +?> |
|
| 314 | 323 | <?php endif; ?> |
| 315 | 324 | </td> |
| 316 | 325 | <td class="quantity">1</td> |
@@ -368,8 +377,11 @@ discard block |
||
| 368 | 377 | <tr class="tax"> |
| 369 | 378 | <?php if( $priceItem->getTaxFlag() ) : ?> |
| 370 | 379 | <td colspan="3"><?php echo $enc->html( sprintf( $this->translate( 'client', 'Incl. %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td> |
| 371 | -<?php else : ?> |
|
| 372 | - <td colspan="3"><?php echo $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td> |
|
| 380 | +<?php else { |
|
| 381 | + : ?> |
|
| 382 | + <td colspan="3"><?php echo $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); |
|
| 383 | +} |
|
| 384 | +?></td> |
|
| 373 | 385 | <?php endif; ?> |
| 374 | 386 | <td class="price"><?php echo $enc->html( sprintf( $priceFormat, $this->number( $taxValue ), $priceCurrency ) ); ?></td> |
| 375 | 387 | <?php if( $modify ) : ?> |
@@ -71,8 +71,7 @@ discard block |
||
| 71 | 71 | $addr->getWebsite(), |
| 72 | 72 | $addr->getVatID() |
| 73 | 73 | ) ) ) ); |
| 74 | - } |
|
| 75 | - catch( Exception $e ) { ; } |
|
| 74 | + } catch( Exception $e ) { ; } |
|
| 76 | 75 | ?> |
| 77 | 76 | </div> |
| 78 | 77 | </div><div class="item delivery <?php echo ( isset( $errors['address']['delivery'] ) ? 'error' : '' ); ?>"> |
@@ -127,8 +126,7 @@ discard block |
||
| 127 | 126 | $addr->getWebsite(), |
| 128 | 127 | $addr->getVatID() |
| 129 | 128 | ) ) ) ); |
| 130 | - } |
|
| 131 | - catch( Exception $e ) |
|
| 129 | + } catch( Exception $e ) |
|
| 132 | 130 | { |
| 133 | 131 | echo $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); |
| 134 | 132 | } |
@@ -102,8 +102,11 @@ |
||
| 102 | 102 | <?php endif; ?> |
| 103 | 103 | <?php endforeach; ?> |
| 104 | 104 | </ul> |
| 105 | -<?php else : ?> |
|
| 106 | - <select class="select-list" name="<?php echo $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); ?>" data-index="<?php echo $index++; ?>"> |
|
| 105 | +<?php else { |
|
| 106 | + : ?> |
|
| 107 | + <select class="select-list" name="<?php echo $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); |
|
| 108 | +} |
|
| 109 | +?>" data-index="<?php echo $index++; ?>"> |
|
| 107 | 110 | <?php if( $preselect === false ) : ?> |
| 108 | 111 | <option class="select-option" value=""><?php echo $enc->attr( $this->translate( 'client', 'Please select' ) ); ?></option> |
| 109 | 112 | <?php endif; ?> |
@@ -69,8 +69,11 @@ |
||
| 69 | 69 | <?php $currency = $this->translate( 'client/currency', $priceItem->getCurrencyId() ); ?> |
| 70 | 70 | <?php /// Configurable product attribute name (%1$s) with sign (%4$s, +/-), price value (%2$s) and currency (%3$s) ?> |
| 71 | 71 | <?php echo $enc->html( sprintf( $this->translate( 'client', '%1$s ( %4$s%2$s%3$s )' ), $attribute->getName(), $this->number( abs( $value ) ), $currency, ( $value < 0 ? '−' : '+' ) ), $enc::TRUST ); ?> |
| 72 | -<?php else : ?> |
|
| 73 | -<?php echo $enc->html( $attribute->getName(), $enc::TRUST ); ?> |
|
| 72 | +<?php else { |
|
| 73 | + : ?> |
|
| 74 | +<?php echo $enc->html( $attribute->getName(), $enc::TRUST ); |
|
| 75 | +} |
|
| 76 | +?> |
|
| 74 | 77 | <?php endif; ?> |
| 75 | 78 | </option> |
| 76 | 79 | <?php endforeach; ?> |