Fix comment listing, Correct Indentations. See #9015
git-svn-id: https://develop.svn.wordpress.org/trunk@13129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba7701007b
commit
c095bc880d
@ -21,19 +21,18 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<div class="entry-attachment">
|
<div class="entry-attachment">
|
||||||
<?php if ( wp_attachment_is_image( $post->ID ) ) : ?>
|
<?php if ( wp_attachment_is_image() ) : ?>
|
||||||
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
|
<p class="attachment"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
|
||||||
echo wp_get_attachment_image( $post->ID, array($content_width, $content_width) ); // max $content_width wide or high.
|
echo wp_get_attachment_image( $post->ID, array($content_width, $content_width) ); // max $content_width wide or high.
|
||||||
?></a></p>
|
?></a></p>
|
||||||
|
|
||||||
|
<div id="nav-below" class="navigation">
|
||||||
<div id="nav-below" class="navigation">
|
<div class="nav-previous"><?php previous_image_link( false ); ?></div>
|
||||||
<div class="nav-previous"><?php previous_image_link( false ); ?></div>
|
<div class="nav-next"><?php next_image_link( false ); ?></div>
|
||||||
<div class="nav-next"><?php next_image_link( false ); ?></div>
|
</div><!-- #nav-below -->
|
||||||
</div><!-- #nav-below -->
|
<?php else : ?>
|
||||||
<?php else : ?>
|
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename(get_permalink()); ?></a>
|
||||||
<a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_attr( get_the_title($post->ID) ); ?>" rel="attachment"><?php echo basename(get_permalink()); ?></a>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
|
<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<?php endif; // check for comment navigation ?>
|
<?php endif; // check for comment navigation ?>
|
||||||
|
|
||||||
<ol class="commentlist">
|
<ol class="commentlist">
|
||||||
<?php wp_list_comments( array('callback' => 'twentyten_comment') ); ?>
|
<?php wp_list_comments( array('callback' => 'twentyten_list_comment') ); ?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
|
<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
|
||||||
|
@ -98,8 +98,9 @@ function twentyten_list_comment( $comment, $args, $depth ) {
|
|||||||
|
|
||||||
// Make the Visual Editor styles match the theme's styles
|
// Make the Visual Editor styles match the theme's styles
|
||||||
function twentyten_my_editor_style( $url ) {
|
function twentyten_my_editor_style( $url ) {
|
||||||
if ( !empty($url) )
|
if ( !empty($url) )
|
||||||
$url .= ',';
|
$url .= ',';
|
||||||
|
|
||||||
// Change the path here if using sub-directory
|
// Change the path here if using sub-directory
|
||||||
$url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css';
|
$url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user