文件操作 - event-category.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/src/views/blocks/event-category.php
编辑文件内容
<?php /** * Block: Event Category * * Override this template in your own theme by creating a file at: * [your-theme]/tribe/events/blocks/event-category.php * * See more documentation about our Blocks Editor templating system. * * @link http://evnt.is/1aiy * * @version 4.7 * */ $default_classes = [ 'tribe-events-single-section', 'tribe-events-section-category', 'tribe-clearfix' ]; // 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 echo tribe_get_event_categories( $this->get( 'post_id' ), [ 'before' => '', 'sep' => ', ', 'after' => '', 'label' => null, // An appropriate plural/singular label will be provided 'label_before' => '<dt class="tribe-events-event-categories-label">', 'label_after' => '</dt>', 'wrap_before' => '<dd class="tribe-events-event-categories">', 'wrap_after' => '</dd>', ] ); ?> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件