themes/oxygen/header.tpl
changeset 229 97ae8e9d5e29
parent 147 d8156d18ac58
parent 211 753dabeca1ee
child 304 e2cb5f1432c8
equal deleted inserted replaced
147:d8156d18ac58 229:97ae8e9d5e29
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     2 <html>
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3   <head>
     3   <head>
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     6     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
     6     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
     7     <link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" />
     7     <link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" />
     9     <!-- This script automatically loads the other 15 JS files -->
     9     <!-- This script automatically loads the other 15 JS files -->
    10     <script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/static/enano-lib-basic.js"></script>
    10     <script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/static/enano-lib-basic.js"></script>
    11     {ADDITIONAL_HEADERS}
    11     {ADDITIONAL_HEADERS}
    12     
    12     
    13     <script type="text/javascript">
    13     <script type="text/javascript">
       
    14     // <![CDATA[
    14     
    15     
    15       function collapseSidebar(side)
    16       function collapseSidebar(side)
    16       {
    17       {
    17         elem = document.getElementById(side+'-sidebar');
    18         elem = document.getElementById(side+'-sidebar');
    18         if(!elem) return;
    19         if(!elem) return;
    19         counter = document.getElementById(side+'-sidebar-showbutton');
    20         counter = document.getElementById(side+'-sidebar-showbutton');
    20         if(elem.style.display=='none')
    21         if(elem.style.display=='none')
    21         {
    22         {
    22           elem.style.display = 'block';
    23           elem.style.display = 'block';
    23           counter.style.display = 'none';
    24           counter.style.display = 'none';
    24           elem.parentNode.style.width = '156px';
    25           elem.parentNode.style.width = '';
    25           if ( !KILL_SWITCH )
    26           if ( !KILL_SWITCH )
    26           {
    27           {
    27             createCookie(side+'_sidebar', 'open', 365);
    28             createCookie(side+'_sidebar', 'open', 365);
    28           }
    29           }
    29         } else {
    30         } else {
    64         }
    65         }
    65       }
    66       }
    66       
    67       
    67       function ajaxRenameInline()
    68       function ajaxRenameInline()
    68       {
    69       {
    69         if ( KILL_SWITCH )
    70         if ( KILL_SWITCH || IE )
    70           return false;
    71           return false;
    71         // This trick is _so_ vBulletin...
    72         // This trick is _so_ vBulletin...
    72         elem = document.getElementById('h2PageName');
    73         elem = document.getElementById('h2PageName');
    73         if(!elem) return;
    74         if(!elem) return;
    74         elem.style.display = 'none';
    75         elem.style.display = 'none';
    87         elem1 = document.getElementById('h2PageName');
    88         elem1 = document.getElementById('h2PageName');
    88         elem2 = document.getElementById('pageheading');
    89         elem2 = document.getElementById('pageheading');
    89         if(!elem1 || !elem2) return;
    90         if(!elem1 || !elem2) return;
    90         value = elem2.value;
    91         value = elem2.value;
    91         elem2.parentNode.removeChild(elem2); // just destroy the thing
    92         elem2.parentNode.removeChild(elem2); // just destroy the thing
    92         elem1.innerHTML = value;
    93         elem1.removeChild(elem1.firstChild);
       
    94         elem1.appendChild(document.createTextNode(value));
    93         elem1.style.display = 'block';
    95         elem1.style.display = 'block';
    94         if(!value || value=='') return;
    96         if(!value || value=='') return;
    95         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
    97         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
    96           if(ajax.readyState == 4) {
    98           if(ajax.readyState == 4) {
    97             alert(ajax.responseText);
    99             alert(ajax.responseText);
    98           }
   100           }
    99         });
   101         });
   100       }
   102       }
   101       function ajaxRenameInlineCancel(e)
   103       function ajaxRenameInlineCancel(e)
   102       {
   104       {
       
   105         if ( typeof(e) != 'object' && IE )
       
   106           e = window.event;
   103         elem1 = document.getElementById('h2PageName');
   107         elem1 = document.getElementById('h2PageName');
   104         elem2 = document.getElementById('pageheading');
   108         elem2 = document.getElementById('pageheading');
   105         if(!elem1 || !elem2) return;
   109         if(!elem1 || !elem2) return;
   106         if ( e.target )
   110         if ( typeof(e) == 'object' && e.target )
   107         {
   111         {
   108           if(e.target == elem2)
   112           if(e.target == elem2)
   109             return;
   113             return;
   110         }
   114         }
   111         //value = elem2.value;
   115         //value = elem2.value;
   112         elem2.parentNode.removeChild(elem2); // just destroy the thing
   116         elem2.parentNode.removeChild(elem2); // just destroy the thing
   113         //elem1.innerHTML = value;
   117         //elem1.innerHTML = value;
   114         elem1.style.display = 'block';
   118         elem1.style.display = 'block';
   115         document.onclick = null;
   119         document.onclick = null;
   116       }
   120       }
       
   121     // ]]>
   117     </script>
   122     </script>
   118     
   123     
   119   </head>
   124   </head>
   120   <body>
   125   <body>
   121     <table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%">
   126     <table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%">
   147         
   152         
   148         <tr>
   153         <tr>
   149           <td id="mdg-bl"></td>
   154           <td id="mdg-bl"></td>
   150           <td class="menu_bg">
   155           <td class="menu_bg">
   151           <div class="menu_nojs" id="pagebar_main">
   156           <div class="menu_nojs" id="pagebar_main">
   152             <div class="label">Page tools</div>
   157             <div class="label">{lang:onpage_lbl_pagetools}</div>
   153             {TOOLBAR}
   158             {TOOLBAR}
   154             <ul>
   159             <ul>
   155               {TOOLBAR_EXTRAS}
   160               {TOOLBAR_EXTRAS}
   156             </ul>
   161             </ul>
   157             <span class="menuclear"></span>
   162             <span class="menuclear"></span>
   158           </div>
   163           </div>
   159         </td><td id="mdg-br"></td></tr>
   164         </td><td id="mdg-br"></td></tr>
   160         <tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;">
   165         <tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;">
   161           <div class="pad"><div class="contentDiv">
   166           <div class="pad"><div class="contentDiv">
   162           <div style="float: right;">
   167           <div style="float: right;">
   163             <image alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
   168             <img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
   164           </div>
   169           </div>
   165           <h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2>
   170           <h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2>
   166             <div id="ajaxEditContainer">
   171             <div id="ajaxEditContainer">