-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrender-menu.tpl
96 lines (90 loc) · 5.32 KB
/
render-menu.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{if 'mainmenu' == $position}
{ia_menu menus=$menu.contents class="nav navbar-nav nav-main {$menu.classname}"}
{elseif 'inventory' == $position}
{ia_menu menus=$menu.contents class="nav nav-inventory {$menu.classname}" loginout=true}
{elseif 'footer_nav' == $position}
{ia_menu menus=$menu.contents class="list-inline {$menu.classname}"}
{elseif 'account' == $position}
{if 'account' == $menu.name && $member && $core.config.members_enabled}
<ul class="nav navbar-nav navbar-right nav-account">
{*<li class="hidden-xs"><a href="{$smarty.const.IA_URL}favorites/"><span class="fa fa-star text-warning"></span> {lang key='wishlist'}</a></li>*}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="{$member.fullname|default:$member.username}">
{ia_image file=$member.avatar title=$member.fullname|default:$member.username class='img-circle' gravatar=true email=$member.email width=34 type='thumbnail'}
</a>
{ia_hooker name='smartyFrontInsideAccountBox'}
{ia_menu menus=$menu.contents class='dropdown-menu' loginout=true}
</li>
</ul>
{else}
<ul class="nav navbar-nav navbar-right nav-account">
{*<li class="hidden-xs"><a href="{$smarty.const.IA_URL}favorites/"><span class="fa fa-star text-warning"></span> {lang key='wishlist'}</a></li>*}
<li><a data-toggle="modal" data-target="#loginModal" href="#" class="" title="{lang key='login_sign_up'}"><span class="fa fa-user"></span></a></li>
</ul>
<div class="modal fade" id="loginModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">{lang key='login_sign_up'}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<form action="{$smarty.const.IA_URL}login/" method="post">
{preventCsrf}
<div class="form-group">
<label for="field_login">{lang key='username_or_email'}:</label>
<input class="form-control" type="text" tabindex="4" name="username" value="{if isset($smarty.post.username)}{$smarty.post.username|escape}{/if}">
</div>
<div class="form-group">
<label for="field_password">{lang key='password'}:</label>
<input class="form-control" type="password" tabindex="5" name="password">
</div>
<div class="form-group form-actions">
<button class="btn btn-primary" type="submit" tabindex="6" name="login">{lang key='login'}</button>
<a class="btn btn-link" href="{$smarty.const.IA_URL}forgot/">{lang key='forgot'}</a>
</div>
</form>
</div>
<div class="col-md-6">
<h4>{lang key='register'}</h4>
<p>{lang key='register_tag'}</p>
<p><a class="btn btn-success" href="{$smarty.const.IA_URL}registration/" rel="nofollow">{lang key='registration'}</a></p>
</div>
</div>
</div><!-- /.modal-body -->
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
{/if}
{elseif in_array($position, array('left', 'right', 'user1', 'user2', 'top'))}
{if !empty($menu.contents[0]) && 'account' != $menu.name}
{ia_block ismenu=true title=$menu.title movable=true id=$menu.id name=$menu.name collapsible=$menu.collapsible classname=$menu.classname}
{ia_menu menus=$menu.contents class="list-group {$menu.classname}"}
{/ia_block}
{/if}
{elseif in_array($position, array('footer1', 'footer2', 'footer3', 'footer4'))}
{if $menu.header || isset($manageMode)}
{ia_block title=$menu.title movable=true id=$menu.id name=$menu.name collapsible=$menu.collapsible classname=$menu.classname}
{ia_menu menus=$menu.contents class="nav nav-links {$menu.classname}"}
{/ia_block}
{else}
{ia_menu menus=$menu.contents class="nav nav-links {$menu.classname}"}
{/if}
{else}
<!--__ms_{$menu.id}-->
{if $menu.header || isset($manageMode)}
<div class="nav-menu-header {$menu.classname}">{$menu.title}</div>
{else}
<div class="menu {$menu.classname}">
{/if}
<!--__ms_c_{$menu.id}-->
{ia_menu menus=$menu.contents class='nav'}
<!--__me_c_{$menu.id}-->
{if $menu.header || isset($manageMode)}
{else}
</div>
{/if}
<!--__me_{$menu.id}-->
{/if}