From 8f06223c07f1d06bddf29d3f902f99e7cccee70c Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 11 Jan 2014 15:36:27 +0000 Subject: [PATCH] Display of plugins now handled here Handled here rather than in settings.php file $onLoadExtras = ""; and $pluginsDisplay = ""; also set here No need to recreate the plugins array from POST'd values, now picked up from a page load If isset($_GET['updatedPlugins']) then update the new pluginsOptional DIV innerHTML, no need to also check if the DIV exists Also restart the plugin intervals upon $_GET['updatedPlugins'] No longer tacking content visibility onto $onLoadExtras --- lib/plugins-display.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lib/plugins-display.php diff --git a/lib/plugins-display.php b/lib/plugins-display.php new file mode 100644 index 0000000..7dfad61 --- /dev/null +++ b/lib/plugins-display.php @@ -0,0 +1,40 @@ +'.$ICEcoder[

'; + }; + + // If we're updating plugins, update those shown + if (isset($_GET['updatedPlugins'])) { + echo ""; + } + + // Work out what plugins we'll need to set on a setInterval + $onLoadExtras = ""; + for ($i=0;$i + + \ No newline at end of file