文件操作 - Views.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/matthewroller/public_html/wp-content/plugins/templately/includes/Utils/Views.php
编辑文件内容
<?php namespace Templately\Utils; class Views extends Base { protected $dir = ''; public function __construct( $path ) { $this->dir = trailingslashit($path); } public function get( string $template, array $args = [] ) { extract( $args ); include $this->get_path( $template ); } public function get_path( $template ): string { return $this->dir . $template . '.php'; } public function get_header() { $this->get( 'templates/header' ); } public function get_footer() { $this->get( 'templates/footer' ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件