Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled diff
생성일
8년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
3 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
94 행
복사
4 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
95 행
복사
<?php
<?php
/**
/**
* List View Loop
* List View Loop
* This file sets up the structure for the list loop
* This file sets up the structure for the list loop
*
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php
*
*
* @version 4.4
* @version 4.4
* @package TribeEventsCalendar
* @package TribeEventsCalendar
*
*
*/
*/
if ( ! defined( 'ABSPATH' ) ) {
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
die( '-1' );
} ?>
} ?>
<?php
<?php
global $post;
global $post;
global $more;
global $more;
$more = false;
$more = false;
?>
?>
<div class="tribe-events-loop full-width">
<div class="tribe-events-loop full-width">
<script>
<script>
jQuery(function($) {
jQuery(function($) {
// Let's get the parameter value of 'tribe-bar-search'
// Let's get the parameter value of 'tribe-bar-search'
// And update our h2#courseAvailabilityHeader text!
// And update our h2#courseAvailabilityHeader text!
var getUrlParameter = function getUrlParameter(sParam) {
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sURLVariables = sPageURL.split('&'),
sParameterName,
sParameterName,
i;
i;
for (i = 0; i < sURLVariables.length; i++) {
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
}
}
};
};
var courseType = getUrlParameter('tribe-bar-search');
var courseType = getUrlParameter('tribe-bar-search');
if(courseType !== undefined) {
if(courseType !== undefined) {
var arr = courseType.split('+');
var arr = courseType.split('+');
var courseType = arr[0];
var courseType = arr[0];
var courseLocation = arr[1];
var courseLocation = arr[1];
// if not empty parameter, then say something nice!
// if not empty parameter, then say something nice!
if(!(arr.length === 1 && arr[0] === '')) {
if(!(arr.length === 1 && arr[0] === '')) {
$('#courseAvailabilityHeader').text('All available Courses for ' + courseType + ' ' + courseLocation);
$('#courseAvailabilityHeader').text('All available Courses for ' + courseType + ' ' + courseLocation);
}
}
}
}
});
});
</script>
</script>
<h2 id="courseAvailabilityHeader">All available Courses</h2>
<h2 id="courseAvailabilityHeader">All available Courses</h2>
<div class="row">
<div class="row">
<?php while ( have_posts() ) : the_post(); ?>
<?php while ( have_posts() ) : the_post(); ?>
복사
복사됨
복사
복사됨
<?php do_action( 'tribe_events_inside_before_loop' ); ?>
<div class="col-12 col-lg-4">
<div class="col-12 col-lg-4">
복사
복사됨
복사
복사됨
<?php do_action( 'tribe_events_inside_before_loop' ); ?>
<!-- Event -->
<!-- Event -->
<?php
<?php
$post_parent = '';
$post_parent = '';
if ( $post->post_parent ) {
if ( $post->post_parent ) {
$post_parent = ' data-parent-post-id="' . absint( $post->post_parent ) . '"';
$post_parent = ' data-parent-post-id="' . absint( $post->post_parent ) . '"';
}
}
?>
?>
복사
복사됨
복사
복사됨
<div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>" <?php echo $post_parent; ?>>
<div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>" <?php echo $post_parent; ?>>
<?php
<?php
$event_type = tribe( 'tec.featured_events' )->is_featured( $post->ID ) ? 'featured' : 'event';
$event_type = tribe( 'tec.featured_events' )->is_featured( $post->ID ) ? 'featured' : 'event';
/**
/**
* Filters the event type used when selecting a template to render
* Filters the event type used when selecting a template to render
*
*
* @param $event_type
* @param $event_type
*/
*/
$event_type = apply_filters( 'tribe_events_list_view_event_type', $event_type );
$event_type = apply_filters( 'tribe_events_list_view_event_type', $event_type );
tribe_get_template_part( 'list/single', $event_type );
tribe_get_template_part( 'list/single', $event_type );
?>
?>
</div>
</div>
복사
복사됨
복사
복사됨
</div>
<?php do_action( 'tribe_events_inside_after_loop' ); ?>
<?php do_action( 'tribe_events_inside_after_loop' ); ?>
복사
복사됨
복사
복사됨
</div>
<?php endwhile; ?>
<?php endwhile; ?>
</div>
</div>
</div><!-- .tribe-events-loop -->
</div><!-- .tribe-events-loop -->
저장된 비교 결과
원본
파일 열기
<?php /** * List View Loop * This file sets up the structure for the list loop * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php * * @version 4.4 * @package TribeEventsCalendar * */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } ?> <?php global $post; global $more; $more = false; ?> <div class="tribe-events-loop full-width"> <script> jQuery(function($) { // Let's get the parameter value of 'tribe-bar-search' // And update our h2#courseAvailabilityHeader text! var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; var courseType = getUrlParameter('tribe-bar-search'); if(courseType !== undefined) { var arr = courseType.split('+'); var courseType = arr[0]; var courseLocation = arr[1]; // if not empty parameter, then say something nice! if(!(arr.length === 1 && arr[0] === '')) { $('#courseAvailabilityHeader').text('All available Courses for ' + courseType + ' ' + courseLocation); } } }); </script> <h2 id="courseAvailabilityHeader">All available Courses</h2> <div class="row"> <?php while ( have_posts() ) : the_post(); ?> <div class="col-12 col-lg-4"> <?php do_action( 'tribe_events_inside_before_loop' ); ?> <!-- Event --> <?php $post_parent = ''; if ( $post->post_parent ) { $post_parent = ' data-parent-post-id="' . absint( $post->post_parent ) . '"'; } ?> <div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>" <?php echo $post_parent; ?>> <?php $event_type = tribe( 'tec.featured_events' )->is_featured( $post->ID ) ? 'featured' : 'event'; /** * Filters the event type used when selecting a template to render * * @param $event_type */ $event_type = apply_filters( 'tribe_events_list_view_event_type', $event_type ); tribe_get_template_part( 'list/single', $event_type ); ?> </div> <?php do_action( 'tribe_events_inside_after_loop' ); ?> </div> <?php endwhile; ?> </div> </div><!-- .tribe-events-loop -->
수정본
파일 열기
<?php /** * List View Loop * This file sets up the structure for the list loop * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php * * @version 4.4 * @package TribeEventsCalendar * */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } ?> <?php global $post; global $more; $more = false; ?> <div class="tribe-events-loop full-width"> <script> jQuery(function($) { // Let's get the parameter value of 'tribe-bar-search' // And update our h2#courseAvailabilityHeader text! var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; var courseType = getUrlParameter('tribe-bar-search'); if(courseType !== undefined) { var arr = courseType.split('+'); var courseType = arr[0]; var courseLocation = arr[1]; // if not empty parameter, then say something nice! if(!(arr.length === 1 && arr[0] === '')) { $('#courseAvailabilityHeader').text('All available Courses for ' + courseType + ' ' + courseLocation); } } }); </script> <h2 id="courseAvailabilityHeader">All available Courses</h2> <div class="row"> <?php while ( have_posts() ) : the_post(); ?> <?php do_action( 'tribe_events_inside_before_loop' ); ?> <div class="col-12 col-lg-4"> <!-- Event --> <?php $post_parent = ''; if ( $post->post_parent ) { $post_parent = ' data-parent-post-id="' . absint( $post->post_parent ) . '"'; } ?> <div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>" <?php echo $post_parent; ?>> <?php $event_type = tribe( 'tec.featured_events' )->is_featured( $post->ID ) ? 'featured' : 'event'; /** * Filters the event type used when selecting a template to render * * @param $event_type */ $event_type = apply_filters( 'tribe_events_list_view_event_type', $event_type ); tribe_get_template_part( 'list/single', $event_type ); ?> </div> </div> <?php do_action( 'tribe_events_inside_after_loop' ); ?> <?php endwhile; ?> </div> </div><!-- .tribe-events-loop -->
비교하기