source: extensions/PwgCarbon/template/menubar_identification.tpl @ 20461

Last change on this file since 20461 was 18843, checked in by Miklfe, 11 years ago
File size: 2.8 KB
Line 
1{php}
2        global $PwgCarbon;
3        $this->assign( 'PwgCarbon', $PwgCarbon );
4{/php}
5
6
7{if isset($U_LOGIN)}
8<li class="liSub">
9
10        {if ($PwgCarbon.menuident)==1}
11        <span class="dd_wrapper">{'Identification'|@translate}</span>
12        <div class="sub">{/if}
13       
14       
15        {if empty($PwgCarbon.menuident) or ($PwgCarbon.menuident)==2}
16        <span class="cl_wrapper">{'Identification'|@translate}</span>
17                <div id="loger">
18                        <div class="close">
19                        </div>
20        {/if}
21       
22        {if ($PwgCarbon.menuident)==3}
23        <span class="cc_wrapper">{'Identification'|@translate}</span>
24                <div id="loger">
25                        <div class="close">
26                        </div>
27        {/if}
28       
29                                               
30                        <form method="post" action="{$U_LOGIN}" id="quickconnect">
31                        <div id="log">
32                        <div>
33                        <label for="username">{'Username'|@translate}</label><br>
34                        <input type="text" autocomplete="{if ($PwgCarbon.menuident)==1}off{else}on{/if}" name="username" id="username" value="" style="width:100%">
35                        </div>
36                       
37                        <div>
38                        <label for="password">{'Password'|@translate}</label>
39                        <br>
40                        <input type="password" name="password" id="password" style="width:100%">
41                        </div>
42                       
43                        {if $AUTHORIZE_REMEMBERING}
44                        <div><label for="remember_me">
45                        {'Auto login'|@translate}
46                        <input type="checkbox" name="remember_me" id="remember_me" value="1">
47                        </label>
48                        {/if}
49                        </div>
50                        <div id="go">
51                        <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}">
52                        <input class="submit" type="submit" name="login" value="">
53                        </div>
54                        </div>
55                        <ul>
56                                {if isset($U_REGISTER)}
57                                <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>
58                                {/if}
59
60                                <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow">{'Forgot your password?'|@translate}</a></li>
61                        </ul>
62
63                       
64
65                        </form>
66                </div>
67</li>
68       
69        {else}
70       
71<li class="liSub">
72
73<span class="dd_wrapper">{'Identification'|@translate}</span>
74                                        <div style="opacity: 0; display: none; " class="sub">
75
76        {if isset($USERNAME)}
77        <p>{'Hello'|@translate}&nbsp;{$USERNAME}&nbsp;!</p>
78        {/if}
79
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
85        {if isset($U_LOGIN)}
86        <li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li>
87        {/if}
88
89        {if isset($U_LOGOUT)}
90        <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
91        {/if}
92
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
97        {if isset($U_ADMIN)}
98        <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li>
99        {/if}
100        </ul>
101</li>
102        {/if}
103
Note: See TracBrowser for help on using the repository browser.