#1009 [Sahibinden-Theme] Social media share logo does not appear.

This commit is contained in:
Diatrex 2020-02-27 12:38:17 +03:00
parent 81a4ed65bb
commit cdbf0c403f
2 changed files with 9 additions and 2 deletions

View File

@ -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'));

View File

@ -4,6 +4,13 @@
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description)) }}"/>
<meta property="og:title" content="{{ template.get('og_title', trans(template.meta_title)) }}"/>
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
<meta property="og:image" content="{{ template.get('og_image') }}"/>
<meta property="og:image" content="{{ template.get('og_image', trans(template.meta_image)) }}"/>
<meta property="og:type" content="website"/>
<!-- Meta for twitter sharing -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}">
<meta name="twitter:title" content="{{ template.get('og_title', trans(template.meta_title)) }}">
<meta name="twitter:description" content="{{ template.get('og_description', trans(template.meta_description)) }}">
<meta name="twitter:image" content="{{ template.get('og_image', trans(template.meta_image)) }}">
{% endblock %}