Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled diff
생성일
11년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
2 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
51 행
복사
4 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
51 행
복사
// Remove Genesis Author Box and load our own
// Remove Genesis Author Box and load our own
복사
복사됨
복사
복사됨
remove_action( 'genesis_after_
post
', 'genesis_do_author_box_single'
);
remove_action( 'genesis_after_
entry
', 'genesis_do_author_box_single'
, 8
);
add_action( 'genesis_after_
post
', 'be_author_box'
);
add_action( 'genesis_after_
entry
', 'be_author_box'
, 8
);
/**
/**
* Load Author Boxes
* Load Author Boxes
*
*
* @author Bill Erickson
* @author Bill Erickson
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
*/
*/
function be_author_box() {
function be_author_box() {
if( !is_single() )
if( !is_single() )
return;
return;
if( function_exists( 'get_coauthors' ) ) {
if( function_exists( 'get_coauthors' ) ) {
$authors = get_coauthors();
$authors = get_coauthors();
foreach( $authors as $author )
foreach( $authors as $author )
be_do_author_box( $author->data->ID );
be_do_author_box( $author->data->ID );
} else {
} else {
be_do_author_box( get_the_author_ID() );
be_do_author_box( get_the_author_ID() );
}
}
}
}
/**
/**
* Display Author Box
* Display Author Box
* Modified from Genesis to use an ID
* Modified from Genesis to use an ID
*
*
* @author Bill Erickson
* @author Bill Erickson
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
*/
*/
function be_do_author_box( $id = false ) {
function be_do_author_box( $id = false ) {
if( ! $id )
if( ! $id )
return;
return;
$authordata = get_userdata( $id );
$authordata = get_userdata( $id );
$gravatar_size = apply_filters( 'genesis_author_box_gravatar_size', 70, $context );
$gravatar_size = apply_filters( 'genesis_author_box_gravatar_size', 70, $context );
$gravatar = get_avatar( get_the_author_meta( 'email', $id ), $gravatar_size );
$gravatar = get_avatar( get_the_author_meta( 'email', $id ), $gravatar_size );
$title = apply_filters( 'genesis_author_box_title', sprintf( '<strong>%s %s</strong>', __( 'About', 'genesis' ), get_the_author_meta( 'display_name', $id ) ), $context );
$title = apply_filters( 'genesis_author_box_title', sprintf( '<strong>%s %s</strong>', __( 'About', 'genesis' ), get_the_author_meta( 'display_name', $id ) ), $context );
$description = wpautop( get_the_author_meta( 'description', $id ) );
$description = wpautop( get_the_author_meta( 'description', $id ) );
/** The author box markup, contextual */
/** The author box markup, contextual */
$pattern = $context == 'single' ? '<div class="author-box"><div>%s %s<br />%s</div></div><!-- end .authorbox-->' : '<div class="author-box">%s<h1>%s</h1><div>%s</div></div><!-- end .authorbox-->';
$pattern = $context == 'single' ? '<div class="author-box"><div>%s %s<br />%s</div></div><!-- end .authorbox-->' : '<div class="author-box">%s<h1>%s</h1><div>%s</div></div><!-- end .authorbox-->';
echo apply_filters( 'genesis_author_box', sprintf( $pattern, $gravatar, $title, $description ), $context, $pattern, $gravatar, $title, $description );
echo apply_filters( 'genesis_author_box', sprintf( $pattern, $gravatar, $title, $description ), $context, $pattern, $gravatar, $title, $description );
}
}
저장된 비교 결과
원본
파일 열기
// Remove Genesis Author Box and load our own remove_action( 'genesis_after_post', 'genesis_do_author_box_single' ); add_action( 'genesis_after_post', 'be_author_box' ); /** * Load Author Boxes * * @author Bill Erickson * @link http://www.billerickson.net/wordpress-post-multiple-authors/ */ function be_author_box() { if( !is_single() ) return; if( function_exists( 'get_coauthors' ) ) { $authors = get_coauthors(); foreach( $authors as $author ) be_do_author_box( $author->data->ID ); } else { be_do_author_box( get_the_author_ID() ); } } /** * Display Author Box * Modified from Genesis to use an ID * * @author Bill Erickson * @link http://www.billerickson.net/wordpress-post-multiple-authors/ */ function be_do_author_box( $id = false ) { if( ! $id ) return; $authordata = get_userdata( $id ); $gravatar_size = apply_filters( 'genesis_author_box_gravatar_size', 70, $context ); $gravatar = get_avatar( get_the_author_meta( 'email', $id ), $gravatar_size ); $title = apply_filters( 'genesis_author_box_title', sprintf( '<strong>%s %s</strong>', __( 'About', 'genesis' ), get_the_author_meta( 'display_name', $id ) ), $context ); $description = wpautop( get_the_author_meta( 'description', $id ) ); /** The author box markup, contextual */ $pattern = $context == 'single' ? '<div class="author-box"><div>%s %s<br />%s</div></div><!-- end .authorbox-->' : '<div class="author-box">%s<h1>%s</h1><div>%s</div></div><!-- end .authorbox-->'; echo apply_filters( 'genesis_author_box', sprintf( $pattern, $gravatar, $title, $description ), $context, $pattern, $gravatar, $title, $description ); }
수정본
파일 열기
// Remove Genesis Author Box and load our own remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 ); add_action( 'genesis_after_entry', 'be_author_box', 8 ); /** * Load Author Boxes * * @author Bill Erickson * @link http://www.billerickson.net/wordpress-post-multiple-authors/ */ function be_author_box() { if( !is_single() ) return; if( function_exists( 'get_coauthors' ) ) { $authors = get_coauthors(); foreach( $authors as $author ) be_do_author_box( $author->data->ID ); } else { be_do_author_box( get_the_author_ID() ); } } /** * Display Author Box * Modified from Genesis to use an ID * * @author Bill Erickson * @link http://www.billerickson.net/wordpress-post-multiple-authors/ */ function be_do_author_box( $id = false ) { if( ! $id ) return; $authordata = get_userdata( $id ); $gravatar_size = apply_filters( 'genesis_author_box_gravatar_size', 70, $context ); $gravatar = get_avatar( get_the_author_meta( 'email', $id ), $gravatar_size ); $title = apply_filters( 'genesis_author_box_title', sprintf( '<strong>%s %s</strong>', __( 'About', 'genesis' ), get_the_author_meta( 'display_name', $id ) ), $context ); $description = wpautop( get_the_author_meta( 'description', $id ) ); /** The author box markup, contextual */ $pattern = $context == 'single' ? '<div class="author-box"><div>%s %s<br />%s</div></div><!-- end .authorbox-->' : '<div class="author-box">%s<h1>%s</h1><div>%s</div></div><!-- end .authorbox-->'; echo apply_filters( 'genesis_author_box', sprintf( $pattern, $gravatar, $title, $description ), $context, $pattern, $gravatar, $title, $description ); }
비교하기