예제 #1
0
                <div class="panel-body">

                    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 255, 'class' => 'form-control translit-input duplicate-input']);
?>

                    <?php 
echo $form->field($model, 'title_seo')->textInput(['maxlength' => 255, 'class' => 'form-control duplicate-output']);
?>

                    <?php 
echo $form->field($model, 'content')->widget(TinyMce::className(), ['clientOptions' => $this->context->module->editorOptions]);
?>

                    <?php 
\Yii::$app->meta->set(['preview' => ['class' => '', 'label' => 'Preview', 'content' => $form->field($model, 'preview')->widget(TinyMce::className(), ['clientOptions' => $this->context->module->editorOptions])->label(false)]]);
\Yii::$app->meta->set(['meta_description' => ['class' => '', 'label' => 'Meta Description', 'content' => $form->field($model, 'meta_description')->textarea(['rows' => 6])->label(false)]]);
\Yii::$app->meta->set(['gallery' => ['class' => '', 'label' => 'Post Gallery', 'content' => ImageSelector::widget(['fileInputOptions' => ['callbackBeforeInsert' => 'function(e,data){ alert("");}']])]]);
?>
                    
                    <?php 
if (\Yii::$app->meta->hasMeta()) {
    \Yii::$app->meta->display();
}
?>
                </div>
            </div>
        </div>
        <!--Left column END-->

        <!--Right column START-->
예제 #2
0
파일: _form.php 프로젝트: GAMITG/yii2-blog
                <div class="panel-body">

                    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 255, 'class' => 'form-control translit-input duplicate-input']);
?>

                    <?php 
echo $form->field($model, 'title_seo')->textInput(['maxlength' => 255, 'class' => 'form-control duplicate-output']);
?>

                    <?php 
echo $form->field($model, 'content')->widget(TinyMce::className(), ['clientOptions' => $this->context->module->editorOptions]);
?>

                    <?php 
echo $form->field($model, 'preview')->widget(TinyMce::className(), ['clientOptions' => $this->context->module->editorOptions]);
?>

                    <?php 
echo $form->field($model, 'meta_description')->textarea(['rows' => 6]);
?>

                </div>
            </div>
        </div>
        <!--Left column END-->

        <!--Right column START-->
        <div class="col-md-3">
            <div class="panel panel-default">
                <div class="panel-body">