INSERT INTO `PREFIX_configuration` (`id`, `type`, `section`, `name`, `value`, `allowEmpty`, `date_updated`) VALUES
(NULL, 'bool', 'apartment', 'descriptionUseEditor', '1', 0, '2020-03-29 14:50:19');
public static function getLocationString(Apartment $model, $sep = ', ', $withAddress = false)
{
if(issetModule('tariffPlans') && !TariffPlans::checkAllowShowAddress()){
return Yii::t('module_tariffPlans', 'Please <a href="{n}">change the tariff plan</a> to view', Yii::app()->controller->createUrl('/tariffPlans/main/index'));
}
array(
'header' => tt('Address', 'apartments'),
'type' => 'raw',
'value' => 'TariffPlans::checkAllowShowAddress() ? CHtml::encode(HApartment::getLocationString($data, ", ", true)) : Yii::t(\'module_tariffPlans\', \'Please <a href="{n}">change the tariff plan</a> to view\', Yii::app()->controller->createUrl(\'/tariffPlans/main/index\'))',
'visible' => $canShowAddress,
'htmlOptions' => array('class' => 'ap-view-table-address'),
),
array(
'header' => tt('Address', 'apartments'),
'type' => 'raw',
'value' => 'HApartment::getLocationString($data, ", ", true)',
'visible' => $canShowAddress,
'htmlOptions' => array('class' => 'ap-view-table-address'),
),
Users browsing this forum: No registered users and 2 guests