Dotclear


Ignore:
Timestamp:
02/11/16 15:35:39 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with sort of "un-attached" media → allows new features as "featured media" plugin. Video and Audio HTML5 element are now used (if possible) rather than Flash object for attachments.

Location:
inc/public/default-templates
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • inc/public/default-templates/currywurst/_entry-content.html

    r2938 r3167  
    4646     </tpl:AttachmentsHeader> 
    4747                    <li class="post-attachments-item {{tpl:AttachmentType}}"> 
    48                          <tpl:AttachmentIf is_mp3="1"> 
    49                               {{tpl:include src="_mp3_player.html"}} - 
     48                         <tpl:AttachmentIf is_audio="1"> 
     49                              {{tpl:include src="_audio_player.html"}} 
    5050                         </tpl:AttachmentIf> 
    51                          <tpl:AttachmentIf is_flv="1"> 
    52                               {{tpl:include src="_flv_player.html"}} 
     51                         <tpl:AttachmentIf is_video="1"> 
     52                              <tpl:AttachmentIf is_flv="0"> 
     53                                   {{tpl:include src="_video_player.html"}} 
     54                              {{tpl:else}} 
     55                                   {{tpl:include src="_flv_player.html"}} 
     56                              </tpl:AttachmentIf> 
    5357                         </tpl:AttachmentIf> 
    54                          <tpl:AttachmentIf is_flv="0"> 
     58                         <tpl:AttachmentIf is_video="0" is_audio="0"> 
    5559                              <a href="{{tpl:AttachmentURL}}" 
    5660                               title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a> 
  • inc/public/default-templates/mustek/post.html

    r3017 r3167  
    100100          </tpl:AttachmentsHeader> 
    101101               <li class="{{tpl:AttachmentType}}"> 
    102                     <tpl:AttachmentIf is_mp3="1"> 
    103                          {{tpl:include src="_mp3_player.html"}} - 
     102                    <tpl:AttachmentIf is_audio="1"> 
     103                         {{tpl:include src="_audio_player.html"}} 
    104104                    </tpl:AttachmentIf> 
    105                     <tpl:AttachmentIf is_flv="1"> 
    106                 {{tpl:include src="_flv_player.html"}} 
    107            </tpl:AttachmentIf> 
    108            <tpl:AttachmentIf is_flv="0"> 
     105                    <tpl:AttachmentIf is_video="1"> 
     106                         <tpl:AttachmentIf is_flv="0"> 
     107                              {{tpl:include src="_video_player.html"}} 
     108                         {{tpl:else}} 
     109                              {{tpl:include src="_flv_player.html"}} 
     110                         </tpl:AttachmentIf> 
     111                    </tpl:AttachmentIf> 
     112           <tpl:AttachmentIf is_audio="0" is_video="0"> 
    109113               <a href="{{tpl:AttachmentURL}}" 
    110114          title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map