<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<strong>This post is password protected. Enter the password to view comments.</strong>
<?php
return;
}
?>
<?php function comment_template($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<div id="comment-<?php comment_ID(); ?>" class="comment-container">
<div class="comment-avatar">
<?php echo get_avatar($comment,$size='60',$default=get_template_directory_uri().'/images/gravatar.gif'); ?>
</div>
<div class="comment-arrow"></div>
<div class="comment-body">
<div class="comment-author">
</div>
<div class="comment-date">
</div>
<?php
$commentNumber;
echo $commentNumber;
$commentNumber++;
?>
<div class="comment-text">
<?php comment_text() ?>
Team leader: <?php printf(__('%s'), comment_author_link()) ?>
<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Edit team'); } ?>
<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::delete('Delete team'); } ?>
<?php comment_reply_link(array_merge( $args, array('reply_text' => '', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <?php edit_comment_link('','',''); ?>
<?php if ($comment->comment_approved == '0') : ?>
<div class="moderation">
<?php _e('ATTENTION!') ?>
</div>
Your team has been banned from entering Vanity Cups. This may be due to one or more of your members previously breaking the rules or providing abuse to an admin or referee. This also includes providing racism comments or threats to another team. Your team will only be viewable to yourself and admins, and will not be entered into the cup. You will be unbanned within 30 days of your ban date. Your team may also be banned due to it containing offensive words, if so simply delete this team and sign up again ensuring that these words are no longer on your team profile. If you believe there has been a mistake or wish to dispute this ban then please <a href="http://team-vanity.com/tournaments/ban-dispute">Click here</a>.
<?php endif; ?>
<?php if(function_exists('wp_gdsr_render_comment_thumbs')) { wp_gdsr_render_comment_thumbs(0, 0, 'reviewit_thumbs', 20); } ?>
</div>
</div>
</div>
<?php } ?>
<div class="clear"></div>
<div id="comments-title"><h3><?php comments_number('No Teams', '1 Team', '% Teams' ); ?></h3><span><?php if(is_user_logged_in()) { ?><b><a href="#respond"><font color="gold">Click here to sign up!</font></a></b><?php } else { ?>Click <b>Ctrl+F</b> to search teams | <a href="#login-box" rel="prettyPhoto">Login to sign up!</a><?php } ?></span></div>
<!--Begin Comments-->
<div id="comments">
<?php if (have_comments()) : ?>
<ol id="commentlist">
<?php wp_list_comments('callback=comment_template'); ?>
</ol>
<?php $total_pages = get_comment_pages_count( $comments = 64, $per_page = 2, $threaded = null ); if ( $total_pages > 0 ) : ?>
<div class="page-comments"><?php paginate_comments_links( $args ); ?></div>
<?php endif; ?>
<?php else : // No Comments Yet
if ('open' == $post->comment_status) :
// If comments are open, but there are no comments yet.
else :
if (is_single()){ echo"<strong>Comments are closed on this post.</strong>"; }
endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<?php paginate_comments_links('prev_text=<<&next_text=>>'); ?>
<left><br/></left>
<?php endif; ?>
</div>
<!--End Comments-->
<!--Begin Comment Form-->
<div id="commentform">
<!--Begin Respond-->
<div id="respond">
<h3><?php comment_form_title( 'Sign Up', 'Respond to %s' ); ?></h3>
<div class="cancel-comment-reply"><?php cancel_comment_reply_link(); ?></div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="#login-box" rel="prettyPhoto">logged in</a> to sign up.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
<?php if ( $user_ID ) : ?>
<font color="red">When using Vanity Tournaments, you agree to the following rules.</font>
- Treat other players and staff with respect at all times.
- Do not enter words or phrases within your team profile that may cause offence to another user.
- Racist comments of any kind will not be accepted.
<font color="red">Failing to follow these rules may lead to a timed or permanent ban from entering all future Vanity Tournaments.</font>
<br/><B>Please ensure that your team is not already entered into the league before signing up!</B>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">(Log Out)</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author">Name <span class="required"><?php if ($req) echo "*"; ?></span></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email">Email <span class="required"><?php if ($req) echo "*"; ?></span></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url">Website</label></p>
<?php endif; ?>
<p><textarea name="comment" value="Team Name: Player 1:" id="comment" cols="50" rows="12" tabindex="4" >Team Name: Player 1: Player 2: Player 3: Player 4: Player 5: Player 6: MSN/Skype contact: Other details: </textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="SIGN UP!" />
<?php comment_id_fields(); ?>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
</div>
<!--End Respond-->
</div>
<!--End Comment Form-->