mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +02:00
* Add Custom Footer HTML Straight copy from Custom Header HTML * Move Custom Footer HTML to exactly before `</body>` tag. * Fix invalid class name * Append CustomFooterHTML when preparing the view. * Some consistency in placing the variable
25 lines
584 B
JavaScript
25 lines
584 B
JavaScript
import SettingsModal from 'flarum/components/SettingsModal';
|
|
|
|
export default class EditCustomFooterModal extends SettingsModal {
|
|
className() {
|
|
return 'EditCustomFooterModal Modal--large';
|
|
}
|
|
|
|
title() {
|
|
return app.translator.trans('core.admin.edit_footer.title');
|
|
}
|
|
|
|
form() {
|
|
return [
|
|
<p>{app.translator.trans('core.admin.edit_footer.customize_text')}</p>,
|
|
<div className="Form-group">
|
|
<textarea className="FormControl" rows="30" bidi={this.setting('custom_footer')}/>
|
|
</div>
|
|
];
|
|
}
|
|
|
|
onsaved() {
|
|
window.location.reload();
|
|
}
|
|
}
|