This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
node--elections.tpl.php
62 lines (59 loc) · 1.76 KB
/
node--elections.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
<?php
/*
*
* Project: PiratePartyUK Drupal Theme (NWP 2014)
*
*
* Authors: Andy Halsall <[email protected]>
* Peter Descard
* Pirate Party UK
* Date: 2014-02-24
* Version: 0.9 (Obsolete)
*
* Description: Elections area node template for the Pirate Party Drupal Theme
* TODO: Check that we actually need this template now, - I think it may be obsolete
*
*
*
* Acknowledgements:
*
* Based on and developed from Piratenkleider - Wolfgang Wiese (xwolf)
* the current Piratenpartei wordpress theme (http://www.piratenkleider.de/)
*
*/
?>
<div id="node-<?php print $node->nid; ?>" class="post <?php print $classes; ?>"<?php print $attributes; ?>>
<?php print render($title_prefix); ?>
<?php if (!$page): ?>
<div class="post-title">
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a>
</h2>
</div>
<?php endif; ?>
<?php print render($title_suffix); ?>
<div id="marker">
<div class="post-info">
<div class="commentbubble">
<a href="<?php print $node_url; ?>#comments">
<?php print $comment_count . '<span class="skip"> ' . format_plural($comment_count, 'comment', 'comments') . '</span>'; ?>
</a>
</div>
</div>
</div>
<div class="post-entry"<?php print $content_attributes; ?>>
<?php
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
print render($content);
?>
</div>
<div class="post-meta">
<?php if (!empty($content['links'])): ?>
<div class="links"><?php print render($content['links']); ?></div>
<?php endif; ?>
</div>
<div class="post-comments" id="comments">
<?php print render($content['comments']); ?>
</div>
</div>