390391392393394395396397398399400401402403404405406407408 if(!empty($this->logo)){
return $this->logo;
}
$subcategory = $this->getSubcategory()->one();
if($logo = $subcategory->logo)
{
return $logo;
}
else {
return $subcategory->logotype();
}
}
public function images($name, $width = 800, $height = 900, $thumbnailMode = 'outbound', $multi = false) {
if(empty($this->{$name})) {
$subcategory = $this->getSubcategory()->one();
if(!empty($subcategory->{'products_'.$name})){
return Yii::$app->imagemanager->getImagePath($subcategory->{'products_'.$name}, $width, $height, $thumbnailMode, $multi);
} else return null;