forked from friendica/friendica-wp-theme
Move up
This commit is contained in:
parent
e2f611c223
commit
a469aa9ae5
64 changed files with 0 additions and 0 deletions
44
comments.php
Normal file
44
comments.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) return; ?>
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<hr class="major">
|
||||
<?php endif ?>
|
||||
<section id="comments">
|
||||
<?php
|
||||
if ( have_comments() ) :
|
||||
global $comments_by_type;
|
||||
$comments_by_type = &separate_comments( $comments );
|
||||
if ( ! empty( $comments_by_type['comment'] ) ) :
|
||||
?>
|
||||
<section id="comments-list" class="comments">
|
||||
<h3 class="comments-title"><?php comments_number(); ?></h3>
|
||||
<?php if ( get_comment_pages_count() > 1 ) : ?>
|
||||
<nav id="comments-nav-above" class="comments-navigation" role="navigation">
|
||||
<div class="paginated-comments-links"><?php paginate_comments_links(); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<?php wp_list_comments( array('type'=>'comment', 'style' => 'div') ); ?>
|
||||
</div>
|
||||
<?php if ( get_comment_pages_count() > 1 ) : ?>
|
||||
<nav id="comments-nav-below" class="comments-navigation" role="navigation">
|
||||
<div class="paginated-comments-links"><?php paginate_comments_links(); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
<?php
|
||||
endif;
|
||||
if ( ! empty( $comments_by_type['pings'] ) ) :
|
||||
$ping_count = count( $comments_by_type['pings'] );
|
||||
?>
|
||||
<section id="trackbacks-list" class="comments">
|
||||
<h3 class="comments-title"><?php echo '<span class="ping-count">' . $ping_count . '</span> ' . ( $ping_count > 1 ? __( 'Trackbacks', 'friendica' ) : __( 'Trackback', 'friendica' ) ); ?></h3>
|
||||
<ul>
|
||||
<?php wp_list_comments( 'type=pings&callback=friendica_custom_pings' ); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php
|
||||
endif;
|
||||
endif;
|
||||
if ( comments_open() ) comment_form();
|
||||
?>
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue