themes/stpatty/header.tpl
changeset 0 902822492a68
child 52 10ed1f728bf3
equal deleted inserted replaced
-1:000000000000 0:902822492a68
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
       
     2 <html>
       
     3   <head>
       
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
       
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
     6     {JS_DYNAMIC_VARS}
       
     7     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
       
     8     <link id="mdgCss" rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" />
       
     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>
       
    11     <!--[if IE]>
       
    12     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css-extra/ie-fixes.css" />
       
    13     <![endif]-->
       
    14     <script type="text/javascript">
       
    15     // <![CDATA[
       
    16       function ajaxRenameInline()
       
    17       {
       
    18         // This trick is _so_ vBulletin...
       
    19         elem = document.getElementById('pagetitle');
       
    20         if(!elem) return;
       
    21         elem.style.display = 'none';
       
    22         name = elem.innerHTML;
       
    23         textbox = document.createElement('input');
       
    24         textbox.type = 'text';
       
    25         textbox.value = name;
       
    26         textbox.id = 'pageheading';
       
    27         textbox.size = name.length + 7;
       
    28         textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
       
    29         elem.parentNode.insertBefore(textbox, elem);
       
    30         document.onclick = ajaxRenameInlineCancel;
       
    31       }
       
    32       function ajaxRenameInlineSave()
       
    33       {
       
    34         elem1 = document.getElementById('pagetitle');
       
    35         elem2 = document.getElementById('pageheading');
       
    36         if(!elem1 || !elem2) return;
       
    37         value = elem2.value;
       
    38         elem2.parentNode.removeChild(elem2); // just destroy the thing
       
    39         elem1.innerHTML = value;
       
    40         elem1.style.display = 'block';
       
    41         if(!value || value=='') return;
       
    42         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
       
    43           if(ajax.readyState == 4) {
       
    44             alert(ajax.responseText);
       
    45           }
       
    46         });
       
    47       }
       
    48       function ajaxRenameInlineCancel(e)
       
    49       {
       
    50         if ( !e )
       
    51           e = window.event;
       
    52         elem1 = document.getElementById('pagetitle');
       
    53         elem2 = document.getElementById('pageheading');
       
    54         if(!elem1 || !elem2) return;
       
    55         if ( e && e.target )
       
    56         {
       
    57           if(e.target == elem2)
       
    58             return;
       
    59         }
       
    60         //value = elem2.value;
       
    61         elem2.parentNode.removeChild(elem2); // just destroy the thing
       
    62         //elem1.innerHTML = value;
       
    63         elem1.style.display = 'block';
       
    64         document.onclick = null;
       
    65       }
       
    66       // ]]>
       
    67     </script>
       
    68     {ADDITIONAL_HEADERS}
       
    69   </head>
       
    70   <body>
       
    71     <div id="bg">
       
    72       <div id="rap">
       
    73         <div id="title">
       
    74           <img id="clover" src="{SCRIPTPATH}/themes/{THEME_ID}/images/clover.png" alt=" " />
       
    75           <h1>{SITE_NAME}</h1>
       
    76           <h2>{SITE_DESC}</h2>
       
    77         </div>
       
    78         <div class="menu_nojs" id="pagebar_main">
       
    79           <div class="label">Page tools</div>
       
    80           {TOOLBAR}
       
    81           <ul>
       
    82             {TOOLBAR_EXTRAS}
       
    83           </ul>
       
    84           <span class="menuclear">&nbsp;</span>
       
    85         </div>
       
    86         <div id="sidebar">
       
    87           <!-- BEGIN sidebar_left -->
       
    88           {SIDEBAR_LEFT}
       
    89           <!-- END sidebar_left -->
       
    90           <!-- BEGIN sidebar_right -->
       
    91           <!-- BEGINNOT in_admin -->
       
    92           {SIDEBAR_RIGHT}
       
    93           <!-- END in_admin -->
       
    94           <!-- END sidebar_right -->
       
    95         </div>
       
    96         <div id="maincontent">
       
    97           <div style="float: right;">
       
    98             <img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
       
    99           </div>
       
   100           <h2 id="pagetitle" <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename -->>{PAGE_NAME}</h2>
       
   101           <div id="ajaxEditContainer">
       
   102