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 <?php
$code = Html::encode( $code = Html::encode(
"[? \core\widgets\menu\MenuWidget::widget([ "[?= \core\widgets\menu\MenuWidget::widget([
'menu_id' => ".$menu->id.", 'menu_id' => ".$menu->id.",
]) ?]"); ]) ?]");
?> ?>

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

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

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

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

Loading…
Cancel
Save