更新插件文件
This commit is contained in:
45
addons/devteam/Plugin.php
Normal file
45
addons/devteam/Plugin.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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;
|
||||
|
||||
/**
|
||||
* 开发团队信息插件
|
||||
* @author thinkphp
|
||||
*/
|
||||
|
||||
class Plugin extends \sent\Addons{
|
||||
|
||||
public $info = array(
|
||||
'name'=>'Devteam',
|
||||
'title'=>'开发团队信息',
|
||||
'description'=>'开发团队成员信息',
|
||||
'status'=>1,
|
||||
'author'=>'molong',
|
||||
'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']){
|
||||
return $this->fetch('widget');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user