Commit 1ed5c4d0 authored by Jen Zajac's avatar Jen Zajac Committed by Robert Lyon
Browse files

Add a class to the body tag to indicate logged-out state BUG 1465107

behatnotneeded

Change-Id: I8ab953fa0dc5dffe4977d767f5e675a56f741186
parent 1bbe83a3
...@@ -86,6 +86,8 @@ JAVASCRIPT; ...@@ -86,6 +86,8 @@ JAVASCRIPT;
} }
else { else {
$smarty = smarty(); $smarty = smarty();
// Used to set a 'loggedout' class on body tag for styling purposes
$smarty->assign('loggedout', true);
} }
// Assign urls used in homeinfo.tpl // Assign urls used in homeinfo.tpl
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!--[if IE 9 ]><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie9"><![endif]--> <!--[if IE 9 ]><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}"><!--<![endif]--> <!--[if (gt IE 9)|!(IE)]><!--><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}"><!--<![endif]-->
{include file="header/head.tpl"} {include file="header/head.tpl"}
<body data-usethemedjs="true" class="no-js {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}admin{/if}"> <body data-usethemedjs="true" class="no-js {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}admin{/if} {if $loggedout}loggedout{/if}">
<a class="sr-only sr-only-focusable" href="#main">{str tag=skipmenu}</a> <a class="sr-only sr-only-focusable" href="#main">{str tag=skipmenu}</a>
{if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP} {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!--[if IE 9 ]><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie9"><![endif]--> <!--[if IE 9 ]><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}"><!--<![endif]--> <!--[if (gt IE 9)|!(IE)]><!--><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}"><!--<![endif]-->
{include file="header/head.tpl"} {include file="header/head.tpl"}
<body data-usethemedjs="true" class="no-js {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}admin{/if}"> <body data-usethemedjs="true" class="no-js {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}admin{/if} {if $loggedout}loggedout{/if}">
<a class="sr-only sr-only-focusable" href="#main">{str tag=skipmenu}</a> <a class="sr-only sr-only-focusable" href="#main">{str tag=skipmenu}</a>
{if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP} {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}
......
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