Move sidebar configuration out of TorqueDataConnect
Created by: YaxelPerez
Sidebar HTML is now defined in a string in LocalSettings.php like this:
$wgTorqueDataConnectSidebarHTML = <<<EOD
<div style='line-height: 1.125em; font-size: 0.75em'>
<select autocomplete=off id='torque-view-select' style='width: 130px'
onchange='var view = $("torque-view-select").children("option:selected").val();
document.cookie = "torqueview=" + view + "; path=/;";
window.location.reload(true);'>
{{ options }}
</select>
</div>
EOD;
{{ options }}
is replaced with the appropriate HTML (<option>
)
This might change to just defining a callback in LocalSettings.php that generates the sidebar HTML.
(Issue #19 (closed))