| @@ 123-131 (lines=9) @@ | ||
| 120 | if (null !== $selected_category = $selected_category_id) { |
|
| 121 | if ($selected_category_id > 0) { |
|
| 122 | if (null !== $selected_category = Category::findById($selected_category_id, null)) { |
|
| 123 | if (!empty($selected_category->meta_description)) { |
|
| 124 | $this->view->registerMetaTag( |
|
| 125 | [ |
|
| 126 | 'name' => 'description', |
|
| 127 | 'content' => $selected_category->meta_description, |
|
| 128 | ], |
|
| 129 | 'meta_description' |
|
| 130 | ); |
|
| 131 | } |
|
| 132 | $this->view->title = $selected_category->title; |
|
| 133 | } |
|
| 134 | } |
|
| @@ 273-281 (lines=9) @@ | ||
| 270 | ]); |
|
| 271 | EventTriggeringHelper::triggerSpecialEvent($specialEvent); |
|
| 272 | ||
| 273 | if (!empty($product->meta_description)) { |
|
| 274 | $this->view->registerMetaTag( |
|
| 275 | [ |
|
| 276 | 'name' => 'description', |
|
| 277 | 'content' => $product->meta_description, |
|
| 278 | ], |
|
| 279 | 'meta_description' |
|
| 280 | ); |
|
| 281 | } |
|
| 282 | ||
| 283 | $selected_category = ($selected_category_id > 0) ? Category::findById($selected_category_id) : null; |
|
| 284 | ||
| @@ 35-43 (lines=9) @@ | ||
| 32 | throw new NotFoundHttpException; |
|
| 33 | } |
|
| 34 | ||
| 35 | if (!empty($model->meta_description)) { |
|
| 36 | $this->view->registerMetaTag( |
|
| 37 | [ |
|
| 38 | 'name' => 'description', |
|
| 39 | 'content' => $model->meta_description, |
|
| 40 | ], |
|
| 41 | 'meta_description' |
|
| 42 | ); |
|
| 43 | } |
|
| 44 | ||
| 45 | $this->view->title = $model->title; |
|
| 46 | if (!empty($model->h1)) { |
|
| @@ 72-80 (lines=9) @@ | ||
| 69 | if (null === $model = Page::findById($id)) { |
|
| 70 | throw new NotFoundHttpException; |
|
| 71 | } |
|
| 72 | if (!empty($model->meta_description)) { |
|
| 73 | $this->view->registerMetaTag( |
|
| 74 | [ |
|
| 75 | 'name' => 'description', |
|
| 76 | 'content' => $model->meta_description, |
|
| 77 | ], |
|
| 78 | 'meta_description' |
|
| 79 | ); |
|
| 80 | } |
|
| 81 | ||
| 82 | $cacheKey = 'PagesList:'.$model->id; |
|
| 83 | ||