From cdbf0c403f877e4bd89dded63915da46e2bdef4a Mon Sep 17 00:00:00 2001 From: Diatrex Date: Thu, 27 Feb 2020 12:38:17 +0300 Subject: [PATCH] #1009 [Sahibinden-Theme] Social media share logo does not appear. --- .../advs-module/src/Http/Controller/advsController.php | 2 +- .../base-theme/resources/views/partials/ogdata.twig | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php index 21b31bd11..acb0c21d8 100644 --- a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php +++ b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php @@ -364,7 +364,7 @@ class AdvsController extends PublicController $this->template->set('meta_keywords', implode(',', explode(' ', $adv->name))); $this->template->set('meta_description', strip_tags($adv->advs_desc, '')); $this->template->set('meta_title', $adv->name . "|" . end($categories)['name']); - + $this->template->set('meta_image', $adv->cover_photo); if ($adv->created_by_id == isset(auth()->user()->id) OR $adv->status == "approved") { return $this->view->make('visiosoft.module.advs::ad-detail/detail', compact('adv', 'complaints', 'recommended_advs', 'categories', 'features', 'profile', 'comments', 'qrSRC')); diff --git a/addons/default/visiosoft/base-theme/resources/views/partials/ogdata.twig b/addons/default/visiosoft/base-theme/resources/views/partials/ogdata.twig index 381f7f9d9..8ca747a5a 100644 --- a/addons/default/visiosoft/base-theme/resources/views/partials/ogdata.twig +++ b/addons/default/visiosoft/base-theme/resources/views/partials/ogdata.twig @@ -4,6 +4,13 @@ - + + + + + + + + {% endblock %} \ No newline at end of file