Subscribes To {comments_rss_link link_text="Comment RSS"}{if $post->ping_status} or
TrackBack URL{/if}
{capture name=author_email}{the_author_email}{/capture}
{capture name=author}{the_author echo=false}{/capture}
{capture name=blog_title}{bloginfo show='title'}{/capture}
{if $comments != ''}
{assign var="indexcomment" value=0}
{foreach from=$comments key=key item=comment}
{globalvar var='comment' value=$comment}
{assign var=owner value=''}
{assign var=comment_auth_email value=$comment->comment_author_email}
{assign var="indexcomment" value=$indexcomment+1}
{* Setup for Owner Comments, including Pingbacks & Trackbacks *}
{capture name=comment_type}{comment_type}{/capture}
{capture name=self_ping}{comment_type}@{bloginfo show='url'}{/capture}
{if $comment_auth_email == $smarty.capture.author_email or $comment_auth_email == $smarty.capture.self_ping|lower|replace:"http://":"" or $comment->comment_author == $smarty.capture.blog_title}
{assign var=owner value=owner}
{assign var=comment_auth_email value=$smarty.capture.author_email}
{elseif $smarty.capture.comment_type == "Comment"}
{assign var=comment_auth_email value=$comment->comment_author_email}
{else}
{* Off-site Trackback/Pingback. Get an image from their site? *}
{/if}
{* Set up for Alternating Comment Styles *}
{if $alt != '_alt'}
{assign var='alt' value='_alt'}
{else}
{assign var='alt' value=''}
{/if}
{* Set up for UnModerated Comments *}
{if $comment->comment_approved == "0"}
{assign var='moderated' value='moderated'}
{else}
{assign var='moderated' value=''}
{/if}