@@ -407,7 +407,7 @@ |
||
407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
409 | 409 | } |
410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
410 | + catch( \Exception $e ) {; } // Show product even if file isn't available any more |
|
411 | 411 | } |
412 | 412 | |
413 | 413 | return $data; |
@@ -375,7 +375,7 @@ |
||
375 | 375 | } |
376 | 376 | |
377 | 377 | $msg = $this->getContext()->translate( 'admin', 'Permission denied' ); |
378 | - throw new \Aimeos\Admin\JQAdm\Exception( $msg); |
|
378 | + throw new \Aimeos\Admin\JQAdm\Exception( $msg ); |
|
379 | 379 | } |
380 | 380 | |
381 | 381 |
@@ -355,7 +355,7 @@ |
||
355 | 355 | { |
356 | 356 | $refItem = $cntl->add( $refItem, $file ); |
357 | 357 | |
358 | - if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
358 | + if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
359 | 359 | $refItem = $cntl->addPreview( $refItem, $preview ); |
360 | 360 | } |
361 | 361 | } |
@@ -355,7 +355,7 @@ |
||
355 | 355 | { |
356 | 356 | $refItem = $cntl->add( $refItem, $file ); |
357 | 357 | |
358 | - if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
358 | + if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
359 | 359 | $refItem = $cntl->addPreview( $refItem, $preview ); |
360 | 360 | } |
361 | 361 | } |
@@ -355,7 +355,7 @@ |
||
355 | 355 | { |
356 | 356 | $refItem = $cntl->add( $refItem, $file ); |
357 | 357 | |
358 | - if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
358 | + if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
359 | 359 | $refItem = $cntl->addPreview( $refItem, $preview ); |
360 | 360 | } |
361 | 361 | } |
@@ -355,7 +355,7 @@ |
||
355 | 355 | { |
356 | 356 | $refItem = $cntl->add( $refItem, $file ); |
357 | 357 | |
358 | - if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
358 | + if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
359 | 359 | $refItem = $cntl->addPreview( $refItem, $preview ); |
360 | 360 | } |
361 | 361 | } |
@@ -355,7 +355,7 @@ |
||
355 | 355 | { |
356 | 356 | $refItem = $cntl->add( $refItem, $file ); |
357 | 357 | |
358 | - if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
358 | + if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) { |
|
359 | 359 | $refItem = $cntl->addPreview( $refItem, $preview ); |
360 | 360 | } |
361 | 361 | } |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | <span class="product-name"><?= $enc->html( $orderProduct->getName() ) ?></span> |
296 | 296 | <span class="product-attr"> |
297 | 297 | <?php foreach( $orderProduct->getAttributeItems() as $attrItem ) : ?> |
298 | - <?php if ($attrItem->getCode() !== 'upload') : ?> |
|
298 | + <?php if( $attrItem->getCode() !== 'upload' ) : ?> |
|
299 | 299 | <span class="attr-code"><?= $enc->html( $attrItem->getCode() ) ?></span> |
300 | 300 | <span class="attr-value"> |
301 | 301 | <?php if( $attrItem->getQuantity() > 1 ) : ?> |
@@ -334,15 +334,15 @@ discard block |
||
334 | 334 | </div> |
335 | 335 | </div> |
336 | 336 | <div class="row"> |
337 | - <?php foreach( $orderProduct->getAttributeItems('custom') as $attrItem ) : ?> |
|
337 | + <?php foreach( $orderProduct->getAttributeItems( 'custom' ) as $attrItem ) : ?> |
|
338 | 338 | <?php if( $attrItem->getCode() === 'upload' ) : ?> |
339 | 339 | <label class="col-5 col-sm-12 form-control-label"><?= $attrItem->getName() ?></label> |
340 | 340 | <div class="col-7 col-sm-12"> |
341 | 341 | <div class="upload-images"> |
342 | - <?php foreach ($attrItem->getValue() as $upload) : ?> |
|
342 | + <?php foreach( $attrItem->getValue() as $upload ) : ?> |
|
343 | 343 | <span class="upload-image"> |
344 | - <img src="<?= $enc->attr( $this->content($upload) ) ?>" alt="upload-image" /> |
|
345 | - <a href="<?= $enc->attr( $this->content($upload) ) ?>" target="_blank">Download</a> |
|
344 | + <img src="<?= $enc->attr( $this->content( $upload ) ) ?>" alt="upload-image" /> |
|
345 | + <a href="<?= $enc->attr( $this->content( $upload ) ) ?>" target="_blank">Download</a> |
|
346 | 346 | </span> |
347 | 347 | <?php endforeach ?> |
348 | 348 | </div> |