main
Bob Mottram 2022-08-23 20:41:30 +01:00
parent d922da9b98
commit b1db5b47b3
1 changed files with 15 additions and 12 deletions

View File

@ -405,18 +405,21 @@ def html_search(translate: {}, base_dir: str, path: str, domain: str,
get_search_banner_file(base_dir, search_nickname, domain, theme)
# if there is no search banner then use the default
if not search_banner_filename:
if os.path.isfile(base_dir +
'/theme/default/search_banner.png'):
banner_filename = \
acct_dir(base_dir, search_nickname, domain) + \
'/search_banner.png'
copyfile(base_dir +
'/theme/default/search_banner.png',
banner_filename)
search_banner_file, search_banner_filename = \
get_search_banner_file(base_dir,
search_nickname, domain, theme)
print('***search_banner1: ' + str(search_banner))
print('***search_banner2: ' + str(search_banner_filename))
if search_banner_filename:
if not os.path.isfile(search_banner_filename):
if os.path.isfile(base_dir +
'/theme/default/search_banner.png'):
banner_filename = \
acct_dir(base_dir, search_nickname, domain) + \
'/search_banner.png'
copyfile(base_dir +
'/theme/default/search_banner.png',
banner_filename)
search_banner_file, search_banner_filename = \
get_search_banner_file(base_dir,
search_nickname, domain, theme)
text_mode_banner_str = html_keyboard_navigation(text_mode_banner, {}, {})
if text_mode_banner_str is None: