/
admin_dashboard.ctp
executable file
·44 lines (44 loc) · 1.48 KB
/
admin_dashboard.ctp
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
<?php
$core = array(
array(
'name' => 'Plugins',
'description' => 'View core plugins',
'icon' => '/installer/img/icon.png',
'author' => 'Infinitas',
'dashboard' => array('controller' => 'plugins', 'action' => 'index', 'Plugin.core' => 1)
),
array(
'name' => 'Update',
'description' => 'Update your site',
'icon' => '/installer/img/update.png',
'author' => 'Infinitas',
'dashboard' => array('controller' => 'plugins', 'action' => 'update_infinitas')
),
);
$nonCore = array(
array(
'name' => 'Plugins',
'description' => 'View, install and manage your plugins',
'icon' => '/installer/img/icon.png',
'author' => 'Infinitas',
'dashboard' => array('controller' => 'plugins', 'action' => 'index', 'Plugin.core' => 0)
),
array(
'name' => 'Install',
'description' => 'Install additional plugins and themes',
'icon' => '/installer/img/install.png',
'author' => 'Infinitas',
'dashboard' => array('controller' => 'plugins', 'action' => 'install')
),
);
$core = $this->Menu->builDashboardLinks($core, 'plugins_core');
$nonCore = $this->Menu->builDashboardLinks($nonCore, 'plugins_non_core');
?>
<div class="dashboard grid_16">
<h1><?php echo __('Infinitas Core'); ?></h1>
<ul class="icons"><li><?php echo implode('</li><li>', current((array)$core)); ?></li></ul>
</div>
<div class="dashboard grid_16">
<h1><?php echo __('Plugins'); ?></h1>
<ul class="icons"><li><?php echo implode('</li><li>', current((array)$nonCore)); ?></li></ul>
</div>