Changeset 19293
- Timestamp:
- Dec 5, 2012, 11:03:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Media_Icon/template/media_icon.tpl
r19284 r19293 5 5 function media_icon_markup() { 6 6 //Youtube 7 $("img[media_icon^=youtube]").before('<span class="media_icon_youtube">'); 8 $("img[media_icon^=youtube]").after('</span>'); 7 $("img[media_icon^=youtube]").before('<span class="media_icon_youtube"></span>'); 9 8 //Vimeo 10 $("img[media_icon^=vimeo]").before('<span class="media_icon_vimeo">'); 11 $("img[media_icon^=vimeo]").after('</span>'); 9 $("img[media_icon^=vimeo]").before('<span class="media_icon_vimeo"></span>'); 12 10 //Dailymotion 13 $("img[media_icon^=dailymotion]").before('<span class="media_icon_dailymotion">'); 14 $("img[media_icon^=dailymotion]").after('</span>'); 11 $("img[media_icon^=dailymotion]").before('<span class="media_icon_dailymotion"></span>'); 15 12 //Wat 16 $("img[media_icon^=wat]").before('<span class="media_icon_wat">'); 17 $("img[media_icon^=wat]").after('</span>'); 13 $("img[media_icon^=wat]").before('<span class="media_icon_wat"></span>'); 18 14 //Wideo 19 $("img[media_icon^=wideo]").before('<span class="media_icon_wideo">'); 20 $("img[media_icon^=wideo]").after('</span>'); 15 $("img[media_icon^=wideo]").before('<span class="media_icon_wideo"></span>'); 21 16 //pdf 22 $("img[media_icon$=pdf]").before('<span class="media_icon_pdf">'); 23 $("img[media_icon$=pdf]").after('</span>'); 17 $("img[media_icon$=pdf]").before('<span class="media_icon_pdf"></span>'); 24 18 //doc, docx or odt 25 $("img[media_icon$=doc]").before('<span class="media_icon_document">'); 26 $("img[media_icon$=doc]").after('</span>'); 27 $("img[media_icon$=docx]").before('<span class="media_icon_document">'); 28 $("img[media_icon$=docx]").after('</span>'); 29 $("img[media_icon$=odt]").before('<span class="media_icon_document">'); 30 $("img[media_icon$=odt]").after('</span>'); 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>'); 31 22 //xls, xlsx or ods 32 $("img[media_icon$=xls]").before('<span class="media_icon_spreadsheet">'); 33 $("img[media_icon$=xls]").after('</span>'); 34 $("img[media_icon$=xlsx]").before('<span class="media_icon_spreadsheet">'); 35 $("img[media_icon$=xlsx]").after('</span>'); 36 $("img[media_icon$=ods]").before('<span class="media_icon_spreadsheet">'); 37 $("img[media_icon$=ods]").after('</span>'); 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>'); 38 26 //ppt, pptx or odp 39 $("img[media_icon$=ppt]").before('<span class="media_icon_presentation">'); 40 $("img[media_icon$=ppt]").after('</span>'); 41 $("img[media_icon$=pptx]").before('<span class="media_icon_presentation">'); 42 $("img[media_icon$=pptx]").after('</span>'); 43 $("img[media_icon$=odp]").before('<span class="media_icon_presentation">'); 44 $("img[media_icon$=odp]").after('</span>'); 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>'); 45 30 } 46 47 //When the document has finiched to load48 jQuery(document).ready(function(){49 media_icon_markup();50 });51 31 52 32 //Allow Media Icon to work with RV Thumb Scroller … … 54 34 media_icon_markup(); 55 35 }); 36 37 //When the document has finiched to load 38 jQuery(document).ready(function(){ 39 media_icon_markup(); 40 }); 56 41 </script> 57 42 {/literal}
Note: See TracChangeset
for help on using the changeset viewer.