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