mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Add "custom-admin-settings-tab" plugin
This commit is contained in:
parent
613ab074d9
commit
3bcf23f8fa
11 changed files with 115 additions and 3 deletions
29
plugins/custom-admin-settings-tab/index.php
Normal file
29
plugins/custom-admin-settings-tab/index.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function Init()
|
||||
{
|
||||
$this->UseLangs(true); // start use langs folder
|
||||
|
||||
$this->addJs('js/CustomAdminSettings.js', true); // add js file
|
||||
|
||||
$this->addAjaxHook('AjaxAdminGetData', 'AjaxAdminGetData');
|
||||
|
||||
$this->addTemplate('templates/PluginCustomAdminSettingnTab.html', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function AjaxAdminGetData()
|
||||
{
|
||||
return $this->ajaxResponse(__FUNCTION__, array(
|
||||
'PHP' => phpversion()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue