Code tidy

This commit is contained in:
John Crisp
2020-02-27 16:20:06 +01:00
parent 66815707bd
commit 4a348bc521

View File

@@ -61,19 +61,19 @@ function printHeader($withmenu="default") {
<?php <?php
if (isKonq()) { if (isKonq()) {
$logoclass = '"logo-konq"'; $logoclass = 'logo-konq';
$titleclass = '"title-konq"'; $titleclass = 'title-konq';
$menuclass = '"headermenu-konq"'; $menuclass = 'headermenu-konq';
} }
else { else {
$logoclass = '"logo-ie"'; $logoclass = 'logo-ie';
$titleclass = '"title-ie"'; $titleclass = 'title-ie';
$menuclass = '"headermenu-ie"'; $menuclass = 'headermenu-ie';
} }
?> ?>
<div class=<?php echo $logoclass?>>PHPki</div> <div class="<?php echo $logoclass?>">PHPki</div>
<div class=<?php echo $titleclass?>><?php echo $title?></div> <div class="<?php echo $titleclass?>"><?php echo $title?></div>
<?php <?php
switch ($withmenu) { switch ($withmenu) {
@@ -82,10 +82,10 @@ function printHeader($withmenu="default") {
break; break;
case 'setup': case 'setup':
?> ?>
<div class=<?php echo $menuclass?>> <div class="<?php echo $menuclass?>">
<a class=<?php echo $menuclass?> href="readme.php">ReadMe</a> <a class="<?php echo $menuclass?>" href="readme.php">ReadMe</a>
<a class=<?php echo $menuclass?> href="setup.php">Setup</a> <a class="<?php echo $menuclass?>" href="setup.php">Setup</a>
<a class=<?php echo $menuclass?> href="about.php" target="_about">About</a> <a class="<?php echo $menuclass?>" href="about.php" target="_about">About</a>
</div> </div>
<?php <?php
break; break;
@@ -104,8 +104,8 @@ function printHeader($withmenu="default") {
print '<a class='.$menuclass.' style="color: red;" href="policy.html" target="help">Policy</a>'; print '<a class='.$menuclass.' style="color: red;" href="policy.html" target="help">Policy</a>';
} }
?> ?>
<a class=<?php echo $menuclass?> href="help.php" target="_help">Help</a> <a class="<?php echo $menuclass?>" href="help.php" target="_help">Help</a>
<a class=<?php echo $menuclass?> href="about.php" target="_about">About</a> <a class="<?php echo $menuclass?>" href="about.php" target="_about">About</a>
</div> </div>
<?php <?php
break; break;
@@ -125,8 +125,8 @@ function printHeader($withmenu="default") {
print '<a class='.$menuclass.' style="color: red;" href="../policy.html" target="help">Policy</a>'; print '<a class='.$menuclass.' style="color: red;" href="../policy.html" target="help">Policy</a>';
} }
?> ?>
<a class=<?php echo $menuclass?> href="../help.php" target="_help">Help</a> <a class="<?php echo $menuclass?>" href="../help.php" target="_help">Help</a>
<a class=<?php echo $menuclass?> href="../about.php" target="_about">About</a> <a class="<?php echo $menuclass?>" href="../about.php" target="_about">About</a>
</div> </div>
<?php <?php
} }