<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{kg['category']['title']}} - KGCMS</title>
<meta name="keywords" content="{{kg['category']['seokey']}}" />
<meta name="description" content="{{kg['category']['seodescr']}}" />
<meta name="copyright" content="KGCMS {{kg['server']['KGCMS_VERSION']}}" />
<!-- 自适应移动端 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 禁止缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="{{kg['tpl_url']}}style/download_list.css">
<script src="{{kg['tpl_url']}}script/jquery-3.0.0.min.js"></script>
<script src="{{kg['tpl_url']}}script/bootstrap.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{kg['tpl_url']}}script/download_list.js"></script>
</head>
<body>
	<div class="container-fluid ngcon-style">
	{% include 'component_header.tpl' %}
		<div class="row">
			<div class="col-md-3">
				<div class="bs-docs-sidebar hidden-print hidden-xs hidden-sm">
					<ul class="nav bs-docs-sidenav" id="left-nav">
						{%- for row in kg['category']['id']|category() %}
						<li class="{% if row['id'] == kg['category']['id'] %}active{% endif %}"><a href="{{row['url']}}"><span class="iconfont icon-dian"></span>{{row['title']}}</a></li>
						{%- endfor %}
					</ul>
				</div>
			</div>
			<div class="col-md-9 ngNo-padding">
				<div class="panel panel-default ngNo-margin No-shadow">
					<div class="panel-body ngsty-pan">
						<h1 class="page-title sty-title">{{kg['category']['title']}}</h1>
						<hr class="hr-Rsty">
						{%- set download_data = 0|download_page(10,10,kg['category']['id']) %}
						{%- if download_data['list'] %}
						{%- for row in download_data['list'] %}
						<h2 class="page-Zititle">
							{% if row['content'] %}<a target="_blank" href="{{row['url']}}" class="h2-pa">{{row['title']}}</a>{% else %} <p class="h2-pa">{{row['title']}}</p>{% endif %}
						</h2>
						<div class="ngsty-text">
							<p>{{row['description']}}</p>
							<p>{{kg['lang'][0]}}：{{row['pushtime']}}&nbsp;&nbsp;&nbsp;&nbsp;{{kg['lang'][1]}}：{{row['version']}}</p>
							{% if (row['defaultdown'] == 0 and row['local'] and row['down_url']) or (row['defaultdown'] - 1 > -1 and row['mirror'][row['defaultdown'] - 1] and  row['mirror'][row['defaultdown'] - 1].get('url','')) %}<a target="_blank" href="download?action=download&download={{row['id']}}" class="p-a">{{kg['lang'][2]}} »</a>{% endif %}
							{% if row['local'] and row['down_url'] %}<a target="_blank" href="download?action=download&mirror=0&download={{row['id']}}" class="p-a">{{kg['lang'][3]}} »</a>{% endif %}
							
							{%- for var in row['mirror'] %}
							{% if var['name'] and var['url'] %}<a target="_blank" href="download?action=download&mirror={{loop.index}}&download={{row['id']}}" class="p-a">{{var['name']}} »</a>{% endif %}
							{%- endfor %}
						</div>
						{%- endfor %}
						{%- else %}
						<div class="No-content con-syt">{{kg['lang'][6]}}</div>
						{%- endif %}
					</div>
				</div>
				<hr class="hr-Rsty foo-sty">
				{% if download_data['page_data']['total_page'] > 1 %}
				{{download_data['page_html']}}
				{% endif %}
			</div>
		</div>
		{% include 'component_footer.tpl' %}
	</div>
</body>
</html>