文件操作 - Section.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/common/src/Common/Admin/Section.php
编辑文件内容
<?php /** * Section. * * @since 6.1.0 */ declare( strict_types=1 ); namespace TEC\Common\Admin; use TEC\Common\Admin\Entities\Heading; use TEC\Common\Admin\Entities\Validate_Elements; /** * Class Section * * @since 6.1.0 */ abstract class Section { use Validate_Elements; /** * Title for the sidebar. * * @var ?Heading */ protected ?Heading $title = null; /** * Set the title for the sidebar. * * @since 6.1.0 * * @param Heading $heading The title for the sidebar. * * @return static */ public function set_title( Heading $heading ) { $this->title = $heading; return $this; } /** * Render the title for the sidebar. * * @since 6.1.0 * * @return void */ protected function render_title() { if ( ! $this->title ) { return; } $this->title->render(); } /** * Render the section content. * * @since 6.1.0 * * @return void */ abstract public function render(); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件