mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 04:37:51 +02:00
Email Templates Plugin - Skeleton Added #2
This commit is contained in:
45
plugins/box/emails/emails.admin.php
Normal file
45
plugins/box/emails/emails.admin.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
// Admin Navigation: add new item
|
||||
Navigation::add(__('Emails', 'emails'), 'system', 'emails', 5);
|
||||
|
||||
/**
|
||||
* Emails admin class
|
||||
*/
|
||||
class EmailsAdmin extends Backend
|
||||
{
|
||||
/**
|
||||
* Main Sandbox admin function
|
||||
*/
|
||||
public static function main()
|
||||
{
|
||||
//
|
||||
// Do something here...
|
||||
//
|
||||
|
||||
// Check for get actions
|
||||
// -------------------------------------
|
||||
if (Request::get('action')) {
|
||||
|
||||
// Switch actions
|
||||
// -------------------------------------
|
||||
switch (Request::get('action')) {
|
||||
|
||||
// Plugin action
|
||||
// -------------------------------------
|
||||
case "edit":
|
||||
//
|
||||
// Do something here...
|
||||
//
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
// Display view
|
||||
View::factory('box/emails/views/backend/index')->display();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user