|
@@ -6,13 +6,13 @@ |
|
|
block discarded – undo |
|
6
|
6
|
'ColumnWidth' => "Enum('1,2,3,4')" |
|
7
|
7
|
); |
|
8
|
8
|
|
|
9
|
|
- function updateCMSFields(FieldList $fields){ |
|
|
9
|
+ function updateCMSFields(FieldList $fields) { |
|
10
|
10
|
$footerTabName = 'Root.'._t('SiteConfig.FOOTER', 'Footer'); |
|
11
|
|
- $fields->addFieldToTab($footerTabName, $h1=new HTMLEditorField('FooterText', _t('SiteConfig.FOOTER_TEXT', "Text to display in the footer"))); |
|
|
11
|
+ $fields->addFieldToTab($footerTabName, $h1 = new HTMLEditorField('FooterText', _t('SiteConfig.FOOTER_TEXT', "Text to display in the footer"))); |
|
12
|
12
|
$options1 = singleton('SiteConfig')->dbObject('ColumnStart')->EnumValues(); |
|
13
|
13
|
$options2 = singleton('SiteConfig')->dbObject('ColumnWidth')->EnumValues(); |
|
14
|
|
- $columnStartField = new DropdownField('ColumnStart',_t('SiteConfig.FOOTER_TEXT_START_COLUMN','Which column (of four) should the footer text start in',$options1)); |
|
15
|
|
- $columnWidthField = new DropdownField('ColumnStart',_t('SiteConfig.FOOTER_TEXT_WIDTH_COLUMN','How many, of four columns, should the footer text take up',$options2)); |
|
|
14
|
+ $columnStartField = new DropdownField('ColumnStart', _t('SiteConfig.FOOTER_TEXT_START_COLUMN', 'Which column (of four) should the footer text start in', $options1)); |
|
|
15
|
+ $columnWidthField = new DropdownField('ColumnStart', _t('SiteConfig.FOOTER_TEXT_WIDTH_COLUMN', 'How many, of four columns, should the footer text take up', $options2)); |
|
16
|
16
|
//$fields->addFieldToTab("Root.Footer", $columnStartField); |
|
17
|
17
|
//$fields->addFieldToTab("Root.Footer", $h1=new HTMLEditorField('FooterText', _t('SiteConfig.FOOTER_TEXT', "Text to display in the footer"))); |
|
18
|
18
|
$h1->setRows(6); |