craigwatson / bitcoind-status

PHP application to display status and information from the Bitcoin node daemon.
https://odin.vikingserv.net
Apache License 2.0
82 stars 77 forks source link

Ability to customise the title/main heading #40

Closed jamesmacwhite closed 6 years ago

jamesmacwhite commented 6 years ago

Currently the <title> and <h1> value is hard coded, this allows the user to change it to whatever they desire. I've used a small function with isset() to essentially check if title_text is set and if it is, use it as value for these elements. A default title value is set in functions.php for older configurations which will not have this config value to break a blank value.

jamesmacwhite commented 6 years ago

@craigwatson I have updated this PR. I have made it more like the rest of the template. However I have used the Ternary operator for short hand if/else on the title parts, because it seems overkill to use full if else for a single line of text.

I've also fixed the merge conflict with README.md. Let me know if this is OK.