summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index e534ac2..2781449 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -389,10 +389,11 @@ foreach ($widgets as $widgetname => $widgetconfig) {
$columnWidth = 12 / $numColumns;
for ($currentColumnNumber = 1; $currentColumnNumber <= $numColumns; $currentColumnNumber++) {
- echo '<div class="col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '">';
+
//if col$currentColumnNumber exists
if (isset($widgetColumns['col'.$currentColumnNumber])) {
+ echo '<div class="test col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '">';
$columnWidgets = $widgetColumns['col'.$currentColumnNumber];
foreach ($columnWidgets as $widgetname => $widgetconfig) {
@@ -429,10 +430,11 @@ foreach ($widgets as $widgetname => $widgetconfig) {
</div>
<?php
}
+ echo "</div>";
} else {
- echo '<div class="col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '"></div>';
+ echo '<div class="test2 col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '"></div>';
}
- echo "</div>";
+
}
?>
OpenPOWER on IntegriCloud