parent
918906f042
commit
b29e01d5cf
@ -0,0 +1,49 @@ |
||||
<?php |
||||
|
||||
class OC_Defaults { |
||||
|
||||
private static $communityEntity = "ownCloud"; |
||||
private static $communityName = "ownCloud"; |
||||
private static $communityBaseUrl = "http://owncloud.org"; |
||||
private static $communitySlogan = "web services under your control"; |
||||
|
||||
private static $enterpriseEntity = "ownCloud Inc."; |
||||
private static $enterpriseName = "ownCloud Enterprise Edition"; |
||||
private static $enterpriseBaseUrl = "https://owncloud.com"; |
||||
private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!"; |
||||
|
||||
|
||||
public static function getBaseUrl() { |
||||
if (OC_Util::getEditionString() === '') { |
||||
return self::$communityBaseUrl; |
||||
} else { |
||||
return self::$enterpriseBaseUrl; |
||||
} |
||||
} |
||||
|
||||
public static function getName() { |
||||
if (OC_Util::getEditionString() === '') { |
||||
return self::$communityName; |
||||
} else { |
||||
return self::$enterpriseName; |
||||
} |
||||
} |
||||
|
||||
public static function getEntity() { |
||||
if (OC_Util::getEditionString() === '') { |
||||
return self::$communityEntity; |
||||
} else { |
||||
return self::$enterpriseEntity; |
||||
} |
||||
} |
||||
|
||||
public static function getSlogan() { |
||||
$l = OC_L10N::get('core'); |
||||
if (OC_Util::getEditionString() === '') { |
||||
return $l->t(self::$communitySlogan); |
||||
} else { |
||||
return self::$enterpriseSlogan; |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue