|
|
@@ -820,13 +820,21 @@ class BxBaseStudioStore extends BxDolStudioStore
|
|
|
$bIcon = strpos($sIcon, '.') !== false;
|
|
|
|
|
|
$sImage = '';
|
|
|
- if(!empty($aItem['cover']['medium']))
|
|
|
- $sImage = $aItem['cover']['medium'];
|
|
|
- else if(!empty($aItem['cover']['large']))
|
|
|
- $sImage = $aItem['cover']['large'];
|
|
|
- else if(!empty($aItem['cover']['big']))
|
|
|
- $sImage = $aItem['cover']['big'];
|
|
|
- $bImage = !empty($sImage) && strpos($sImage, '.') !== false;
|
|
|
+ $bImage = $bImageRaw = false;
|
|
|
+ if(empty($aItem['cover_raw'])) {
|
|
|
+ if(!empty($aItem['cover']['medium']))
|
|
|
+ $sImage = $aItem['cover']['medium'];
|
|
|
+ else if(!empty($aItem['cover']['large']))
|
|
|
+ $sImage = $aItem['cover']['large'];
|
|
|
+ else if(!empty($aItem['cover']['big']))
|
|
|
+ $sImage = $aItem['cover']['big'];
|
|
|
+
|
|
|
+ $bImage = !empty($sImage) && strpos($sImage, '.') !== false;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $sImage = $aItem['cover_raw'];
|
|
|
+ $bImageRaw = true;
|
|
|
+ }
|
|
|
|
|
|
$aTmplVarsRate = array();
|
|
|
$bTmplVarsRate = $bShowRating && !$bShoppingCart;
|
|
|
@@ -861,7 +869,7 @@ class BxBaseStudioStore extends BxDolStudioStore
|
|
|
),
|
|
|
),
|
|
|
'bx_if:no_image' => array (
|
|
|
- 'condition' => !$bImage,
|
|
|
+ 'condition' => !$bImage && !$bImageRaw,
|
|
|
'content' => array(
|
|
|
'description_plain' => $aItem['description_plain'],
|
|
|
'strecher' => mb_strlen($aItem['description_plain']) > 240 ? '' : str_repeat(' ', round((240 - mb_strlen($aItem['description_plain'])) / 6))
|
|
|
@@ -874,6 +882,12 @@ class BxBaseStudioStore extends BxDolStudioStore
|
|
|
'strecher' => str_repeat(' ', 40)
|
|
|
),
|
|
|
),
|
|
|
+ 'bx_if:image_raw' => array (
|
|
|
+ 'condition' => $bImageRaw,
|
|
|
+ 'content' => array(
|
|
|
+ 'image_raw' => $sImage,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
'title' => $aItem['title'],
|
|
|
'bx_if:show_vendor' => array(
|
|
|
'condition' => !$bShoppingCart,
|