header.tpl 5.25 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
    {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}
Pat Kira's avatar
Pat Kira committed
10
        <div class="site-messages text-center">
Pat Kira's avatar
Pat Kira committed
11
12
13
    {/if}

        {if $USERMASQUERADING}
Pat Kira's avatar
Pat Kira committed
14
            <div class="site-message alert alert-info" role="alert"><img src="{theme_url filename='images/failure.png'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>
Pat Kira's avatar
Pat Kira committed
15
16
        {/if}
        {if !$PRODUCTIONMODE}
Pat Kira's avatar
Pat Kira committed
17
            <div class="site-message alert alert-info" role="alert">{str tag=notproductionsite section=error}</div>
Pat Kira's avatar
Pat Kira committed
18
19
        {/if}
        {if $SITECLOSED}
Pat Kira's avatar
Pat Kira committed
20
        <div class="site-message alert alert-info" role="alert">
Pat Kira's avatar
Pat Kira committed
21
22
23
24
25
26
27
28
29
30
            {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
    <div id="loading-box" class="loading-box"></div>
Pat Kira's avatar
Pat Kira committed
32
    <header class="header navbar navbar-default navbar-fixed-top">
Naomi Guyer's avatar
Naomi Guyer committed
33
        <div class="container">
Naomi Guyer's avatar
Naomi Guyer committed
34
35
36
37
38
39
40
41
42
43
            {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
44
            <button type="button" class="navbar-toggle search-toggle collapsed" data-toggle="collapse" data-target=".navbar-form">
45
                <span class="fa fa-search"></span>
Naomi Guyer's avatar
Naomi Guyer committed
46
                <span class="nav-title sr-only">{str tag="show"} {str tag="search"}</span>
Pat Kira's avatar
Pat Kira committed
47
            </button>
Naomi Guyer's avatar
Naomi Guyer committed
48
            {/if}
Pat Kira's avatar
Pat Kira committed
49
            <span id="site-logo" class="site-logo">
Pat Kira's avatar
Pat Kira committed
50
51
52
53
54
55
56
57
                    <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
58
            </span>
Naomi Guyer's avatar
Naomi Guyer committed
59
60
61
62
            {include file="header/topright.tpl"}
        </div>
    </header>

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

65
    <div class="container   {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}{else}ptl{/if}">
Naomi Guyer's avatar
Naomi Guyer committed
66
        <div class="row">
Pat Kira's avatar
Pat Kira committed
67
            <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
68
                <div id="content" class="main-column{if $selected == 'content'} editcontent{/if}">
Pat Kira's avatar
Pat Kira committed
69
                    <div id="main-column-container">
Naomi Guyer's avatar
Naomi Guyer committed
70

Pat Kira's avatar
Pat Kira committed
71

Pat Kira's avatar
Pat Kira committed
72
73
                        {dynamic}{insert_messages}{/dynamic}
                        {if isset($PAGEHEADING)}
74
75
76
77
78
79
80
                            <h1>
                                {if isset($PAGEICON)}
                                <span class="{$PAGEICON}"></span>
                                {/if}
                                {$PAGEHEADING}
                                {if $PAGEHELPNAME}<span class="page-help-icon">{$PAGEHELPICON|safe}</span>{/if}
                            </h1>
Pat Kira's avatar
Pat Kira committed
81
                        {/if}
Naomi Guyer's avatar
Naomi Guyer committed
82

Pat Kira's avatar
Pat Kira committed
83
84
85
86
87
                        {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
88
                                <ul class="nav nav-pills">
Pat Kira's avatar
Pat Kira committed
89
                                    {foreach from=$SUBPAGENAV item=item}
Naomi Guyer's avatar
Naomi Guyer committed
90
                                        <li {if $item.selected}class="current-tab active" role="presentation"{/if}>
Pat Kira's avatar
Pat Kira committed
91
92
                                            <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
93
                                                <span class="accessible-hidden sr-only">({str tag=tab}{if $item.selected} {str tag=selected}{/if})</span>
Pat Kira's avatar
Pat Kira committed
94
95
96
                                            </a>
                                        </li>
                                    {/foreach}
Pat Kira's avatar
Pat Kira committed
97
                                </ul>
Pat Kira's avatar
Pat Kira committed
98
                            <div class="subpage">
Naomi Guyer's avatar
Naomi Guyer committed
99
                        {/if}