Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ===================== comments ===================== */
- .comments {margin: 10px 0;}
- .comments h3 {margin:50px 0 30px 0;font-size:24px;}
- ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; }
- ol.commentlist li { }
- ol.commentlist li.alt { }
- ol.commentlist li.bypostauthor {}
- ol.commentlist li.byuser {}
- ol.commentlist li.comment-author-admin {}
- ol.commentlist li.comment { border-bottom: 1px solid #ddd; padding:1em; margin-bottom: 10px; }
- ol.commentlist li div.comment-author {}
- ol.commentlist li div.vcard { font-size:20px;}
- ol.commentlist li div.vcard cite.fn { font-style:normal; }
- ol.commentlist li div.vcard cite.fn a.url {}
- ol.commentlist li div.vcard img.avatar {float:left; margin:0 1em 1em 0; }
- ol.commentlist li div.vcard img.avatar-32 {}
- ol.commentlist li div.vcard img.photo {}
- ol.commentlist li div.vcard span.says {}
- ol.commentlist li div.commentmetadata {}
- ol.commentlist li div.comment-meta { font-size:9px; margin-bottom: 10px;}
- ol.commentlist li div.comment-meta a { color: #aaa; }
- ol.commentlist li p { margin: 0; }
- ol.commentlist li ul { list-style:square; margin:0 0 1em 2em; }
- ol.commentlist li div.reply { font-size:11px; }
- ol.commentlist li div.reply a { font-weight:bold; }
- ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; }
- ol.commentlist li ul.children li {}
- ol.commentlist li ul.children li.alt {}
- ol.commentlist li ul.children li.bypostauthor {}
- ol.commentlist li ul.children li.byuser {}
- ol.commentlist li ul.children li.comment {}
- ol.commentlist li ul.children li.comment-author-admin {}
- ol.commentlist li ul.children li.depth-2 { margin:0 0 .25em .25em; }
- ol.commentlist li ul.children li.depth-3 { margin:0 0 .25em .25em; }
- ol.commentlist li ul.children li.depth-4 { margin:0 0 .25em .25em; }
- ol.commentlist li ul.children li.depth-5 {}
- ol.commentlist li ul.children li.odd {}
- ol.commentlist li.even { background:#fff; }
- ol.commentlist li.odd { background:#f6f6f6; }
- ol.commentlist li.parent { }
- ol.commentlist li.pingback { margin: 0 0 10px; padding: 1em; border: 1px dashed #ccc; }
- ol.commentlist li.thread-alt { }
- ol.commentlist li.thread-even { }
- ol.commentlist li.thread-odd {}
- /* ===================== comment form ===================== */
- #respond {position: relative;}
- #respond input[type="text"],#respond textarea {border:1px solid #ddd;padding:10px}
- #respond input[type="text"] {padding:7px;width:300px}
- #respond .comment-form-author,
- #respond .comment-form-email,
- #respond .comment-form-url,
- #respond .comment-form-comment { position: relative; }
- #respond .comment-form-author label,
- #respond .comment-form-email label,
- #respond .comment-form-url label,
- #respond .comment-form-comment label { background: #eee; color: #555; display: inline-block; left: 4px; min-width: 60px; padding: 4px 10px; position: relative; top: 40px; z-index: 1; }
- #respond input[type="text"]:focus,
- #respond textarea:focus { text-indent: 0; z-index: 1; }
- #respond textarea { resize: vertical; width: 95%; }
- #respond .comment-form-author .required,
- #respond .comment-form-email .required { color: #bd3500; font-size: 22px; font-weight: bold; left: 75%; position: absolute; top: 45px; z-index: 1; }
- #respond .comment-notes,
- #respond .logged-in-as { font-size: 13px; }
- #respond p { margin: 10px 0; }
- #respond .form-submit { float: right; margin: -20px 0 10px; }
- #respond input#submit { background: #454545; border: none; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); color: #eee; cursor: pointer; padding: 5px 42px 5px 22px; }
- #respond input#submit:active { background: #86222D; color: #fff; }
- #respond #cancel-comment-reply-link { color: #666; margin-left: 10px; text-decoration: none; }
- #respond .logged-in-as a:hover,
- #respond #cancel-comment-reply-link:hover { text-decoration: underline; }
- .commentlist #respond { margin: 1.625em 0 0; width: auto; }
- #reply-title { color: #373737; font-size: 20px; }
- #cancel-comment-reply-link { color: #888; display: block; position: absolute; right: 1.625em; text-decoration: none; text-transform: uppercase; top: 1.1em; }
- #cancel-comment-reply-link:focus,
- #cancel-comment-reply-link:active,
- #cancel-comment-reply-link:hover { color: #ff4b33; }
- #respond label {display: block; float: right; font-size: 16px; line-height: 2.2em; width: 280px;}
- #respond input[type=text] {}
- #respond p { font-size: 12px; }
- p.comment-form-comment { margin: 0; }
- .form-allowed-tags { display: none; }
- .trackback { margin: 0 0 10px; padding: 1em; border: 1px dashed #ccc; }
- /* add this code for effect ajax to funtion.php */
- /* This code for comment_scripts */
- function comment_scripts(){
- if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
- }
- add_action( 'wp_enqueue_scripts', 'comment_scripts' );
- //custom comments.php
- <?php
- /**
- * @package WordPress
- * @subpackage Theme_Compat
- * @deprecated 3.0
- *
- * This file is here for Backwards compatibility with old themes and will be removed in a future version
- *
- */
- _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
- // 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() ) { ?>
- <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
- <?php
- return;
- }
- ?>
- <!-- You can start editing here. -->
- <?php if ( have_comments() ) : ?>
- <h3 id="comments"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
- number_format_i18n( get_comments_number() ), '“' . get_the_title() . '”' ); ?></h3>
- <div class="navigation">
- <div class="alignleft"><?php previous_comments_link() ?></div>
- <div class="alignright"><?php next_comments_link() ?></div>
- </div>
- <ol class="commentlist">
- <?php wp_list_comments();?>
- </ol>
- <div class="navigation">
- <div class="alignleft"><?php previous_comments_link() ?></div>
- <div class="alignright"><?php next_comments_link() ?></div>
- </div>
- <?php else : // this is displayed if there are no comments so far ?>
- <?php if ( comments_open() ) : ?>
- <!-- If comments are open, but there are no comments. -->
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <p class="nocomments"><?php _e('Comments are closed.'); ?></p>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ( comments_open() ) : ?>
- <div id="respond">
- <h3><?php comment_form_title( __('Leave a Reply'), __('Leave a Reply to %s' ) ); ?></h3>
- <div id="cancel-comment-reply">
- <small><?php cancel_comment_reply_link() ?></small>
- </div>
- <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
- <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p>
- <?php else : ?>
- <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
- <?php if ( is_user_logged_in() ) : ?>
- <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out »'); ?></a></p>
- <?php else : ?>
- <div class="form-group">
- <label for="author"><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></label>
- <div class="input-group">
- <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
- <input class="form-control"type="text" name="author" id="author" placeholder="Your Name" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
- </div>
- </div>
- <div class="form-group">
- <label for="email"><?php _e('Mail (will not be published)'); ?><?php if ($req) _e('(required)'); ?></label>
- <div class="input-group">
- <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
- <input class="form-control" type="text" name="email" id="email" placeholder="Your Email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
- </div>
- </div>
- <div class="form-group">
- <label for="url"><?php _e('Website'); ?></label>
- <div class="input-group">
- <span class="input-group-addon"><i class="glyphicon glyphicon-home"></i></span>
- <input class="form-control" type="text" name="url" id="url" placeholder="Your Website" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
- </div>
- </div>
- <?php endif; ?>
- <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>-->
- <div class="form-group">
- <label for="comment" class="sr-only">Reply</label>
- <textarea class="form-control" role="textbox" aria-multiline="true" name="comment" id="comment" rows="8" placeholder="Your Comment Here..."></textarea>
- </div>
- <p class="form-submit">
- <input class="btn btn-primary" name="submit" type="submit" id="submit" value="<?php esc_attr_e('Submit Comment'); ?>" />
- <?php comment_id_fields(); ?>
- </p>
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- <?php endif; // If registration required and not logged in ?>
- </div>
- <?php endif; // if you delete this the sky will fall on your head ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement