|
@@ -38,6 +38,18 @@ $retina = $preview->getUrl(Image::SIZE_1040x586,"jpg");
|
|
|
$normal = $preview->getUrl(Image::SIZE_841x473,"webp");
|
|
|
$bad = $preview->getUrl(Image::SIZE_680x383,'jpg');
|
|
|
|
|
|
+if( $model->type == 6 ){; //лонгрид
|
|
|
+ $retina = $preview->getUrl(Image::SIZE_HD,"jpg");
|
|
|
+ $normal = $preview->getUrl(Image::SIZE_HD,"jpg");
|
|
|
+ $bad = $preview->getUrl(Image::SIZE_1040x586,"webp");
|
|
|
+}
|
|
|
+
|
|
|
+if( $model->type == 2 ){; //разворот
|
|
|
+ $retina = $preview->getUrl(Image::SIZE_HD,"jpg");
|
|
|
+ $normal = $preview->getUrl(Image::SIZE_1040x586,"webp");
|
|
|
+ $bad = $preview->getUrl(Image::SIZE_841x473,"webp");
|
|
|
+}
|
|
|
+
|
|
|
$bad = $bad?$bad:'/images/default.jpg';
|
|
|
|
|
|
if( $retina === false || $normal === false ){
|