Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // Do not delete these lines
- if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!');
- if (!empty($post->post_password)) { // if there's a password
- if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
- ?>
- <h2><?php _e('Password Protected'); ?></h2>
- <p><?php _e('Enter the password to view comments.'); ?></p>
- <?php return;
- }
- }
- /* This variable is for alternating comment background */
- $oddcomment = 'alt';
- ?>
- <!-- You can start editing here. -->
- <div id="commentsn"><p>Eddig <span id="commentsnumber"><?php comments_number('0', '1', '%' );?> </span> hozzászólás érkezett.</p></div>
- <div id="comments-list">
- <?php if ($comments) : ?>
- <?php foreach ($comments as $comment) : ?>
- <div class="comment-wrapper" id="comment-<?php comment_ID() ?>">
- <div class="avatar">
- <?php echo get_avatar( $comment, $size = '50', $default = 'mm' ); ?>
- </div>
- <div class="comment-text">
- <div class="comment-meta">
- <ul>
- <li class="username"><?php comment_author_link() ?></li>
- <li>- <?php comment_date('Y.m.d'); ?> - <?php comment_time() ?> </li>
- <li class="edit"><?php edit_comment_link('szerkesztés','',''); ?></li>
- </ul>
- <?php if ($comment->comment_approved == '0') : ?>
- <em><?php _e('Hozzászólás moderálás alatt.'); ?></em>
- <?php endif; ?>
- </div>
- <div class="comment-main">
- <?php comment_text() ?>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <?php endforeach; /* end for each comment */ ?>
- <?php else : // this is displayed if there are no comments so far ?>
- <?php if ('open' == $post->comment_status) : ?>
- <!-- If comments are open, but there are no comments. -->
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <p class="nocomments">Hozzászólások tiltva.</p>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ('open' == $post->comment_status) : ?>
- <h2 id="respond">Szóljon hozzá cikkünkhöz!</h2>
- <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
- <p class="login-info">A hozzászóláshoz be kell<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"> jelentkezned!</a></p>
- <?php else : ?>
- <div id="comment-user-details">
- <?php do_action('alt_comment_login'); ?>
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- <?php if ( $user_ID ) : ?>
- <p>Bejelentkezve mint <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Kijelentkezés">Kijelentkezés »</a></p>
- <?php else : ?>
- <p class="input-line">
- <label for="author" class="comment-label">Az Ön neve: <?php if ($req) echo "*"; ?></label>
- <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" />
- </p>
- <span>Ez a név fog a hozzászólás mellett látszani.</span>
- <p class="input-line">
- <label for="email" class="comment-label">E-mail címe: <?php if ($req) echo "*"; ?></label>
- <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" />
- </p>
- <span>Nem lesz látható és nem adjuk ki másnak!</span>
- <?php endif; ?>
- <p id="fortextarea">Hozzászólásának szövege:</p>
- <p>
- <textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea>
- </p>
- <p>
- <input name="submit" type="submit" id="submit" tabindex="5" value="Elküldöm!" />
- <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
- </p>
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- <?php endif; // If registration required and not logged in ?>
- <?php endif; // if you delete this the sky will fall on your head ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement