Add extended search settings
-Added a new `shared_pages.page_header.search.position` setting that determines where the search bar is located (valid options include the old 'below-header' and the new 'inside-header' options) -`shared_pages.page_header.show_search` setting has been re-mapped to `shared_pages.page_header.search.enabled` -Updated the search placeholder locale text -Changed the Explorer menu item icon from a magnifying glass to a cubes/blocks icon -Updated css rules to fix some small glitches and allow the new 'inside-header' search option to function
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ exports.menu_claim_address = "Claim Address",
|
||||
exports.ex_title = "Block Explorer",
|
||||
exports.ex_search_title = "Search",
|
||||
exports.ex_search_button = "Search",
|
||||
exports.ex_search_message = "You may enter a block height, block hash ,tx hash or address.",
|
||||
exports.ex_search_message = "Search by block height, block hash, tx hash or address",
|
||||
exports.ex_error = "Error!",
|
||||
exports.ex_warning = "Warning",
|
||||
exports.ex_search_error = "Search found no results.",
|
||||
|
||||
+11
-3
@@ -233,9 +233,15 @@ exports.shared_pages = {
|
||||
"display_order": 3
|
||||
}
|
||||
},
|
||||
// show_search: Enable/disable the ability to search the explorer website (true/false)
|
||||
// If set to false, the explorer will not display a search box or respond to search queries
|
||||
"show_search": true
|
||||
// search: A collection of settings that pertain to the search feature
|
||||
"search": {
|
||||
// enabled: Enable/disable the ability to search the explorer website (true/false)
|
||||
// If set to false, the explorer will not display a search box or respond to search queries
|
||||
"enabled": true,
|
||||
// position: Determine where the search box should appear on the website
|
||||
// valid options: inside-header, below-header
|
||||
"position": "inside-header"
|
||||
}
|
||||
},
|
||||
// page_footer: A collection of settings that pertain to the page footer that is displayed at the bottom of all pages
|
||||
"page_footer": {
|
||||
@@ -1155,6 +1161,8 @@ exports.loadSettings = function loadSettings() {
|
||||
json_settings = fix_deprecated_setting(json_settings, 'wallet.user', 'wallet.username');
|
||||
json_settings = fix_deprecated_setting(json_settings, 'wallet.pass', 'wallet.password');
|
||||
json_settings = fix_deprecated_setting(json_settings, 'social_links', 'shared_pages.page_footer.social_links');
|
||||
// fix old deprecated settings from v1.99
|
||||
json_settings = fix_deprecated_setting(json_settings, 'shared_pages.page_header.show_search', 'shared_pages.page_header.search.enabled');
|
||||
// check if social_links setting exists
|
||||
if (json_settings.shared_pages.page_footer.social_links != null) {
|
||||
// loop through the social links to look for and change image_url to image_path
|
||||
|
||||
Reference in New Issue
Block a user