*/ $this->title = SeoPanelModule::t('app', 'Details of the global meta tag') . ': ' . $model->name; $this->params['breadcrumbs'][] = ['label' => SeoPanelModule::t('app', 'Global meta tags'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="global-meta-tag-view"> <div class="panel panel-default"> <div class="panel-body"> <p> <?php echo Html::a(SeoPanelModule::t('app', 'Edit'), ['update', 'id' => $model->id], ['class' => 'btn btn-sm btn-primary']); ?> <?php echo Html::a(SeoPanelModule::t('app', 'Create'), ['create'], ['class' => 'btn btn-sm btn-success']); ?> <?php echo Html::a(Yii::t('yii', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-sm btn-danger pull-right', 'data' => ['confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', ['attribute' => 'active', 'value' => $model->active == 1 ? '<span class="label label-success">' . Yii::t('yii', 'Yes') . '</span>' : '<span class="label label-warning">' . Yii::t('yii', 'No') . '</span>', 'format' => 'raw'], 'name', 'content', 'created_at:datetime', 'updated_at:datetime']]); ?> </div> </div> </div>
/** * For Menu * * @return array */ public static function menuItems() { return [['label' => '<i class="fa fa-angle-double-right"></i> ' . SeoPanelModule::t('app', 'Global meta tags'), 'url' => ['/seo-panel/global-meta-tag/index']], ['label' => '<i class="fa fa-angle-double-right"></i> ' . SeoPanelModule::t('app', 'Meta tags by url'), 'url' => ['/seo-panel/page-meta-tag/index']], ['label' => '<i class="fa fa-angle-double-right"></i> Robots.txt', 'url' => ['/seo-panel/robots/index']]]; }
<?php use webvimark\modules\SeoPanel\SeoPanelModule; /** * @var yii\web\View $this * @var webvimark\modules\SeoPanel\models\PageMetaTag $model */ $this->title = SeoPanelModule::t('app', 'Creating meta tag by url'); $this->params['breadcrumbs'][] = ['label' => SeoPanelModule::t('app', 'Meta tags by url'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="page-meta-tag-create"> <div class="panel panel-default"> <div class="panel-body"> <?php echo $this->render('_form', compact('model')); ?> </div> </div> </div>
<div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <?php if ($model->isNewRecord) { ?> <?php echo Html::submitButton('<span class="glyphicon glyphicon-plus-sign"></span> ' . SeoPanelModule::t('app', 'Create'), ['class' => 'btn btn-success']); ?> <?php } else { ?> <?php echo Html::submitButton('<span class="glyphicon glyphicon-ok"></span> ' . SeoPanelModule::t('app', 'Save'), ['class' => 'btn btn-primary']); ?> <?php } ?> <?php echo Html::a(SeoPanelModule::t('app', 'Cancel'), ['index'], ['class' => 'btn btn-default']); ?> </div> </div> <?php ActiveForm::end(); ?> </div>
<?php echo $form->field($model, 'keywords'); ?> <?php echo $form->field($model, 'description'); ?> <?php // echo $form->field($model, 'created_at') ?> <?php // echo $form->field($model, 'updated_at') ?> <div class="form-group"> <?php echo Html::submitButton(SeoPanelModule::t('app', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(SeoPanelModule::t('app', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
/** * @inheritdoc */ public function attributeLabels() { return ['id' => 'ID', 'url' => SeoPanelModule::t('app', 'Page url'), 'title' => SeoPanelModule::t('app', 'Title'), 'keywords' => SeoPanelModule::t('app', 'Keywords'), 'description' => SeoPanelModule::t('app', 'Description'), 'created_at' => Yii::t('app', 'Created'), 'updated_at' => Yii::t('app', 'Updated')]; }
/** * @inheritdoc */ public function attributeLabels() { return ['id' => 'ID', 'active' => Yii::t('app', 'Active'), 'name' => SeoPanelModule::t('app', 'Meta tag name'), 'content' => SeoPanelModule::t('app', 'Meta tag content'), 'created_at' => Yii::t('app', 'Created'), 'updated_at' => Yii::t('app', 'Updated')]; }
$this->params['breadcrumbs'][] = $this->title; ?> <div class="global-meta-tag-index"> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-xs-6"> <p> <?php echo Html::a('<span class="glyphicon glyphicon-plus-sign"></span> ' . SeoPanelModule::t('app', 'Create'), ['create'], ['class' => 'btn btn-success']); ?> </p> </div> <div class="col-xs-6 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'global-meta-tag-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'global-meta-tag-grid-pjax']); ?>
* @var $this yii\web\View * @var $file string */ use webvimark\modules\SeoPanel\SeoPanelModule; use yii\helpers\Html; $this->title = 'Robots.txt'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="panel panel-default"> <div class="panel-body"> <?php echo Html::beginForm(); ?> <?php echo Html::textarea('robots', $file, ['rows' => 25, 'class' => 'form-control']); ?> <br/> <?php echo Html::submitButton('<i class="fa fa-check"></i> ' . SeoPanelModule::t('app', 'Save'), ['class' => 'btn btn-success']); ?> <?php echo Html::endForm(); ?> </div> </div>