-
Notifications
You must be signed in to change notification settings - Fork 0
/
social-comments-items.tpl.php
49 lines (48 loc) · 1.45 KB
/
social-comments-items.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
<?php
/**
* @file
* Theme template for a social comments.
*
* Available variables:
* - comments: A list of comments, each one contains:
* - id: The ID of the comment.
* - username: The name of user.
* - user_url: The URL to the user page.
* - userphoto: The photo of user.
* - text: The text of the comment.
* - date: The date where comment was posted.
* @see template_preprocess()
* @see template_preprocess_social_comments_items()
*
* @ingroup themeable
*/
?>
<?php foreach($comments as $comment): ?>
<article role="article" class="comment clearfix">
<header class="comment-header">
<div class="attribution">
<article>
<div class="item">
<a rel="nofollow" href="<?php print $comment['user_url']; ?>"><?php print $comment['userphoto']; ?></a>
</div>
</article>
<div class="submitted">
<p class="commenter-name">
<span rel="schema:author">
<a rel="nofollow" href="<?php print $comment['user_url']; ?>"><?php print $comment['username']; ?></a>
</span>
</p>
<p class="comment-time">
<?php print $comment['date']; ?>
</p>
</div>
</div>
</header>
<div class="comment-text">
<div class="comment-arrow"></div>
<div class="content">
<div property="schema:text"><?php print $comment['text']; ?></div>
</div>
</div>
</article>
<?php endforeach; ?>