Example #1
0
    function custom_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>

		<li id="comment-<?php 
        comment_ID();
        ?>
" <?php 
        comment_class();
        ?>
>

	      	<div id="li-comment-<?php 
        comment_ID();
        ?>
" class="comment-container">

				<?php 
        if ('comment' == get_comment_type()) {
            ?>
	                <div class="avatar"><?php 
            the_commenter_avatar($args);
            ?>
</div>
	            <?php 
        }
        ?>

		      	<div class="comment-head">

	                <span class="name"><?php 
        comment_author_link();
        ?>
</span>
	                <span class="date"><?php 
        echo get_comment_date(get_option('date_format'));
        ?>
 <?php 
        _e('at', 'woothemes');
        ?>
 <?php 
        echo get_comment_time(get_option('time_format'));
        ?>
</span>
	                <span class="perma"><a href="<?php 
        echo esc_url(get_comment_link());
        ?>
" title="<?php 
        esc_attr_e('Direct link to this comment', 'woothemes');
        ?>
">#</a></span>
	                <span class="edit"><?php 
        edit_comment_link(__('Edit', 'woothemes'), '', '');
        ?>
</span>

				</div><!-- /.comment-head -->

		   		<div class="comment-entry">

				<?php 
        comment_text();
        ?>

				<?php 
        if ('0' == $comment->comment_approved) {
            ?>
	                <p class='unapproved'><?php 
            _e('Your comment is awaiting moderation.', 'woothemes');
            ?>
</p>
	            <?php 
        }
        ?>

	                <div class="reply">
	                    <?php 
        comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
	                </div><!-- /.reply -->

				</div><!-- /comment-entry -->

			</div><!-- /.comment-container -->

	<?php 
    }
Example #2
0
function custom_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
                 
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
    
    	<a name="comment-<?php 
    comment_ID();
    ?>
"></a>
      	
      	<div class="comment-container">

			<?php 
    if (get_comment_type() == "comment") {
        ?>
            
            <div class="avatar"><?php 
        the_commenter_avatar($args);
        ?>
</div>
        
            <?php 
    }
    ?>
      	    
            <div class="comment-right">
                    
                <div class="comment-head">
                                
                    <span class="name fl"><?php 
    the_commenter_link();
    ?>
</span>
                    
                    <?php 
    if (get_comment_type() == "comment") {
        ?>
                    
                        <span class="reply fr"><?php 
        comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
</span><!-- /.reply -->
                        <span class="date fr"><a href="<?php 
        echo get_comment_link();
        ?>
" title="<?php 
        _e('Direct link to this comment', 'woothemes');
        ?>
"><?php 
        echo get_comment_date($GLOBALS['woodate']);
        ?>
 <?php 
        _e('at', 'woothemes');
        ?>
 <?php 
        echo get_comment_time();
        ?>
</a></span>
                    <?php 
    }
    ?>
                        <span class="edit fr"><?php 
    edit_comment_link('Edit &nbsp;', '', '');
    ?>
</span>
                                        
                </div><!-- /.comment-head -->
              
                <div class="comment-entry"  id="comment-<?php 
    comment_ID();
    ?>
">
                
                    <?php 
    comment_text();
    ?>
                    
                    <?php 
    if ($comment->comment_approved == '0') {
        ?>
                        <p class='unapproved'><?php 
        _e('Your comment is awaiting moderation.', 'woothemes');
        ?>
</p>
                    <?php 
    }
    ?>
                    
        
                </div><!-- /comment-entry -->
            
            </div><!-- /comment-right -->
		
		</div><!-- /.comment-container -->
		
<?php 
}
Example #3
0
function custom_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
                 
<?php 
    // if (get_comment_type() == "comment"){ // If you wanted to separate comments from pingbacks
    ?>
   <li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
      <a name="comment-<?php 
    comment_ID();
    ?>
"></a>
      <div class="comment-head cl">
      
      <?php 
    if (get_comment_type() == "comment") {
        ?>
          <div class="avatar"><?php 
        the_commenter_avatar();
        ?>
</div>
          <?php 
    }
    ?>
          <div class="user-meta">
                  <strong class="name"><?php 
    the_commenter_link();
    ?>
</strong> <?php 
    if (get_comment_type() == "comment") {
        echo get_comment_date("j F Y");
        ?>
 at <?php 
        echo get_comment_time();
        edit_comment_link(__('Edit', woothemes), ' <span class="edit-link">(', ')</span>');
        ?>
 <a class="comment-permalink" href="<?php 
        echo get_comment_link();
        ?>
" title="Direct link to this comment">#</a><?php 
    }
    ?>
          </div>
      </div>
      <div class="comment-entry"  id="comment-<?php 
    comment_ID();
    ?>
">
                                <?php 
    comment_text();
    ?>
                                <?php 
    if ($comment->comment_approved == '0') {
        echo "<p class='unapproved'>" . __('Your comment is awaiting moderation', woothemes) . ".</p>\n";
    }
    ?>
                                <div class="reply">
                              <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
            </div>

      </div>
<?php 
    /*  The following are the pingback template. Will cause styling issues with odd and even styling due to threading.
            }  else {
                   ?>
                   <li <?php comment_class(); ?>>
                           
                        <div class="comment_head cl">
                            
                            <div class="user_meta" style="margin:0">
                                <p class="name"><strong><?php the_commenter_link() ?></strong></p>
                            </div>
                        </div>
                        <div class="comment_entry">
                            <?php comment_text() ?><?php edit_comment_link('Edit', ' <span class="edit-link">(', ')</span>');?>
                        </div>
    
                        <?php }*/
}
function custom_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>

<?php 
    // if (get_comment_type() == "comment"){ // If you wanted to separate comments from pingbacks
    ?>


    <li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
	<div class="name-block">
		<?php 
    if (get_comment_type() == "comment") {
        ?>


      			<?php 
        the_commenter_avatar();
        ?>


    		<?php 
    }
    ?>

		<?php 
    the_commenter_link();
    ?>
<br /> <?php 
    echo get_comment_date("F j, Y");
    ?>

		<div class="clear"></div>
	</div>
<div class="comment-text"  id="comment-<?php 
    comment_ID();
    ?>
">
        
	<?php 
    comment_text();
    ?>

<?php 
    if ($comment->comment_approved == '0') {
        echo "<p class='unapproved'>" . __('Your comment is awaiting moderation.') . "</p>\n";
    }
    ?>

<div class="reply">
	<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>

</div>
 <div class="clear"></div>
          	</div>

	
      

<?php 
    /*  The following is the pingback template. Will cause styling issues with odd and even styling due to threading.
    
            }  else {
    
                   ?>
    
                   <li <?php comment_class(); ?>>
    
    
                        <div class="comment_head cl">
    
    
                            <div class="user_meta" style="margin:0">
    
    
                                <p class="name"><strong><?php the_commenter_link() ?></strong></p>
    
                            </div>
    
    
                        </div>
    
                        <div class="comment_entry">
    
                            <?php comment_text() ?><?php edit_comment_link('Edit', ' <span class="edit-link">(', ')</span>');?>
    
    
                        </div>
    
                        <?php }*/
}