comments.php ➔ podium_comments()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 35

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 3
dl 0
loc 35
rs 9.36
c 0
b 0
f 0
1
<?php
2
3
// Comment Layout
4
/**
5
 * @param $comment
6
 * @param $args
7
 * @param $depth
8
 */
9
function podium_comments($comment, $args, $depth)
10
{
11
12
    $GLOBALS['comment'] = $comment; ?>
13
  <li <?php comment_class('panel'); ?>>
14
    <article id="comment-<?php comment_ID(); ?>" class="clearfix large-12 columns">
15
      <header class="comment-author">
16
        <?php
17
18
    // create variable
19
    // $bgauthemail = get_comment_author_email();
20
    ?>
21
        <?php printf(__('<cite class="fn">%s</cite>', 'podium'), get_comment_author_link()); ?> on
22
        <time datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)) ?>"><?php comment_time(__(' F jS, Y - g:ia', 'podium')); ?> </a></time>
23
        <?php edit_comment_link(__('(Edit)', 'podium'), '  ', ''); ?>
24
      </header>
25
      <?php
26
27
    if ('0' == $comment->comment_approved) {?>
28
        <div class="alert alert-info">
29
          <p><?php _e('Your comment is awaiting moderation.', 'podium')?></p>
30
        </div>
31
        <?php }
32
33
    ?>
34
        <section class="comment_content clearfix">
35
          <?php comment_text()?>
36
        </section>
37
        <?php comment_reply_link(array_merge($args, ['depth' => $depth, 'max_depth' => $args['max_depth']])); ?>
38
      </article>
39
40
      <!-- </li> is added by WordPress automatically -->
41
      <?php
42
43
}
44