mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
81 lines
3.4 KiB
PHP
81 lines
3.4 KiB
PHP
<?php
|
|
/**
|
|
* Theme's Comments
|
|
*
|
|
*
|
|
* @file comments.php
|
|
* @package WordPress
|
|
* @subpackage Shell
|
|
* @author Emil Uzelac, nofearinc
|
|
* @copyright 2003 - 2012 ThemeID, 2013 DevWP
|
|
* @license license.txt
|
|
* @version Release: 1.0
|
|
* @filesource wp-content/themes/shell-lite/comments.php
|
|
* @link http://codex.wordpress.org/Theme_Development#Comments_.28comments.php.29
|
|
* @since available since Release 1.0
|
|
*/
|
|
?>
|
|
<?php if (post_password_required()) { ?>
|
|
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view any comments.', 'shell'); ?></p>
|
|
|
|
<?php return; } ?>
|
|
|
|
<?php if (have_comments()) : ?>
|
|
<h6 id="comments"><?php comments_number(__('No Comments »', 'shell'), __('1 Comment »', 'shell'), __('% Comments »', 'shell')); ?> for <?php the_title(); ?></h6>
|
|
|
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
|
<div class="navigation">
|
|
<div class="previous"><?php previous_comments_link(__( '‹ Older comments','shell' )); ?></div><!-- end of .previous -->
|
|
<div class="next"><?php next_comments_link(__( 'Newer comments ›','shell', 0 )); ?></div><!-- end of .next -->
|
|
</div><!-- end of.navigation -->
|
|
<?php endif; ?>
|
|
|
|
<ol class="commentlist">
|
|
<?php wp_list_comments('avatar_size=60&type=comment'); ?>
|
|
</ol>
|
|
|
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
|
<div class="navigation">
|
|
<div class="previous"><?php previous_comments_link(__( '‹ Older comments','shell' )); ?></div><!-- end of .previous -->
|
|
<div class="next"><?php next_comments_link(__( 'Newer comments ›','shell', 0 )); ?></div><!-- end of .next -->
|
|
</div><!-- end of.navigation -->
|
|
<?php endif; ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
if (!empty($comments_by_type['pings'])) : // let's seperate pings/trackbacks from comments
|
|
$count = count($comments_by_type['pings']);
|
|
($count !== 1) ? $txt = __('Pings/Trackbacks','shell') : $txt = __('Pings/Trackbacks','shell');
|
|
?>
|
|
|
|
<h6 id="pings"><?php echo $count . " " . $txt; ?> <?php _e('for','shell'); ?> "<?php the_title(); ?>"</h6>
|
|
|
|
<ol class="commentlist">
|
|
<?php wp_list_comments('type=pings&max_depth=<em>'); ?>
|
|
</ol>
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if (comments_open()) : ?>
|
|
|
|
<?php
|
|
$fields = array(
|
|
'author' => '<p class="comment-form-author">' . '<label for="author">' . __('Name','shell') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
|
|
'<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30" /></p>',
|
|
'email' => '<p class="comment-form-email"><label for="email">' . __('E-mail','shell') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
|
|
'<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30" /></p>',
|
|
'url' => '<p class="comment-form-url"><label for="url">' . __('Website','shell') . '</label>' .
|
|
'<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>',
|
|
);
|
|
|
|
$defaults = array('fields' => apply_filters('comment_form_default_fields', $fields));
|
|
|
|
comment_form($defaults);
|
|
?>
|
|
|
|
|
|
<?php endif; ?>
|