Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
1ed5c4d0
Commit
1ed5c4d0
authored
Aug 14, 2015
by
Jen Zajac
Committed by
Robert Lyon
Aug 15, 2015
Browse files
Add a class to the body tag to indicate logged-out state BUG 1465107
behatnotneeded Change-Id: I8ab953fa0dc5dffe4977d767f5e675a56f741186
parent
1bbe83a3
Changes
3
Show whitespace changes
Inline
Side-by-side
htdocs/index.php
View file @
1ed5c4d0
...
...
@@ -86,6 +86,8 @@ JAVASCRIPT;
}
else
{
$smarty
=
smarty
();
// Used to set a 'loggedout' class on body tag for styling purposes
$smarty
->
assign
(
'loggedout'
,
true
);
}
// Assign urls used in homeinfo.tpl
...
...
htdocs/theme/mahara/templates/header.tpl
View file @
1ed5c4d0
...
...
@@ -3,7 +3,7 @@
<!--[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]-->
{
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>
{
if
$USERMASQUERADING
||
!
$PRODUCTIONMODE
||
$SITECLOSED
||
$SITETOP
}
...
...
htdocs/theme/raw/templates/header.tpl
View file @
1ed5c4d0
...
...
@@ -3,7 +3,7 @@
<!--[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]-->
{
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>
{
if
$USERMASQUERADING
||
!
$PRODUCTIONMODE
||
$SITECLOSED
||
$SITETOP
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment