forked from cynial/STBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.php
More file actions
114 lines (106 loc) · 4.97 KB
/
Copy pathplugins.php
File metadata and controls
114 lines (106 loc) · 4.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('admin/header');
$this->load->view('admin/menu');
?>
<div class="main">
<div class="body body-950">
<?php $this->load->view('admin/notify'); ?>
<div class="container typecho-page-title">
<div class="column-24 start-01">
<h2><?php echo $page_title;?></h2>
<p><?php echo anchor(site_url(),'查看我的站点');?></p>
</div>
</div>
<div class="container typecho-page-main">
<div class="column-24 typecho-list">
<?php if ($activated_plugins): ?>
<h6 class="typecho-list-table-title">激活的插件</h6>
<table class="typecho-list-table">
<colgroup>
<col width="10"/>
<col width="200"/>
<col width="360"/>
<col width="90"/>
<col width="105"/>
<col width="125"/>
</colgroup>
<thead>
<tr>
<th class="typecho-radius-topleft"> </th>
<th>名称</th>
<th>描述</th>
<th>版本</th>
<th>作者</th>
<th class="typecho-radius-topright">操作</th>
</tr>
</thead>
<tbody>
<?php foreach($activated_plugins as $key => $plugin):?>
<tr<?php echo ($key % 2==0)?'':' class="even"'; ?> id="plugin-<?php echo $plugin['directory']; ?>">
<td></td>
<td><?php echo $plugin['name']; ?>
</td>
<td><?php echo $plugin['description']; ?></td>
<td><?php echo $plugin['version']; ?></td>
<td><?php echo empty($plugin['plugin_uri']) ? $plugin['author'] : '<a href="' . $plugin['plugin_uri']
. '">' . $plugin['author'] . '</a>'; ?></td>
<td>
<?php if($plugin['configurable']):?>
<?php echo anchor('admin/plugins/config/'.$plugin['directory'],'设置');?>
|
<?php endif;?>
<?php echo anchor('admin/plugins/deactivate/'.$plugin['directory'],'禁用');?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<?php if ($deactivated_plugins): ?>
<h6 class="typecho-list-table-title">禁用的插件</h6>
<table class="typecho-list-table">
<colgroup>
<col width="10"/>
<col width="200"/>
<col width="360"/>
<col width="90"/>
<col width="105"/>
<col width="125"/>
</colgroup>
<thead>
<tr>
<th class="typecho-radius-topleft"> </th>
<th>名称</th>
<th>描述</th>
<th>版本</th>
<th>作者</th>
<th class="typecho-radius-topright">操作</th>
</tr>
</thead>
<tbody>
<?php foreach($deactivated_plugins as $key => $plugin):?>
<tr<?php echo ($key % 2==0)?'':' class="even"'; ?> id="plugin-<?php echo $plugin['directory']; ?>">
<td></td>
<td><?php echo $plugin['name']; ?>
</td>
<td><?php echo $plugin['description']; ?></td>
<td><?php echo $plugin['version']; ?></td>
<td><?php echo empty($plugin['plugin_uri']) ? $plugin['author'] : '<a href="' . $plugin['plugin_uri']
. '">' . $plugin['author'] . '</a>'; ?></td>
<td>
<?php echo anchor('admin/plugins/activate/'.$plugin['directory'],'激活');?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php
$this->load->view('admin/common-js');
$this->load->view('admin/copyright');
$this->load->view('admin/footer');
?>