You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
PHTML
45 lines
1.3 KiB
PHTML
5 years ago
|
<?php
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | OneThink [ WE CAN DO IT JUST THINK IT ]
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
|
||
|
// +----------------------------------------------------------------------
|
||
|
|
||
|
|
||
|
namespace Addons\DevTeam;
|
||
|
use Common\Controller\Addon;
|
||
|
|
||
|
/**
|
||
|
* 开发团队信息插件
|
||
|
* @author thinkphp
|
||
|
*/
|
||
|
|
||
|
class DevTeamAddon extends Addon{
|
||
|
|
||
|
public $info = array(
|
||
|
'name'=>'DevTeam',
|
||
|
'title'=>'开发团队信息',
|
||
|
'description'=>'开发团队成员信息',
|
||
|
'status'=>1,
|
||
|
'author'=>'thinkphp',
|
||
|
'version'=>'0.1'
|
||
|
);
|
||
|
|
||
|
public function install(){
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function uninstall(){
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
//实现的AdminIndex钩子方法
|
||
|
public function AdminIndex($param){
|
||
|
$config = $this->getConfig();
|
||
|
$this->assign('addons_config', $config);
|
||
|
if($config['display'])
|
||
|
$this->display('widget');
|
||
|
}
|
||
|
}
|