[ Index ]

PHP Cross Reference of PageLines DMS

title

Body

[close]

/ -> comments.php (source)

   1  <?php
   2  /**
   3   * COMMENTS
   4   *
   5   * The template for displaying Comments.
   6   *
   7   * @package     PageLines Framework
   8   * @since       1.0
   9   *
  10   * @link        http://www.pagelines.com/
  11   * @link        http://www.pagelines.com/DMS
  12   *
  13   * @author      PageLines   http://www.pagelines.com/
  14   * @copyright   Copyright (c) 2012, PageLines   hello@pagelines.com
  15   *
  16   * @internal    last revised February 23, 2012
  17   * @version     2.1.1
  18   */
  19  
  20  
  21  if(!have_comments() && !comments_open()){
  22      
  23      printf('<p class="nocomments">%s</p>', __('Comments are closed.', 'pagelines'));
  24      return;
  25      
  26  }
  27      
  28  ?>
  29  <div id="comments" class="wp-comments">
  30      <div class="wp-comments-pad">
  31      <?php
  32  
  33          /* Stop the rest of comments.php from being processed,
  34           * but don't kill the script entirely -- we still have
  35           * to fully load the template.
  36           */
  37          if ( post_password_required() ){
  38              printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) );
  39              return;
  40          }
  41  
  42          if ( have_comments() ) : ?>
  43              <h5 id="comments-title"><?php
  44              printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ),
  45              number_format_i18n( get_comments_number() ), '"' . get_the_title() . '"' );
  46              ?></h5>
  47          <ol class="commentlist">
  48              <?php wp_list_comments( apply_filters( 'pl_list_comments', array( 'type'=> 'comment', 'avatar_size' => '60' ) ) ); ?>
  49          </ol>
  50          <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
  51              <div class="navigation fix">
  52                  <div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>&larr;</span> Older Comments", 'pagelines' ) ); ?></div>
  53                  <div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>&rarr;</span>", 'pagelines' ) ); ?></div>
  54              </div> <!-- .navigation -->
  55          <?php endif; // check for comment navigation 
  56  
  57          endif; // end have_comments()
  58      comment_form(); ?>
  59      </div>
  60  </div>


Generated: Sun Dec 1 19:43:16 2013 Cross-referenced by PHPXref 0.7.1