head.tpl 1.54 KB
Newer Older
1
2
<head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
3
4
5
    <meta property="og:title" content="{$PAGETITLE}" />
    <meta property="og:description" content="{$sitedescription4facebook}" />
    <meta property="og:image" content="{$sitelogo4facebook}" />
6
    {if isset($PAGEAUTHOR)}<meta name="author" content="{$PAGEAUTHOR}">{/if}
7
    <title>{$PAGETITLE}</title>
8
9
    <script type="text/javascript">
    var config = {literal}{{/literal}
10
        'theme': {$THEMELIST|safe},
11
12
13
        'sesskey' : '{$SESSKEY}',
        'wwwroot': '{$WWWROOT}',
        'loggedin': {$USER->is_logged_in()|intval},
14
15
16
        'userid': {$USER->get('id')},
        'mobile': {if $MOBILE}1{else}0{/if},
        'handheld_device': {if $HANDHELD_DEVICE}1{else}0{/if}
17
18
    {literal}}{/literal};
    </script>
19
    {$STRINGJS|safe}
20
21
22
23
{foreach from=$JAVASCRIPT item=script}
    <script type="text/javascript" src="{$script}"></script>
{/foreach}
{foreach from=$HEADERS item=header}
24
    {$header|safe}
25
26
27
{/foreach}
{if isset($INLINEJAVASCRIPT)}
    <script type="text/javascript">
28
{$INLINEJAVASCRIPT|safe}
29
30
31
32
33
34
35
36
    </script>
{/if}
{foreach from=$STYLESHEETLIST item=cssurl}
    <link rel="stylesheet" type="text/css" href="{$cssurl}">
{/foreach}
    <link rel="stylesheet" type="text/css" href="{theme_url filename='style/print.css'}" media="print">
    <script type="text/javascript" src="{$WWWROOT}js/css.js"></script>
    <link rel="shortcut icon" href="{$WWWROOT}favicon.ico" type="image/vnd.microsoft.icon">
Evonne Cheung's avatar
Evonne Cheung committed
37
    <link rel="image_src" href="{$sitelogo}" />
38
</head>
39
{dynamic}{flush}{/dynamic}