@@ -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' ) ) ); ?> |
@@ -32,9 +32,12 @@ |
||
| 32 | 32 | <div class="media-item" style="background-image: url('<?php echo $mediaUrl; ?>')" itemscope="" itemtype="http://schema.org/ImageObject"> |
| 33 | 33 | <meta itemprop="contentUrl" content="<?php echo $mediaUrl; ?>" /> |
| 34 | 34 | </div> |
| 35 | -<?php else : ?> |
|
| 35 | +<?php else { |
|
| 36 | + : ?> |
|
| 36 | 37 | <div class="media-item"></div> |
| 37 | -<?php endif; ?> |
|
| 38 | +<?php endif; |
|
| 39 | +} |
|
| 40 | +?> |
|
| 38 | 41 | <h3 class="name" itemprop="name"><?php echo $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3> |
| 39 | 42 | <div class="price-list" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> |
| 40 | 43 | <?php echo $this->partial( $this->config( 'client/html/common/partials/price', 'common/partials/price-default.php' ), array( 'prices' => $productItem->getRefItems( 'price', null, 'default' ) ) ); ?> |
@@ -167,8 +167,7 @@ |
||
| 167 | 167 | $statusItem->setValue( $status ); |
| 168 | 168 | |
| 169 | 169 | $orderStatusManager->saveItem( $statusItem ); |
| 170 | - } |
|
| 171 | - catch( \Exception $e ) |
|
| 170 | + } catch( \Exception $e ) |
|
| 172 | 171 | { |
| 173 | 172 | $str = 'Error while trying to send payment e-mail for order ID "%1$s" and status "%2$s": %3$s'; |
| 174 | 173 | $msg = sprintf( $str, $item->getId(), $item->getPaymentStatus(), $e->getMessage() ); |
@@ -173,8 +173,7 @@ |
||
| 173 | 173 | $statusItem->setValue( $status ); |
| 174 | 174 | |
| 175 | 175 | $orderStatusManager->saveItem( $statusItem ); |
| 176 | - } |
|
| 177 | - catch( \Exception $e ) |
|
| 176 | + } catch( \Exception $e ) |
|
| 178 | 177 | { |
| 179 | 178 | $str = 'Error while trying to send delivery e-mail for order ID "%1$s" and status "%2$s": %3$s'; |
| 180 | 179 | $msg = sprintf( $str, $item->getId(), $item->getDeliveryStatus(), $e->getMessage() ); |
@@ -341,8 +341,7 @@ |
||
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | $attrMap = $sortedMap; |
| 344 | - } |
|
| 345 | - else |
|
| 344 | + } else |
|
| 346 | 345 | { |
| 347 | 346 | ksort( $attrMap ); |
| 348 | 347 | } |
@@ -151,8 +151,7 @@ discard block |
||
| 151 | 151 | $this->sendMail( $context, $customers[$custId]->getPaymentAddress(), $custProducts ); |
| 152 | 152 | $listIds += array_keys( $custProducts ); |
| 153 | 153 | } |
| 154 | - } |
|
| 155 | - catch( \Exception $e ) |
|
| 154 | + } catch( \Exception $e ) |
|
| 156 | 155 | { |
| 157 | 156 | $str = 'Error while trying to send product notification e-mail for customer ID "%1$s": %2$s'; |
| 158 | 157 | $msg = sprintf( $str, $custId, $e->getMessage() ); |
@@ -241,8 +240,7 @@ discard block |
||
| 241 | 240 | $result[$id]['price'] = $price; |
| 242 | 241 | } |
| 243 | 242 | } |
| 244 | - } |
|
| 245 | - catch( \Exception $e ) { ; } // no price available |
|
| 243 | + } catch( \Exception $e ) { ; } // no price available |
|
| 246 | 244 | } |
| 247 | 245 | |
| 248 | 246 | return $result; |