mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Wt\Core\Entity\IblockElementPropertyEntity;
|
||||
use Wt\Core\Templater\Shell;
|
||||
|
||||
/**
|
||||
* @var $this Shell
|
||||
* @var $elementPropertyEntity IblockElementPropertyEntity
|
||||
*/
|
||||
|
||||
$elementPropertyEntity = $this->getContext();
|
||||
if(!$elementPropertyEntity->isMultiple()){
|
||||
echo $elementPropertyEntity->getDisplayValue();
|
||||
} else {
|
||||
echo implode(', ', $elementPropertyEntity->getDisplayValue());
|
||||
}
|
||||
Reference in New Issue
Block a user