Changeset 59641 in spip-zone


Ignore:
Timestamp:
Mar 22, 2012, 3:44:18 PM (8 years ago)
Author:
daniel@…
Message:

On trouve l'extenson des docs wp selon les mime types de document de la base SPIP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/wp2spip/inc/inc-docs.html

    r59613 r59641  
    1 [(#REM) reste à faire: lister toutes les extentions selon spip_types_documents]
    21<BOUCLE_post_documents( wp_posts ){post_type=attachment}{post_status=inherit}{post_parent>0}>
    3 
    42<spip_documents>
    53<id_document>#ID</id_document>
    64<id_vignette>0</id_vignette>
    7 <extension>[(#POST_MIME_TYPE|replace{'image/jpeg' , 'jpg'}|replace{'image/gif' , 'gif'}|replace{'image/png' , 'png'}|replace{'application/pdf' , 'pdf'}|replace{'application/doc' , 'doc'})]</extension>
     5<BOUCLE_ext(TYPES_DOCUMENTS){mime_type=#POST_MIME_TYPE}>
     6<extension>#EXTENSION</extension>
     7</BOUCLE_ext>
     8<extension>INCONNUE</extension>
     9<//B_ext>
    810<titre>[(#POST_TITLE|texte_backend)]</titre>
    911<date>#POST_MODIFIED </date>
     
    1921<extrait>non</extrait>
    2022</spip_documents>
    21 
    2223</BOUCLE_post_documents>
    2324
Note: See TracChangeset for help on using the changeset viewer.