1 | {* basically a copy of menubar.tpl with manual inclusion of menubar_xxx.tpl *} |
---|
2 | {if !empty($blocks)} |
---|
3 | <aside id=menubar> |
---|
4 | {foreach from=$blocks key=id item=block}{if ($id!="mbIdentification" && $id!="mbMenu")} |
---|
5 | <dl id={$id}> |
---|
6 | {if $id=="mbLinks"} |
---|
7 | {* ============ mbLinks ========== *} |
---|
8 | {if count($block->data)==1} |
---|
9 | <dt><a href="{$block->data[0].URL}">{$block->data[0].LABEL}</a></dt> |
---|
10 | {else} |
---|
11 | <dt>{'Links'|@translate}</dt> |
---|
12 | <dd> |
---|
13 | <ul>{strip} |
---|
14 | {foreach from=$block->data item=link} |
---|
15 | <li> |
---|
16 | <a href="{$link.URL}" class="external"{if isset($link.new_window)} onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if}> |
---|
17 | {$link.LABEL} |
---|
18 | </a> |
---|
19 | </li> |
---|
20 | {/foreach} |
---|
21 | {/strip}</ul> |
---|
22 | </dd> |
---|
23 | {/if} |
---|
24 | |
---|
25 | {elseif $id=="mbTags"} |
---|
26 | {* ============ mbTags ========== *} |
---|
27 | <dt><a>{'Related tags'|@translate}</a></dt> |
---|
28 | <dd> |
---|
29 | <div id=menuTagCloud> |
---|
30 | {foreach from=$block->data item=tag}{strip} |
---|
31 | <a class="tagLevel{$tag.level}" href= |
---|
32 | {if isset($tag.U_ADD)} |
---|
33 | "{$tag.U_ADD}" title="{$tag.counter|@translate_dec:'%d photo is also linked to current tags':'%d photos are also linked to current tags'}" rel=nofollow>+ |
---|
34 | {else} |
---|
35 | "{$tag.URL}" title="{'display photos linked to this tag'|@translate}"> |
---|
36 | {/if} |
---|
37 | {$tag.name}</a>{/strip} |
---|
38 | {/foreach} |
---|
39 | </div> |
---|
40 | </dd> |
---|
41 | |
---|
42 | {elseif $id=="mbSpecials"} |
---|
43 | {* ============ mbSpecials ========== *} |
---|
44 | <dt><a>{'Explore'|@translate}</a></dt> |
---|
45 | <dd> |
---|
46 | <ul>{strip} |
---|
47 | {foreach from=$block->data item=link} |
---|
48 | <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a></li> |
---|
49 | {/foreach} |
---|
50 | {if isset($blocks.mbMenu)} |
---|
51 | <hr> |
---|
52 | {foreach from=$blocks.mbMenu->data item=link}{if is_array($link)} |
---|
53 | <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a>{if isset($link.COUNTER)} ({$link.COUNTER}){/if}</li> |
---|
54 | {/if}{/foreach} |
---|
55 | {/if} |
---|
56 | {/strip}</ul> |
---|
57 | </dd> |
---|
58 | |
---|
59 | {elseif $id=="mbMenu"} |
---|
60 | {* ============ mbMenu ========== *} |
---|
61 | <dt>{'Menu'|@translate}</dt> |
---|
62 | <dd> |
---|
63 | <ul>{strip} |
---|
64 | {foreach from=$block->data item=link} |
---|
65 | {if is_array($link)} |
---|
66 | <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a>{if isset($link.COUNTER)} ({$link.COUNTER}){/if}</li> |
---|
67 | {/if} |
---|
68 | {/foreach} |
---|
69 | {/strip}</ul> |
---|
70 | </dd> |
---|
71 | |
---|
72 | {elseif $id=="mbIdentification"} |
---|
73 | {* ============ mbIdentification ========== *} |
---|
74 | <dt>{'Identification'|@translate}</dt> |
---|
75 | <dd> |
---|
76 | {strip} |
---|
77 | {if isset($USERNAME)} |
---|
78 | <p>{'Hello'|@translate} {$USERNAME} !</p> |
---|
79 | {/if} |
---|
80 | <ul> |
---|
81 | {if isset($U_REGISTER)} |
---|
82 | <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel=nofollow>{'Register'|@translate}</a></li> |
---|
83 | {/if} |
---|
84 | {if isset($U_LOGIN)} |
---|
85 | <li><a href="{$U_LOGIN}" rel=nofollow>{'Login'|@translate}</a></li> |
---|
86 | {/if} |
---|
87 | {if isset($U_LOGOUT)} |
---|
88 | <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li> |
---|
89 | {/if} |
---|
90 | {if isset($U_PROFILE)} |
---|
91 | <li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li> |
---|
92 | {/if} |
---|
93 | {if isset($U_ADMIN)} |
---|
94 | <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li> |
---|
95 | {/if} |
---|
96 | </ul> |
---|
97 | {/strip} |
---|
98 | {if isset($U_LOGIN)} |
---|
99 | {strip} |
---|
100 | <form method=post action="{$U_LOGIN}" id=quickconnect> |
---|
101 | <fieldset> |
---|
102 | <legend>{'Quick connect'|@translate}</legend> |
---|
103 | <div> |
---|
104 | <label for=username>{'Username'|@translate}</label><br> |
---|
105 | <input type=text name=username id=username value="" style="width:99%"> |
---|
106 | </div> |
---|
107 | |
---|
108 | <div><label for=password>{'Password'|@translate}</label><br> |
---|
109 | <input type=password name=password id=password style="width:99%"> |
---|
110 | </div> |
---|
111 | |
---|
112 | {if $AUTHORIZE_REMEMBERING} |
---|
113 | <div><label for=remember_me> |
---|
114 | {'Auto login'|@translate} <input type=checkbox name=remember_me id=remember_me value=1> |
---|
115 | </label></div> |
---|
116 | {/if} |
---|
117 | |
---|
118 | <div> |
---|
119 | <input type=hidden name=redirect value="{$smarty.server.REQUEST_URI|@urlencode}"> |
---|
120 | <input type=submit name=login value="{'Submit'|@translate}"> |
---|
121 | <span class=categoryActions> |
---|
122 | {if isset($U_REGISTER)} |
---|
123 | <a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" class="pwg-state-default pwg-button" rel=nofollow> |
---|
124 | <span class="pwg-icon pwg-icon-register"> </span> |
---|
125 | </a> |
---|
126 | {/if} |
---|
127 | <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button"> |
---|
128 | <span class="pwg-icon pwg-icon-lost-password"> </span> |
---|
129 | </a> |
---|
130 | </span> |
---|
131 | </div> |
---|
132 | |
---|
133 | </fieldset> |
---|
134 | </form> |
---|
135 | {/strip} |
---|
136 | {/if} |
---|
137 | </dd> |
---|
138 | |
---|
139 | {else} |
---|
140 | {if not empty($block->template)} |
---|
141 | {include file=$block->template } |
---|
142 | {else} |
---|
143 | {$block->raw_content} |
---|
144 | {/if} |
---|
145 | {/if} |
---|
146 | </dl> |
---|
147 | {/if}{/foreach} |
---|
148 | {* ============ Horizontal menu specificities ========== *} |
---|
149 | {if isset($blocks.mbSpecials->data.most_visited)} |
---|
150 | <dl id="mbMostVisited"><dt><a href="{$blocks.mbSpecials->data.most_visited.URL}" title="{$blocks.mbSpecials->data.most_visited.TITLE}">{$blocks.mbSpecials->data.most_visited.NAME}</a></dt></dl> |
---|
151 | {/if} |
---|
152 | {if isset($blocks.mbSpecials->data.best_rated)} |
---|
153 | <dl id="mbBestRated"><dt><a href="{$blocks.mbSpecials->data.best_rated.URL}" title="{$blocks.mbSpecials->data.best_rated.TITLE}">{$blocks.mbSpecials->data.best_rated.NAME}</a></dt></dl> |
---|
154 | {/if} |
---|
155 | {if isset($blocks.mbSpecials->data.recent_pics)} |
---|
156 | <dl><dt><a href="{$blocks.mbSpecials->data.recent_pics.URL}" title="{$blocks.mbSpecials->data.recent_pics.TITLE}">{$blocks.mbSpecials->data.recent_pics.NAME}</a></dt></dl> |
---|
157 | {/if} |
---|
158 | <dl style="float:none"> |
---|
159 | <form style="margin:0;display:inline" action="{$ROOT_URL}qsearch.php" method=get id=quicksearch onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;"> |
---|
160 | <input type="text" name=q id=qsearchInput onfocus="if(value==qsearch_prompt)value='';" onblur="if(value=='')value=qsearch_prompt;"> |
---|
161 | </form> |
---|
162 | <script type="text/javascript">var qsearch_prompt="{'Search'|@translate|@escape:'javascript'}...";document.getElementById('qsearchInput').value=qsearch_prompt;</script> |
---|
163 | </dl> |
---|
164 | {if isset($U_LOGIN)} |
---|
165 | <dl style="float:right;margin-top:3px"> |
---|
166 | <dt style="font-size:100%;font-weight:normal;padding-left:15px{*to avoid loosing hover*}"><a href="{$U_LOGIN}" rel=nofollow>{'Login'|@translate}</a></dt> |
---|
167 | <dd style="right:0"> |
---|
168 | <ul> |
---|
169 | <li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li> |
---|
170 | {if isset($U_REGISTER)} |
---|
171 | <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> |
---|
172 | {/if} |
---|
173 | <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow">{'Forgot your password?'|@translate}</a></li> |
---|
174 | </ul> |
---|
175 | {strip} |
---|
176 | <form method=post action="{$U_LOGIN}" id=quickconnect> |
---|
177 | <fieldset> |
---|
178 | <legend>{'Quick connect'|@translate}</legend> |
---|
179 | <p> |
---|
180 | <label for=userX>{'Username'|@translate}</label><br> |
---|
181 | <input type=text name=username id=userX value="" style="width:99%"> |
---|
182 | </p> |
---|
183 | |
---|
184 | <p><label for=passX>{'Password'|@translate}</label><br> |
---|
185 | <input type=password name=password id=passX style="width:99%"> |
---|
186 | </p> |
---|
187 | |
---|
188 | {if $AUTHORIZE_REMEMBERING} |
---|
189 | <p><label> |
---|
190 | {'Auto login'|@translate} <input type=checkbox name=remember_me value=1> |
---|
191 | </label></p> |
---|
192 | {/if} |
---|
193 | |
---|
194 | <p> |
---|
195 | <input type=hidden name=redirect value="{$smarty.server.REQUEST_URI|@urlencode}"> |
---|
196 | <input type=submit name=login value="{'Submit'|@translate}"> |
---|
197 | </p> |
---|
198 | |
---|
199 | </fieldset> |
---|
200 | </form> |
---|
201 | {/strip} |
---|
202 | </dd> |
---|
203 | </dl> |
---|
204 | {/if} |
---|
205 | {if isset($U_LOGOUT)} |
---|
206 | <dl style="float:right;margin-top:3px"> |
---|
207 | <dt style="font-size:100%;font-weight:normal"> |
---|
208 | {if isset($USERNAME)}{'Hello'|@translate} {if isset($U_PROFILE)}<a href="{$U_PROFILE}">{/if}{$USERNAME}{if isset($U_PROFILE)}</a>{/if} ! {/if} |
---|
209 | <a href="{$U_LOGOUT}">{'Logout'|@translate}</a> |
---|
210 | {if isset($U_PROFILE)}<a id="mbProfile" href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a>{/if} |
---|
211 | {if isset($U_ADMIN)} |
---|
212 | <a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">Admin</a> |
---|
213 | {/if} |
---|
214 | </dt> |
---|
215 | </dl> |
---|
216 | {/if} |
---|
217 | |
---|
218 | </aside> |
---|
219 | {/if} |
---|
220 | <a id="menuSwitcher" class="pwg-button" title="{'Menu'|@translate}"><span class="pwg-icon pwg-icon-menu"></span></a> |
---|
221 | {combine_script id='zzz.d1.menu' load='async' path="themes/`$themeconf.id`/js/menuh.js" require="jquery" version=0} |
---|