@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | class TriColumnBlock extends Block { |
| 4 | - private static $singular_name = 'Triple-column Block'; |
|
| 5 | - private static $db = array ( |
|
| 6 | - 'LeftColumn' => 'HTMLText', |
|
| 7 | - 'MiddleColumn' => 'HTMLText', |
|
| 8 | - 'RightColumn' => 'HTMLText' |
|
| 9 | - ); |
|
| 4 | + private static $singular_name = 'Triple-column Block'; |
|
| 5 | + private static $db = array ( |
|
| 6 | + 'LeftColumn' => 'HTMLText', |
|
| 7 | + 'MiddleColumn' => 'HTMLText', |
|
| 8 | + 'RightColumn' => 'HTMLText' |
|
| 9 | + ); |
|
| 10 | 10 | } |
| 11 | 11 | \ No newline at end of file |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | class TriColumnBlock extends Block { |
| 4 | 4 | private static $singular_name = 'Triple-column Block'; |
| 5 | - private static $db = array ( |
|
| 5 | + private static $db = array( |
|
| 6 | 6 | 'LeftColumn' => 'HTMLText', |
| 7 | 7 | 'MiddleColumn' => 'HTMLText', |
| 8 | 8 | 'RightColumn' => 'HTMLText' |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -define('BLOCK_DIR',basename(dirname(__FILE__)));
|
|
| 4 | -LeftAndMain::require_javascript( BLOCK_DIR. '/js/silverstripe-block.script.js' ); |
|
| 5 | -$url = ltrim($_REQUEST['url'], '/'); |
|
| 6 | -$segments = explode('/', $url);
|
|
| 3 | +define('BLOCK_DIR', basename(dirname(__FILE__)));
|
|
| 4 | +LeftAndMain::require_javascript(BLOCK_DIR.'/js/silverstripe-block.script.js'); |
|
| 5 | +$url = ltrim($_REQUEST['url'], '/'); |
|
| 6 | +$segments = explode('/', $url);
|
|
| 7 | 7 | if (count($segments) > 0) {
|
| 8 | 8 | if ($segments[0] == 'admin') {
|
| 9 | 9 | Requirements::css(BLOCK_DIR.'/css/blocks.css'); |