header.tpl 4.46 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!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"}
<body class="no-js">
    {if $ADDITIONALHTMLTOPOFBODY}{$ADDITIONALHTMLTOPOFBODY|safe}{/if}
    
    {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}

Pat Kira's avatar
Pat Kira committed
30
    <a class="sr-only sr-only-focusable" href="#main">{str tag=skipmenu}</a>
Naomi Guyer's avatar
Naomi Guyer committed
31
32
33

    <div id="loading-box" class="loading-box"></div>

Pat Kira's avatar
Pat Kira committed
34
    <header class="header navbar navbar-default navbar-fixed-top">
Naomi Guyer's avatar
Naomi Guyer committed
35
        <div class="container">
Pat Kira's avatar
Pat Kira committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
            <!-- 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">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
             <button type="button" class="navbar-toggle search-toggle collapsed" data-toggle="collapse" data-target=".navbar-form">
                <span class="glyphicon glyphicon-search"></span>
                <span class="nav-title sr-only">Toggle {str tag="search"}</span>
            </button>


            <span id="site-logo" class="site-logo">
Naomi Guyer's avatar
Naomi Guyer committed
50
51
52
                <a href="{$WWWROOT}">
                    <img src="{$sitelogo}" alt="{$sitename}">
                </a>
Pat Kira's avatar
Pat Kira committed
53
            </span>
Naomi Guyer's avatar
Naomi Guyer committed
54
55
56
57
            {include file="header/topright.tpl"}
        </div>
    </header>

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

Pat Kira's avatar
Pat Kira committed
60
    <div class="container">
Naomi Guyer's avatar
Naomi Guyer committed
61
        <div class="row">
Pat Kira's avatar
Pat Kira committed
62
63
64
65
66
67
68
            <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">
                <div id="content" class="main-column{if $selected == 'content'} editcontent{/if}">
                    <div id="main-column-container">
                        {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
69

Pat Kira's avatar
Pat Kira committed
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
                        {if $SUBPAGENAV}
                            {if $SUBPAGETOP}
                                {include file=$SUBPAGETOP}
                            {/if}
                            {* Tabs and beginning of page container for group info pages *}
                            <div class="tabswrap">
                                <ul class="in-page-tabs">
                                    {foreach from=$SUBPAGENAV item=item}
                                        <li {if $item.selected}class="current-tab"{/if}>
                                            <a {if $item.tooltip}title="{$item.tooltip}"{/if}{if $item.selected}class="current-tab" {/if}href="{$WWWROOT}{$item.url}">
                                                {$item.title}
                                                <span class="accessible-hidden">({str tag=tab}{if $item.selected} {str tag=selected}{/if})</span>
                                            </a>
                                        </li>
                                    {/foreach}
                                    </ul>
                            </div>
                            <div class="subpage">
Naomi Guyer's avatar
Naomi Guyer committed
88
                        {/if}