文件操作 - event-venue.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/src/views/blocks/event-venue.php
编辑文件内容
<?php /** * Block: Event Venue * * Override this template in your own theme by creating a file at: * [your-theme]/tribe/events/blocks/event-venue.php * * See more documentation about our Blocks Editor templating system. * * @link http://evnt.is/1aiy * * @version 6.2.0 * @since 6.2.0 Reworked class handling. * * @var bool $show_map Whether to show the map or not. */ $event_id = $this->get( 'post_id' ); $default_classes = [ 'tribe-block', 'tribe-block__venue', 'tribe-clearfix', 'tribe-block__venue--has-map' => $show_map && ! post_password_required( isset( $venue_id ) ? $venue_id : tribe_get_venue_id() ), ]; // Add the custom classes from the block attributes. $classes = isset( $attributes['className'] ) ? array_merge( $default_classes, [ $attributes['className'] ] ) : $default_classes; ?> <div <?php tec_classes( $classes ); ?>> <?php do_action( 'tribe_events_single_event_meta_secondary_section_start' ); ?> <?php $this->template( 'blocks/parts/venue' ); ?> <?php $this->template( 'blocks/parts/map' ); ?> <?php do_action( 'tribe_events_single_event_meta_secondary_section_end' ); ?> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件