PluginProbe
StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more / 3.6.0
StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more v3.6.0
3.7.2 3.7.1 3.7.0 3.6.0 3.6.1 3.5.2 trunk 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6.0 2.6.1 All 73 releases
stockpack / templates / attachment.php

attachment.php in StockPack – Stock photos and AI images from Unsplash, Adobe Stock, Freepik and more 3.6.0, at templates/attachment.php

45 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <script type="text/html" id="tmpl-stockpack-attachment">
2 <div
3 class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }} <# if ( data.quickdownloadstarted ) { #> quick-download-started <# } #>">
4 <div class="thumbnail">
5 <# if ( data.extra ) { #>
6 <# if ( data.extra.labels ) { #>
7 <div class="labels">
8 <# _.each(data.extra.labels, function(label,key){ #>
9 <span class="label {{label.text}}" title="{{label.title}}">{{label.text}}</span>
10 <# }); #>
11 </div>
12 <# } #>
13 <# } #>
14 <# if ( data.uploading ) { #>
15 <div class="media-progress-bar">
16 <div style="width: {{ data.percent }}%"></div>
17 </div>
18 <# } else if ( 'image' === data.type && data.sizes ) { #>
19 <div class="centered">
20 <img src="{{ data.size.url }}" draggable="false" alt=""/>
21 </div>
22 <# } else { #>
23 <div class="centered">
24 <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
25 <img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt=""/>
26 <# } else if ( data.sizes && data.sizes.medium ) { #>
27 <img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt=""/>
28 <# } else { #>
29 <img src="{{ data.icon }}" class="icon" draggable="false" alt=""/>
30 <# } #>
31 </div>
32 <div class="filename">
33 <div>{{ data.filename }}</div>
34 </div>
35 <# } #>
36 </div>
37 </div>
38 <# if ( data.buttons.check ) { #>
39 <button type="button" class="check" tabindex="-1"><span class="media-modal-icon"></span><span
40 class="screen-reader-text"><?php _e( 'Deselect', 'stockpack' ); ?></span></button>
41 <button type="button" class="download" tabindex="-1"><span class="
42 dashicons-download"></span><span class="screen-reader-text"><?php _e( 'Download', 'stockpack' ); ?></span></button>
43 <# } #>
44 </script>
45