#1047 - Убрать приписку к тегу Title

parent b9929cbd
...@@ -35,7 +35,7 @@ class PostController extends BaseController ...@@ -35,7 +35,7 @@ class PostController extends BaseController
*/ */
public function actionIndex() public function actionIndex()
{ {
$this->meta_title = Yii::t('menu', 'Blog') . ' - ' . \Yii::$app->params['name']; $this->meta_title = Yii::t('menu', 'Blog');
$query = Post::find()->where(['active' => 1])->limit(Post::PAGE_SIZE)->orderBy('created_at DESC'); $query = Post::find()->where(['active' => 1])->limit(Post::PAGE_SIZE)->orderBy('created_at DESC');
...@@ -59,7 +59,7 @@ class PostController extends BaseController ...@@ -59,7 +59,7 @@ class PostController extends BaseController
throw new NotFoundHttpException('The requested page does not exist.'); throw new NotFoundHttpException('The requested page does not exist.');
} }
$this->meta_title = Yii::t('app', 'Tag') . ': ' . $model->name . ' - ' . \Yii::$app->params['name']; $this->meta_title = Yii::t('app', 'Tag') . ': ' . $model->name;
return $this->render('tag', [ return $this->render('tag', [
'model' => $model, 'model' => $model,
...@@ -76,7 +76,7 @@ class PostController extends BaseController ...@@ -76,7 +76,7 @@ class PostController extends BaseController
{ {
$model = $this->findModelByUrl($url); $model = $this->findModelByUrl($url);
$this->meta_title = $model->metaTag->title . ' - ' . \Yii::$app->params['name']; $this->meta_title = $model->metaTag->title;
$this->meta_description = $model->metaTag->description; $this->meta_description = $model->metaTag->description;
$this->meta_keywords = $model->metaTag->keywords; $this->meta_keywords = $model->metaTag->keywords;
......
...@@ -37,7 +37,7 @@ class PageController extends \common\components\BaseController ...@@ -37,7 +37,7 @@ class PageController extends \common\components\BaseController
} }
$content = $model->lang->getFinishedContent(); $content = $model->lang->getFinishedContent();
$this->meta_title = $model->metaTag->title . ' - ' . \Yii::$app->params['name']; $this->meta_title = $model->metaTag->title;
$this->meta_description = $model->metaTag->description; $this->meta_description = $model->metaTag->description;
$this->meta_keywords = $model->metaTag->keywords; $this->meta_keywords = $model->metaTag->keywords;
......
...@@ -98,7 +98,7 @@ class SiteController extends Controller ...@@ -98,7 +98,7 @@ class SiteController extends Controller
$model = \common\modules\content\models\CoContent::findOne(['url' => 'site/error']); $model = \common\modules\content\models\CoContent::findOne(['url' => 'site/error']);
$content = $model->lang->getFinishedContent(); $content = $model->lang->getFinishedContent();
$this->meta_title = $model->metaTag->title . ' - ' . \Yii::$app->params['name']; $this->meta_title = $model->metaTag->title;
$this->meta_description = $model->metaTag->description; $this->meta_description = $model->metaTag->description;
$this->meta_keywords = $model->metaTag->keywords; $this->meta_keywords = $model->metaTag->keywords;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment