header.html
2.8 KB
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
<!--头部 -->
<link rel="stylesheet" href="__TMPL__/public/assets/css/header.css">
<div id="header">
<div style="width: 1200px;margin: auto">
<section class="home_logo">
<img src="__TMPL__/public/assets/starImg/logo.png" alt="">
</section>
<!-- 导航栏 -->
<section class="home_nav">
<ul>
<li class="home_nav_act">
<a class="home_nav_act" href="/">首页</a>
</li>
<li class="slide_vo">
<a class="home_nav_act_A" href="/#star">星球奇境</a>
</li>
<volist name="slide" id="vo">
<li class="slide_vo">
<a class="home_nav_act_A" href="{$vo.url}">{$vo.name}</a>
<div class="home_nav_down">
<div class="home_nav_down2">
<img src="__TMPL__/public/assets/starImg/aicon_32.png" alt="">
<dl>
<notempty name="vo.child">
<volist name="vo.child" id="voo">
<dd><a href="{$voo.url}">{$voo.name}</a></dd>
</volist>
</notempty>
</dl>
</div>
</div>
</li>
</volist>
<li class="slide_vo">
<a class="home_nav_act_A" href="javascript:void(0);">星际活动</a>
</li>
</ul>
</section>
<!-- 搜索框 -->
<form method="GET" action="/portal/login/searchList" id="searchForm">
<section class="home_search">
<i class="search_icon"></i>
<input type="text" placeholder="" name="keyword" value="{$keyword}" id="keywords">
</section>
</form>
<notempty name="user">
<section class="home_login login_person">
<notempty name="user.avatar">
<img src="{:cmf_get_image_url($user.avatar)}" alt="">
<else/>
<img src="__TMPL__/public/assets/starImg/aicon_82.png" alt="">
</notempty>
<notempty name="user.user_nickname">
<span>{$user.user_nickname}</span>
<else/>
<span></span>
</notempty>
</section>
<else/>
<!-- 登录注册 -->
<section class="home_login">
<span>
<p id="register">注册</p>
<p id="login">登录</p>
</span>
</section>
</notempty>
</div>
<!-- logo -->
</div>