mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-06 13:26:05 -06:00
#1009 [Sahibinden-Theme] Social media share logo does not appear.
This commit is contained in:
parent
81a4ed65bb
commit
cdbf0c403f
@ -364,7 +364,7 @@ class AdvsController extends PublicController
|
|||||||
$this->template->set('meta_keywords', implode(',', explode(' ', $adv->name)));
|
$this->template->set('meta_keywords', implode(',', explode(' ', $adv->name)));
|
||||||
$this->template->set('meta_description', strip_tags($adv->advs_desc, ''));
|
$this->template->set('meta_description', strip_tags($adv->advs_desc, ''));
|
||||||
$this->template->set('meta_title', $adv->name . "|" . end($categories)['name']);
|
$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") {
|
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'));
|
return $this->view->make('visiosoft.module.advs::ad-detail/detail', compact('adv', 'complaints', 'recommended_advs', 'categories', 'features', 'profile', 'comments', 'qrSRC'));
|
||||||
|
|||||||
@ -4,6 +4,13 @@
|
|||||||
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description)) }}"/>
|
<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:title" content="{{ template.get('og_title', trans(template.meta_title)) }}"/>
|
||||||
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
|
<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 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 %}
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue
Block a user