Révision 13c3c9b4
Ajouté par Assos Assos il y a environ 9 ans
drupal7/sites/all/modules/advanced_forum/styles/naked/advanced-forum.naked.post.tpl.php | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* |
|
6 | 5 |
* Theme implementation: Template for each forum post whether node or comment. |
7 | 6 |
* |
8 | 7 |
* All variables available in node.tpl.php and comment.tpl.php for your theme |
... | ... | |
18 | 17 |
* - $name: User name of post author. |
19 | 18 |
* - $author_pane: Entire contents of the Author Pane template. |
20 | 19 |
*/ |
21 |
|
|
22 | 20 |
?> |
23 | 21 |
|
24 | 22 |
<?php if ($top_post): ?> |
... | ... | |
34 | 32 |
// This whole section is for printing the "new" marker. With core comment |
35 | 33 |
// we just need to check a variable. With Node Comment, we need to do |
36 | 34 |
// extra work to keep the views caching used for Node Comment from |
37 |
//caching the new markers. |
|
35 |
// caching the new markers.
|
|
38 | 36 |
?> |
39 | 37 |
<?php if (!$top_post): ?> |
40 | 38 |
<?php if (!empty($new)): ?> |
... | ... | |
49 | 47 |
<?php print $new_output; ?> |
50 | 48 |
<?php endif; ?> |
51 | 49 |
<?php endif; ?> |
52 |
</div> <?php // End of posted on div ?> |
|
50 |
</div> |
|
51 |
<?php /* End of posted on div. */ ?> |
|
53 | 52 |
|
54 | 53 |
<?php if (!empty($in_reply_to)): ?> |
55 | 54 |
<span class="forum-in-reply-to"><?php print $in_reply_to; ?></span> |
56 | 55 |
<?php endif; ?> |
57 | 56 |
|
58 |
<?php // Add a note when a post is unpublished so it doesn't rely on theming. ?>
|
|
57 |
<?php /* Add a note when a post is unpublished so it doesn't rely on theming. */ ?>
|
|
59 | 58 |
<?php if (!$node->status): ?> |
60 | 59 |
<span class="unpublished-post-note"><?php print t("Unpublished post") ?></span> |
61 | 60 |
<?php endif; ?> |
62 | 61 |
|
63 | 62 |
<span class="forum-post-number"><?php print $permalink; ?></span> |
64 |
</div> <?php // End of post info div ?>
|
|
63 |
</div> <?php /* End of post info div. */ ?>
|
|
65 | 64 |
|
66 | 65 |
<div class="forum-post-wrapper"> |
67 | 66 |
<div class="forum-post-panel-sub"> |
... | ... | |
79 | 78 |
|
80 | 79 |
<div class="forum-post-content"> |
81 | 80 |
<?php |
81 |
// @codingStandardsIgnoreStart |
|
82 | 82 |
// We hide the comments and links now so that we can render them later. |
83 | 83 |
hide($content['taxonomy_forums']); |
84 | 84 |
hide($content['comments']); |
... | ... | |
86 | 86 |
if (!$top_post) |
87 | 87 |
hide($content['body']); |
88 | 88 |
print render($content); |
89 |
// @codingStandardsIgnoreEnd |
|
89 | 90 |
?> |
90 | 91 |
</div> |
91 | 92 |
|
... | ... | |
101 | 102 |
</div> |
102 | 103 |
<?php endif; ?> |
103 | 104 |
</div> |
104 |
</div> <?php // End of post wrapper div ?> |
|
105 |
</div> |
|
106 |
<?php /* End of post wrapper div. */ ?> |
|
105 | 107 |
|
106 | 108 |
<div class="forum-post-footer clearfix"> |
107 | 109 |
<div class="forum-jump-links"> |
... | ... | |
111 | 113 |
<div class="forum-post-links"> |
112 | 114 |
<?php print render($content['links']); ?> |
113 | 115 |
</div> |
114 |
</div> <?php // End of footer div ?> |
|
115 |
</div> <?php // End of main wrapping div ?> |
|
116 |
|
|
116 |
</div> |
|
117 |
<?php /* End of footer div. */ ?> |
|
118 |
</div> |
|
119 |
<?php /* End of main wrapping div. */ ?> |
|
117 | 120 |
<?php print render($content['comments']); ?> |
Formats disponibles : Unified diff
Weekly update of contrib modules