Changeset 90113 in spip-zone
- Timestamp:
- Jun 11, 2015, 7:46:30 PM (6 years ago)
- 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 /* 5 Icones pour iOS : http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html 6 Dans le .htaccess : 7 RewriteRule ^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}})]"; 14 if ($cl = filesize($file=preg_replace(',[?].*$,','',$file))) 15 header("Content-Length: ". $cl); 16 17 readfile($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 3 5 |image_passe_partout{32,32} 4 6 |image_recadre{32,32,center} 5 7 |image_format{ico}|extraire_attribut{src} 6 )]}|sinon{#CHEMIN{images/soyezcreateurs.ico}} 7 |spip_file_get_contents)] 8 )]}|sinon{#CHEMIN{images/soyezcreateurs.ico}})]"; 9 if ($cl = filesize($file=preg_replace(',[?].*$,','',$file))) 10 header("Content-Length: ". $cl); 11 12 readfile($file);
Note: See TracChangeset
for help on using the changeset viewer.