Revision 656,
1.2 KB
checked in by hadrien, 14 years ago
(diff) |
Ajout du plugin Pixearch
|
Line | |
---|
1 | <div id="coverflow"> |
---|
2 | <div id="__cvfl-coverflow"> |
---|
3 | <div id="__cvfl-coverflow-wrapper"></div> |
---|
4 | <div id="__cvfl-coverflow-label"></div> |
---|
5 | </div> |
---|
6 | <?php |
---|
7 | // Pagination |
---|
8 | $pager->base_url = 'plugin.php?p=pixearch&popup=1' . |
---|
9 | '&source=' . $source . '&query=' . $query . '&page=%s&display=coverflow'; |
---|
10 | echo '<p class="pagin" style="clear:both;">' . __('Page(s)') . ' : ' . |
---|
11 | $pager->getLinks() . '</p>'; |
---|
12 | ?> |
---|
13 | </div> |
---|
14 | <script type="text/javascript" charset="utf-8"> |
---|
15 | //<![CDATA[ |
---|
16 | Coverflow.init( |
---|
17 | [ |
---|
18 | <?php |
---|
19 | foreach ($pictures as $k => $p) |
---|
20 | { |
---|
21 | $insertUri = 'plugin.php?p=pixearch&popup=1' . |
---|
22 | '&picture_id=' . $p->id . '&source=' . |
---|
23 | $source . '&query=' . $query . '&page=' . $page; |
---|
24 | ?> |
---|
25 | { |
---|
26 | src: '<?php echo $p->sizes[$p->coverflowSize]; ?>', |
---|
27 | label: { |
---|
28 | title: "<?php echo htmlentities($p->title); ?>", |
---|
29 | author: "<?php echo htmlentities($p->ownerName); ?>" |
---|
30 | }, |
---|
31 | alt: '<?php echo $insertUri; ?>' |
---|
32 | }<?php |
---|
33 | if (isset($pictures[$k+1])) |
---|
34 | { |
---|
35 | echo ', |
---|
36 | '; |
---|
37 | } |
---|
38 | ?> |
---|
39 | <?php |
---|
40 | } |
---|
41 | ?> |
---|
42 | ], |
---|
43 | { |
---|
44 | createLabel: function(item) |
---|
45 | { |
---|
46 | return item.label.title +'<br>'+ item.label.author; |
---|
47 | }, |
---|
48 | |
---|
49 | onSelectCenter: function(item, id) |
---|
50 | { |
---|
51 | window.location = item.alt; |
---|
52 | }, |
---|
53 | bgColor: 'black' |
---|
54 | }); |
---|
55 | //]]> |
---|
56 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.