source: extensions/Media_Icon/template/media_icon.tpl @ 19293

Revision 19293, 1.7 KB checked in by julien1311, 7 years ago (diff)

fix IE7/IE8

  • Property svn:eol-style set to LF
Line 
1{html_head}
2{literal}
3<script type="text/javascript">
4        //Add Media Icon markups to thumbnails
5        function media_icon_markup() {
6                //Youtube
7                $("img[media_icon^=youtube]").before('<span class="media_icon_youtube"></span>');
8                //Vimeo
9                $("img[media_icon^=vimeo]").before('<span class="media_icon_vimeo"></span>');
10                //Dailymotion
11                $("img[media_icon^=dailymotion]").before('<span class="media_icon_dailymotion"></span>');
12                //Wat
13                $("img[media_icon^=wat]").before('<span class="media_icon_wat"></span>');
14                //Wideo
15                $("img[media_icon^=wideo]").before('<span class="media_icon_wideo"></span>');
16                //pdf
17                $("img[media_icon$=pdf]").before('<span class="media_icon_pdf"></span>');
18                //doc, docx or odt
19                $("img[media_icon$=doc]").before('<span class="media_icon_document"></span>');
20                $("img[media_icon$=docx]").before('<span class="media_icon_document"></span>');
21                $("img[media_icon$=odt]").before('<span class="media_icon_document"></span>');
22                //xls, xlsx or ods
23                $("img[media_icon$=xls]").before('<span class="media_icon_spreadsheet"></span>');
24                $("img[media_icon$=xlsx]").before('<span class="media_icon_spreadsheet"></span>');
25                $("img[media_icon$=ods]").before('<span class="media_icon_spreadsheet"></span>');
26                //ppt, pptx or odp
27                $("img[media_icon$=ppt]").before('<span class="media_icon_presentation"></span>');
28                $("img[media_icon$=pptx]").before('<span class="media_icon_presentation"></span>');
29                $("img[media_icon$=odp]").before('<span class="media_icon_presentation"></span>');
30        }
31 
32        //Allow Media Icon to work with RV Thumb Scroller
33        jQuery(window).bind("RVTS_loaded", function(){
34                media_icon_markup();
35        });
36
37        //When the document has finiched to load
38        jQuery(document).ready(function(){
39                media_icon_markup();
40        });
41</script>
42{/literal}
43{/html_head}
Note: See TracBrowser for help on using the repository browser.