summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-17 07:16:17 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-17 07:16:17 +0545
commit94704bc642bf549ccffddf3ccca03bccef302178 (patch)
tree2104053b3d4cb109d006e2e39f4f93af085ceaea /src/usr/local
parent8152403354e59b40c518414523383c11fdc1a155 (diff)
downloadpfsense-94704bc642bf549ccffddf3ccca03bccef302178.zip
pfsense-94704bc642bf549ccffddf3ccca03bccef302178.tar.gz
Code style index.php
Couple of little bits here.
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 71de36f..214f129 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -263,8 +263,9 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") {
// be backwards compatible
$offset = strpos($file, '-container');
- if (false !== $offset)
+ if (false !== $offset) {
$file = substr($file, 0, $offset);
+ }
// Get the widget title that should be in a var defined in the widget's inc file.
$widgettitle = ${$file . '_title'};
@@ -380,11 +381,11 @@ foreach ($widgets as $widgetname => $widgetconfig) {
<?php
$columnWidth = 12 / $numColumns;
- for($i=1; $i<=$numColumns; $i++) {
+ for ($i=1; $i<=$numColumns; $i++) {
echo '<div class="col-md-' . $columnWidth . '" id="widgets-col' . $i . '">';
//if col$i exists
- if(isset($widgetColumns['col'.$i])) {
+ if (isset($widgetColumns['col'.$i])) {
$columnWidgets = $widgetColumns['col'.$i];
@@ -438,7 +439,7 @@ function updateWidgets(newWidget) {
$('.panel', col).each(function(idx, widget) {
var isOpen = $('.panel-body', widget).hasClass('in');
- sequence += widget.id.split('-')[1] +':'+ col.id.split('-')[1] +':'+ (isOpen ? 'open' : 'close') +',';
+ sequence += widget.id.split('-')[1] + ':' + col.id.split('-')[1] + ':' + (isOpen ? 'open' : 'close') + ',';
});
});
OpenPOWER on IntegriCloud