forked from Strae/Drupal-ViewerJs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewerjs.tpl.php
More file actions
40 lines (37 loc) · 1.12 KB
/
viewerjs.tpl.php
File metadata and controls
40 lines (37 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @file
* Default theme implementation for viewerjs_field_formatter_view.
*
* Available variables:
* - $color : The class to display widget in built-in color.
* - $thumbnail : Thumbnail of file extension or image.
* - $icon : File type icon.
* - $filename : The filename or file description if exist.
* - $size : The size of the document.
* - $preview_link : Display link to preview document with ViewerJS.
*
* @see template_preprocess()
* @see template_preprocess_viewerjs()
* @see template_process()
*/
?>
<div class="viewerjs-field-item">
<div class="viewerjs-item-wrapper <?php print $color; ?>"
style="<?php ($thumbnail) ? print $thumbnail : print ''; ?>">
<header>
<div class="name">
<?php print $icon; ?><b><?php print $filename; ?></b>
</div>
<div class="size">
<ul class="actions">
<li><?php print $size; ?></li>
<li><?php print render($download_link); ?></li>
<?php if ($preview_link): ?>
<li><?php print render($preview_link); ?></li>
<?php endif; ?>
</ul>
</div>
</header>
</div>
</div>