Commit 7e688937 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Change warning/error messages to one div



Adds other error/warning messages to be grouped
- masquerading
- production mode
- site closed
- local customizations

Change-Id: I2be578fdb73357a7a699757eaed0f623b6625f66
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 403899f8
......@@ -400,9 +400,7 @@ EOF;
$smarty->assign('PAGETITLE', $sitename);
}
if (!get_config('productionmode')) {
$sitetop = '<div class="error">' . get_string('notproductionsite', 'error') . '</div>';
}
$smarty->assign('PRODUCTIONMODE', get_config('productionmode'));
if (function_exists('local_header_top_content')) {
$sitetop .= local_header_top_content();
}
......
......@@ -976,6 +976,7 @@ input.cancel,
background-color: #f99;
font-weight: bold;
padding: 5px;
border-bottom: 2px darkred solid;
color: #333333;
}
.sitemessage img {
......
......@@ -2,9 +2,12 @@
<html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if}>
{include file="header/head.tpl"}
<body>
{if $USERMASQUERADING}<div class="sitemessage"><img src="{theme_url filename='images/icon_problem.gif'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>{/if}
{if $SITECLOSED}<div class="sitemessage center">{if $SITECLOSED == 'logindisabled'}{str tag=siteclosedlogindisabled section=mahara arg1="`$WWWROOT`admin/upgrade.php"}{else}{str tag=siteclosed}{/if}</div>{/if}
{if $SITETOP}<div id="switchwrap">{$SITETOP|safe}</div>{/if}
{if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}<div class="sitemessages">{/if}
{if $USERMASQUERADING}<div class="sitemessage"><img src="{theme_url filename='images/icon_problem.gif'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>{/if}
{if !$PRODUCTIONMODE}<div class="sitemessage center">{str tag=notproductionsite section=error}</div>{/if}
{if $SITECLOSED}<div class="sitemessage center">{if $SITECLOSED == 'logindisabled'}{str tag=siteclosedlogindisabled section=mahara arg1="`$WWWROOT`admin/upgrade.php"}{else}{str tag=siteclosed}{/if}</div>{/if}
{if $SITETOP}<div id="switchwrap">{$SITETOP|safe}</div>{/if}
{if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}</div>{/if}
<div id="container">
<div id="loading-box"></div>
<div id="top-wrapper"><h1 id="site-logo"><a href="{$WWWROOT}"><img src="{$sitelogo}" alt="{$sitename}"></a></h1>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment