www.legu.cc/plugins/Demo/DemoPlugin.class.php
2021-09-06 11:50:33 +08:00

43 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2014 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace plugins\Demo;//Demo插件英文名改成你的插件英文就行了
use Common\Lib\Plugin;
/**
* Demo
*/
class DemoPlugin extends Plugin{//Demo插件英文名改成你的插件英文就行了
public $info = array(
'name'=>'Demo',//Demo插件英文名改成你的插件英文就行了
'title'=>'插件演示',
'description'=>'插件演示',
'status'=>1,
'author'=>'ThinkCMF',
'version'=>'1.0'
);
public $has_admin=1;//插件是否有后台管理界面
public function install(){//安装方法必须实现
return true;//安装成功返回true失败false
}
public function uninstall(){//卸载方法必须实现
return true;//卸载成功返回true失败false
}
//实现的footer钩子方法
public function footer($param){
$config=$this->getConfig();
$this->assign($config);
$this->display('widget');
}
}