root / drupal7 / sites / all / modules / advanced_forum / styles / naked / advanced-forum.naked.post-preview.tpl.php @ 384fc62a
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
*
|
6 |
* Theme implementation: Template the preview version of a post.
|
7 |
*
|
8 |
* All variables available in node.tpl.php and comment.tpl.php for your theme
|
9 |
* are available here. In addition, Advanced Forum makes available the following
|
10 |
* variables:
|
11 |
*
|
12 |
* - $top_post: TRUE if we are formatting the main post (ie, not a comment)
|
13 |
* - $reply_link: Text link / button to reply to topic.
|
14 |
* - $total_posts: Number of posts in topic (not counting first post).
|
15 |
* - $new_posts: Number of new posts in topic, and link to first new.
|
16 |
* - $links_array: Unformatted array of links.
|
17 |
* - $account: User object of the post author.
|
18 |
* - $name: User name of post author.
|
19 |
* - $author_pane: Entire contents of advanced_forum-author-pane.tpl.php.
|
20 |
|
21 |
*/
|
22 |
?>
|
23 |
|
24 |
<?php if ($top_post): ?> |
25 |
<a id="forum-topic-top"></a> |
26 |
<?php else: ?> |
27 |
<a id="forum-reply-preview"></a> |
28 |
<?php endif; ?> |
29 |
|
30 |
<div id="<?php print $post_id; ?>" class="<?php print $classes; ?>" <?php print $attributes; ?>> |
31 |
<div class="forum-post-info clearfix"> |
32 |
<div class="forum-posted-on"> |
33 |
<?php print $date ?> |
34 |
|
35 |
<?php if (!$top_post): ?> |
36 |
<?php if (!empty($first_new)): ?> |
37 |
<?php print $first_new; ?> |
38 |
<?php endif; ?> |
39 |
<?php if (!empty($new_output)): ?> |
40 |
<?php print $new_output; ?> |
41 |
<?php endif; ?> |
42 |
<?php endif; ?> |
43 |
</div>
|
44 |
|
45 |
<?php if (!$top_post && !empty($comment_link) && !empty($page_link)): ?> |
46 |
<span class="forum-post-number"><?php print $comment_link . ' ' . $page_link; ?></span> |
47 |
<?php endif; ?> |
48 |
</div>
|
49 |
|
50 |
<div class="forum-post-wrapper"> |
51 |
<div class="forum-post-panel-sub"> |
52 |
<?php print $author_pane; ?> |
53 |
</div>
|
54 |
|
55 |
<div class="forum-post-panel-main clearfix"> |
56 |
<?php if ($title): ?> |
57 |
<div class="post-title"> |
58 |
<?php print $title ?> |
59 |
</div>
|
60 |
<?php endif; ?> |
61 |
|
62 |
<div class="forum-post-content"> |
63 |
<?php
|
64 |
// We hide the comments and links now so that we can render them later.
|
65 |
hide($content['taxonomy_forums']); |
66 |
hide($content['comments']); |
67 |
if (!$top_post) |
68 |
hide($content['body']); |
69 |
hide($content['links']); |
70 |
print render($content); |
71 |
?>
|
72 |
</div>
|
73 |
|
74 |
<?php if (!empty($signature)): ?> |
75 |
<div class="author-signature"> |
76 |
<?php print $signature ?> |
77 |
</div>
|
78 |
<?php endif; ?> |
79 |
</div>
|
80 |
</div>
|
81 |
|
82 |
<div class="forum-post-footer clear-block"> |
83 |
<?php // Purposely empty on preview just to keep the structure intact. ?> |
84 |
</div>
|
85 |
|
86 |
</div>
|