Browse Source

jsonp aussi dans les modèles de sortie oembed

svn/attic/oembed/119131
bmarne@gmail.com 8 years ago
parent
commit
fd674e135f
  1. 5
      oembed/output/modeles/article-photo.json.html
  2. 5
      oembed/output/modeles/article.json.html
  3. 2
      paquet.xml

5
oembed/output/modeles/article-photo.json.html

@ -1,4 +1,4 @@
<BOUCLE_doc(DOCUMENTS){id_article}{extension IN png,jpg,gif}{0,1}>[(#ARRAY{
<BOUCLE_doc(DOCUMENTS){id_article}{extension IN png,jpg,gif}{0,1}>[[(#ENV{callback_jsonp})\(](#ARRAY{
version,1.0,
type,photo,
provider_name,[(#NOM_SITE_SPIP)],
@ -8,4 +8,5 @@ author_name,[(#CREDITS)],
width,[(#ENV{maxwidth,#LARGEUR})],
height,[(#ENV{maxheight,#HAUTEUR})],
url,[(#URL_DOCUMENT|image_reduire{#ENV{maxwidth,0},#ENV{maxheight,0}}|extraire_attribut{src}|sinon{#URL_DOCUMENT}|url_absolue)]
}|json_encode_html)]</BOUCLE_doc>
}|json_encode_html)[\)(#ENV{callback_jsonp}|oui)]]</BOUCLE_doc>
#FILTRE{trim}

5
oembed/output/modeles/article.json.html

@ -1,4 +1,4 @@
<BOUCLE_art(ARTICLES){id_article}>[(#ARRAY{
<BOUCLE_art(ARTICLES){id_article}>[[(#ENV{callback_jsonp})\(](#ARRAY{
version,1.0,
type,rich,
provider_name,[(#NOM_SITE_SPIP)],
@ -9,4 +9,5 @@ width,[(#ENV{maxwidth,#CONFIG{oembed/maxwidth,480}})],
height,[(#ENV{maxheight,#CONFIG{oembed/maxheight,295}})],
url,[(#URL_ARTICLE|url_absolue)],
html,[<h4 class='title'><a href='[(#URL_ARTICLE|url_absolue)]'>(#TITRE)</a></h4>[<blockquote class='spip'>(#INTRODUCTION)</blockquote>]]
}|json_encode_html)]</BOUCLE_art>
}|json_encode_html)[\)(#ENV{callback_jsonp}|oui)]]</BOUCLE_art>
#FILTRE{trim}

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="oembed"
categorie="multimedia"
version="1.0.10"
version="1.0.11"
etat="test"
compatibilite="[3.0.0;3.0.*]"
logo="prive/themes/spip/images/oembed-32.png"

Loading…
Cancel
Save