Add "custom-admin-settings-tab" plugin

This commit is contained in:
RainLoop Team 2016-06-04 23:26:50 +03:00
parent 613ab074d9
commit 3bcf23f8fa
11 changed files with 115 additions and 3 deletions

View 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()
));
}
}