mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 21:26:58 +02:00
Monstra Library: basic core improvments
This commit is contained in:
@@ -11,21 +11,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// Register plugin
|
||||
Plugin::register( __FILE__,
|
||||
Plugin::register( __FILE__,
|
||||
__('Information', 'information'),
|
||||
__('Information plugin', 'information'),
|
||||
__('Information plugin', 'information'),
|
||||
'1.0.0',
|
||||
'Awilum',
|
||||
'Awilum',
|
||||
'http://monstra.org/',
|
||||
null,
|
||||
'box');
|
||||
|
||||
|
||||
if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) {
|
||||
|
||||
|
||||
// Include Information Admin
|
||||
Plugin::Admin('information', 'box');
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user