Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $options;
- foreach ($options as $value) { if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option(
- $value['id'] ); } } ?>
- <?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() ) { ?>
- <p class="nocomments"> <?php _e('Sorry, you must be logged in to post a comment.','altop'); ?></p>
- <?php
- return; }
- ?>
- <!-- You can start editing here. -->
- <?php if ( have_comments() ) : ?>
- <h3 id="comments"><?php comments_number(__('No Responses', 'altop'), __('One Response', 'altop'), __('% Responses', 'altop'));?> <?php echo
- _e('to', 'altop'); ?> <?php the_title('"','"'); ?></h3>
- <?php if ( !empty($comments_by_type['comment']) ) : ?>
- <ul class="commentlist">
- <?php wp_list_comments('type=comment&callback=list_comments'); ?>
- </ul>
- <div id="comment-navigation">
- <div class="alignleft"><?php previous_comments_link( '« More comments' ); ?></div>
- <div class="alignright"><?php next_comments_link( 'More comments »', 0 ); ?></div>
- </div>
- <?php endif; ?>
- <?php if ( !empty($comments_by_type['pings']) ) : ?>
- <h3 id="pings">Ping- & Trackbacks</h3>
- <ol class="pinglist">
- <?php wp_list_comments('type=pings&callback=list_tracks'); ?>
- </ol>
- <div id="ping-navigation">
- <div class="alignleft"><?php previous_comments_link( '« Older pings' ); ?></div>
- <div class="alignright"><?php next_comments_link( 'Newer pings »', 0 ); ?></div>
- </div>
- <?php endif; //End for pings ?>
- <?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. -->
- <p class="nocomments"><?php echo _e('No Comments (yet)', 'altop'); ?></p>
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <p class="nocomments"><?php echo _e('Sorry, Comments are closed.', 'altop'); ?></p>
- <?php endif; ?>
- <?php endif; //Close for if have_comments ?>
- <?php if (comments_open() ) : ?>
- <div id="respond">
- <?php comment_form(); ?>
- <?php endif; ?>
- </div>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment