<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<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="author" content="">
	<link rel="icon" href="/favicon.ico">
	<title><?php echo ((isset($seo["title"]) && ($seo["title"] !== ""))?($seo["title"]):"追格-发现小程序,国内最大的微信小程序流量,小程序运营平台"); ?></title>
	<meta name="keywords" content="<?php echo ((isset($seo["keywords"]) && ($seo["keywords"] !== ""))?($seo["keywords"]):'小程序,小程序导航,微信小程序,小程序开发,小程序微信,小程序开发文档,微信公众平台,小程序下载,小程序 教程,小程序申请,追格网,公众号开发'); ?>">
	<meta name="description" content="<?php echo ((isset($seo["description"]) && ($seo["description"] !== ""))?($seo["description"]):'追格发掘和汇集微信小程序。分享最新小程序,小程序开发文档,小程序开发,小程序教程,小程序提交,小程序运营和下载平台'); ?>">
	<link href="/Public/css/bootstrap.min.css" rel="stylesheet">
	<link href="/Public/css/animate.min.css" rel="stylesheet">
	<link href="/Public/css/star-rating-svg.css" rel="stylesheet">
	<link href="/Public/css/zhuige.css?v=5" rel="stylesheet">
	<?php $color=getWebSetting(color);?>
	<link href="/Public/css/color<?php echo $color;?>.css" rel="stylesheet">
</head>

<body>
<!-- 头部导航块，共用 -->
<?php if('/Home/Last/index' == '/home/index/index'): ?><nav id="top_menu" class="navbar navbar-default navbar-static-top" role="navigation">
<?php else: ?>
	<nav id="top_menu" class="navbar navbar-default navbar-fixed-top" role="navigation"><?php endif; ?>
<style>
	.navbar-brand { width: 70px; height: 60px; background: url(<?php echo getWebSetting(logo);?>) no-repeat center center;  background-size: 51px 36px; overflow: hidden; text-indent: -200px;!important;}
</style>
	<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">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/">追格</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<?php if('/Home/Last' == '/Home/Index' ): ?><li class="active"><a href="/">首页</a></li>
					<?php else: ?>
					<li ><a href="/">首页</a></li><?php endif; ?>
				<?php if('/Home/Last' == '/Home/Last' ): ?><li class="active"><a href="/Last">最新</a></li>
					<?php else: ?>
					<li ><a href="/Last/index">最新</a></li><?php endif; ?>
			</ul>
			<ul class="nav navbar-nav navbar-right">


				<li><a href="https://www.zhuige.com/user/submitapp" target="_blank">分享新程序</a></li>
			</ul>
		</div>
	</div>
</nav>
<!-- 头部结束 -->

<!-- 顶部图片模块，需要减margin-top 20-->

<div class="container top-line">
    <dl class="share-link pull-right bdsharebuttonbox" data-tag="top_share">
	<dt>分享</dt>
	<dd class="share_weibo"><a title="分享到微博" data-cmd="tsina">微博</a></dd>
	<dd class="share_wechat"><a title="分享到微信" data-cmd="weixin">微信</a></dd>
</dl>
    <cite></cite>
</div>

<div class="container list_new">
    <?php if(is_array($programLast)): $i = 0; $__LIST__ = $programLast;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$programList): $mod = ($i % 2 );++$i; if(count($programList) == 0 ): ?><div class="day-app"><!--  日期块 -->
                <div class="day-app_header"><!--  日期行 -->
                    <?php if($key == $today): ?><strong>Today</strong>无新增
                        <?php elseif($key == $yestoday): ?>
                        <strong>Yesterday</strong>无新增
                        <?php else: ?>
                        <strong><?php echo ($key); ?></strong>无新增<?php endif; ?>
                </div>
            </div>
            <?php else: ?>
            <div class=" day-app"><!--  日期块 -->
                <div class="day-app_header"><!--  时间行 -->
                    <strong>
                        <?php if($key == $today): ?>Today
                            <?php elseif($key == $yestoday): ?>
                            Yesterday
                            <?php else: ?>
                            <?php echo ($key); endif; ?>
                    </strong>新增<em><?php echo (count($programList)); ?></em>个小程序
                </div>
                <?php if(is_array(${programList})): $i = 0; $__LIST__ = ${programList};if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$program): $mod = ($i % 2 );++$i;?><div class="row  app-list_row dab-app_list"><!--  列表行 -->
                        <div class="col-md-10">
                            <div class="media">
                                <a class="media-left" href="<?php echo U('index/detail',array('id'=>$program['id']));?>" target="_blank">
                                    <img class="media-object" alt="<?php echo ($program["name"]); ?>" src="<?php echo ($program["logo"]); ?>">
                                </a>
                                <div class="media-body">
                                    <h4 class="media-heading"><a href="<?php echo U('index/detail',array('id'=>$program['id']));?>" target="_blank"><?php echo ($program["name"]); ?></a></h4>
                                    <p><?php echo ($program["introduce"]); ?></p>
                                    <p class="tag_list">
                                        <?php if(is_array($program["label"])): $i = 0; $__LIST__ = $program["label"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$label): $mod = ($i % 2 );++$i;?><span class="label label-default"><a href="<?php echo U('/index/taglist',array('tag'=>$label['id']));?>" target="_blank"><?php echo ($label["name"]); ?></a></span><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-2"><a href="<?php echo U('index/index',array('category'=>$program['category']['id']));?>"><?php echo ($program["category"]["category"]); ?></a></div>
                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
                <!-- 					<div class="day-app_more">
                                        <a class="more_link" href="#">显示其余<strong>12</strong>个小程序</a>
                                    </div> -->
            </div><?php endif; endforeach; endif; else: echo "" ;endif; ?>
</div> <!-- /container -->

<!--   	页脚行 -->
	<footer>
		<div class="container">
			<div class="row foot-line">
				<div class="col-md-8">
				<?php echo getWebSetting(copyright);?>
				</div>
				<div class="col-md-4">
		         <?php echo getLinkUrl();?>
				</div>
			</div>
		</div>
	</footer>
    <!-- Bootstrap core JavaScript-->
    <script src="//cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="/Public/js/bootstrap.min.js"></script>
    <script src="/Public/js/jquery.star-rating-svg.min.js"></script>
    <script src="/Public/js/ie10-viewport-bug-workaround.js"></script>
    <script src="/Public/js/zhuige.js?v=10"></script>
    <script>
	with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>
    <div style="display:none;"><script src="https://s11.cnzz.com/z_stat.php?id=1261157961&web_id=1261157961" language="JavaScript"></script></div>

</body>
</html>