Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $config['title_image'] in doc and use it also for login screen #5683

Merged
merged 4 commits into from Jan 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,6 +17,7 @@
Thumbs.db
config.php
html/css/custom/*
html/images/custom/*
html/plugins/*
!html/plugins/Test/
includes/custom/*
Expand Down
5 changes: 5 additions & 0 deletions doc/Support/Configuration.md
Expand Up @@ -132,6 +132,11 @@ You can override a large number of visual elements by creating your own css styl
`html/css/custom` so they will be ignored by auto updates. You can specify as many css files as you like, the order they are within your config
will be the order they are loaded in the browser.

```php
$config['title_image'] = "images/custom/yourlogo.png";
```
You can override the default logo with yours, place any custom images files into `html/images/custom` so they will be ignored by auto updates.

```php
$config['page_refresh'] = "300";
```
Expand Down
8 changes: 7 additions & 1 deletion html/pages/logon.inc.php
Expand Up @@ -8,7 +8,13 @@
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<img src="images/librenms_logo_light.svg">
<?php
if ($config['title_image']) {
echo '<img src="' . $config['title_image'] . '">';
} else {
echo '<img src="images/librenms_logo_light.svg">';
}
?>
</h3>
</div>
<div class="panel-body">
Expand Down