Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/landing/lib/field/ |
Upload File : |
<?php namespace Bitrix\Landing\Field; class Textarea extends \Bitrix\Landing\Field\Text { /** * Vew field. * @param array $params Array params: * name - field name * class - css-class for this element * additional - some additional params as is. * @return void */ public function viewForm(array $params = array()) { ?> <textarea <? ?><?= isset($params['additional']) ? $params['additional'] . ' ' : ''?><? ?><?= isset($params['id']) ? 'id="' . \htmlspecialcharsbx($params['id']) . '" ' : ''?><? ?><?= $this->maxlength > 0 ? 'maxlength="'. $this->maxlength . '" ' : ''?><? ?><?= $this->placeholder != '' ? 'placeholder="'. $this->placeholder . '" ' : ''?><? ?><?= isset($params['rows']) ? 'rows="'. $params['rows'] . '" ' : ''?><? ?><?= isset($params['autocomplete']) ? 'autocomplete="'. $params['autocomplete'] . '" ' : ''?><? ?>class="<?= isset($params['class']) ? \htmlspecialcharsbx($params['class']) : ''?>" <? ?>data-code="<?= \htmlspecialcharsbx($this->code)?>" <? ?>name="<?= \htmlspecialcharsbx(isset($params['name_format']) ? str_replace('#field_code#', $this->code, $params['name_format']) : $this->code)?>" <? ?><?= (isset($params['disabled']) && $params['disabled']) ? ' disabled ' : ''?><? ?> ><?= \htmlspecialcharsbx($this->value ? $this->value : $this->default)?></textarea> <? } /** * Gets true, if current value is empty. * @return bool */ public function isEmptyValue() { return $this->value === ''; } }