Merge pull request #874 from openclassify/vedatt

meta ogData
This commit is contained in:
Fatih Alp 2020-12-21 18:17:54 +03:00 committed by GitHub
commit 81adf72417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 11 deletions

View File

@ -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 %}

View File

@ -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"/>

View File

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

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M255.15,468.625H63.787c-11.737,0-21.262-9.526-21.262-21.262V64.638c0-11.737,9.526-21.262,21.262-21.262H255.15
c11.758,0,21.262-9.504,21.262-21.262S266.908,0.85,255.15,0.85H63.787C28.619,0.85,0,29.47,0,64.638v382.724
c0,35.168,28.619,63.787,63.787,63.787H255.15c11.758,0,21.262-9.504,21.262-21.262
C276.412,478.129,266.908,468.625,255.15,468.625z"/>
</g>
</g>
<g>
<g>
<path d="M505.664,240.861L376.388,113.286c-8.335-8.25-21.815-8.143-30.065,0.213s-8.165,21.815,0.213,30.065l92.385,91.173
H191.362c-11.758,0-21.262,9.504-21.262,21.262c0,11.758,9.504,21.263,21.262,21.263h247.559l-92.385,91.173
c-8.377,8.25-8.441,21.709-0.213,30.065c4.167,4.21,9.653,6.336,15.139,6.336c5.401,0,10.801-2.041,14.926-6.124l129.276-127.575
c4.04-3.997,6.336-9.441,6.336-15.139C512,250.302,509.725,244.88,505.664,240.861z"/>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -28,6 +28,12 @@
</a>
{{ addBlock('profile/navigation',{'marketPlace':marketPlace})|raw }}
<a href="{{ url('logout') }}"
class="px-3 link-unstyled d-flex d-md-none">
<img src="{{ img('visiosoft.module.profile::images/logout.svg').url }}">
<p>{{ trans('visiosoft.theme.base::field.logout.name') }}</p>
</a>
</div>
<div class="overlay"></div>