-
Notifications
You must be signed in to change notification settings - Fork 1
/
node-dvw_dataset.tpl.php
67 lines (53 loc) · 2.02 KB
/
node-dvw_dataset.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
drupal_add_js(drupal_get_path('module', 'datavizwiz') . '/scripts/datavizwiz.js');
drupal_add_js(drupal_get_path('module', 'datavizwiz') . '/libraries/excanvas.compiled.js');
drupal_add_css(drupal_get_path('module', 'datavizwiz') . '/datavizwiz.css');
if (isset($_GET['detail']) && strlen($_GET['detail'])) {
$detail_page = TRUE;
} else {
$detail_page = FALSE;
}
?>
<div id="node-<?php print $node->nid; ?>" class="datavizwiz node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">
<?php print $picture ?>
<?php if (!$page): ?>
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>
<?php if (!$teaser) { // Don't display the data visualization if a teaser view. '?>
<?php if (!$detail_page) { ?>
<div class="content">
<?php print $content ?>
</div>
<?php } ?>
<div class="dvwArea" id="dvw-datadisplay">
<?php if ($detail_page) { ?>
<div class="dvwArea" id="dvw-detail">
<?php print theme('datavizwiz_detaildisplay', $node); ?>
</div>
<?php } else { ?>
<div class="dvwArea" id="dvw-summarypanes">
<?php print theme('datavizwiz_summarypanes', $node); ?>
</div>
<div class="dvwArea" id="dvw-datafilters">
<?php print theme('datavizwiz_datafilters', $node); ?>
<div style="clear: both" />
</div>
<div class="dvwArea" id="dvw-opendatalinks">
<?php print theme('datavizwiz_opendatalinks', $node); ?>
</div>
<div class="dvwArea" id="dvw-datatable">
<?php print theme('datavizwiz_datatable', $node); ?>
</div>
<?php } // detail ?>
</div>
<?php } // teaser ?>
<?php print $links; ?>
<div class="meta">
<?php if ($submitted): ?>
<p><span class="submitted">Last updated: <?php print $submitted ?></span></p>
<?php endif; ?>
<?php if ($terms): ?>
<div class="terms terms-inline"><?php print $terms ?></div>
<?php endif;?>
</div>
</div>