/**
     * @see Walker::start_lvl()
     * @see Walker_Comment::start_el()
     * @since 2.4
     *
     * @param string $output Passed by reference. Used to append additional content.
     * @param object $comment Comment data object.
     * @param int $depth Depth of comment in reference to parents.
     * @param array $args
     */
    function start_el(&$output, $comment, $depth, $args)
    {
        $depth++;
        $GLOBALS['comment_depth'] = $depth;
        if (!empty($args['callback'])) {
            call_user_func($args['callback'], $comment, $args, $depth);
            return;
        }
        $first = '';
        if (isset($this->first_on_level) && $this->first_on_level) {
            $first = 'comment-lvl-first';
        }
        $this->first_on_level = false;
        $reply_link_opts = array_merge($args, array('add_below' => 'comment-wrapper', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '<p class="reply">', 'after' => '</p>'));
        $GLOBALS['comment'] = $comment;
        extract($args, EXTR_SKIP);
        ?>
        <li <?php 
        comment_class($first);
        ?>
 id="comment-<?php 
        comment_ID();
        ?>
">
            <div class="comment-wrapper clearfix" id="comment-wrapper-<?php 
        comment_ID();
        ?>
">
                <?php 
        if (in_array(get_comment_type(), array('trackback', 'pingback', 'pings'))) {
            ?>
                    <p class="pingdata"><?php 
            printf(__('%1$s from %2$s on %3$s', 'tarski'), comment_type(_x('Comment', 'noun', 'tarski'), __('Trackback', 'tarski'), __('Pingback', 'tarski')), tarski_comment_author_link(), tarski_comment_link($comment, array('page' => $page)));
            edit_comment_link(__('edit', 'tarski'), ' <span class="comment-edit">(', ')</span>');
            ?>
</p>
                <?php 
        } else {
            ?>
                    <?php 
            if ($comment->comment_approved == '0') {
                ?>
                          <p class="moderated"><strong><?php 
                _e('Your comment is awaiting moderation.', 'tarski');
                ?>
</strong></p>
                      <?php 
            }
            ?>
                    
                    <?php 
            echo tarski_avatar();
            ?>
                    
                    <p class="comment-meta commentmetadata"><?php 
            printf(__('%1$s on %2$s', 'tarski'), '<span class="comment-author vcard">' . tarski_comment_author_link() . '</span>', '<span class="comment-permalink">' . tarski_comment_link($comment, array('page' => $page)) . '</span>');
            edit_comment_link(__('edit', 'tarski'), ' <span class="comment-edit">(', ')</span>');
            ?>
                    </p>
                    
                    <div class="comment-content content">
                        <?php 
            comment_text();
            ?>
                    </div>
                    
                    <?php 
            comment_reply_link($reply_link_opts);
            ?>
                <?php 
        }
        ?>
            </div>
<?php 
    }
Exemple #2
0
						<p class="comment-permalink"><a href="#comment-<?php 
                comment_ID();
                ?>
" title="<?php 
                _e('Permalink to this comment', 'tarski');
                ?>
"><?php 
                echo tarski_comment_datetime();
                ?>
</a></p>
						<p class="comment-author vcard"><?php 
                echo tarski_comment_author_link();
                ?>
</p>
						<?php 
                echo tarski_avatar();
                ?>
						<?php 
                edit_comment_link(__('edit', 'tarski'), '<p class="comment-edit">(', ')</p>');
                ?>
					</div> <!-- /comment meta -->

					<div class="primary content">
						<?php 
                comment_text();
                ?>
					</div> <!-- /comment content -->
				</div> <!-- /comment -->
		
			<?php 
            }
Exemple #3
0
    /**
     * @see Walker::start_lvl()
     * @see Walker_Comment::start_el()
     * @since 2.4
     *
     * @param string $output Passed by reference. Used to append additional content.
     * @param object $comment Comment data object.
     * @param int $depth Depth of comment in reference to parents.
     * @param array $args
     */
    function start_el(&$output, $comment, $depth, $args)
    {
        $depth++;
        $GLOBALS['comment_depth'] = $depth;
        if (!empty($args['callback'])) {
            call_user_func($args['callback'], $comment, $args, $depth);
            return;
        }
        if ($this->first_on_level) {
            $first = "comment-lvl-first";
            $this->first_on_level = false;
        }
        $reply_link_opts = array_merge($args, array('add_below' => 'comment-wrapper', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '<p class="reply">', 'after' => '</p>'));
        $GLOBALS['comment'] = $comment;
        extract($args, EXTR_SKIP);
        ?>
		<li <?php 
        comment_class($first);
        ?>
 id="comment-<?php 
        comment_ID();
        ?>
">
			<div class="comment-wrapper clearfix" id="comment-wrapper-<?php 
        comment_ID();
        ?>
">
	          	<?php 
        if ($comment->comment_approved == '0') {
            ?>
	          		<p class="moderated"><strong><?php 
            _e('Your comment is awaiting moderation.', 'tarski');
            ?>
</strong></p>
	          	<?php 
        }
        ?>
	
				<?php 
        echo tarski_avatar();
        ?>
				
				<p class="comment-meta commentmetadata"><?php 
        printf(__('%1$s on %2$s', 'tarski'), '<span class="comment-author vcard">' . tarski_comment_author_link() . '</span>', '<span class="comment-permalink"><a title="' . __('Permalink to this comment', 'tarski') . '" href="' . htmlspecialchars(get_comment_link($comment->comment_ID, $page)) . '">' . tarski_comment_datetime() . '</a></span>');
        edit_comment_link(__('edit', 'tarski'), ' <span class="comment-edit">(', ')</span>');
        ?>
				</p>
				
				
				<div class="comment-content content">
					<?php 
        comment_text();
        ?>
				</div>
				
				<?php 
        comment_reply_link($reply_link_opts);
        ?>
	        </div>
<?php 
    }