Added shared default plugin list between profiles

This commit is contained in:
Mikael Nordfeldth 2013-08-18 20:29:16 +02:00
parent 7e4718a4eb
commit 761a849a34

View File

@ -74,6 +74,19 @@ class SiteProfile
abstract class SiteProfileSettings abstract class SiteProfileSettings
{ {
abstract static function getSettings(); abstract static function getSettings();
static function defaultPlugins() {
return array(
'Bookmark' => null,
'Event' => null,
'OpenID' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null,
);
}
} }
/** /**
@ -98,22 +111,14 @@ class PublicSite extends SiteProfileSettings
) )
), ),
'plugins' => array( 'plugins' => array(
'default' => array( 'default' => array_merge(self::defaultPlugins(), array(
'Bookmark' => null,
'ClientSideShorten' => null, 'ClientSideShorten' => null,
'Directory' => null, 'Directory' => null,
'Event' => null,
'ExtendedProfile' => null, 'ExtendedProfile' => null,
'Geonames' => null, 'Geonames' => null,
'Gravatar' => null, 'Gravatar' => null,
'OpenID' => null,
'OStatus' => null, 'OStatus' => null,
'Poll' => null, ))
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null
)
), ),
'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
); );
@ -143,24 +148,16 @@ class PrivateSite extends SiteProfileSettings
) )
), ),
'plugins' => array( 'plugins' => array(
'default' => array( 'default' => array_merge(self::defaultPlugins(), array(
'Bookmark' => null,
'ClientSideShorten' => null, 'ClientSideShorten' => null,
'Directory' => null, 'Directory' => null,
'Event' => null,
'ExtendedProfile' => null, 'ExtendedProfile' => null,
'EmailRegistration' => null, 'EmailRegistration' => null,
'Geonames' => null, 'Geonames' => null,
'Gravatar' => null, 'Gravatar' => null,
'NewMenu' => null, 'NewMenu' => null,
'MobileProfile' => null, 'MobileProfile' => null,
'OpenID' => null, ))
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null
)
), ),
'profile' => array('delete' => 'true'), 'profile' => array('delete' => 'true'),
'license' => array('type' => 'private'), 'license' => array('type' => 'private'),
@ -205,21 +202,13 @@ class CommunitySite extends SiteProfileSettings
) )
), ),
'plugins' => array( 'plugins' => array(
'default' => array( 'default' => array_merge(self::defaultPlugins(), array(
'Bookmark' => null,
'ClientSideShorten' => null, 'ClientSideShorten' => null,
'Directory' => null, 'Directory' => null,
'Event' => null,
'Geonames' => null, 'Geonames' => null,
'Gravatar' => null, 'Gravatar' => null,
'OpenID' => null,
'OStatus' => null, 'OStatus' => null,
'Poll' => null, ))
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null
)
), ),
'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
); );
@ -249,23 +238,15 @@ class SingleuserSite extends SiteProfileSettings
) )
), ),
'plugins' => array( 'plugins' => array(
'default' => array( 'default' => array_merge(self::defaultPlugins(), array(
'Bookmark' => null,
'ClientSideShorten' => null, 'ClientSideShorten' => null,
'Event' => null,
'Geonames' => null, 'Geonames' => null,
'NewMenu' => null, 'NewMenu' => null,
'MobileProfile' => null, 'MobileProfile' => null,
'OpenID' => null,
'OStatus' => null, 'OStatus' => null,
'Poll' => null,
'QnA' => null,
'SearchSub' => null,
'StrictTransportSecurity' => null,
'TagSub' => null,
'TwitterBridge' => null, 'TwitterBridge' => null,
'FacebookBridge' => null, 'FacebookBridge' => null,
) ))
), ),
'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
); );