baiduUEditor.php 609 B

12345678910111213141516171819
  1. <?php
  2. use common\helpers\Html;
  3. use common\enums\StatusEnum;
  4. ?>
  5. <div class="form-group">
  6. <?= Html::label($row['title'], $row['name'], ['class' => 'control-label demo']); ?>
  7. <?php if ($row['is_hide_remark'] != StatusEnum::ENABLED) { ?>
  8. <small><?= \yii\helpers\HtmlPurifier::process($row['remark']) ?></small>
  9. <?php } ?>
  10. <?= \common\widgets\ueditor\UEditor::widget([
  11. 'id' => "config[" . $row['name'] . "]",
  12. 'attribute' => $row['name'],
  13. 'name' => "config[" . $row['name'] . "]",
  14. 'value' => $row['value']['data'] ?? $row['default_value'],
  15. ]) ?>
  16. </div>
粤ICP备19079148号