This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
forked from ppound/content_model_viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Viewer.tpl.php
37 lines (37 loc) · 1.97 KB
/
Viewer.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
<div id="content-model-viewer">
<h1><?php print $label; ?></h1>
<br/>
<!-- It would probably be best to push these into Drupal.settings...
Also; check_url is used to 'prepare a URL for use in an HTML attribute'...
seems unnecessary, as all the URLs are provided by Drupal's URL (and are relative, to boot)-->
<div style="display:none" id="properties">
<div id="pid"><?php print $pid; ?></div>
<div id="dsid"><?php print $dsid; ?></div>
<div id="width"><?php print $width; ?></div>
<div id="height"><?php print $height; ?></div>
<div id="view_function"><?php print $view_function; ?></div>
<div id="base_url"><?php print $base_url; ?></div>
<div id="object_overview_url"><?php print $paths['object']['overview']; ?></div>
<div id="object_properties_url"><?php print $paths['object']['properties']; ?></div>
<div id="object_datastreams_url"><?php print $paths['object']['datastreams']; ?></div>
<div id="object_members_url"><?php print $paths['object']['members']; ?></div>
<div id="object_purge_url"><?php print $paths['object']['purge']; ?></div>
<div id="datastream_add_url"><?php print $paths['datastream']['add']; ?></div>
<div id="datastream_purge_url"><?php print $paths['datastream']['purge']; ?></div>
<div id="datastream_download_url"><?php print $paths['datastream']['download']; ?></div>
<div id="datastream_view_url"><?php print $paths['datastream']['view']; ?></div>
<div id="datastream_properties_url"><?php print $paths['datastream']['properties']; ?></div>
</div>
<div style="display:none" id="datastream-download">
<form id="datastream-download-form" method="GET" action="">
<input type="submit">Download</input>
</form>
</div>
<div style="display:none" id="datastream-edit">
<form id="datastream-edit-form" method="POST" action="edit">
<input type="hidden" name="dsid"/>
<input type="hidden" name="action"/>
<input type="submit">Download</input>
</form>
</div>
</div>