初始化项目
This commit is contained in:
46
addons/devteam/Devteam.php
Normal file
46
addons/devteam/Devteam.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?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 app\common\controller\Addons;
|
||||
|
||||
/**
|
||||
* 开发团队信息插件
|
||||
* @author thinkphp
|
||||
*/
|
||||
|
||||
class Devteam extends 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']){
|
||||
$this->template('widget');
|
||||
}
|
||||
}
|
||||
}
|
||||
36
addons/devteam/config.php
Normal file
36
addons/devteam/config.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return array(
|
||||
'title'=>array(//配置在表单中的键名 ,这个会是config[title]
|
||||
'title'=>'显示标题:',//表单的文字
|
||||
'type'=>'text', //表单的类型:text、textarea、checkbox、radio、select等
|
||||
'value'=>'SentCMS开发团队', //表单的默认值
|
||||
),
|
||||
'width'=>array(
|
||||
'title'=>'显示宽度:',
|
||||
'type'=>'select',
|
||||
'options'=>array(
|
||||
'1'=>'1格',
|
||||
'2'=>'2格',
|
||||
'4'=>'4格',
|
||||
'6'=>'6格'
|
||||
),
|
||||
'value'=>'6'
|
||||
),
|
||||
'display'=>array(
|
||||
'title'=>'是否显示:',
|
||||
'type'=>'radio',
|
||||
'options'=>array(
|
||||
'1'=>'显示',
|
||||
'0'=>'不显示'
|
||||
),
|
||||
'value'=>'1'
|
||||
)
|
||||
);
|
||||
35
addons/devteam/view/index/widget.html
Normal file
35
addons/devteam/view/index/widget.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="col-lg-{$addons_config.width}">
|
||||
<div class="main-box clearfix">
|
||||
<header class="main-box-header clearfix">
|
||||
<h2>{$addons_config.title}</h2>
|
||||
</header>
|
||||
<div class="main-box-body clearfix">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>总策划</th>
|
||||
<td>郭平平</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>产品设计及研发团队</th>
|
||||
<td>郭平平</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>界面及用户体验团队</th>
|
||||
<td>BootStrap 团队</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>官方网址</th>
|
||||
<td><a href="http://www.tensent.cn" target="_blank">www.tensent.cn</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>官方QQ群</th>
|
||||
<td><a target="_blank" href="http://jq.qq.com/?_wv=1027&k=WVW2se"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="SentCMS技术交流" title="SentCMS技术交流"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>BUG反馈</th>
|
||||
<td><a href="http://bbs.sentcms.com/" target="_blank">SentCMS讨论区</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user