Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
Untitled diff
创建于
11年前
差异永不过期
清除
导出
分享
解释
0 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
71 行
全部复制
3 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
71 行
全部复制
<?php
<?php
/**
/**
* COMMENTS
* COMMENTS
*
*
* The template for displaying Comments.
* The template for displaying Comments.
*
*
* @package PageLines Framework
* @package PageLines Framework
* @since 1.0
* @since 1.0
*
*
* @link http://www.pagelines.com/
* @link http://www.pagelines.com/
* @link http://www.pagelines.com/tour
* @link http://www.pagelines.com/tour
*
*
* @author PageLines http://www.pagelines.com/
* @author PageLines http://www.pagelines.com/
* @copyright Copyright (c) 2012, PageLines hello@pagelines.com
* @copyright Copyright (c) 2012, PageLines hello@pagelines.com
*
*
* @internal last revised February 23, 2012
* @internal last revised February 23, 2012
* @version 2.1.1
* @version 2.1.1
*/
*/
复制
已复制
复制
已复制
if(!have_comments(
) && !comments_open())
//
if(!have_comments(
)
) && !comments_open())
return;
//
return;
?>
?>
<div id="comments" class="wp-comments">
<div id="comments" class="wp-comments">
<div class="wp-comments-pad">
<div class="wp-comments-pad">
<?php
<?php
/* Stop the rest of comments.php from being processed,
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* but don't kill the script entirely -- we still have
* to fully load the template.
* to fully load the template.
*/
*/
if ( post_password_required() ){
if ( post_password_required() ){
printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) );
printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) );
return;
return;
}
}
if ( have_comments() ) : ?>
if ( have_comments() ) : ?>
<h3 id="comments-title"><?php
<h3 id="comments-title"><?php
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ),
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ),
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
?></h3>
?></h3>
<ol class="commentlist">
<ol class="commentlist">
<?php wp_list_comments(array('avatar_size' => 65)); ?>
<?php wp_list_comments(array('avatar_size' => 65)); ?>
</ol>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="navigation fix">
<div class="navigation fix">
<div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>←</span> Older Comments", 'pagelines' ) ); ?></div>
<div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>←</span> Older Comments", 'pagelines' ) ); ?></div>
<div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>→</span>", 'pagelines' ) ); ?></div>
<div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>→</span>", 'pagelines' ) ); ?></div>
</div> <!-- .navigation -->
</div> <!-- .navigation -->
<?php endif; // check for comment navigation ?>
<?php endif; // check for comment navigation ?>
<?php else : // or, if we don't have comments:
<?php else : // or, if we don't have comments:
/* If there are no comments and comments are closed,
/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
* let's leave a little note, shall we?
*/
*/
if ( ! comments_open() ) :
if ( ! comments_open() ) :
?>
?>
<p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p>
<p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p>
<?php endif; // end ! comments_open() ?>
<?php endif; // end ! comments_open() ?>
<?php
<?php
endif; // end have_comments()
endif; // end have_comments()
comment_form(); ?>
comment_form(); ?>
</div>
</div>
</div>
</div>
已保存差异
原始文本
打开文件
<?php /** * COMMENTS * * The template for displaying Comments. * * @package PageLines Framework * @since 1.0 * * @link http://www.pagelines.com/ * @link http://www.pagelines.com/tour * * @author PageLines http://www.pagelines.com/ * @copyright Copyright (c) 2012, PageLines hello@pagelines.com * * @internal last revised February 23, 2012 * @version 2.1.1 */ if(!have_comments() && !comments_open()) return; ?> <div id="comments" class="wp-comments"> <div class="wp-comments-pad"> <?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ if ( post_password_required() ){ printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) ); return; } if ( have_comments() ) : ?> <h3 id="comments-title"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ), number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?></h3> <ol class="commentlist"> <?php wp_list_comments(array('avatar_size' => 65)); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation fix"> <div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>←</span> Older Comments", 'pagelines' ) ); ?></div> <div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>→</span>", 'pagelines' ) ); ?></div> </div> <!-- .navigation --> <?php endif; // check for comment navigation ?> <?php else : // or, if we don't have comments: /* If there are no comments and comments are closed, * let's leave a little note, shall we? */ if ( ! comments_open() ) : ?> <p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p> <?php endif; // end ! comments_open() ?> <?php endif; // end have_comments() comment_form(); ?> </div> </div>
更改后文本
打开文件
<?php /** * COMMENTS * * The template for displaying Comments. * * @package PageLines Framework * @since 1.0 * * @link http://www.pagelines.com/ * @link http://www.pagelines.com/tour * * @author PageLines http://www.pagelines.com/ * @copyright Copyright (c) 2012, PageLines hello@pagelines.com * * @internal last revised February 23, 2012 * @version 2.1.1 */ //if(!have_comments()) && !comments_open()) // return; ?> <div id="comments" class="wp-comments"> <div class="wp-comments-pad"> <?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ if ( post_password_required() ){ printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) ); return; } if ( have_comments() ) : ?> <h3 id="comments-title"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ), number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?></h3> <ol class="commentlist"> <?php wp_list_comments(array('avatar_size' => 65)); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation fix"> <div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>←</span> Older Comments", 'pagelines' ) ); ?></div> <div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>→</span>", 'pagelines' ) ); ?></div> </div> <!-- .navigation --> <?php endif; // check for comment navigation ?> <?php else : // or, if we don't have comments: /* If there are no comments and comments are closed, * let's leave a little note, shall we? */ if ( ! comments_open() ) : ?> <p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p> <?php endif; // end ! comments_open() ?> <?php endif; // end have_comments() comment_form(); ?> </div> </div>
查找差异