projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
video thumbnails are displayed as slideshow when mouse is over; video widget bugs...
[living-lab-site.git]
/
application
/
views
/
catalog
/
search_results_view.php
diff --git
a/application/views/catalog/search_results_view.php
b/application/views/catalog/search_results_view.php
index
30b7aac
..
b300d7d
100644
(file)
--- a/
application/views/catalog/search_results_view.php
+++ b/
application/views/catalog/search_results_view.php
@@
-7,12
+7,14
@@
<?php echo $pagination ?>
<?php foreach($videos as $video):
<?php echo $pagination ?>
<?php foreach($videos as $video):
- $
thumb_src
= $video['thumbs'][ $video['default_thumb'] ];
+ $
default_thumb
= $video['thumbs'][ $video['default_thumb'] ];
?>
<div class="video-icon">
<div class="video-thumb ui-widget-content ui-corner-all">
<a href="<?php echo $video['video_url'] ?>">
?>
<div class="video-icon">
<div class="video-thumb ui-widget-content ui-corner-all">
<a href="<?php echo $video['video_url'] ?>">
- <img src="<?php echo $thumb_src ?>" />
+ <img class="video-thumb-img"
+ src="<?php echo $default_thumb ?>"
+ data-src='<?php echo $video['json_thumbs'] ?>' />
<div class="video-duration"><?php echo $video['duration'] ?></div>
</a>
</div>
<div class="video-duration"><?php echo $video['duration'] ?></div>
</a>
</div>
@@
-37,4
+39,11
@@
<div style="clear: both"></div>
<div style="clear: both"></div>
-</div>
\ No newline at end of file
+</div>
+
+<script type="text/javascript">
+ $(function() {
+ $('.video-thumb-img').thumbs();
+ });
+
+</script>
\ No newline at end of file