Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Fix for comments.php #192

Merged
merged 1 commit into from
Jan 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 35 additions & 25 deletions comments.php
Original file line number Original file line Diff line number Diff line change
@@ -1,29 +1,39 @@
<?php function FoundationPress_comments($comment, $args, $depth) { -<?php
$GLOBALS['comment'] = $comment; ?> -if ( have_comments() ) :
<li <?php comment_class(); ?>> - if( (is_page() || is_single()) && (!is_home() && !is_front_page()) ) :
<article id="comment-<?php comment_ID(); ?>"> -?>
<header class="comment-author"> - <section id="comments"><?php
<?php echo get_avatar($comment,$size='48'); ?> -
<div class="author-meta"> -
<?php printf(__('<cite class="fn">%s</cite>', 'FoundationPress'), get_comment_author_link()) ?> - wp_list_comments(
<time datetime="<?php echo comment_date('c') ?>"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s', 'FoundationPress'), get_comment_date(), get_comment_time()) ?></a></time> -
<?php edit_comment_link(__('(Edit)', 'FoundationPress'), '', '') ?> - array(
</div> - 'walker' => new FoundationPress_comments(),
</header> - 'max_depth' => '',
- 'style' => 'ol',
- 'callback' => null,
- 'end-callback' => null,
- 'type' => 'all',
- 'reply_text' => __('Reply', 'FoundationPress'),
- 'page' => '',
- 'per_page' => '',
- 'avatar_size' => 48,
- 'reverse_top_level' => null,
- 'reverse_children' => '',
- 'format' => 'html5',
- 'short_ping' => false,
- 'echo' => true,
- 'moderation' => __('Your comment is awaiting moderation.', 'FoundationPress'),
- )
- );
-
- ?>


<?php if ($comment->comment_approved == '0') : ?> </section>
<div class="notice"> -<?php
<p class="bottom"><?php _e('Your comment is awaiting moderation.', 'FoundationPress') ?></p> - endif;
</div> -endif;
<?php endif; ?> -?>

<section class="comment">
<?php comment_text() ?>
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</section>

</article>
<?php } ?>


<?php <?php
// Do not delete these lines // Do not delete these lines
Expand Down