Commit 366ac330 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

whitespace index.php

(cherry picked from commit 13ae2f59)
parent 29ce7f45
...@@ -328,25 +328,14 @@ include("head.inc"); ...@@ -328,25 +328,14 @@ include("head.inc");
<body> <body>
<!--script type="text/javascript">
//<![CDATA[
columns = ['col1','col2','col3','col4', 'col5','col6','col7','col8','col9','col10'];
//]]>
</script-->
<?php <?php
include("fbegin.inc"); include("fbegin.inc");
echo $jscriptstr; echo $jscriptstr;
?> ?>
<?php <?php
## If it is the first time webConfigurator has been ## If it is the first time webConfigurator has been
## accessed since initial install show this stuff. ## accessed since initial install show this stuff.
if (isset($config['trigger_initial_wizard'])) : if (isset($config['trigger_initial_wizard'])) :
?> ?>
<header class="page-content-head"> <header class="page-content-head">
...@@ -361,9 +350,7 @@ if (isset($config['trigger_initial_wizard'])) : ...@@ -361,9 +350,7 @@ if (isset($config['trigger_initial_wizard'])) :
<section class="col-xs-12"> <section class="col-xs-12">
<div class="content-box" style="padding: 20px;"> <div class="content-box" style="padding: 20px;">
<div class="table-responsive"> <div class="table-responsive">
<?php <img src="/ui/themes/<?=$themename;?>/build/images/default-logo.png" border="0" alt="logo" />
echo "<img src=\"/ui/themes/{$themename}/build/images/default-logo.png\" border=\"0\" alt=\"logo\" /><p>\n";
?>
<br /> <br />
<div class="content-box-main"> <div class="content-box-main">
<?php <?php
...@@ -386,10 +373,8 @@ endif; ?> ...@@ -386,10 +373,8 @@ endif; ?>
<section class="page-content-main"> <section class="page-content-main">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<?php
<?php
$crash_report = get_crash_report(); $crash_report = get_crash_report();
if ($crash_report != '') { if ($crash_report != '') {
print_info_box($crash_report); print_info_box($crash_report);
...@@ -479,20 +464,15 @@ endif; ?> ...@@ -479,20 +464,15 @@ endif; ?>
break; break;
} }
} }
} }?>
?>
<section class="col-xs-12 col-md-6 widgetdiv" id="<?= $widgetname ?>" style="display:<?= $divdisplay ?>;"> <section class="col-xs-12 col-md-6 widgetdiv" id="<?= $widgetname ?>" style="display:<?= $divdisplay ?>;">
<div class="content-box"> <div class="content-box">
<form action="<?=$_SERVER['REQUEST_URI'];?>" method="post" id="iform"> <form action="<?=$_SERVER['REQUEST_URI'];?>" method="post" id="iform">
<input type="hidden" value="" name="sequence" id="sequence" /> <input type="hidden" value="" name="sequence" id="sequence" />
<header class="content-box-head container-fluid"> <header class="content-box-head container-fluid">
<ul class="list-inline __nomb"> <ul class="list-inline __nomb">
<li><h3> <li><h3>
<?php <?php
$widgettitle = $widgetname . "_title"; $widgettitle = $widgetname . "_title";
$widgettitlelink = $widgetname . "_title_link"; $widgettitlelink = $widgetname . "_title_link";
if (isset($$widgettitle)) { if (isset($$widgettitle)) {
...@@ -521,20 +501,14 @@ endif; ?> ...@@ -521,20 +501,14 @@ endif; ?>
</span></u> </span></u>
<?php <?php
} }
} }?>
?>
</h3></li> </h3></li>
<li class="pull-right"> <li class="pull-right">
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-default btn-xs" title="minimize" id="<?= $widgetname ?>-min" onclick='return minimizeWidget("<?= $widgetname ?>",true)' style="display:<?= $mindiv ?>;"><span class="glyphicon glyphicon-minus"></span></button> <button type="button" class="btn btn-default btn-xs" title="minimize" id="<?= $widgetname ?>-min" onclick='return minimizeWidget("<?= $widgetname ?>",true)' style="display:<?= $mindiv ?>;"><span class="glyphicon glyphicon-minus"></span></button>
<button type="button" class="btn btn-default btn-xs" title="maximize" id="<?= $widgetname ?>-max" onclick='return showWidget("<?= $widgetname ?>",true)' style="display:<?= $mindiv == 'none' ? 'inline' : 'none' ?>;"><span class="glyphicon glyphicon-plus"></span></button> <button type="button" class="btn btn-default btn-xs" title="maximize" id="<?= $widgetname ?>-max" onclick='return showWidget("<?= $widgetname ?>",true)' style="display:<?= $mindiv == 'none' ? 'inline' : 'none' ?>;"><span class="glyphicon glyphicon-plus"></span></button>
<button type="button" class="btn btn-default btn-xs" title="remove widget" onclick='return closeWidget("<?= $widgetname ?>",true)'><span class="glyphicon glyphicon-remove"></span></button> <button type="button" class="btn btn-default btn-xs" title="remove widget" onclick='return closeWidget("<?= $widgetname ?>",true)'><span class="glyphicon glyphicon-remove"></span></button>
<button type="button" class="btn btn-default btn-xs" id="<?= $widgetname ?>-configure" onclick='return configureWidget("<?= $widgetname ?>")' style="display:none; cursor:pointer" ><span class="glyphicon glyphicon-pencil"></span></button> <button type="button" class="btn btn-default btn-xs" id="<?= $widgetname ?>-configure" onclick='return configureWidget("<?= $widgetname ?>")' style="display:none; cursor:pointer" ><span class="glyphicon glyphicon-pencil"></span></button>
</div> </div>
</li> </li>
</ul> </ul>
...@@ -542,31 +516,25 @@ endif; ?> ...@@ -542,31 +516,25 @@ endif; ?>
</form> </form>
<div class="content-box-main collapse in" id="<?= $widgetname ?>-container" style="display:<?= $mindiv ?>"> <div class="content-box-main collapse in" id="<?= $widgetname ?>-container" style="display:<?= $mindiv ?>">
<input type="hidden" value="<?= $inputdisplay ?>" id="<?= $widgetname ?>-config" name="<?= $widgetname ?>-config" /> <input type="hidden" value="<?= $inputdisplay ?>" id="<?= $widgetname ?>-config" name="<?= $widgetname ?>-config" />
<?php
if ($divdisplay != "block") {?>
<?php if ($divdisplay != "block") {
?>
<div id="<?= $widgetname ?>-loader" style="display:<?= $display ?>;" align="center"> <div id="<?= $widgetname ?>-loader" style="display:<?= $display ?>;" align="center">
<br /> <br />
<span class="glyphicon glyphicon-refresh"></span> <?= gettext("Loading selected widget") ?> <span class="glyphicon glyphicon-refresh"></span> <?= gettext("Loading selected widget") ?>
<br /> <br />
</div> <?php $display = "none"; </div> <?php $display = "none";
} ?> }
<?php
if (file_exists($directory . $widget)) { if (file_exists($directory . $widget)) {
if ($divdisplay == 'block') { if ($divdisplay == 'block') {
include($directory . $widget); include($directory . $widget);
} }
} ?> }
<?php $widgetcounter++; ?> $widgetcounter++; ?>
</div> </div>
</div> </div>
</section> </section>
<?php
<?php
} //end foreach ?> } //end foreach ?>
</div> </div>
</div> </div>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment