1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-06 13:16:54 +02:00

Monstra Dashboard - Plugin Skeleton #204

This commit is contained in:
Awilum
2014-01-07 20:08:09 +02:00
parent 4f92cb32c2
commit 14d7d93373
7 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* Dashboard plugin
*
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2014 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/
// Register plugin
Plugin::register( __FILE__,
__('Dashboard', 'dashboard'),
__('Dashboard plugin for Monstra', 'dashboard'),
'1.0.0',
'Awilum',
'http://monstra.org/');
// Load Sandbox Admin for Editor and Admin
if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin', 'editor'))) {
Plugin::admin('dashboard');
}