From: <cra...@us...> - 2007-06-04 00:08:40
|
Revision: 179 http://svn.sourceforge.net/easybox-mod/?rev=179&view=rev Author: craftsnux Date: 2007-06-03 17:08:34 -0700 (Sun, 03 Jun 2007) Log Message: ----------- Utilisation de img2fbx pour afficher les jaquettes. suite... Modified Paths: -------------- trunk/module/mp3/lecteuraudio.php trunk/module/mp3/playlist_audio.tpl trunk/skin/ETI/audio.tpl trunk/skin/ETI/interface.tpl trunk/skin/ETI/lecture_now.tpl trunk/skin/mediacenter/audio.tpl Modified: trunk/module/mp3/lecteuraudio.php =================================================================== --- trunk/module/mp3/lecteuraudio.php 2007-06-03 23:42:39 UTC (rev 178) +++ trunk/module/mp3/lecteuraudio.php 2007-06-04 00:08:34 UTC (rev 179) @@ -14,7 +14,7 @@ } if (count($fichierimg)=="0"){ - if($Info!='' && $pagerecherche = file_get_contents('http://images.google.fr/images?q='.urlencode($Info))){ + if($Info!='' && $pagerecherche = file_get_contents('http://images.google.fr/images?q='.urlencode(trim($Info)))){ $ereg = '\/images\?q=(.{1,25}):\/\/(.{1,75}) width'; $ereg = 'dyn.Img\("(.{0,200})","","(.{0,20})","(.{0,90})","(.{0,4})","(.{0,4})","(.{0,110})","","","(.{5,28})","jpg","(.{5,150})","","","(.{25,30})"\);'; @@ -333,8 +333,12 @@ $smarty->assign('info',$info); } - -$jaquette=jaquette(urlencode(dirname($VLC['url_current'])),$VLC['type_current'],urlencode(trim($search))); +if ($VLC['type_current']=='webradio'){ +$jaquette=jaquette(urlencode(dirname($VLC['url_current'])),$VLC['type_current'],urlencode(trim(get_variable('lastwebradio')))); +} +else{ +$jaquette=jaquette(urlencode(dirname($VLC['url_current'])),$VLC['type_current'],urlencode(trim($search))); +} $smarty->assign('jaquette',$jaquette); if($mode=='pla'){ Modified: trunk/module/mp3/playlist_audio.tpl =================================================================== --- trunk/module/mp3/playlist_audio.tpl 2007-06-03 23:42:39 UTC (rev 178) +++ trunk/module/mp3/playlist_audio.tpl 2007-06-04 00:08:34 UTC (rev 179) @@ -1,7 +1,7 @@ {if $VLC.type_current=='webradio' AND $VLC.etat!='stop'} - <center><font size=3><u>Vous lisez actuellement la station de radio</font><br><font size=4>{$lastwebradio}</u></font><br><img src="jaquette.php?directory=&info={$lastwebradio|trim|urlencode}&w=400&h=250"></center> + <center><font size=3><u>Vous lisez actuellement la station de radio</font><br><font size=4>{$lastwebradio}</u></font><br><img src="{$IMG2FBX}?width=250&height=400&img={$jaquette}"></center> {elseif $VLC.db_current_type=='podcast' AND $VLC.etat!='stop'} <font size=3><center><u>Podcast en cours de lecture</u></font></center><br> <br> Modified: trunk/skin/ETI/audio.tpl =================================================================== --- trunk/skin/ETI/audio.tpl 2007-06-03 23:42:39 UTC (rev 178) +++ trunk/skin/ETI/audio.tpl 2007-06-04 00:08:34 UTC (rev 179) @@ -121,7 +121,7 @@ {if $VLC.etat!='stop'} <td bgcolor="{#COULEUR_FOND#}" width="70" height="73"> - <img width="80" height="80" src="jaquette.php?directory={$VLC.url_current|dirname|urlencode}&lec={$VLC.type_current}&info={$search|trim|urlencode}"> + <img width="80" height="80" src="{$IMG2FBX}?local=1&width=80&height=80&img={$jaquette}"> </td> {/if} Modified: trunk/skin/ETI/interface.tpl =================================================================== --- trunk/skin/ETI/interface.tpl 2007-06-03 23:42:39 UTC (rev 178) +++ trunk/skin/ETI/interface.tpl 2007-06-04 00:08:34 UTC (rev 179) @@ -85,7 +85,7 @@ <tr> <td width="100" height="94" align="center" valign="middle"> {if $VLC.etat!='stop' AND $smarty.server.SCRIPT_NAME=="/module/mp3/lecteuraudio.php"} - <img width="70" height="70" src="jaquette.php?directory={$VLC.url_current|dirname|urlencode}&lec={$lec}&info={$search|trim|urlencode}"> + <img width="70" height="70" src="{$IMG2FBX}?local=1&width=70&height=70&img={$jaquette}"> {else} <img src="{$RACINE_REP}{$SKIN_REP}images/icons/{$LOGO_IMAGES}" width="70" height="70" border="0" /> {/if} Modified: trunk/skin/ETI/lecture_now.tpl =================================================================== --- trunk/skin/ETI/lecture_now.tpl 2007-06-03 23:42:39 UTC (rev 178) +++ trunk/skin/ETI/lecture_now.tpl 2007-06-04 00:08:34 UTC (rev 179) @@ -1,6 +1,6 @@ <table width="188" height="31" border="0" cellpadding="0" cellspacing="0"> <tr> - <td rowspan="4"><img width="31" height="31" src="jaquette.php?directory={$VLC.url_current|dirname|urlencode}&lec={$lec}&info={$search|trim|urlencode}"></td> + <td rowspan="4"><img width="31" height="31" src="{$IMG2FBX}?local=1&width=31&height=31&img={$jaquette}"></td> <td> {if $informations[0].1} <font size="1">{$informations[0].1|truncate:45:''}</font> Modified: trunk/skin/mediacenter/audio.tpl =================================================================== --- trunk/skin/mediacenter/audio.tpl 2007-06-03 23:42:39 UTC (rev 178) +++ trunk/skin/mediacenter/audio.tpl 2007-06-04 00:08:34 UTC (rev 179) @@ -121,7 +121,7 @@ {if $VLC.etat!='stop'} <td bgcolor="{#COULEUR_FOND#}" width="70" height="73"> - <img width="80" height="80" src="jaquette.php?directory={$VLC.url_current|dirname|urlencode}&lec={$VLC.type_current}&info={$search|trim|urlencode}"> + <img width="80" height="80" src="{$IMG2FBX}?local=1&width=80&height=80&img={$jaquette}"> </td> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |