Add new "headerlogo" setting
-When "homelink" setting is set to 'logo', it now first checks the "headerlogo" value and uses that value if set correctly otherwise it will failover to using the normal "logo" -Added a sample Exor header logo
This commit is contained in:
@@ -350,6 +350,13 @@ app.set('nethash', settings.nethash);
|
||||
app.set('nethash_units', settings.nethash_units);
|
||||
app.set('show_sent_received', settings.show_sent_received);
|
||||
app.set('logo', settings.logo);
|
||||
|
||||
// Check if header logo file exists
|
||||
if (db.fs.existsSync(path.join('./public', settings.headerlogo)))
|
||||
app.set('headerlogo', settings.headerlogo);
|
||||
else
|
||||
app.set('headerlogo', '');
|
||||
|
||||
app.set('theme', settings.theme);
|
||||
app.set('labels', settings.labels);
|
||||
app.set('homelink', settings.homelink);
|
||||
|
||||
@@ -14,6 +14,8 @@ exports.address = "explorer.example.com";
|
||||
|
||||
//logo
|
||||
exports.logo = "/img/logo.png";
|
||||
// header logo
|
||||
exports.headerlogo = "/img/header_logo.png";
|
||||
|
||||
//The app favicon fully specified url, visible e.g. in the browser window
|
||||
exports.favicon = "public/favicon.ico";
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
@@ -17,11 +17,16 @@
|
||||
|
||||
// logo
|
||||
"logo": "/img/logo.png",
|
||||
// header logo. only displayed if the "homelink" setting is set to "logo"
|
||||
"headerlogo": "/img/header_logo.png",
|
||||
|
||||
// favicon
|
||||
"favicon": "public/favicon.ico",
|
||||
|
||||
// home link (valid options are: title, coin, logo)
|
||||
// home link determines what is displayed in the top-left corner of the header menu (valid options are: title, coin, logo)
|
||||
// title: display "title" text setting
|
||||
// coin: display "coin" text setting
|
||||
// logo: display the "headerlogo" image if it's set to a valid image, otherwise display the "logo" image
|
||||
"homelink": "coin",
|
||||
|
||||
// home link logo height (value in px, only valid if using homelink = 'logo')
|
||||
|
||||
+1
-1
@@ -312,7 +312,7 @@ html(lang='en')
|
||||
a.navbar-brand(href='/', style='order:-1;') #{settings.coin}
|
||||
else if settings.homelink == 'logo'
|
||||
a(href='/', alt=settings.coin + ' Home', title=settings.coin + ' Home', style='order:-1;', data-toggle='tooltip', data-placement='bottom')
|
||||
img.logo-main(src=settings.logo, style='margin:0;max-height:' + settings.logoheight + 'px;')
|
||||
img.logo-main(src=(settings.headerlogo == null || settings.headerlogo == '' ? settings.logo : settings.headerlogo), style='margin:0;max-height:' + settings.logoheight + 'px;')
|
||||
.collapse.navbar-collapse(id='navbar-collapse')
|
||||
ul.navbar-nav.mr-auto
|
||||
li#home
|
||||
|
||||
Reference in New Issue
Block a user