header.tpl 5.96 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}
14
            <div class="site-message alert alert-warning" role="alert">
15
                <span class="icon icon-lg icon-exclamation-triangle prm"></span>
16
17
                {$masqueradedetails} {$becomeyouagain|safe}
            </div>
Pat Kira's avatar
Pat Kira committed
18
19
        {/if}
        {if !$PRODUCTIONMODE}
20
            <div class="site-message alert alert-info" role="alert">
21
                <span class="icon icon-lg icon-info-circle prm"></span>
22
23
                {str tag=notproductionsite section=error}
            </div>
Pat Kira's avatar
Pat Kira committed
24
25
        {/if}
        {if $SITECLOSED}
26
            <div class="site-message alert alert-danger" role="alert">
27
                <span class="icon icon-lg icon-lock prm"></span>
28
29
                {if $SITECLOSED == 'logindisabled'}{str tag=siteclosedlogindisabled section=mahara arg1="`$WWWROOT`admin/upgrade.php"}{else}{str tag=siteclosed}{/if}
            </div>
Pat Kira's avatar
Pat Kira committed
30
31
32
33
34
35
36
37
        {/if}
        {if $SITETOP}
            <div id="switchwrap">{$SITETOP|safe}</div>
        {/if}

    {if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}
        </div>
    {/if}
Pat Kira's avatar
Pat Kira committed
38
    <header class="header navbar navbar-default navbar-fixed-top">
Naomi Guyer's avatar
Naomi Guyer committed
39
        <div class="container">
Naomi Guyer's avatar
Naomi Guyer committed
40
41
42
43
44
45
46
47
48
49
            {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
50
            <button type="button" class="navbar-toggle search-toggle collapsed" data-toggle="collapse" data-target=".navbar-form">
51
                <span class="icon icon-search"></span>
Naomi Guyer's avatar
Naomi Guyer committed
52
                <span class="nav-title sr-only">{str tag="show"} {str tag="search"}</span>
Pat Kira's avatar
Pat Kira committed
53
            </button>
Naomi Guyer's avatar
Naomi Guyer committed
54
            {/if}
Pat Kira's avatar
Pat Kira committed
55
            <span id="site-logo" class="site-logo">
Pat Kira's avatar
Pat Kira committed
56
57
58
59
60
61
62
63
                    <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
64
            </span>
Naomi Guyer's avatar
Naomi Guyer committed
65
            <div id="loading-box" class="loading-box" style='display:none'></div>
Naomi Guyer's avatar
Naomi Guyer committed
66
            {include file="header/topright.tpl"}
67

Naomi Guyer's avatar
Naomi Guyer committed
68
69
70
        </div>
    </header>

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

73

74
    <div class="container   {if $ADMIN || $INSTITUTIONALADMIN || $STAFF || $INSTITUTIONALSTAFF}{else}ptl{/if}">
Naomi Guyer's avatar
Naomi Guyer committed
75
        <div class="row">
Pat Kira's avatar
Pat Kira committed
76
            <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
77
                <div id="content" class="main-column{if $selected == 'content'} editcontent{/if}">
Pat Kira's avatar
Pat Kira committed
78
                    <div id="main-column-container">
Naomi Guyer's avatar
Naomi Guyer committed
79

80
81
82
83
84
85
86
87
88
89
90
91
                        {if $SUBPAGENAV}
                            <div class="arrow-bar">
                                <span class="arrow hidden-xs">
                                    <span class="text">
                                    {if isset($PAGEHEADING)}{$PAGEHEADING}{/if}
                                    </span>
                                </span>
                                <span class="right-text">
                                    {include file="inpagenav.tpl"}
                                </span>
                            </div>
                        {/if}
Pat Kira's avatar
Pat Kira committed
92

Pat Kira's avatar
Pat Kira committed
93
                        {dynamic}{insert_messages}{/dynamic}
94
95
96
                        {if $institutionselector}
                            {$institutionselector|safe}
                        {/if}
Pat Kira's avatar
Pat Kira committed
97
                        {if isset($PAGEHEADING)}
98

99
                            <h1 class="{$headingclass}">
100
101
                                {if isset($pageicon)}
                                <span class="{$pageicon}"></span>
102
                                {/if}
103
104
105
106
107
108
                                {if $subsectionheading}
                                <span class="subsection-heading">
                                    {$subsectionheading}
                                </span>
                                {/if}
                                <span class="section-heading">
Naomi Guyer's avatar
Naomi Guyer committed
109
                                    {if $subsectionheading}| {/if}{$PAGEHEADING}
110
                                </span>
111
                                {if $PAGEHELPNAME}<span class="page-help-icon">{$PAGEHELPICON|safe}</span>{/if}
112
113
                                {if $publicgroup && $rsswithtitle}
                                <a href="{$feedlink}" class="text-orange text-small pull-right ">
114
                                    <span class="icon-rss icon icon-lg"></span>
115
116
117
                                </a>
                                {/if}

118

119
                            </h1>
120

Pat Kira's avatar
Pat Kira committed
121
                        {/if}
Naomi Guyer's avatar
Naomi Guyer committed
122

123
124
125
                        {if $SUBPAGETOP}
                            {include file=$SUBPAGETOP}
                        {/if}