Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Untitled
Tuesday, July 31st, 2012 at 2:21:09pm MDT 

  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Default_Theme
  5.  */
  6.  
  7. // Do not delete these lines
  8.         if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  9.                 die (__('Please do not load this page directly. Thanks!','AskIt'));
  10.  
  11.         if ( post_password_required() ) { ?>
  12.  
  13. <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','AskIt') ?></p>
  14. <?php
  15.                 return;
  16.         }
  17. ?>
  18. <!-- You can start editing here. -->
  19.  
  20. <div id="comment-wrap">
  21.  
  22.         <?php if ( have_comments() ) : ?>
  23.                
  24.                         <h3 id="comments"><?php _e('Community Answers','AskIt'); ?></h3>
  25.                        
  26.                 <?php if ( ! empty($comments_by_type['Answers']) ) : ?>
  27.                         <ol class="commentlist clearfix">
  28.                                 <?php wp_list_comments(array('type'=>'comment','callback'=>'mytheme_comment','avatar_size'=>50, 'reply_text'=>'Reply')); ?>
  29.                         </ol>
  30.                 <?php endif; ?>
  31.                
  32.                         <div class="navigation">
  33.                                 <div class="alignleft">
  34.                                         <?php previous_comments_link() ?>
  35.                                 </div>
  36.                                 <div class="alignright">
  37.                                         <?php next_comments_link() ?>
  38.                                 </div>
  39.                         </div>
  40.                        
  41.                 <?php if ( ! empty($comments_by_type['pings']) ) : ?>
  42.                 <div id="trackbacks">
  43.                         <h3 id="comments"><?php _e('Trackbacks/Pingbacks','AskIt') ?></h3>
  44.                         <ol class="pinglist">
  45.                                 <?php wp_list_comments('type=pings&callback=list_pings'); ?>
  46.                         </ol>
  47.                 </div>
  48.                 <?php endif; ?> 
  49.         <?php else : // this is displayed if there are no comments so far ?>
  50.            <div id="comment-section" class="nocomments">
  51.                   <?php if ('open' == $post->comment_status) : ?>
  52.                          <!-- If comments are open, but there are no comments. -->
  53.                         
  54.                   <?php else : // comments are closed ?>
  55.                          <!-- If comments are closed. -->
  56.                                 <div id="respond">
  57.                                   
  58.                                 </div> <!-- end respond div -->
  59.                   <?php endif; ?>
  60.            </div>
  61.         <?php endif; ?>
  62.         <?php if ('open' == $post->comment_status) : ?>
  63.  
  64.                 <div id="respond">
  65.                         <h3 id="comments">
  66.                                 <?php comment_form_title( __('Answer this Question','AskIt'), __('Leave a Comment to %s','AskIt' )); ?>
  67.                         </h3>
  68.                         <div class="cancel-comment-reply"> <small>
  69.                                 <?php cancel_comment_reply_link(); ?>
  70.                                 </small> </div> <!-- end cancel-comment-reply div -->
  71.                         <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  72.                                 <p><?php _e('You must be','AskIt')?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','AskIt') ?></a> <?php _e('to post an Answer.','AskIt') ?></p>
  73.                         <?php else : ?>
  74.                                 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  75.                                 <?php if ( $user_ID ) : ?>
  76.                                         <p><?php _e('Logged in as','AskIt') ?> <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"><?php _e('Log out &raquo;','AskIt') ?></a></p>
  77.                                 <?php else : ?>
  78.                                         <p>
  79.                                                 <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
  80.                                                 <label for="author"><small><?php _e('Name','AskIt') ?>
  81.                                                         <?php if ($req) _e('(required)','AskIt'); ?>
  82.                                                         </small></label>
  83.                                         </p>
  84.                                         <p>
  85.                                                 <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
  86.                                                 <label for="email"><small><?php _e('Mail (will not be published)','AskIt') ?>
  87.                                                         <?php if ($req) _e('(required)','AskIt'); ?>
  88.                                                         </small></label>
  89.                                         </p>
  90.                                         <p>
  91.                                                 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
  92.                                                 <label for="url"><small><?php _e('Website','AskIt') ?></small></label>
  93.                                         </p>
  94.                                 <?php endif; ?>
  95.                                 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
  96.                                 <p>
  97.                                         <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
  98.                                 </p>
  99.                                 <p id="submit-container">
  100.                                         <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment','AskIt')?>" />
  101.                                         <?php comment_id_fields(); ?>
  102.                                 </p>
  103.                                 <?php do_action('comment_form', $post->ID); ?>
  104.                                 </form>
  105.                         <?php endif; // If registration required and not logged in ?>
  106.                 </div> <!-- end respond div -->
  107.         <?php else: ?>
  108.  
  109.         <?php endif; // if you delete this the sky will fall on your head ?>
  110.        
  111. </div>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right worth-right
fantasy-obligation