forked from services/mlmmj-light-web-ecg
Added clickable web_url to the headline, Fixed missing headline in error template
This commit is contained in:
@@ -72,6 +72,7 @@ $prefix = trim($prefix);
|
||||
|
||||
// Load page
|
||||
$smarty->assign("headline", $headline);
|
||||
$smarty->assign("web_url", $web_url);
|
||||
$smarty->assign("subscribers", $subscribers);
|
||||
$smarty->assign("list_name", $list_name);
|
||||
$smarty->assign("domain", $domain);
|
||||
|
||||
@@ -4,6 +4,9 @@ require("init.php");
|
||||
|
||||
$error_code = isset($_SESSION["error_code"]) ? $_SESSION["error_code"] : "";
|
||||
unset($_SESSION["error_code"]);
|
||||
|
||||
$smarty->assign("headline", $headline);
|
||||
$smarty->assign("web_url", $web_url);
|
||||
$smarty->assign("error_code", $error_code);
|
||||
$smarty->display("error.tpl");
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ else
|
||||
}
|
||||
|
||||
$smarty->assign("headline", $headline);
|
||||
$smarty->assign("web_url", $web_url);
|
||||
$smarty->assign("lists", $lists_new);
|
||||
$smarty->assign("domain", $domain);
|
||||
$smarty->assign("username", $_SESSION["username"]);
|
||||
|
||||
@@ -72,6 +72,7 @@ else
|
||||
{
|
||||
// If no submission, display login form
|
||||
$smarty->assign("headline", $headline);
|
||||
$smarty->assign("web_url", $web_url);
|
||||
$smarty->display("login.tpl");
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<body onload="switch_moderators_form()">
|
||||
<div id="header">
|
||||
<div id="header_left">
|
||||
{$headline}
|
||||
<a href="{$web_url}">{$headline}</a>
|
||||
</div>
|
||||
<div id="header_right">
|
||||
<a href="logout.php">Logout ({$username})</a>
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">{$headline}</div>
|
||||
<div id="header_left">
|
||||
<a href="{$web_url}">{$headline}</a>
|
||||
</div>
|
||||
<div id="error">
|
||||
{if $error_code == 1}
|
||||
Domain can contain only english letters, dots, hyphens and digits.
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<body>
|
||||
<div id="header">
|
||||
<div id="header_left">
|
||||
{$headline}
|
||||
<a href="{$web_url}">{$headline}</a>
|
||||
</div>
|
||||
<div id="header_right">
|
||||
<a href="logout.php">Logout ({$username})</a>
|
||||
|
||||
@@ -27,7 +27,9 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">{$headline}</div>
|
||||
<div id="header_left">
|
||||
<a href="{$web_url}">{$headline}</a>
|
||||
</div>
|
||||
<div id="login">
|
||||
<div id="login_form">
|
||||
<p>Please enter the credentials of your ECG account (<strong>without</strong> @ecogood.org).</p>
|
||||
|
||||
Reference in New Issue
Block a user