{% set paramSocialMedia = getCoreToolsList("socialmedia") %}{% set twitterSite = paramSocialMedia['twitter_site'] %}{% set twitterCreator = paramSocialMedia['twitter_creator'] %}{% set locale = paramSocialMedia['lang_HTML'] %}{% set websitename = paramSocialMedia['websitename'] %}{% set domain = paramSocialMedia['absolute_domain'] %}{% set enterpriseName = paramSocialMedia['enterprise_name'] %}{% set logo_organization = paramSocialMedia['logo_organization'] %}{% set size_width_logo_organization = paramSocialMedia['size_width_logo_organization'] %}{% set size_height_logo_organization = paramSocialMedia['size_height_logo_organization'] %}{% set currentPath = app.request.uri %}<meta property="og:site_name" content="{{ websitename }}" /><meta property="og:locale" content="{{ app.request.locale }}" /><meta property="og:type" content="{{ social_type }}" /><meta property="og:title" content="{{ article.title }}" /><meta property="og:url" content="{{ currentPath }}" /><meta property="og:description" content="{{ article.shortDescription }}" />{% if article.image.name is not null %} {% set social_picture = domain ~ vich_uploader_asset(article, 'imageFile') %} <meta property="og:image" content="{{ social_picture }}" /> <meta property="og:image:secure_url" content="{{ social_picture }}" /> {% if article.image.dimensions[0] is defined %}<meta property="og:image:width" content="{{ article.image.dimensions[0] }}" />{% endif %} {% if article.image.dimensions[1] is defined %}<meta property="og:image:height" content="{{ article.image.dimensions[1] }}" />{% endif %}{% endif %}<meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="{{ twitterSite }}" /><meta name="twitter:creator" content="{{ twitterCreator }}" /><meta name="twitter:title" content="{{ article.title }}" /><meta name="twitter:description" content="{{ article.shortDescription }}" />{% if article.image.name is not null %} <meta name="twitter:image" content="{{ social_picture }}" /> <meta name="twitter:image:alt" content="{{ article.shortTitle }}" />{% endif %}<meta name="twitter:domain" content="{{ removehttps(domain) }}" /><meta property="article:published_time" content="{{ article.publishedAt|date("Y-m-d") }}" /><meta property="article:modified_time" content="{{ article.updatedAt|date("Y-m-d") }}">{% if article.author is not null %} <meta property="article:author" content="{{ article.author }}" />{% else %} <meta property="article:author" content="{{ websitename }}" />{% endif %}{% set prefix = "" %}{% set urlArticle = path('blog_article',{'slug': article.slug}) %}{% if app.request.locale != "en" %} {% set urlArticle = path('locale_blog_article',{'_locale':app.request.locale,'slug': article.slug}) %} {% set prefix = "/" ~ app.request.locale %}{% endif %}{% if article.pageslug3 is not empty %} {% set urlArticle = prefix ~ '/' ~ article.pageslug ~ '/' ~ article.pageslug2 ~ '/' ~ article.pageslug3 %}{% elseif article.pageslug2 is not empty %} {% set urlArticle = prefix ~ '/' ~ article.pageslug ~ '/' ~ article.pageslug2 %}{% elseif article.pageslug is not empty %} {% set urlArticle = prefix ~ '/' ~ article.pageslug %}{% endif %}<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "{{ domain ~ urlArticle }}" }, "headline": {{ article.title|json_encode|raw }}, "dateCreated": "{{ article.publishedAt|date("c") }}", "datePublished": "{{ article.publishedAt|date("c") }}", "dateModified": "{{ article.updatedAt|date("c") }}", "publisher": { "@type": "Organization", "name": {{ enterpriseName|json_encode|raw }}, "logo": { "@type": "ImageObject", "url": "{{ domain ~ logo_organization }}", "width": "{{ size_width_logo_organization }}", "height": "{{ size_height_logo_organization }}" } }, "description": {{ article.shortDescription|json_encode|raw }}{% if (article.author is not null) and (article.author is not empty) %}, "author": [{ "@type": "Person", "name": {{ article.author|json_encode|raw }} }]{% endif %}{% if article.image.name is not null %}, "image": { "@type": "ImageObject", "url": "{{ social_picture }}", "width": "{{ article.image.dimensions[0] }}", "height": "{{ article.image.dimensions[1] }}" }{% endif %} }</script>