CRLF to LF

This commit is contained in:
djmaze 2020-03-11 14:17:52 +01:00
parent 4468d5bd22
commit 6e0d0b3b6e
209 changed files with 23729 additions and 22109 deletions

View file

@ -1,49 +1,49 @@
<?php
class GoogleAnalyticsPlugin extends \RainLoop\Plugins\AbstractPlugin
{
/**
* @return void
*/
public function Init()
{
if ('' !== $this->Config()->Get('plugin', 'account', ''))
{
$this->addJs('js/include.js');
}
}
/**
* @return array
*/
public function configMapping()
{
$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(''),
\RainLoop\Plugins\Property::NewInstance('universal_analytics')->SetLabel('Use Universal Analytics')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetAllowedInJs(true)
->SetDefaultValue(true),
\RainLoop\Plugins\Property::NewInstance('track_pageview')->SetLabel('Track Pageview')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetAllowedInJs(true)
->SetDefaultValue(true),
\RainLoop\Plugins\Property::NewInstance('send_events')->SetLabel('Send Events')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetAllowedInJs(true)
->SetDefaultValue(false)
);
}
}
<?php
class GoogleAnalyticsPlugin extends \RainLoop\Plugins\AbstractPlugin
{
/**
* @return void
*/
public function Init()
{
if ('' !== $this->Config()->Get('plugin', 'account', ''))
{
$this->addJs('js/include.js');
}
}
/**
* @return array
*/
public function configMapping()
{
$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(''),
\RainLoop\Plugins\Property::NewInstance('universal_analytics')->SetLabel('Use Universal Analytics')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetAllowedInJs(true)
->SetDefaultValue(true),
\RainLoop\Plugins\Property::NewInstance('track_pageview')->SetLabel('Track Pageview')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetAllowedInJs(true)
->SetDefaultValue(true),
\RainLoop\Plugins\Property::NewInstance('send_events')->SetLabel('Send Events')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetAllowedInJs(true)
->SetDefaultValue(false)
);
}
}