@@ -4,10 +4,10 @@ |
||
4 | 4 | */ |
5 | 5 | class FacebookLikeBoxPage extends Page { |
6 | 6 | |
7 | - static $db = array( |
|
8 | - 'FacebookURL' => 'Text', |
|
9 | - 'PageWidth' => 'Int' |
|
10 | - ); |
|
7 | + static $db = array( |
|
8 | + 'FacebookURL' => 'Text', |
|
9 | + 'PageWidth' => 'Int' |
|
10 | + ); |
|
11 | 11 | |
12 | 12 | |
13 | 13 | function getCMSFields() { |
@@ -13,10 +13,10 @@ |
||
13 | 13 | |
14 | 14 | public function updateCMSFields(FieldList $fields) { |
15 | 15 | |
16 | - $fields->renameField("SkipToMainContentAccessKey", _t('AccessKey.SKIP_TO_MAIN_CONTENT_ACCESS_KEY')); |
|
16 | + $fields->renameField("SkipToMainContentAccessKey", _t('AccessKey.SKIP_TO_MAIN_CONTENT_ACCESS_KEY')); |
|
17 | 17 | $fields->addFieldToTab("Root.FacebookMetadata", new UploadField("FacebookLogo", _t('Facebook.METADATA_LOGO', |
18 | 18 | 'Image that will show in facebook when linking to this site. The image should be a square of minimum size 200px'))); |
19 | - } |
|
19 | + } |
|
20 | 20 | |
21 | 21 | |
22 | 22 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | static $has_one = array( |
32 | 32 | 'CoverPhoto' => 'Image', |
33 | - ); |
|
33 | + ); |
|
34 | 34 | |
35 | 35 | //Uncle Cheese hack from http://silverstripe.org/data-model-questions/show/6805 << to detect multiple calls to on after write or on before write |
36 | 36 | static $has_written = false; |
@@ -57,15 +57,15 @@ discard block |
||
57 | 57 | |
58 | 58 | |
59 | 59 | static function getFacebookApplicationID() { |
60 | - $config = SiteConfig::current_site_config(); |
|
60 | + $config = SiteConfig::current_site_config(); |
|
61 | 61 | return $config->getOGApplicationID(); |
62 | 62 | } |
63 | 63 | |
64 | - static function getFacebookApplicationSecret() { |
|
64 | + static function getFacebookApplicationSecret() { |
|
65 | 65 | return self::$facebook_application_secret; |
66 | 66 | } |
67 | 67 | |
68 | - static function getFacebookUserID() { |
|
68 | + static function getFacebookUserID() { |
|
69 | 69 | $config = SiteConfig::current_site_config(); |
70 | 70 | return $config->getOGAdminID(); |
71 | 71 | } |