parse manufacturer longdesc through Smarty
This commit is contained in:
parent
b278f8a185
commit
07224f9530
@ -33,13 +33,23 @@ class ManufacturerInfoList extends ManufacturerInfoList_parent
|
|||||||
{
|
{
|
||||||
parent::addCategoryFields($oManufacturer);
|
parent::addCategoryFields($oManufacturer);
|
||||||
|
|
||||||
if (Registry::getConfig()->d3GetBoolModuleSettingByName('_showManufacturertextOnManufacturerPage')) {
|
if (Registry::getConfig()->getConfigParam('d3manufacturerinformation_showManufacturertextOnManufacturerPage')) {
|
||||||
$oManufacturer->oxcategories__oxlongdesc = new Field(
|
/** @var \OxidEsales\Eshop\Core\UtilsView $oUtilsView */
|
||||||
html_entity_decode(
|
$oUtilsView = Registry::getUtilsView();
|
||||||
$oManufacturer->getFieldData(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME) ?? ''
|
|
||||||
),
|
$longdesc = $oManufacturer->d3GetLongdesc()->getRawValue() ?? '';
|
||||||
Field::T_RAW
|
$deactivateSmarty = Registry::getConfig()->getConfigParam('deactivateSmartyForCmsContent');
|
||||||
);
|
$processLongDescriptions = Registry::getConfig()->getConfigParam('bl_perfParseLongDescinSmarty');
|
||||||
|
if (!$deactivateSmarty && $processLongDescriptions) {
|
||||||
|
$longdesc = $oUtilsView->parseThroughSmarty(
|
||||||
|
$longdesc,
|
||||||
|
$oManufacturer->getId() . $oManufacturer->getLanguage(),
|
||||||
|
null,
|
||||||
|
true
|
||||||
|
) ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$oManufacturer->oxcategories__oxlongdesc = new Field(html_entity_decode($longdesc), Field::T_RAW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user