From 020c723e2865dbf61cca9fb14199ce07f479865a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 10 Oct 2016 14:29:11 +0200 Subject: [PATCH] Added support of Twitter Cards for public articles --- .../views/themes/common/Entry/share.html.twig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index a0a0d3c3..b50226ef 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig @@ -30,11 +30,15 @@ + {% set picturePath = app.request.schemeAndHttpHost ~ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %} {% if entry.previewPicture is not null %} - - {% else %} - + {% set picturePath = entry.previewPicture %} {% endif %} + + + + +
-- 2.41.0