logged in to post a comment.', 'foundationpress' ),
+ printf(
+ __( 'You must be logged in to post a comment.', 'foundationpress' ),
wp_login_url( get_permalink() )
);
?>
@@ -95,8 +94,8 @@
diff --git a/library/class-foundationpress-comments.php b/library/class-foundationpress-comments.php
index 12be7f62f..a50d491a1 100644
--- a/library/class-foundationpress-comments.php
+++ b/library/class-foundationpress-comments.php
@@ -6,74 +6,74 @@
*/
if ( ! class_exists( 'Foundationpress_Comments' ) ) :
-class Foundationpress_Comments extends Walker_Comment {
+ class Foundationpress_Comments extends Walker_Comment {
- // Init classwide variables.
- public $tree_type = 'comment';
+ // Init classwide variables.
+ public $tree_type = 'comment';
- // Comment ID
- public $db_fields = array(
- 'parent' => 'comment_parent',
- 'id' => 'comment_ID',
- );
+ // Comment ID
+ public $db_fields = array(
+ 'parent' => 'comment_parent',
+ 'id' => 'comment_ID',
+ );
- /** CONSTRUCTOR
+ /** CONSTRUCTOR
* You'll have to use this if you plan to get to the top of the comments list, as
* start_lvl() only goes as high as 1 deep nested comments */
- function __construct() { ?>
+ function __construct() { ?>
-
“”
+- + function start_lvl( &$output, $depth = 0, $args = array() ) { + $GLOBALS['comment_depth'] = $depth + 1; ?> -- id="comment-">
-
+ - id="comment-">
+
-
+
-
+
-
+
- %s', 'foundationpress' ),
+ printf(
+ __( '%s', 'foundationpress' ),
get_comment_author_link()
);
- ?>
-
+ ?>
+
-
+
comment_approved ) : ?>
@@ -85,7 +85,7 @@ function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
- at
+ at
@@ -95,23 +95,24 @@ function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
'max_depth' => $args['max_depth'],
);
- comment_reply_link( array_merge( $args, $reply_args ) ); ?>
-
-
+ comment_reply_link( array_merge( $args, $reply_args ) ); ?>
+
+
-
+ function end_el( & $output, $comment, $depth = 0, $args = array() ) { ?>
-
+
-
+ /** DESTRUCTOR */
+ function __destruct() { ?>
-
+- + + function end_lvl( &$output, $depth = 0, $args = array() ) { + $GLOBALS['comment_depth'] = $depth + 1; ?> -
+ - + /** START_EL */ + function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) { + $depth++; + $GLOBALS['comment_depth'] = $depth; + $GLOBALS['comment'] = $comment; + $parent_class = ( empty( $args['has_children'] ) ? '' : 'parent' ); ?> -