-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
71 lines (70 loc) · 3.24 KB
/
header.html
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link rel="icon" href="">
<link href="http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<link href="{CSS_PATH}style.css" rel="stylesheet">
<link href="{CSS_PATH}unslider.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="{JS_PATH}unslider.min.js"></script>
<script type="text/javascript" src="{JS_PATH}function.js"></script>
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">导航切换</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<a class="navbar-brand2" href="/"> <img alt="Brand" src="{IMG_PATH}logo.svg" width="120px" class="img-responsive" alt="飞图广告标志"> </a> <a class="navbar-brand" href="/" title="返回首页">飞图广告</a> </div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{pc:content action="category" catid="0" num="8" siteid="$siteid" order="listorder ASC"}
{loop $data $r}<!--二级下拉菜单-->
{php $nowcatid=$r[catid];}
{pc:content action="category" catid="$nowcatid" siteid="$siteid" order="listorder ASC" return="data1"}
{if count($data1)==0}
<li><a href="{if $r[description]}{$r[description]}{else}{$r[url]}{/if}">{$r[catname]}</a></li>
{/if}
{if count($data1)>0}
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{$r[catname]} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{loop $data1 $v}
<li><a href="{$v[url]}">{$v[catname]}{if $v[catid]!=$CATEGORYS[$v[catid]][arrchildid]}{/if}</a></li>
{/loop}
</ul>
</li>
{/if}
{/pc}
<!--二级下拉菜单END-->{/loop}
{/pc}
{php echo runhook('glogal_menu')}
{if $top_parentid}
{/if}
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="/html/en">English</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<!--幻灯内容-->{pc:content action="lists" catid="7" order="listorder asc" num="6" moreinfo="1"}
<div class="banner">
<ul>
{loop $data $r}
<li style="background-image: url('{$r['thumb']}');">
<div class="inner">
<h1>{$r['title']}</h1>
<p>{$r['content']}</p>
{if $r['btn']}<a class="btn btn-primary btn-sm" href="{$r['url']}" role="button">{$r['btn']}</a>{/if} </div>
</li>
{/loop}
{/pc}
</ul>
</div>