文件操作 - Button.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/common/src/Common/Admin/Entities/Button.php
编辑文件内容
<?php /** * Button element. * * @since 6.1.0 */ declare( strict_types=1 ); namespace TEC\Common\Admin\Entities; use Tribe\Utils\Element_Attributes as Attributes; use Tribe\Utils\Element_Classes as Classes; /** * Class Button * * @since 6.3.0 */ class Button extends Container { /** * Button constructor. * * @since 6.3.0 * * @param ?Classes $classes The classes for the div. * @param ?Attributes $attributes The attributes for the div. */ public function __construct( ?Classes $classes = null, ?Attributes $attributes = null ) { if ( $classes ) { $this->set_classes( $classes ); } if ( $attributes ) { $this->set_attributes( $attributes ); } } /** * Render the element. * * @since 6.3.0 * * @return void */ public function render() { ?> <button class="<?php echo esc_attr( $this->get_classes() ); ?>" <?php echo $this->get_attributes(); // phpcs:ignore StellarWP.XSS.EscapeOutput,WordPress.Security.EscapeOutput ?> > <?php $this->render_children(); ?> </button> <?php } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件