header.tpl 5.93 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
3
4
5
<!doctype html>
<!--[if IE 8 ]><html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie8"><![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]-->
{include file="header/head.tpl"}
Naomi Guyer's avatar
Naomi Guyer committed
6
<body data-usethemedjs="true" class="no-js {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}admin{/if}">
Pat Kira's avatar
Pat Kira committed
7
    <a class="sr-only sr-only-focusable" href="#main">{str tag=skipmenu}</a>
Naomi Guyer's avatar
Naomi Guyer committed
8

Pat Kira's avatar
Pat Kira committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}
        <div class="sitemessages">
    {/if}

        {if $USERMASQUERADING}
            <div class="sitemessage alert alert-info" role="alert"><img src="{theme_url filename='images/failure.png'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>
        {/if}
        {if !$PRODUCTIONMODE}
            <div class="sitemessage alert alert-info" role="alert">{str tag=notproductionsite section=error}</div>
        {/if}
        {if $SITECLOSED}
        <div class="sitemessage alert alert-info" role="alert">
            {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}

Naomi Guyer's avatar
Naomi Guyer committed
31
32
    <div id="loading-box" class="loading-box"></div>

Pat Kira's avatar
Pat Kira committed
33
    <header class="header navbar navbar-default navbar-fixed-top">
Naomi Guyer's avatar
Naomi Guyer committed
34
        <div class="container">
Naomi Guyer's avatar
Naomi Guyer committed
35
36
37
38
39
40
41
42
43
44
            {if $MAINNAV}
             <!-- Brand and toggle get grouped for better mobile display -->
                <button type="button" class="menu-toggle navbar-toggle collapsed" data-toggle="collapse" data-target=".nav-main">
                    <span class="sr-only">{str tag="show"} {str tag="menu"}</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            {/if}
            {if !$nosearch && ($LOGGEDIN || $publicsearchallowed)}
Pat Kira's avatar
Pat Kira committed
45
            <button type="button" class="navbar-toggle search-toggle collapsed" data-toggle="collapse" data-target=".navbar-form">
Pat Kira's avatar
Pat Kira committed
46
                <span class="glyphicon glyphicon-search"></span>
Naomi Guyer's avatar
Naomi Guyer committed
47
                <span class="nav-title sr-only">{str tag="show"} {str tag="search"}</span>
Pat Kira's avatar
Pat Kira committed
48
            </button>
Naomi Guyer's avatar
Naomi Guyer committed
49
            {/if}
Pat Kira's avatar
Pat Kira committed
50
            <span id="site-logo" class="site-logo">
Pat Kira's avatar
Pat Kira committed
51
52
53
54
55
56
57
58
                    <a href="{$WWWROOT}">
                        <img src="{$sitelogo}" alt="{$sitename}">
                    </a>
                    {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}
                        <div class="admin-title">
                            <a href="{$WWWROOT}admin/" accesskey="a" class="admin-site">{str tag="administration"}</a>
                        </div>
                    {/if}
Pat Kira's avatar
Pat Kira committed
59
            </span>
Naomi Guyer's avatar
Naomi Guyer committed
60
61
62
63
            {include file="header/topright.tpl"}
        </div>
    </header>

Pat Kira's avatar
Pat Kira committed
64
    {include file="header/navigation.tpl"}
Naomi Guyer's avatar
Naomi Guyer committed
65

Pat Kira's avatar
Pat Kira committed
66
    <div class="container">
Naomi Guyer's avatar
Naomi Guyer committed
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
        {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}
            <div class="sitemessages">
        {/if}
            {if $USERMASQUERADING}
                <div class="sitemessage alert alert-danger" role="alert"><img src="{theme_url filename='images/failure.png'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>
            {/if}
            {if !$PRODUCTIONMODE}
                <div class="sitemessage alert alert-danger" role="alert">{str tag=notproductionsite section=error}</div>
            {/if}
            {if $SITECLOSED}
            <div class="sitemessage alert alert-info" role="alert">
                {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}
Naomi Guyer's avatar
Naomi Guyer committed
87
        <div class="row">
Pat Kira's avatar
Pat Kira committed
88
            <div id="main" class="{if $SIDEBARS}{if $SIDEBLOCKS.right}col-md-9 {else}col-md-9 col-md-push-3{/if}{else}col-md-12{/if} main">
Pat Kira's avatar
Pat Kira committed
89
                <div id="content" class="main-column{if $selected == 'content'} editcontent{/if}">
Pat Kira's avatar
Pat Kira committed
90
                    <div id="main-column-container">
Naomi Guyer's avatar
Naomi Guyer committed
91

Pat Kira's avatar
Pat Kira committed
92
93
94
95
                        {dynamic}{insert_messages}{/dynamic}
                        {if isset($PAGEHEADING)}
                            <h1>{$PAGEHEADING}{if $PAGEHELPNAME}<span class="page-help-icon">{$PAGEHELPICON|safe}</span>{/if}</h1>
                        {/if}
Naomi Guyer's avatar
Naomi Guyer committed
96

Pat Kira's avatar
Pat Kira committed
97
98
99
100
101
                        {if $SUBPAGENAV}
                            {if $SUBPAGETOP}
                                {include file=$SUBPAGETOP}
                            {/if}
                            {* Tabs and beginning of page container for group info pages *}
Naomi Guyer's avatar
Naomi Guyer committed
102
                                <ul class="nav nav-pills">
Pat Kira's avatar
Pat Kira committed
103
                                    {foreach from=$SUBPAGENAV item=item}
Naomi Guyer's avatar
Naomi Guyer committed
104
                                        <li {if $item.selected}class="current-tab active" role="presentation"{/if}>
Pat Kira's avatar
Pat Kira committed
105
106
                                            <a {if $item.tooltip}title="{$item.tooltip}"{/if}{if $item.selected}class="current-tab" {/if}href="{$WWWROOT}{$item.url}">
                                                {$item.title}
Naomi Guyer's avatar
Naomi Guyer committed
107
                                                <span class="accessible-hidden sr-only">({str tag=tab}{if $item.selected} {str tag=selected}{/if})</span>
Pat Kira's avatar
Pat Kira committed
108
109
110
                                            </a>
                                        </li>
                                    {/foreach}
Pat Kira's avatar
Pat Kira committed
111
                                </ul>
Pat Kira's avatar
Pat Kira committed
112
                            <div class="subpage">
Naomi Guyer's avatar
Naomi Guyer committed
113
                        {/if}