Skip to content

Commit 718b017

Browse files
committed
Add custom CSS option
1 parent 77cd330 commit 718b017

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

header.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@
368368
}
369369
*/
370370
?>
371+
<?php
372+
if (isset($globalCustomCSS) && $glocalCustomCSS != '') {
373+
?>
374+
<link rel="stylesheet" href="<?php print $globalCustomCSS; ?>" />
375+
<?php
376+
}
377+
?>
371378
<meta property="og:title" content="<?php print $title; ?> | <?php print $globalName; ?>"/>
372379
<meta property="og:url" content="<?php print $globalURL.$_SERVER['REQUEST_URI']; ?>"/>
373380
<meta property="og:site_name" content="<?php print $globalName; ?>"/>

install/index.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,11 @@
830830
<output id="range"><?php if (isset($globalAirportZoom)) echo $globalAirportZoom; else echo '7'; ?></output>
831831
</div>
832832
</p>
833+
<br />
834+
<p>
835+
<label for="customcss">Custom CSS web path</label>
836+
<input type="text" name="customcss" id="customcss" value="<?php if (isset($globalCustomCSS)) echo $globalCustomCSS; ?>" />
837+
</p>
833838
</fieldset>
834839
<input type="submit" name="submit" value="Create/Update database & write setup" />
835840
</form>
@@ -1005,6 +1010,9 @@
10051010
$bitly = filter_input(INPUT_POST,'bitly',FILTER_SANITIZE_STRING);
10061011
$settings = array_merge($settings,array('globalBitlyAccessToken' => $bitly));
10071012

1013+
$customcss = filter_input(INPUT_POST,'customcss',FILTER_SANITIZE_STRING);
1014+
$settings = array_merge($settings,array('globalCustomCSS' => $customcss));
1015+
10081016
$notamsource = filter_input(INPUT_POST,'notamsource',FILTER_SANITIZE_STRING);
10091017
$settings = array_merge($settings,array('globalNOTAMSource' => $notamsource));
10101018
$metarsource = filter_input(INPUT_POST,'metarsource',FILTER_SANITIZE_STRING);

0 commit comments

Comments
 (0)