forked from Islandora/islandora_solution_pack_video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathislandora-video.tpl.php
44 lines (42 loc) · 1.46 KB
/
islandora-video.tpl.php
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
41
42
43
44
<?php
/**
* @file
* This is the template file for the object page for video.
*
* Available variables:
* - $islandora_content: The rendered output of the viewer configured for
* this module.
* - $islandora_dublin_core: The DC datastream object
* - $dc_array: The DC datastream object values as a sanitized array. This
* includes label, value and class name.
* - $islandora_object_label: The sanitized object label.
* - $parent_collections: An array containing parent collection(s) info.
* Includes collection object, label, url and rendered link.
*
* @see template_preprocess_islandora_video()
* @see theme_islandora_video()
*/
?>
<div class="islandora-video-object islandora" vocab="http://schema.org/" prefix="dcterms: http://purl.org/dc/terms/" typeof="VideoObject">
<div class="islandora-video-content-wrapper clearfix">
<?php if ($islandora_content): ?>
<div class="islandora-video-content">
<?php print $islandora_content; ?>
</div>
<?php endif; ?>
</div>
<div class="islandora-video-metadata">
<?php print $description; ?>
<?php if ($parent_collections): ?>
<div>
<h2><?php print t('In collections'); ?></h2>
<ul>
<?php foreach ($parent_collections as $collection): ?>
<li><?php print l($collection->label, "islandora/object/{$collection->id}"); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php print $metadata; ?>
</div>
</div>