spip_nursit/plugins-dist/dist/nursit/oembed/modeles/text_oembed.html

16 lines
936 B
HTML
Raw Normal View History

2023-06-01 15:30:12 +00:00
<BOUCLE_tous (DOCUMENTS types_documents) {id_document=#ID} {tout}
>[(#SET{html,[(#FICHIER|contenu_document{#ENV{charset,auto}})]})]
[(#SET{data,[(#ARRAY{
type,[(#ARRAY{image,photo,video,video,audio,rich,sound,rich,file,rich}|table_valeur{#MEDIA})],
html,[(#GET{html})],
width,[(#GET{html}|extraire_attribut{width})],
height,[(#GET{html}|extraire_attribut{height})],
title,[(#TITRE)],
media,[(#MEDIA)],
author_name,[(#CREDITS)],
thumbnail_url,[(#LOGO_DOCUMENT|extraire_attribut{src})]})]})
]
<figure class='spip_documents spip_documents_[(#ENV{align,center})] ressource oembed[ oembed_(#GET{data}|table_valeur{type})][ oembed_(#GET{data}|table_valeur{media}|replace{sound,audio})][ oembed_(#GET{data}|table_valeur{provider_name}|strtolower|replace{'\W','_'})]'>
[(#INCLURE{fond=modeles/oembed_[(#GET{data}|table_valeur{type,link})],data=#GET{data},url=#OEMBED,lien=#OEMBED,align,async,autoplay})]
</figure>
</BOUCLE_tous>