文件操作 - latest-past.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/src/views/v2/latest-past.php
编辑文件内容
<?php /** * View: Latest Past View * * Override this template in your own theme by creating a file at: * [your-theme]/tribe/events/v2/latest-past.php * * See more documentation about our views templating system. * * @link http://evnt.is/1aiy * * @version 5.1.0 * * @var array $events The array containing the events. */ if ( count( $events ) === 0 ) { return; } ?> <div class="tribe-events-calendar-latest-past"> <?php $this->template( 'latest-past/heading' ); ?> <?php foreach ( $events as $event ) : ?> <?php $this->setup_postdata( $event ); ?> <?php $this->template( 'latest-past/event', [ 'event' => $event ] ); ?> <?php endforeach; ?> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件