Changeset 107719 in spip-zone


Ignore:
Timestamp:
Nov 23, 2017, 2:43:42 PM (16 months ago)
Author:
jeanmarie.listes@…
Message:

Mise en forme du code pour éviter au max de générer des lignes vides dans le source.

Location:
_plugins_/metaplus/trunk/inclure
Files:
2 edited

Legend:

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

    r103057 r107719  
    1010        1. D'abord rassembler les informations et les formater
    1111
    12 ]
    13 [(#SET{titre, #TITRE|supprimer_tags|textebrut})]
    14 [(#SET{lang, #LANG})]
    15 [(#SET{desc,[(#CHAPO|sinon{#INTRODUCTION}|sinon{#TITRE}|supprimer_tags|textebrut)]})]
    16 [(#SET{author,#LESAUTEURS|supprimer_tags|textebrut})]
    17 [(#SET{date,#DATE})]
    18 [(#SET{url,#URL_ARTICLE})]
    19 [(#SET{logo,''})]
    20 [(#LOGO_ARTICLE|oui)
     12][
     13(#SET{titre, #TITRE|supprimer_tags|textebrut})][
     14(#SET{lang, #LANG})][
     15(#SET{desc,[(#CHAPO|sinon{#INTRODUCTION}|sinon{#TITRE}|supprimer_tags|textebrut)]})][
     16(#SET{author,#LESAUTEURS|supprimer_tags|textebrut})][
     17(#SET{date,#DATE})][
     18(#SET{url,#URL_ARTICLE})][
     19(#SET{logo,''})][
     20(#LOGO_ARTICLE|oui)
    2121        [(#SET{logo, #LOGO_ARTICLE})]
    2222]
     
    2626        [(#SET{logo,[(#FICHIER)]})]
    2727</BOUCLE_illus>
    28 
    29 
    3028[(#REM)
    3129
    3230        2. Passer les données au modèle général
    3331
    34 ]
    35 <INCLURE{fond=inclure/metasplus,
     32]<INCLURE{fond=inclure/metasplus,
    3633        titre=#GET{titre},
    3734        lang=#GET{lang},
  • _plugins_/metaplus/trunk/inclure/metasplus.html

    r107704 r107719  
    4545<meta name="DC.Format" content="text/html" />
    4646<meta name="dc.Type" content="text" />
    47 [<meta name="dc.Title" lang="#LANG" content="(#ENV{titre}|attribut_html)" />]
    48 [<meta name="dc.Language" scheme="rfc1766" content="(#LANG)" />]
    49 [<meta name="dc.Description" lang="#LANG" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />
    50 ][<meta name="dc.Creator" content="(#ENV{author, #ENV{auteur}}|attribut_html)" />
    51 ][<meta name="dc.Date" scheme="DCTERMS.W3CDTF" content="(#ENV{date}|affdate{Y-m-d})" />]
    52 [<meta name="DC.Identifier" scheme="URI" content="(#ENV{url}|url_absolue)" />]
    53 [<meta name="dc.Publisher" content="(#NOM_SITE_SPIP|attribut_html)" />]
     47[<meta name="dc.Title" lang="#LANG" content="(#ENV{titre}|attribut_html)" />][
     48<meta name="dc.Language" scheme="rfc1766" content="(#LANG)" />][
     49<meta name="dc.Description" lang="#LANG" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />][
     50<meta name="dc.Creator" content="(#ENV{author, #ENV{auteur}}|attribut_html)" />][
     51<meta name="dc.Date" scheme="DCTERMS.W3CDTF" content="(#ENV{date}|affdate{Y-m-d})" />][
     52<meta name="DC.Identifier" scheme="URI" content="(#ENV{url}|url_absolue)" />][
     53<meta name="dc.Publisher" content="(#NOM_SITE_SPIP|attribut_html)" />]
    5454][(#REM)
    5555
     
    6060[(#ENV{territoire}|oui) [(#SET{lang_territoire,[(#ENV{lang})]_[(#ENV{territoire}|strtoupper)]})]
    6161][(#ENV{territoire}|non)
    62         [(#LANG|=={en}|oui) [(#SET{lang_territoire,en_UK})]]
    63         [(#LANG|=={en}|non) [(#SET{lang_territoire,#LANG[_(#LANG|strtoupper)]})]]
     62        [(#LANG|=={en}|oui) [(#SET{lang_territoire,en_UK})]][
     63        (#LANG|=={en}|non) [(#SET{lang_territoire,#LANG[_(#LANG|strtoupper)]})]]
    6464]<!-- Open Graph -->
    65 [<meta property="og:type" content="(#ENV{og-type}|sinon{article}|attribut_html)" />]
    66 [<meta property="og:title" content="(#ENV{titre}|attribut_html)" />]
     65[<meta property="og:type" content="(#ENV{og-type}|sinon{article}|attribut_html)" />][
     66<meta property="og:title" content="(#ENV{titre}|attribut_html)" />]
    6767<meta property="og:locale" content="#GET{lang_territoire}" />
    68 [<meta property="og:url" content="(#ENV{url}|url_absolue)" />]
    69 [<meta property="og:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />
    70 ][(#ENV{og-type}|sinon{article}|=={article}|oui)[<meta property="article:published_time" content="(#ENV{date}|affdate{Y-m-d})" />]
    71 [<meta property="article:author" content="(#ENV{author, #ENV{auteur}}|attribut_html)" />
    72 ]][<meta property="og:image" content="(#GET{logo}|url_absolue)" />
    73 [<meta property="og:image:width" content="(#GET{logo}|largeur)" />]
    74 [<meta property="og:image:height" content="(#GET{logo}|hauteur)" />]
    75 ][<meta property="og:site_name" content="(#NOM_SITE_SPIP|attribut_html)" />][(#REM)
     68[<meta property="og:url" content="(#ENV{url}|url_absolue)" />][
     69<meta property="og:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />][
     70(#ENV{og-type}|sinon{article}|=={article}|oui)[<meta property="article:published_time" content="(#ENV{date}|affdate{Y-m-d})" />][
     71<meta property="article:author" content="(#ENV{author, #ENV{auteur}}|attribut_html)" />]][
     72<meta property="og:image" content="(#GET{logo}|url_absolue)" />
     73[<meta property="og:image:width" content="(#GET{logo}|largeur)" />][
     74<meta property="og:image:height" content="(#GET{logo}|hauteur)" />]][
     75<meta property="og:site_name" content="(#NOM_SITE_SPIP|attribut_html)" />][(#REM)
    7676
    7777        Prise en charge du plugin facebook : s'il est présent, on envoie la méta fb:app_id
     
    8585<!-- Twitter Card -->
    8686<meta name="twitter:card" content="[(#ENV{logo}|?{summary_large_image,summary})]" />
    87 [<meta name="twitter:title" content="(#ENV{titre}|attribut_html)" />]
    88 [<meta name="twitter:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />]
    89 [<meta name="twitter:image" content="(#GET{logo}|url_absolue)" />]
     87[<meta name="twitter:title" content="(#ENV{titre}|attribut_html)" />][
     88<meta name="twitter:description" content="(#ENV{desc}|couper{200,'…'}|attribut_html)" />][
     89<meta name="twitter:image" content="(#GET{logo}|url_absolue)" />]
    9090<meta name="twitter:dnt" content="on" />
    9191[<meta name="twitter:url" content="(#ENV{url}|url_absolue)" />]
Note: See TracChangeset for help on using the changeset viewer.