Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取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 -->
查找差异