Last change
on this file since 48810 was
48810,
checked in by yffic@…, 10 years ago
|
Oups, afficher la vignette et non la capture
|
-
Property svn:eol-style set to
native
|
File size:
824 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function thumbsites_affiche_gauche($flux) { |
---|
4 | if ((_request('exec') == 'sites')) { |
---|
5 | if ($id_syndic = intval(_request('id_syndic')) |
---|
6 | AND $row = sql_fetsel('url_site', 'spip_syndic', 'id_syndic='.$id_syndic) |
---|
7 | AND $url = $row['url_site']) { |
---|
8 | include_spip('inc/thumbsites_filtres'); |
---|
9 | if ($thumbshot_cache = thumbshot($url)) { |
---|
10 | // On affiche un bloc identique a celui du logo du site |
---|
11 | if ($taille = @getimagesize($thumbshot_cache)) |
---|
12 | $taille = _T('info_largeur_vignette', array('largeur_vignette' => $taille[0], 'hauteur_vignette' => $taille[1])); |
---|
13 | |
---|
14 | $flux["data"] .= recuperer_fond('prive/squelettes/contenu/thumbsites_affiche_boite',array( |
---|
15 | 'thumbshot_cache' => $thumbshot_cache, |
---|
16 | 'taille' => $taille, |
---|
17 | 'id_syndic' => $id_syndic, |
---|
18 | 'url' => $url |
---|
19 | )); |
---|
20 | } |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | return $flux; |
---|
25 | } |
---|
26 | |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.