@@ -110,11 +110,11 @@ discard block |
||
110 | 110 | { |
111 | 111 | $labels = parent::fieldLabels($includerelations); |
112 | 112 | |
113 | - $labels['Title'] = _t(__CLASS__ . '.TitleLabel', 'Title'); |
|
114 | - $labels['ElementLink'] = _t(__CLASS__ . '.LinkLabel', 'Link'); |
|
115 | - $labels['Image'] = _t(__CLASS__ . '.ImageLabel', 'Image'); |
|
116 | - $labels['Image.CMSThumbnail'] = _t(__CLASS__ . '.ImageLabel', 'Image'); |
|
117 | - $labels['Content'] = _t(__CLASS__. '.ContentLabel', 'Content'); |
|
113 | + $labels['Title'] = _t(__CLASS__.'.TitleLabel', 'Title'); |
|
114 | + $labels['ElementLink'] = _t(__CLASS__.'.LinkLabel', 'Link'); |
|
115 | + $labels['Image'] = _t(__CLASS__.'.ImageLabel', 'Image'); |
|
116 | + $labels['Image.CMSThumbnail'] = _t(__CLASS__.'.ImageLabel', 'Image'); |
|
117 | + $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Content'); |
|
118 | 118 | |
119 | 119 | return $labels; |
120 | 120 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function getCMSFields() |
128 | 128 | { |
129 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
129 | + $this->beforeUpdateCMSFields(function($fields) { |
|
130 | 130 | /** @var FieldList $fields */ |
131 | 131 | $fields->removeByName(array( |
132 | 132 | 'ElementFeaturesID', |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $fields->replaceField( |
145 | 145 | 'ElementLinkID', |
146 | 146 | LinkField::create('ElementLink', $this->fieldLabel('ElementLink'), $this) |
147 | - ->setDescription(_t(__CLASS__ . '.LinkDescription', 'optional. Add a call to action link.')) |
|
147 | + ->setDescription(_t(__CLASS__.'.LinkDescription', 'optional. Add a call to action link.')) |
|
148 | 148 | ); |
149 | 149 | $fields->insertBefore($fields->dataFieldByName('ElementLink'), 'Content'); |
150 | 150 |