Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 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>
비교하기