mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #1210 from openclassify/dia
#4732 oc.com "Duplicate page titles and descriptions"
This commit is contained in:
commit
7595c0e6ce
@ -484,6 +484,10 @@ class AdvsController extends PublicController
|
||||
}
|
||||
}
|
||||
|
||||
if (\request()->page) {
|
||||
$metaTitle .= ($metaTitle ? " | " : "") . \request()->page;
|
||||
}
|
||||
|
||||
$this->template->set('showTitle', $showTitle);
|
||||
$this->template->set('meta_title', $metaTitle);
|
||||
|
||||
@ -672,8 +676,6 @@ class AdvsController extends PublicController
|
||||
}
|
||||
}
|
||||
|
||||
$options = $this->optionRepository->findAllBy('adv_id', $id);
|
||||
|
||||
$features = array();
|
||||
if ($this->adv_model->is_enabled('customfields')) {
|
||||
$features = app('Visiosoft\CustomfieldsModule\Http\Controller\CustomFieldsController')->view($adv);
|
||||
@ -681,6 +683,8 @@ class AdvsController extends PublicController
|
||||
|
||||
$isActiveDopings = $this->adv_model->is_enabled('dopings');
|
||||
|
||||
$this->template->set('meta_title', trans('visiosoft.module.advs::field.preview') . " $adv->name" . ' ' . setting_value('streams::domain'));
|
||||
|
||||
return $this->view->make('visiosoft.module.advs::new-ad/preview/preview',
|
||||
compact('adv', 'categories', 'features', 'isActiveDopings'));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user