Skip to content

Instantly share code, notes, and snippets.

@ciorici
Created May 4, 2013 11:13
Show Gist options
  • Save ciorici/5517193 to your computer and use it in GitHub Desktop.
Save ciorici/5517193 to your computer and use it in GitHub Desktop.
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('Logged in as', 'wpzoom') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'wpzoom') ?>"><?php _e('Logout', 'wpzoom') ?> &raquo;</a></p>
<?php else : ?>
<div id="formLabels">
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="32" /><label for="author"><?php _e('Name', 'wpzoom') ?> <?php if ($req) ?> (<?php _e('required', 'wpzoom'); ?>)</label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="32"/><label for="email"><?php _e('Email', 'wpzoom') ?> <?php if ($req) ?> (<?php _e('required', 'wpzoom'); ?>)</label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="32" /><label for="url"><?php _e('Website', 'wpzoom') ?></label></p>
</div>
<?php endif; ?>
<div id="formContent">
<textarea name="comment" id="comment" cols="140" rows="8"></textarea><br />
<input name="submit" type="submit" id="submit" value="<?php _e('Add Comment', 'wpzoom') ?>" />
</div>
<?php comment_id_fields(); ?>
<?php do_action('comment_form', $post->ID); ?>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment