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