balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

video.php (1450B)


      1 <script id="tmpl-rwmb-video-item" type="text/html">
      2 	<input type="hidden" name="{{{ data.controller.fieldName }}}" value="{{{ data.id }}}" class="rwmb-media-input">
      3 	<# if( _.indexOf( i18nRwmbVideo.extensions, data.url.substr( data.url.lastIndexOf('.') + 1 ) ) > -1 ) { #>
      4 		<video controls="controls" class="rwmb-video-element" preload="metadata"
      5 			<# if ( data.width ) { #>width="{{ data.width }}"<# } #>
      6 			<# if ( data.height ) { #>height="{{ data.height }}"<# } #>
      7 			<# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
      8 			<source type="{{ data.mime }}" src="{{ data.url }}"/>
      9 		</video>
     10 	<# } else { #>
     11 		<# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
     12 			<img src="{{ data.image.src }}" />
     13 		<# } else { #>
     14 			<img src="{{ data.icon }}" />
     15 		<# } #>
     16 	<# } #>
     17 	<div class="rwmb-media-info">
     18 		<a href="{{{ data.url }}}" class="rwmb-file-title" target="_blank">
     19 			<# if( data.title ) { #>
     20 				{{{ data.title }}}
     21 			<# } else { #>
     22 				{{{ i18nRwmbMedia.noTitle }}}
     23 			<# } #>
     24 		</a>
     25 		<div class="rwmb-file-name">{{{ data.filename }}}</div>
     26 		<div class="rwmb-media-actions">
     27 			<a class="rwmb-edit-media" title="{{{ i18nRwmbMedia.edit }}}" href="{{{ data.editLink }}}" target="_blank">
     28 				{{{ i18nRwmbMedia.edit }}}
     29 			</a>
     30 			<a href="#" class="rwmb-remove-media" title="{{{ i18nRwmbMedia.remove }}}">
     31 				{{{ i18nRwmbMedia.remove }}}
     32 			</a>
     33 		</div>
     34 	</div>
     35 </script>