forked from jnanamurti/developer-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.tpl
122 lines (87 loc) · 3.63 KB
/
header.tpl
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="ru"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="ru"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="ru"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="ru"> <!--<![endif]-->
<head>
{hook run='html_head_begin'}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{$sHtmlTitle}</title>
<meta name="description" content="{$sHtmlDescription}">
<meta name="keywords" content="{$sHtmlKeywords}">
{$aHtmlHeadFiles.css}
<link href="{cfg name='path.static.skin'}/images/favicon.ico?v1" rel="shortcut icon" />
<link rel="search" type="application/opensearchdescription+xml" href="{router page='search'}opensearch/" title="{cfg name='view.name'}" />
{if $aHtmlRssAlternate}
<link rel="alternate" type="application/rss+xml" href="{$aHtmlRssAlternate.url}" title="{$aHtmlRssAlternate.title}">
{/if}
{if $sHtmlCanonical}
<link rel="canonical" href="{$sHtmlCanonical}" />
{/if}
{if $bRefreshToHome}
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL={cfg name='path.root.web'}/">
{/if}
<script type="text/javascript">
var DIR_WEB_ROOT = '{cfg name="path.root.web"}';
var DIR_STATIC_SKIN = '{cfg name="path.static.skin"}';
var DIR_ROOT_ENGINE_LIB = '{cfg name="path.root.engine_lib"}';
var LIVESTREET_SECURITY_KEY = '{$LIVESTREET_SECURITY_KEY}';
var SESSION_ID = '{$_sPhpSessionId}';
var BLOG_USE_TINYMCE = '{cfg name="view.tinymce"}';
var TINYMCE_LANG = 'en';
{if $oConfig->GetValue('lang.current') == 'russian'}
TINYMCE_LANG = 'ru';
{/if}
var aRouter = new Array();
{foreach from=$aRouter key=sPage item=sPath}
aRouter['{$sPage}'] = '{$sPath}';
{/foreach}
</script>
{$aHtmlHeadFiles.js}
<script type="text/javascript">
var tinyMCE = false;
ls.lang.load({json var = $aLangJs});
ls.registry.set('comment_max_tree',{json var=$oConfig->Get('module.comment.max_tree')});
ls.registry.set('block_stream_show_tip',{json var=$oConfig->Get('block.stream.show_tip')});
</script>
{hook run='html_head_end'}
</head>
{if $oUserCurrent}
{assign var=body_classes value=$body_classes|cat:' ls-user-role-user'}
{if $oUserCurrent->isAdministrator()}
{assign var=body_classes value=$body_classes|cat:' ls-user-role-admin'}
{/if}
{else}
{assign var=body_classes value=$body_classes|cat:' ls-user-role-guest'}
{/if}
{if !$oUserCurrent or ($oUserCurrent and !$oUserCurrent->isAdministrator())}
{assign var=body_classes value=$body_classes|cat:' ls-user-role-not-admin'}
{/if}
{add_block group='toolbar' name='toolbar_admin.tpl' priority=100}
{add_block group='toolbar' name='toolbar_scrollup.tpl' priority=-100}
<body class="{$body_classes}">
{hook run='body_begin'}
{if $oUserCurrent}
{include file='window_write.tpl'}
{include file='window_favourite_form_tags.tpl'}
{else}
{include file='window_login.tpl'}
{/if}
{include file='navbar.tpl'}
{include file='header_top.tpl'}
{include file='nav.tpl'}
<div class="container {hook run='container_class'}">
<div class="row wrapper {hook run='wrapper_class'}">
{if !$noSidebar && $sidebarPosition == 'left'}
{include file='sidebar.tpl'}
{/if}
<div role="main"
class="span8 content
{if $noSidebar}content-full-width{/if}
{if $sidebarPosition == 'left'}content-right{/if}"
{if $sMenuItemSelect=='profile'}itemscope itemtype="http://data-vocabulary.org/Person"{/if}>
{include file='nav_content.tpl'}
{include file='system_message.tpl'}
{hook run='content_begin'}