Ejemplo n.º 1
0
/**
 * Returns a link to a particular comment.
 *
 * @since 2.4
 * @uses tarski_comment_datetime
 *
 * @param object $comment
 * @param mixed $args
 * @return string
 */
function tarski_comment_link($comment, $args)
{
    return sprintf('<a title="%s" href="%s">%s</a>', __('Permalink to this comment', 'tarski'), htmlspecialchars(get_comment_link($comment->comment_ID, $args)), tarski_comment_datetime());
}
Ejemplo n.º 2
0
					<p class="primary-span"><strong><?php 
                    _e('Your comment is awaiting moderation.', 'tarski');
                    ?>
</strong></p>
					<?php 
                }
                ?>
					<div class="secondary">
						<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">
Ejemplo n.º 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 
    }