Changeset 3958:5e250cd51362 for plugins
- Timestamp:
- 02/20/19 14:35:05 (7 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/attachments/_public.php
r3874 r3958 120 120 121 121 if (isset($attr['is_video'])) { 122 // Since 2.15 .flv media are no more considered as video (Flash is obsolete) 122 123 $sign = (boolean) $attr['is_video'] ? '==' : '!='; 123 $if[] = '$attach_f->type_prefix ' . $sign . ' "video"'; 124 $test = '$attach_f->type_prefix ' . $sign . ' "video"'; 125 if ($sign == '==') { 126 $test .= ' && $attach_f->type != "video/x-flv"'; 127 } else { 128 $test .= ' || $attach_f->type == "video/x-flv"'; 129 } 130 $if[] = $test; 124 131 } 125 132 -
plugins/pages/default-templates/mustek/page.html
r3422 r3958 40 40 </tpl:AttachmentIf> 41 41 <tpl:AttachmentIf is_video="1"> 42 <tpl:AttachmentIf is_flv="0"> 43 {{tpl:include src="_video_player.html"}} 44 {{tpl:else}} 45 {{tpl:include src="_flv_player.html"}} 46 </tpl:AttachmentIf> 42 {{tpl:include src="_video_player.html"}} 47 43 </tpl:AttachmentIf> 48 44 <tpl:AttachmentIf is_audio="0" is_video="0">
Note: See TracChangeset
for help on using the changeset viewer.