mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fixed ogData
This commit is contained in:
parent
87b0907c86
commit
475bba9d2e
@ -1,9 +1,5 @@
|
||||
{% extends layout('ad-detail') %}
|
||||
|
||||
{% block ogdata %}
|
||||
{% include "visiosoft.module.advs::ad-detail/partials/ogdata" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
{{ asset_style("visiosoft.module.advs::css/detail.css") }}
|
||||
{% endblock %}
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
<meta property="og:site_name"
|
||||
content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
|
||||
<meta property="og:description" content="{{ adv.advs_desc|striptags|raw }}"/>
|
||||
<meta property="og:title" content="{{ adv.title }}"/>
|
||||
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
|
||||
<meta property="og:image" content="{{ adv.getViewPhotoUrl|first }}">
|
||||
<meta property="og:type" content="website"/>
|
||||
@ -570,6 +570,9 @@ class AdvsController extends PublicController
|
||||
} else {
|
||||
$ogImage = $coverPhoto;
|
||||
}
|
||||
//ogMeta Tags
|
||||
$this->template->set('og_image', $ogImage);
|
||||
$this->template->set('og_url', $this->adv_model->getAdvDetailLinkByModel($adv, 'list'));
|
||||
|
||||
$this->template->set('meta_image', $ogImage);
|
||||
$this->template->set('meta_keywords', implode(',', explode(' ', $adv->name)));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user