Skip to content

Commit

Permalink
Merge branch 'master' of github.com:axllent/silverstripe-tiled-gridfield
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Dec 21, 2015
2 parents 9a5d9a9 + 0bc1e38 commit fee4c1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
15 changes: 8 additions & 7 deletions code/LeftAndMainTiledGridFieldExt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
/*
* Load extra CSS into CMS
*/
class LeftAndMainTiledGridFieldExt extends LeftAndMainExtension {
class LeftAndMainTiledGridFieldExt extends LeftAndMainExtension
{

public function init() {
parent::init();
Requirements::css(_CMS_TILED_GRIDFIELD_BASE_ . '/css/tiled-gridfield.css');
}

}
public function init()
{
parent::init();
Requirements::css(_CMS_TILED_GRIDFIELD_BASE_ . '/css/tiled-gridfield.css');
}
}
9 changes: 5 additions & 4 deletions code/TiledGridField.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

class TiledGridField extends GridField {
class TiledGridField extends GridField
{

public function __construct($name, $title = null, SS_List $dataList = null, GridFieldConfig $config = null) {
public function __construct($name, $title = null, SS_List $dataList = null, GridFieldConfig $config = null)
{
parent::__construct($name, $title, $dataList, $config);
$this->addExtraClass('ss-tiled-gridfield');
}

}
}

0 comments on commit fee4c1c

Please sign in to comment.