Changeset 104096 in spip-zone


Ignore:
Timestamp:
Apr 27, 2017, 9:39:38 AM (3 years ago)
Author:
kent1@…
Message:

Fermer les balises metas

Agencement pour éviter des lignes blanches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/metaplus/trunk/inclure/metasplus.html

    r103281 r104096  
    1818]
    1919
    20 [(#REM) Traiter le logo ]
     20[(#REM)
     21
     22        Traiter le logo
     23       
     24]
    2125[(#SET{logo, #ENV*{logo}
    22 |image_reduire{2400,1260}
    23 |image_recadre{1.91:1,'-','center'}
    24 |extraire_attribut{src}})]
     26        |image_reduire{2400,1260}
     27        |image_recadre{1.91:1,'-','center'}
     28        |extraire_attribut{src}})][(#REM)
    2529
    26 [(#REM)
    2730        metas Dublin Core
    2831        http://dublincore.org
     
    3033][(#CONFIG{metasplus/dublincore}|non)
    3134<!-- Dublin Core -->
    32 <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
    33 <link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
    34 <meta name="DC.Format" content="text/html">
    35 <meta name="dc.Type" content="text">
    36 [<meta name="dc.Title" lang="#LANG" content="(#ENV{titre}|attribut_html)">]
    37 [<meta name="dc.Language" scheme="rfc1766" content="(#LANG)">]
    38 [<meta name="dc.Description" lang="#LANG" content="(#ENV{desc}|couper{200,'…'}|attribut_html)">
    39 ][<meta name="dc.Creator" content="(#ENV{author, #ENV{auteur}}|attribut_html)">
    40 ][<meta name="dc.Date" scheme="DCTERMS.W3CDTF" content="(#ENV{date}|affdate{Y-m-d})">]
    41 [<meta name="DC.Identifier" scheme="URI" content="(#ENV{url}|url_absolue)">]
    42 [<meta name="dc.Publisher" content="(#NOM_SITE_SPIP|attribut_html)">]
    43 ]
     35<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
     36<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" />
     37<meta name="DC.Format" content="text/html" />
     38<meta name="dc.Type" content="text" />
     39[<meta name="dc.Title" lang="#LANG" content="(#ENV{titre}|attribut_html)" />]
     40[<meta name="dc.Language" scheme="rfc1766" content="(#LANG)" />]
     41[<meta name="dc.Description" lang="#LANG" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />
     42][<meta name="dc.Creator" content="(#ENV{author, #ENV{auteur}}|attribut_html)" />
     43][<meta name="dc.Date" scheme="DCTERMS.W3CDTF" content="(#ENV{date}|affdate{Y-m-d})" />]
     44[<meta name="DC.Identifier" scheme="URI" content="(#ENV{url}|url_absolue)" />]
     45[<meta name="dc.Publisher" content="(#NOM_SITE_SPIP|attribut_html)" />]
     46][(#REM)
    4447
    45 [(#REM)
    4648        metas Open Graph
    4749        http://ogp.me
     
    5355        [(#LANG|=={en}|non) [(#SET{lang_territoire,#LANG[_(#LANG|strtoupper)]})]]
    5456]<!-- Open Graph -->
    55 [<meta property="og:type" content="(#ENV{og-type}|sinon{article}|attribut_html)">]
    56 [<meta property="og:title" content="(#ENV{titre}|attribut_html)">]
    57 <meta property="og:locale" content="#GET{lang_territoire}">
    58 [<meta property="og:url" content="(#ENV{url}|url_absolue)">]
    59 [<meta property="og:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)">
    60 ][<meta property="article:published_time" content="(#ENV{date}|affdate{Y-m-d})">]
    61 [<meta property="article:author" content="(#ENV{author, #ENV{auteur}}|attribut_html)">
    62 ][<meta property="og:image" content="(#GET{logo}|url_absolue)">
    63 ][<meta property="og:site_name" content="(#NOM_SITE_SPIP|attribut_html)">]
    64 [(#REM) Prise en charge du plugin facebook : s'il est présent, on envoie la méta fb:app_id
    65 ][(#PLUGIN{facebook}|oui)[<meta property="fb:app_id" content="(#CONFIG{facebook/cle})" />]]]
     57[<meta property="og:type" content="(#ENV{og-type}|sinon{article}|attribut_html)" />]
     58[<meta property="og:title" content="(#ENV{titre}|attribut_html)" />]
     59<meta property="og:locale" content="#GET{lang_territoire}" />
     60[<meta property="og:url" content="(#ENV{url}|url_absolue)" />]
     61[<meta property="og:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />
     62][(#ENV{og-type}|sinon{article}|=={article}|oui)[<meta property="article:published_time" content="(#ENV{date}|affdate{Y-m-d})" />]
     63[<meta property="article:author" content="(#ENV{author, #ENV{auteur}}|attribut_html)" />
     64]][<meta property="og:image" content="(#GET{logo}|url_absolue)">
     65][<meta property="og:site_name" content="(#NOM_SITE_SPIP|attribut_html)" />][(#REM)
    6666
    67 [(#REM)
     67        Prise en charge du plugin facebook : s'il est présent, on envoie la méta fb:app_id
     68
     69][(#PLUGIN{facebook}|oui)[<meta property="fb:app_id" content="(#CONFIG{facebook/cle})" />]]][(#REM)
     70
    6871        metas Twitter Card
    6972        https://dev.twitter.com/cards/types/summary
     
    7174][(#CONFIG{metasplus/twitter}|non)
    7275<!-- Twitter Card -->
    73 <meta name="twitter:card" content="[(#ENV{logo}|?{summary_large_image,summary})]">
    74 [<meta name="twitter:title" content="(#ENV{titre}|attribut_html)">]
    75 [<meta name="twitter:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)">]
    76 [<meta name="twitter:image" content="(#GET{logo}|url_absolue)">]
     76<meta name="twitter:card" content="[(#ENV{logo}|?{summary_large_image,summary})]" />
     77[<meta name="twitter:title" content="(#ENV{titre}|attribut_html)" />]
     78[<meta name="twitter:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />]
     79[<meta name="twitter:image" content="(#GET{logo}|url_absolue)" />]
    7780]
    7881#FILTRE{trim}
Note: See TracChangeset for help on using the changeset viewer.