allow both http: and mailto: contact links

This commit is contained in:
Shish
2016-06-06 12:12:25 +01:00
parent dc8efcb680
commit aeeaabb22e
11 changed files with 42 additions and 17 deletions

View File

@@ -20,7 +20,7 @@ class Layout {
$theme_name = $config->get_string('theme', 'lite');
$site_name = $config->get_string('title');
$data_href = get_base_href();
$contact_link = $config->get_string('contact_link');
$contact_link = contact_link();
$header_html = "";
ksort($page->html_headers);
@@ -152,7 +152,7 @@ class Layout {
$debug = get_debug_info();
$contact = empty($contact_link) ? "" : "<br><a href='mailto:{$contact_link}'>Contact</a>";
$contact = empty($contact_link) ? "" : "<br><a href='{$contact_link}'>Contact</a>";
//$subheading = empty($page->subheading) ? "" : "<div id='subtitle'>{$page->subheading}</div>";
/*$wrapper = "";