Changeset 90113 in spip-zone


Ignore:
Timestamp:
Jun 11, 2015, 7:46:30 PM (6 years ago)
Author:
real3t@…
Message:

Favicon et Apple-Touch-Icon à la mode 3.0 (cf [70268])

Au passage, la question "Regle htacces a ajouter à la main, à moins qu'on ne la mette par défaut ?" se pose toujours pour SPIP 3.1

Location:
_squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs/apple-touch-icon.png.html

    r67999 r90113  
    1 [(#HTTP_HEADER{Content-Type: image/png}
    2 )][(#REM) Icones pour iOS : http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html
    3 ][(#CHEMIN{images/apple-touch-icon.png}|sinon{[(#LOGO_SITE_SPIP_NORMAL
    4                 |image_passe_partout{114,114}
    5                 |image_format{png}
    6                 |image_recadre{114,114,center,transparent}
    7                 |extraire_attribut{src}
    8 )]}|sinon{#CHEMIN{images/apple-touch-icon-soyezcreateurs.png}}|spip_file_get_contents)]
     1#HTTP_HEADER{Content-Type: image/png}
     2#HTTP_HEADER{Content-Transfer-Encoding: binary}
     3<?php
     4/*
     5Icones pour iOS : http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html
     6Dans le .htaccess :
     7RewriteRule ^apple-touch-icon(-(\d+x\d+))?(-precomposed)?[.]png$      spip.php?page=apple-touch-icon.png&size=$2 [QSA,L]
     8*/
     9$file="[(#CHEMIN{images/apple-touch-icon[-(#ENV{size,''})].png}|sinon{[(#LOGO_SITE_SPIP_NORMAL
     10                |image_passe_partout{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)]}
     11                |image_recadre{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)],center,transparent}
     12                |image_aplatir{png,#ffffff}|extraire_attribut{src}
     13                )]}|sinon{#CHEMIN{images/apple-touch-icon-soyezcreateurs.png}})]";
     14if ($cl = filesize($file=preg_replace(',[?].*$,','',$file)))
     15        header("Content-Length: ". $cl);
     16
     17readfile($file);
  • _squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs/favicon.ico.html

    r35442 r90113  
    1 [(#HTTP_HEADER{Content-Type: image/x-icon}
    2 )][(#CHEMIN{images/favicon.ico}|sinon{[(#LOGO_SITE_SPIP_NORMAL
     1#HTTP_HEADER{Content-Type: image/x-icon}
     2#HTTP_HEADER{Content-Transfer-Encoding: binary}
     3<?php
     4$file="[(#CHEMIN{images/favicon.ico}|sinon{[(#LOGO_SITE_SPIP_NORMAL
    35                |image_passe_partout{32,32}
    46                |image_recadre{32,32,center}
    57                |image_format{ico}|extraire_attribut{src}
    6 )]}|sinon{#CHEMIN{images/soyezcreateurs.ico}}
    7 |spip_file_get_contents)]
     8)]}|sinon{#CHEMIN{images/soyezcreateurs.ico}})]";
     9if ($cl = filesize($file=preg_replace(',[?].*$,','',$file)))
     10        header("Content-Length: ". $cl);
     11
     12readfile($file);
Note: See TracChangeset for help on using the changeset viewer.