Changeset 107719 in spip-zone
- Timestamp:
- Nov 23, 2017, 2:43:42 PM (3 years ago)
- Location:
- _plugins_/metaplus/trunk/inclure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/metaplus/trunk/inclure/metasplus-article.html
r103057 r107719 10 10 1. D'abord rassembler les informations et les formater 11 11 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) 21 21 [(#SET{logo, #LOGO_ARTICLE})] 22 22 ] … … 26 26 [(#SET{logo,[(#FICHIER)]})] 27 27 </BOUCLE_illus> 28 29 30 28 [(#REM) 31 29 32 30 2. Passer les données au modèle général 33 31 34 ] 35 <INCLURE{fond=inclure/metasplus, 32 ]<INCLURE{fond=inclure/metasplus, 36 33 titre=#GET{titre}, 37 34 lang=#GET{lang}, -
_plugins_/metaplus/trunk/inclure/metasplus.html
r107704 r107719 45 45 <meta name="DC.Format" content="text/html" /> 46 46 <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)" />] 54 54 ][(#REM) 55 55 … … 60 60 [(#ENV{territoire}|oui) [(#SET{lang_territoire,[(#ENV{lang})]_[(#ENV{territoire}|strtoupper)]})] 61 61 ][(#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)]})]] 64 64 ]<!-- 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)" />] 67 67 <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) 76 76 77 77 Prise en charge du plugin facebook : s'il est présent, on envoie la méta fb:app_id … … 85 85 <!-- Twitter Card --> 86 86 <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)" />] 90 90 <meta name="twitter:dnt" content="on" /> 91 91 [<meta name="twitter:url" content="(#ENV{url}|url_absolue)" />]
Note: See TracChangeset
for help on using the changeset viewer.