mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Plugin system improvements
+ piwik analytics plugin (not tested)
This commit is contained in:
parent
4c38993c26
commit
085095b717
11 changed files with 137 additions and 11 deletions
|
|
@ -18,11 +18,17 @@ class GoogleAnalyticsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
*/
|
||||
public function configMapping()
|
||||
{
|
||||
return array(
|
||||
\RainLoop\Plugins\Property::NewInstance('account')->SetLabel('Account')
|
||||
->SetAllowedInJs(true)
|
||||
->SetDescription('UA-XXXXXXXX-X')
|
||||
->SetDefaultValue(''),
|
||||
$oAccount = \RainLoop\Plugins\Property::NewInstance('account')->SetLabel('Account')
|
||||
->SetAllowedInJs(true)
|
||||
->SetDefaultValue('')
|
||||
;
|
||||
|
||||
if (\method_exists($oAccount, 'SetPlaceholder'))
|
||||
{
|
||||
$oAccount->SetPlaceholder('UA-XXXXXXXX-X');
|
||||
}
|
||||
|
||||
return array($oAccount,
|
||||
\RainLoop\Plugins\Property::NewInstance('domain_name')->SetLabel('Domain Name')
|
||||
->SetAllowedInJs(true)
|
||||
->SetDefaultValue(''),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue