1 | {* $Id: menubar.tpl 2325 2008-05-02 21:56:21Z rub $ *} |
---|
2 | |
---|
3 | <div id="menubar"> |
---|
4 | {if not empty($links)} |
---|
5 | <dl id="mbLinks"> |
---|
6 | <dt>{'Links'|@translate}</dt> |
---|
7 | <dd> |
---|
8 | <ul> |
---|
9 | {foreach from=$links item=link} |
---|
10 | <li> |
---|
11 | <a href="{$link.URL}" |
---|
12 | {if isset($link.new_window) }onclick="window.open(this.href, '{$link.new_window.NAME|@escape:'javascript'}','{$link.new_window.FEATURES|@escape:'javascript'}'); return false;"{/if} |
---|
13 | > |
---|
14 | {$link.LABEL} |
---|
15 | </a> |
---|
16 | </li> |
---|
17 | {/foreach}{*links*} |
---|
18 | </ul> |
---|
19 | </dd> |
---|
20 | </dl> |
---|
21 | {/if}{*links*} |
---|
22 | |
---|
23 | {if isset($U_START_FILTER)} |
---|
24 | <a href="{$U_START_FILTER}" title="{'start_filter_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="{'start_filter_hint'|@translate}"></a> |
---|
25 | {/if} |
---|
26 | {if isset($U_STOP_FILTER)} |
---|
27 | <a href="{$U_STOP_FILTER}" title="{'stop_filter_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="{'stop_filter_hint'|@translate}"></a> |
---|
28 | {/if} |
---|
29 | |
---|
30 | <dl id="mbCategories"> |
---|
31 | <dt><a href="{$U_CATEGORIES}">{'Categories'|@translate}</a></dt> |
---|
32 | <dd> |
---|
33 | {$MENU_CATEGORIES_CONTENT} |
---|
34 | {if isset($U_UPLOAD)} |
---|
35 | <ul><li> |
---|
36 | <a href="{$U_UPLOAD}">{'upload_picture'|@translate}</a> |
---|
37 | </li></ul> |
---|
38 | {/if} |
---|
39 | <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $NB_PICTURE)}</p> |
---|
40 | </dd> |
---|
41 | </dl> |
---|
42 | |
---|
43 | |
---|
44 | {if not empty($related_tags)} |
---|
45 | <dl id="mbTags"> |
---|
46 | <dt>{'Related tags'|@translate}</dt> |
---|
47 | <dd> |
---|
48 | <ul id="menuTagCloud"> |
---|
49 | {foreach from=$related_tags item=tag} |
---|
50 | <li> |
---|
51 | {if !empty($tag.add) } |
---|
52 | <a href="{$tag.add.URL}" |
---|
53 | title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.add.COUNTER)}" |
---|
54 | rel="nofollow"> |
---|
55 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" /> |
---|
56 | </a> |
---|
57 | {/if} |
---|
58 | <a href="{$tag.U_TAG}" class="{$tag.CLASS}" title="{'See elements linked to this tag only'|@translate}">{$tag.NAME}</a> |
---|
59 | </li> |
---|
60 | {/foreach} |
---|
61 | </ul> |
---|
62 | </dd> |
---|
63 | </dl> |
---|
64 | {/if} |
---|
65 | |
---|
66 | |
---|
67 | <dl id="mbSpecial"> |
---|
68 | <dt>{'special_categories'|@translate}</dt> |
---|
69 | <dd> |
---|
70 | <ul> |
---|
71 | {foreach from=$special_categories item=cat} |
---|
72 | <li><a href="{$cat.URL}" title="{$cat.TITLE}" {if isset($cat.REL)}{$cat.REL}{/if}>{$cat.NAME}</a></li> |
---|
73 | {/foreach} |
---|
74 | </ul> |
---|
75 | </dd> |
---|
76 | </dl> |
---|
77 | |
---|
78 | |
---|
79 | <dl id="mbMenu"> |
---|
80 | <dt>{'title_menu'|@translate}</dt> |
---|
81 | <dd> |
---|
82 | <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch"> |
---|
83 | <p> |
---|
84 | <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" /> |
---|
85 | </p> |
---|
86 | </form> |
---|
87 | <script type="text/javascript">var qsearch_prompt="{'qsearch'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script> |
---|
88 | |
---|
89 | <ul> |
---|
90 | {foreach from=$summaries item=sum} |
---|
91 | <li><a href="{$sum.U_SUMMARY}" title="{$sum.TITLE}" {if isset($sum.REL)}{$sum.REL}{/if}>{$sum.NAME}</a></li> |
---|
92 | {/foreach} |
---|
93 | </ul> |
---|
94 | </dd> |
---|
95 | </dl> |
---|
96 | |
---|
97 | |
---|
98 | <dl id="mbIdentification"> |
---|
99 | <dt>{'identification'|@translate}</dt> |
---|
100 | <dd> |
---|
101 | {if isset($USERNAME)} |
---|
102 | <p>{'hello'|@translate} {$USERNAME} !</p> |
---|
103 | {/if} |
---|
104 | |
---|
105 | <ul> |
---|
106 | {if isset($U_REGISTER)} |
---|
107 | <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> |
---|
108 | {/if} |
---|
109 | |
---|
110 | {if isset($U_IDENTIFY)} |
---|
111 | <li><a href="{$U_IDENTIFY}" rel="nofollow">{'Connection'|@translate}</a></li> |
---|
112 | {/if} |
---|
113 | |
---|
114 | {if isset($U_LOGOUT)} |
---|
115 | <li><a href="{$U_LOGOUT}">{'logout'|@translate}</a></li> |
---|
116 | {/if} |
---|
117 | |
---|
118 | {if isset($U_PROFILE)} |
---|
119 | <li><a href="{$U_PROFILE}" title="{'hint_customize'|@translate}">{'customize'|@translate}</a></li> |
---|
120 | {/if} |
---|
121 | |
---|
122 | {if isset($U_ADMIN)} |
---|
123 | <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li> |
---|
124 | {/if} |
---|
125 | </ul> |
---|
126 | |
---|
127 | {if isset($U_IDENTIFY)} |
---|
128 | <form method="post" action="{$U_IDENTIFY}" class="filter" id="quickconnect"> |
---|
129 | <fieldset> |
---|
130 | <legend>{'Quick connect'|@translate}</legend> |
---|
131 | |
---|
132 | <label> |
---|
133 | {'Username'|@translate} |
---|
134 | <input type="text" name="username" size="15" value=""> |
---|
135 | </label> |
---|
136 | |
---|
137 | <label> |
---|
138 | {'Password'|@translate} |
---|
139 | <input type="password" name="password" size="15"> |
---|
140 | </label> |
---|
141 | |
---|
142 | {if $AUTHORIZE_REMEMBERING} |
---|
143 | <label> |
---|
144 | {'remember_me'|@translate} |
---|
145 | <input type="checkbox" name="remember_me" value="1"> |
---|
146 | </label> |
---|
147 | {/if} |
---|
148 | <p> |
---|
149 | <input class="submit" type="submit" name="login" value="{'Submit'|@translate}"> |
---|
150 | </p> |
---|
151 | |
---|
152 | <ul class="actions"> |
---|
153 | <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li> |
---|
154 | {if isset($U_REGISTER)} |
---|
155 | <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li> |
---|
156 | {/if} |
---|
157 | </ul> |
---|
158 | |
---|
159 | </fieldset> |
---|
160 | </form> |
---|
161 | {/if} |
---|
162 | |
---|
163 | </dd> |
---|
164 | </dl> |
---|
165 | </div> <!-- menubar --> |
---|