themes/enanium/header.tpl
author Dan
Fri, 21 Aug 2009 15:39:23 -0400
changeset 1096 86feb1c7ca3f
parent 1051 78b41fb98140
child 1100 aead4e1ce5df
permissions -rw-r--r--
Wiki formatter: heading IDs are now name based ("head:" . sanitize_page_id($text)) instead of tocN.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     2
<html xmlns="http://www.w3.org/1999/xhtml">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     3
  <head>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     4
    <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     5
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     6
    {JS_DYNAMIC_VARS}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     7
    <link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
     8
    <link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" />
1051
78b41fb98140 Enanium: Added some IE6 fixes
Dan
parents: 978
diff changeset
     9
    <!--[if lte IE 6]>
78b41fb98140 Enanium: Added some IE6 fixes
Dan
parents: 978
diff changeset
    10
    <link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie6.css" />
78b41fb98140 Enanium: Added some IE6 fixes
Dan
parents: 978
diff changeset
    11
    <![endif]-->
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    12
    {JS_HEADER}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    13
    {ADDITIONAL_HEADERS}
955
de4f81abc5e3 Enanium: Set right sidebar as collapsible. Whether I will do the left one I do not know.
Dan
parents: 921
diff changeset
    14
    <script type="text/javascript">//<![CDATA[
de4f81abc5e3 Enanium: Set right sidebar as collapsible. Whether I will do the left one I do not know.
Dan
parents: 921
diff changeset
    15
    var auth_rename = <!-- BEGIN auth_rename -->true<!-- BEGINELSE auth_rename -->false<!-- END auth_rename -->;
de4f81abc5e3 Enanium: Set right sidebar as collapsible. Whether I will do the left one I do not know.
Dan
parents: 921
diff changeset
    16
    // ]]>
de4f81abc5e3 Enanium: Set right sidebar as collapsible. Whether I will do the left one I do not know.
Dan
parents: 921
diff changeset
    17
    </script>
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    18
    <script type="text/javascript" src="{CDNPATH}/themes/{THEME_ID}/js/inlinerename.js"></script>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    19
  </head>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    20
  <body>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    21
    <div id="header">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    22
      <?php
978
ed84b24b8e07 A few safety changes to tolerate no $session when it's not available
Dan
parents: 964
diff changeset
    23
      global $session;
ed84b24b8e07 A few safety changes to tolerate no $session when it's not available
Dan
parents: 964
diff changeset
    24
      
964
a0add54d9795 Enanium: fixed failure to load on template_nodb
Dan
parents: 962
diff changeset
    25
      if ( is_object($paths) && $head = $paths->sysMsg('SiteHeader') )
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    26
      {
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    27
        echo $head;
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    28
      }
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    29
      else
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    30
      {
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    31
      ?>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    32
        <div class="logo"></div>
964
a0add54d9795 Enanium: fixed failure to load on template_nodb
Dan
parents: 962
diff changeset
    33
        <h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1>
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    34
      <?php
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    35
        }
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    36
      ?>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    37
    </div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    38
    <!-- HOOK enanium_main_header -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    39
    <!-- BEGINNOT stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    40
    <form class="searchform" action="{SCRIPTPATH}/index.php" method="get">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    41
      <div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    42
        <input type="hidden" name="title" value="{NS_SPECIAL}Search" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    43
        <input type="hidden" name="auth" value="{ADMIN_SID_RAW}" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    44
        <input type="text" name="q" value="" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    45
        <input type="submit" value="search" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    46
      </div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    47
      <!-- HOOK enanium_search_form -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    48
    </form>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    49
    <ul class="useropts">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    50
      <!-- BEGIN user_logged_in -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    51
      <li class="em"><a href="{url:User:{USERNAME}}">{USERNAME}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    52
      <li><a href="{url:Special:Preferences}">{lang:sidebar_btn_preferences_short}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    53
      <li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    54
      <!-- BEGINELSE user_logged_in -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    55
      <li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    56
      <li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    57
      <!-- END user_logged_in -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    58
    </ul>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    59
    <!-- END stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    60
    <!-- Yes this is table based. For reliability reasons. -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    61
    <table border="0" cellspacing="0" cellpadding="0" id="body-wrapper">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    62
    <tr>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    63
      <td valign="top" id="cell-sbleft">
958
3dafe0969e5a Enanium: added collapse for left sidebar
Dan
parents: 955
diff changeset
    64
        <div class="left sidebar" id="enanium_sidebar_left">
3dafe0969e5a Enanium: added collapse for left sidebar
Dan
parents: 955
diff changeset
    65
          <a class="closebtn" onclick="enanium_toggle_sidebar_left(); return false;">&laquo;</a>
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    66
          {SIDEBAR_LEFT}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    67
        </div>
958
3dafe0969e5a Enanium: added collapse for left sidebar
Dan
parents: 955
diff changeset
    68
        <div class="left-sidebar-hidden" id="enanium_sidebar_left_hidden">
3dafe0969e5a Enanium: added collapse for left sidebar
Dan
parents: 955
diff changeset
    69
          <a class="openbtn" onclick="enanium_toggle_sidebar_left(); return false;">&raquo;</a>
3dafe0969e5a Enanium: added collapse for left sidebar
Dan
parents: 955
diff changeset
    70
        </div>
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    71
        <!-- HOOK sidebar_left_post -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    72
      </td>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    73
      <td valign="top" id="cell-content">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    74
        <!-- BEGINNOT stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    75
        <div class="menu_nojs" style="float: right; margin-right: 10px;">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    76
          <a href="#" onclick="return false;">{lang:onpage_lbl_changes}</a>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    77
          <ul class="jbox_right">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    78
            <li><a href="{url:Special:Log/user={USERNAME}|escape}">{lang:onpage_btn_changes_mine}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    79
            <li><a href="{url:Special:Log/within=1w|escape}">{lang:onpage_btn_changes_recent}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    80
            <li><a href="{url:Special:Log/page={PAGE_URLNAME}|escape}">{lang:onpage_btn_changes_history}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    81
          </ul>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    82
          <a href="#" onclick="return false;">{lang:onpage_lbl_sitetools}</a>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    83
          <ul class="jbox_right">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    84
            <li><a href="{url:Special:CreatePage|escape}">{lang:sidebar_btn_createpage}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    85
            <li><a href="{url:Special:UploadFile|escape}">{lang:sidebar_btn_uploadfile}</a></li>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    86
            <li><a href="{url:Special:SpecialPages|escape}">{lang:sidebar_btn_specialpages}</a></li>
962
ceeecb160aec Enanium: move new memberlist above admin buttons + only show for logged-in
Dan
parents: 958
diff changeset
    87
            <!-- BEGIN user_logged_in -->
ceeecb160aec Enanium: move new memberlist above admin buttons + only show for logged-in
Dan
parents: 958
diff changeset
    88
            <li><a href="{url:Special:Memberlist|escape}">{lang:specialpage_member_list}</a></li>
ceeecb160aec Enanium: move new memberlist above admin buttons + only show for logged-in
Dan
parents: 958
diff changeset
    89
            <!-- END user_logged_in -->
921
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    90
            <!-- BEGIN auth_admin -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    91
            {SIDEBAR_LINK}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    92
            {ADMIN_LINK}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    93
            <!-- END auth_admin -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    94
          </ul>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    95
          <span class="menuclear"></span>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    96
        </div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    97
        <!-- END stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    98
        <div class="menu_nojs" id="pagebar_main">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
    99
          <div class="label">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   100
            <!-- BEGIN stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   101
            Page tools
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   102
            <!-- BEGINELSE stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   103
            {lang:onpage_lbl_pagetools}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   104
            <!-- END stupid_mode -->
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   105
          </div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   106
          {TOOLBAR}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   107
          <ul>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   108
            {TOOLBAR_EXTRAS}
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   109
          </ul>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   110
          <span class="menuclear"></span>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   111
        </div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   112
        <div id="content-wrapper" class="content">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   113
          <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   114
          <tr>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   115
          <td valign="top" style="width: 100%;">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   116
          <div style="float: right;">
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   117
            <img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   118
          </div>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   119
          <h1 <!-- BEGIN auth_rename -->title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename -->id="h2PageName">{PAGE_NAME}</h1>
a71de5e21423 New primary theme: Enanium
Dan
parents:
diff changeset
   120
          <div id="ajaxEditContainer">