mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
Split up customJS into customHTML and customJS for better organisation (#5981)
* WIP * fixed customJS not actually working in footer * Moving scripts to footer, #5980 * Added upgrade scripts for #5980
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<div id="customise" class="customise">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="#custom-css" data-toggle="tab">[[admin/appearance/customise:custom-css]]</a></li>
|
||||
<li><a href="#custom-js" data-toggle="tab">[[admin/appearance/customise:custom-js]]</a></li>
|
||||
<li><a href="#custom-header" data-toggle="tab">[[admin/appearance/customise:custom-header]]</a></li>
|
||||
</ul>
|
||||
<br />
|
||||
@@ -23,19 +24,37 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="custom-header">
|
||||
<div class="tab-pane fade" id="custom-js">
|
||||
<p>
|
||||
[[admin/appearance/customise:custom-header.description]]
|
||||
[[admin/appearance/customise:custom-js.description]]
|
||||
</p>
|
||||
|
||||
<div id="customHTML"></div>
|
||||
<input type="hidden" id="customHTML-holder" value="" data-field="customJS" />
|
||||
<div id="customJS"></div>
|
||||
<input type="hidden" id="customJS-holder" value="" data-field="customJS" />
|
||||
|
||||
<br />
|
||||
<form class="form">
|
||||
<div class="form-group">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="useCustomJS">
|
||||
<input class="mdl-switch__input" id="useCustomJS" type="checkbox" data-field="useCustomJS" />
|
||||
<span class="mdl-switch__label">[[admin/appearance/customise:custom-js.enable]]</span>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="custom-header">
|
||||
<p>
|
||||
[[admin/appearance/customise:custom-header.description]]
|
||||
</p>
|
||||
|
||||
<div id="customHTML"></div>
|
||||
<input type="hidden" id="customHTML-holder" value="" data-field="customHTML" />
|
||||
|
||||
<br />
|
||||
<form class="form">
|
||||
<div class="form-group">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="useCustomHTML">
|
||||
<input class="mdl-switch__input" id="useCustomHTML" type="checkbox" data-field="useCustomHTML" />
|
||||
<span class="mdl-switch__label">[[admin/appearance/customise:custom-header.enable]]</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user