@@ -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,8 +13,8 @@ |
||
| 13 | 13 | function getCMSFields() { |
| 14 | 14 | $fields = parent::getCMSFields(); |
| 15 | 15 | |
| 16 | - $fields->addFieldToTab( 'Root.Facebook', new TextField('FacebookURL')); |
|
| 17 | - $fields->addFieldToTab( 'Root.Facebook', new NumericField('PageWidth', 'Width of stream in pixels')); |
|
| 16 | + $fields->addFieldToTab('Root.Facebook', new TextField('FacebookURL')); |
|
| 17 | + $fields->addFieldToTab('Root.Facebook', new NumericField('PageWidth', 'Width of stream in pixels')); |
|
| 18 | 18 | |
| 19 | 19 | return $fields; |
| 20 | 20 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | */ |
| 9 | 9 | public function RemoveEntities($text) { |
| 10 | - return preg_replace("/&#?[a-z0-9]{2,8};/i","",$text); |
|
| 10 | + return preg_replace("/&#?[a-z0-9]{2,8};/i", "", $text); |
|
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | |
@@ -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 | } |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | //require_once "facebook.php"; |
| 4 | 4 | |
| 5 | 5 | class FacebookCredentials extends Page { |
| 6 | - static $db = array ( |
|
| 6 | + static $db = array( |
|
| 7 | 7 | 'BulkTitle' => 'Varchar', |
| 8 | 8 | 'BulkCaption' => 'Varchar', |
| 9 | 9 | 'BulkCopyright' => 'Varchar', |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | |
| 27 | - static $has_many = array ( |
|
| 27 | + static $has_many = array( |
|
| 28 | 28 | 'AttachedFiles' => 'ImageFile' |
| 29 | 29 | ); |
| 30 | 30 | |