Skip to content
Extraits de code Groupes Projets
Valider 64856836 rédigé par real3t@gmail.com's avatar real3t@gmail.com
Parcourir les fichiers

Pour FaceBook, il faut que les image opengraph fassent minimum 200×200

parent eb7f8b2a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -14,11 +14,11 @@ version="1.0"[ encoding="(#CHARSET)"]?>
<generator>SPIP - www.spip.net</generator>
[ <image>
<title>[(#NOM_SITE_SPIP|texte_backend)]</title>
<url>(#LOGO_SITE_SPIP|extraire_attribut{src}|url_absolue|texte_backend)</url>
<title>[(#NOM_SITE_SPIP|supprimer_tags|texte_backend)]</title>
<url>(#LOGO_SITE_SPIP|image_reduire{144,400}|extraire_attribut{src}|url_absolue|texte_backend)</url>
<link>#URL_SITE_SPIP/</link>
[<height>(#LOGO_SITE_SPIP|hauteur)</height>]
[<width>(#LOGO_SITE_SPIP|largeur)</width>]
[<height>(#LOGO_SITE_SPIP|image_reduire{144,400}|hauteur)</height>]
[<width>(#LOGO_SITE_SPIP|image_reduire{144,400}|largeur)</width>]
</image>
]
......@@ -30,6 +30,9 @@ version="1.0"[ encoding="(#CHARSET)"]?>
<BOUCLE_agenda(RUBRIQUES){titre_mot=Agenda}{racine}>
[(#INCLURE{fond=noisettes/rss/backendagenda_detail,id_rubrique})]
</BOUCLE_agenda>
[(#REM) Non, alors on affiche tous les vnements du site ]
[(#INCLURE{fond=noisettes/rss/backendagenda_detail})]
<//B_agenda>
<//B_SyndicationRubriqueAgenda>
</channel>
......
......@@ -6,7 +6,7 @@
<meta property="og:title" content="[(#ENV{title}|sinon{[(#NOM_SITE_SPIP|textebrut|attribut_html)]})]" />
<meta property="og:type" content="article" />
<meta property="og:url" content="[(#SELF|url_absolue)]" />
<BOUCLE_LogoArticle(ARTICLES){id_article}{logo}>[<meta property="og:image" content="(#LOGO_ARTICLE_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]</BOUCLE_LogoArticle><BOUCLE_LogoSite(SITES){id_syndic}{logo}>[<meta property="og:image" content="(#LOGO_SITE_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]</BOUCLE_LogoSite><BOUCLE_LogoRubrique(RUBRIQUES){id_rubrique}{logo}>[<meta property="og:image" content="(#LOGO_RUBRIQUE_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]</BOUCLE_LogoRubrique>[<meta property="og:image" content="(#LOGO_SITE_SPIP_NORMAL|extraire_attribut{src}|url_absolue)" />]<//B_LogoRubrique><//B_LogoSite><//B_LogoArticle>
<BOUCLE_LogoArticle(ARTICLES){id_article}{logo}>[<meta property="og:image" content="(#LOGO_ARTICLE_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]</BOUCLE_LogoArticle><BOUCLE_LogoSite(SITES){id_syndic}{logo}>[<meta property="og:image" content="(#LOGO_SITE_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]</BOUCLE_LogoSite><BOUCLE_LogoRubrique(RUBRIQUES){id_rubrique}{logo}>[<meta property="og:image" content="(#LOGO_RUBRIQUE_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]</BOUCLE_LogoRubrique>[<meta property="og:image" content="(#LOGO_SITE_SPIP_NORMAL|image_focus{200,200}|extraire_attribut{src}|url_absolue)" />]<//B_LogoRubrique><//B_LogoSite><//B_LogoArticle>
<meta property="og:site_name" content="[(#NOM_SITE_SPIP|textebrut)]" />
[<meta property="og:description" content="(#ENV{metadescription,[(#DESCRIPTIF_SITE_SPIP|supprimer_tags|attribut_html)]})" />]
<meta property="og:locale" content="[(#LANG|strtolower)]_[(#LANG|strtoupper)]" />
......
<BOUCLE_agenda(RUBRIQUES){id_rubrique}>
<BOUCLE_agenda(RUBRIQUES){id_rubrique?}{racine}>
<BOUCLE_AgendaDerniersAjouts(EVENEMENTS){branche}{par date_debut}{0,10}{date_fin>=(#ENV{date}|affdate{'Y-m-d'})}>
<BOUCLE_DernierEvenementArticle(ARTICLES){id_article}>
......@@ -10,7 +10,7 @@
<dc:format>text/html</dc:format>
[<dc:language>(#LANG)</dc:language>]
[<dc:creator>(#LESAUTEURS|supprimer_tags|texte_backend)</dc:creator>]
[<enclosure url="(#LOGO_ARTICLE|extraire_attribut{src}|url_absolue|texte_backend)" />]
[<enclosure url="(#LOGO_ARTICLE|extraire_attribut{src}|url_absolue|texte_backend)"[ length="(#TAILLE)"][ type="(#MIME_TYPE)"] />]
[<dc:location>(#_AgendaDerniersAjouts:LIEU|texte_backend)</dc:location>]
[<dc:subject>(#_AgendaDerniersAjouts:DESCRIPTIF|texte_backend)</dc:subject>]
<dc:date_debut>[(#DATE_DEBUT|jour)/][(#DATE_DEBUT|mois)/][(#DATE_DEBUT|annee)]</dc:date_debut>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter