Browse Source

small fix

master
Egorka 6 years ago
parent
commit
c52e2a281d
  1. 2
      backend/views/menu/menu.php
  2. 8
      common/modules/forms/views/manage/form/view.php
  3. 1
      common/modules/pages/views/page/view.php

2
backend/views/menu/menu.php

@ -124,7 +124,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
$code = Html::encode(
"[? \core\widgets\menu\MenuWidget::widget([
"[?= \core\widgets\menu\MenuWidget::widget([
'menu_id' => ".$menu->id.",
]) ?]");
?>

8
common/modules/forms/views/manage/form/view.php

@ -77,18 +77,14 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
$code = Html::encode(
"<?= \common\modules\\forms\widgets\FormWidget::widget([
'id' => ".$form->id.",
]) ?>");
"<?= \common\modules\\forms\widgets\FormWidget::widget(['id' => ".$form->id."]) ?>");
?>
<p><?= Yii::t('form', 'For template') ?></p>
<pre><?= $code ?></pre>
<?php
$code = Html::encode(
"[? \common\modules\\forms\widgets\FormWidget::widget([
'id' => ".$form->id.",
]) ?]");
"[?= \common\modules\\forms\widgets\FormWidget::widget(['id' => ".$form->id."]) ?]");
?>
<p><?= Yii::t('menu', 'For editor') ?></p>
<pre><?= $code ?></pre>

1
common/modules/pages/views/page/view.php

@ -28,6 +28,7 @@ $this->params['breadcrumbs'][] = $page->title;
'HTML.SafeIframe' => true,
'URI.SafeIframeRegexp'=>'%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%',
])) ?> -->
<?= preg_replace_callback('/\[\?= (.*) \?\]/gm', function ($m) {
return $m[1];
}, Yii::$app->formatter->asHtml($page->content, [

Loading…
Cancel
Save