35 <h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1> |
35 <h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1> |
36 <?php |
36 <?php |
37 } |
37 } |
38 ?> |
38 ?> |
39 </div> |
39 </div> |
|
40 <!-- Of course, plugins can do anything they want here --> |
40 <!-- HOOK enanium_main_header --> |
41 <!-- HOOK enanium_main_header --> |
|
42 |
41 <!-- BEGINNOT stupid_mode --> |
43 <!-- BEGINNOT stupid_mode --> |
|
44 <!-- This section is bypassed entirely if "stupid mode" (failsafe/no-database template rendering) has been switched on, i.e. by grinding_halt() --> |
42 <form class="searchform" action="{SCRIPTPATH}/index.php" method="get"> |
45 <form class="searchform" action="{SCRIPTPATH}/index.php" method="get"> |
43 <div> |
46 <div> |
44 <input type="hidden" name="title" value="{NS_SPECIAL}Search" /> |
47 <input type="hidden" name="title" value="{NS_SPECIAL}Search" /> |
45 <input type="hidden" name="auth" value="{ADMIN_SID_RAW}" /> |
48 <input type="hidden" name="auth" value="{ADMIN_SID_RAW}" /> |
46 <input type="text" name="q" value="" /> |
49 <input type="text" name="q" value="" /> |
47 <input type="submit" value="search" /> |
50 <input type="submit" value="search" /> |
48 </div> |
51 </div> |
49 <!-- HOOK enanium_search_form --> |
52 <!-- HOOK enanium_search_form --> |
50 </form> |
53 </form> |
51 <ul class="useropts"> |
54 <ul class="useropts"> |
|
55 <!-- A first look at typical template logic! |
|
56 This is the simple case of showing one set of buttons (user page, user CP, log out) for |
|
57 logged-in users, and for everyone else we show "log in" and "register" buttons. --> |
|
58 |
52 <!-- BEGIN user_logged_in --> |
59 <!-- BEGIN user_logged_in --> |
|
60 <!-- The "em" class changes the color of the button slightly --> |
53 <li class="em"><a href="{url:User:{USERNAME}}">{USERNAME}</a></li> |
61 <li class="em"><a href="{url:User:{USERNAME}}">{USERNAME}</a></li> |
54 <li><a href="{url:Special:Preferences}">{lang:sidebar_btn_preferences_short}</a></li> |
62 <li><a href="{url:Special:Preferences}">{lang:sidebar_btn_preferences_short}</a></li> |
|
63 <!-- The "logout" class causes the button to turn red when you hover over it --> |
55 <li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li> |
64 <li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li> |
56 <!-- BEGINELSE user_logged_in --> |
65 <!-- BEGINELSE user_logged_in --> |
57 <li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li> |
66 <li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li> |
58 <!-- BEGINNOT registration_disabled --> |
67 <!-- BEGINNOT registration_disabled --> |
59 <li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li> |
68 <li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li> |
65 <table border="0" cellspacing="0" cellpadding="0" id="body-wrapper"> |
74 <table border="0" cellspacing="0" cellpadding="0" id="body-wrapper"> |
66 <tr> |
75 <tr> |
67 <td valign="top" id="cell-sbleft"> |
76 <td valign="top" id="cell-sbleft"> |
68 <div class="left sidebar" id="enanium_sidebar_left"> |
77 <div class="left sidebar" id="enanium_sidebar_left"> |
69 <a class="closebtn" onclick="enanium_toggle_sidebar_left(); return false;">«</a> |
78 <a class="closebtn" onclick="enanium_toggle_sidebar_left(); return false;">«</a> |
|
79 <!-- You have (almost) complete control over the structure of the SIDEBAR_LEFT variable. |
|
80 See elements.tpl --> |
70 {SIDEBAR_LEFT} |
81 {SIDEBAR_LEFT} |
71 </div> |
82 </div> |
72 <div class="left-sidebar-hidden" id="enanium_sidebar_left_hidden"> |
83 <div class="left-sidebar-hidden" id="enanium_sidebar_left_hidden"> |
73 <a class="openbtn" onclick="enanium_toggle_sidebar_left(); return false;">»</a> |
84 <a class="openbtn" onclick="enanium_toggle_sidebar_left(); return false;">»</a> |
74 </div> |
85 </div> |
90 <li><a href="{url:Special:SpecialPages|escape}">{lang:sidebar_btn_specialpages}</a></li> |
101 <li><a href="{url:Special:SpecialPages|escape}">{lang:sidebar_btn_specialpages}</a></li> |
91 <!-- BEGIN user_logged_in --> |
102 <!-- BEGIN user_logged_in --> |
92 <li><a href="{url:Special:Memberlist|escape}">{lang:specialpage_member_list}</a></li> |
103 <li><a href="{url:Special:Memberlist|escape}">{lang:specialpage_member_list}</a></li> |
93 <!-- END user_logged_in --> |
104 <!-- END user_logged_in --> |
94 <!-- BEGIN auth_admin --> |
105 <!-- BEGIN auth_admin --> |
|
106 <!-- Be warned, ADMIN_LINK is built from sidebar_button in elements. This works in Enanium because it |
|
107 uses <li> everywhere and handles styling exclusively with CSS (as all good themes should). |
|
108 You'll want to make sure that if you include a "site tools" menu, your sidebar code relies |
|
109 on <li> for links. --> |
95 {ADMIN_LINK} |
110 {ADMIN_LINK} |
96 <!-- END auth_admin --> |
111 <!-- END auth_admin --> |
97 </ul> |
112 </ul> |
98 <span class="menuclear"></span> |
113 <span class="menuclear"></span> |
99 </div> |
114 </div> |
100 <!-- END stupid_mode --> |
115 <!-- END stupid_mode --> |
101 <div class="menu_nojs" id="pagebar_main"> |
116 <div class="menu_nojs" id="pagebar_main"> |
102 <div class="label"> |
117 <div class="label"> |
|
118 <!-- Stupid localization hack --> |
103 <!-- BEGIN stupid_mode --> |
119 <!-- BEGIN stupid_mode --> |
104 Page tools |
120 Page tools |
105 <!-- BEGINELSE stupid_mode --> |
121 <!-- BEGINELSE stupid_mode --> |
106 {lang:onpage_lbl_pagetools} |
122 {lang:onpage_lbl_pagetools} |
107 <!-- END stupid_mode --> |
123 <!-- END stupid_mode --> |
108 </div> |
124 </div> |
|
125 <!-- The jBox "page tools" bar, generated from elements.tpl --> |
109 {TOOLBAR} |
126 {TOOLBAR} |
110 <ul> |
127 <ul> |
111 {TOOLBAR_EXTRAS} |
128 {TOOLBAR_EXTRAS} |
112 </ul> |
129 </ul> |
113 <span class="menuclear"></span> |
130 <span class="menuclear"></span> |
114 </div> |
131 </div> |
115 <div id="content-wrapper" class="content"> |
132 <div id="content-wrapper" class="content"> |
116 <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"> |
133 <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"> |
117 <tr> |
134 <tr> |
118 <td valign="top" style="width: 100%;"> |
135 <td valign="top" style="width: 100%;"> |
|
136 |
|
137 <!-- The spinny icon shown when ajax operations are taking place --> |
119 <div style="float: right;"> |
138 <div style="float: right;"> |
120 <img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" /> |
139 <img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" /> |
121 </div> |
140 </div> |
|
141 |
|
142 <!-- The double-clickable page title --> |
122 <h1 <!-- BEGIN auth_rename -->title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename -->id="h2PageName">{PAGE_NAME}</h1> |
143 <h1 <!-- BEGIN auth_rename -->title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename -->id="h2PageName">{PAGE_NAME}</h1> |
|
144 |
|
145 <!-- Everything below here is inner page content --> |
123 <div id="ajaxEditContainer"> |
146 <div id="ajaxEditContainer"> |