This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ************************************************************ | |
# Sequel Pro SQL dump | |
# Version 3348 | |
# | |
# http://www.sequelpro.com/ | |
# http://code.google.com/p/sequel-pro/ | |
# | |
# Host: localhost (MySQL 5.1.54) | |
# Generation Time: 2011-07-10 19:08:36 +1200 | |
# ************************************************************ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This script will copy a pre-commit hook from this repo to a developers local git | |
// The pre-commit hook will be run whenever a developer runs "git commit" | |
// This script will run after running composer install, via the "post-install-cmd" in composer.json | |
// | |
$gitHookFilename = '.git/hooks/pre-commit'; | |
$shellHookFilename = 'pre-commit.sh'; | |
if (file_exists($gitHookFilename)) { | |
unlink($gitHookFilename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
/* | |
A simple helper plugin for wrapping Google Analytic event tracking | |
into sites through jQuery and HTML5 data attributes. | |
This assumes that you have used the standard configuration provided | |
by google for setting up Google Analytics and used the _gaq var for | |
storing the tracker. | |
Can track focus, activate, hover and click input methods but not key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use SilverStripe\Forms\FieldList; | |
use SilverStripe\ORM\DataExtension; | |
use SilverStripe\ORM\DataQuery; | |
use SilverStripe\ORM\Queries\SQLSelect; | |
use SilverStripe\Subsites\Model\Subsite; | |
use SilverStripe\Subsites\State\SubsiteState; | |
class SubsiteAwareRedirectExtension extends DataExtension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use SilverStripe\ORM\DataObject; | |
use SilverStripe\Forms\DropdownField; | |
use SilverStripe\ORM\Filters\ExactMatchFilter; | |
class Project extends DataObject | |
{ | |
private static $db = [ | |
'Title' => 'Varchar(200)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use SilverStripe\Control\Controller; | |
use SilverStripe\ORM\DataObject; | |
use SilverStripe\ORM\ValidationException; | |
use SilverStripe\Forms\GridField\GridField; | |
use SilverStripe\Forms\GridField\GridField_FormAction; | |
use SilverStripe\Forms\GridField\GridField_ColumnProvider; | |
use SilverStripe\Forms\GridField\GridField_ActionProvider; | |
use SilverStripe\Forms\GridField\GridField_ActionMenuItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Psr\Log\LoggerInterface; | |
use SilverStripe\Control\Email\Email; | |
use SilverStripe\Control\Director; | |
use SilverStripe\Core\Environment; | |
use SilverStripe\Core\Injector\Injector; | |
class PostmarkMailTransport extends \Postmark\Transport | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use SilverStripe\Control\Director; | |
use SilverStripe\Control\HTTP; | |
use SilverStripe\Security\Member; | |
use SilverStripe\Core\Extension; | |
/** | |
* Implements Content-Security-Policy and other security headers on the | |
* controllers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/app/src/Search/CustomerSolrIndex.php | |
+++ b/app/src/Search/CustomerSolrIndex.php | |
@@ -9,10 +9,14 @@ use SilverStripe\Control\Director; | |
*/ | |
class CustomerSolrIndex extends GazetteSolrIndex | |
{ | |
+ private static $casting = [ | |
+ 'FieldDefinitions' => 'HTMLFragment', | |
+ 'CopyFieldDefinitions' => 'HTMLFragment' | |
+ ]; |
NewerOlder