/
actions.ctp
121 lines (121 loc) · 5.28 KB
/
actions.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
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
115
116
117
118
119
120
121
<?php
/**
* Cms action view element file.
*
* this is the file that shows on the top left of the admin interface, it has
* the sub links that are available in the plugin.
*
* Copyright (c) 2009 Carl Sutton ( dogmatic69 )
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 )
* @link http://www.dogmatic.co.za
* @package cms
* @subpackage cms.views.elements.actions
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
?>
<?php echo $this->Html->link( __( 'Dashboard', true ), '/admin/cms', array( 'class' => 'link' ) ); ?>
<h3><?php __( 'Categories' ); ?></h3>
<ul class="nav">
<li><?php echo $this->Html->link( __( 'All', true ), array( 'plugin' => 'cms', 'controller' => 'categories', 'action' => 'index' ) ); ?></li>
<li><?php echo $this->Html->link( __( 'Active', true ), array( 'plugin' => 'cms', 'controller' => 'categories', 'action' => 'index', 'Category.active' => 1 ) ); ?></li>
<li><?php echo $this->Html->link( __( 'Pending', true ), array( 'plugin' => 'cms', 'controller' => 'categories', 'action' => 'index', 'Category.active' => 0 ) ); ?></li>
<li><?php echo $this->Html->link( __( 'New', true ), array( 'plugin' => 'cms', 'controller' => 'categories', 'action' => 'add' ) ); ?></li>
</ul>
<h3><?php __( 'Contents' ); ?></h3>
<ul class="nav">
<li><?php echo $this->Html->link( __( 'All', true ), array( 'plugin' => 'cms', 'controller' => 'contents', 'action' => 'index' ) ); ?></li>
<li><?php echo $this->Html->link( __( 'Active', true ), array( 'plugin' => 'cms', 'controller' => 'contents', 'action' => 'index', 'Content.active' => 1 ) ); ?></li>
<li><?php echo $this->Html->link( __( 'Pending', true ), array( 'plugin' => 'cms', 'controller' => 'contents', 'action' => 'index', 'Content.active' => 0 ) ); ?></li>
<li><?php echo $this->Html->link( __( 'New', true ), array( 'plugin' => 'cms', 'controller' => 'contents', 'action' => 'add' ) ); ?></li>
</ul>
<h3><?php __( 'Front Pages' ); ?></h3>
<ul class="nav">
<li><?php echo $this->Html->link( __( 'All', true ), array( 'plugin' => 'cms', 'controller' => 'contentFrontpages', 'action' => 'index' ) ); ?></li>
<li><?php echo $this->Html->link( __( 'New', true ), array( 'plugin' => 'cms', 'controller' => 'contentFrontpages', 'action' => 'add' ) ); ?></li>
</ul>
<h3><?php __( 'Featured Pages' ); ?></h3>
<ul class="nav">
<li><?php echo $this->Html->link( __( 'All', true ), array( 'plugin' => 'cms', 'controller' => 'features', 'action' => 'index' ) ); ?></li>
<li><?php echo $this->Html->link( __( 'New', true ), array( 'plugin' => 'cms', 'controller' => 'features', 'action' => 'add' ) ); ?></li>
</ul>
<h3><?php __( 'Comments' ); ?></h3>
<ul class="nav">
<li><?php echo $this->Html->link( __( 'Index', true ), array( 'plugin' => 'management', 'controller' => 'comments', 'action' => 'index', 'Comment.class' => 'Cms' ) ); ?></li>
<li><?php echo $this->Html->link( __( 'Pending', true ), array( 'plugin' => 'management', 'controller' => 'comments', 'action' => 'index', 'Comment.class' => 'Cms', 'Comment.active' => 0 ) ); ?></li>
</ul>
<h3><?php __( 'Maintanence' ); ?></h3>
<ul class="nav">
<li>
<?php
echo $this->Html->link(
__( 'Backup Sections', true ),
array(
'plugin' => 'core',
'controller' => 'backups',
'action' => 'backup',
'p' => 'cms',
'm' => 'section'
),
array(
'title' => __( 'Save a backup of all sections', true )
)
);
?>
</li>
<li>
<?php
echo $this->Html->link(
__( 'Backup Categories', true ),
array(
'plugin' => 'core',
'controller' => 'backups',
'action' => 'backup',
'p' => 'cms',
'm' => 'categories'
),
array(
'title' => __( 'Save a backup of all categories', true )
)
);
?>
</li>
<li>
<?php
echo $this->Html->link(
__( 'Backup Contents', true ),
array(
'plugin' => 'core',
'controller' => 'backups',
'action' => 'backup',
'p' => 'cms',
'm' => 'contents'
),
array(
'title' => __( 'Save a backup of all contents', true )
)
);
?>
</li>
<li>
<?php
echo $this->Html->link(
__( 'Backup Front Page', true ),
array(
'plugin' => 'core',
'controller' => 'backups',
'action' => 'backup',
'p' => 'cms',
'm' => 'frontPage'
),
array(
'title' => __( 'Save a backup of all front pages', true )
)
);
?>
</li>
</ul>