Changeset 110814 in spip-zone for _plugins_/metasplus


Ignore:
Timestamp:
Jun 22, 2018, 9:44:30 PM (4 weeks ago)
Author:
tcharlss@…
Message:

mime_content_type n'est apparemment pas toujours dispo en php 5.x (ou déprécié ?). On utilise finfo_file() à la place

Location:
_plugins_/metasplus/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/metasplus/trunk/inclure/metasplus/inc-dist.html

    r110506 r110814  
    129129        |extraire_attribut{src}
    130130        |supprimer_timestamp}
     131#SET{finfo,#EVAL{FILEINFO_MIME_TYPE}|finfo_open}
     132#SET{mimetype,#GET{finfo}|finfo_file{#GET{src}}}
    131133[<meta property="og:image" content="(#GET{src}|url_absolue)" />]
    132134[<meta property="og:image:width" content="(#GET{src}|largeur)" />]
    133135[<meta property="og:image:height" content="(#GET{src}|hauteur)" />]
    134 [<meta property="og:image:type" content="(#GET{src}|mime_content_type)" />]
     136[<meta property="og:image:type" content="(#GET{mimetype})" />]
    135137[<meta property="og:image:alt" content="(#VALEUR{alt}|couper{80}|attribut_html)" />]
    136138</BOUCLE_logos_opengraph>
  • _plugins_/metasplus/trunk/paquet.xml

    r110772 r110814  
    22        prefix="metasplus"
    33        categorie="divers"
    4         version="2.1.1"
     4        version="2.1.2"
    55        schema="1.0.0"
    66        etat="test"
Note: See TracChangeset for help on using the changeset viewer.