You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
991 B
56 lines
991 B
<?php
|
|
namespace addons\team;
|
|
|
|
use think\Addons;
|
|
|
|
/**
|
|
* 显示团队
|
|
*/
|
|
class Team extends Addons
|
|
{
|
|
public $info = [
|
|
'name' => 'Team',
|
|
'title' => '企业介绍',
|
|
'description' => '后台首页企业介绍显示',
|
|
'status' => 0,
|
|
'author' => '深圳市花园里教育科技有限公司',
|
|
'version' => '0.1',
|
|
'admin'=>'0'
|
|
];
|
|
|
|
/**
|
|
* @var array 插件钩子
|
|
*/
|
|
public $hooks = [
|
|
// 钩子名称 => 钩子说明
|
|
'team'=>'团队钩子'
|
|
];
|
|
|
|
/**
|
|
* 插件安装方法
|
|
* @return bool
|
|
*/
|
|
public function install()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* 插件卸载方法
|
|
* @return bool
|
|
*/
|
|
public function uninstall()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* 实现的team钩子方法
|
|
* @return mixed
|
|
*/
|
|
public function team()
|
|
{
|
|
$config=$this->getConfig();
|
|
if($config['display']) return $this->fetch('team');
|
|
}
|
|
}
|
|
|