<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title><?php echo $title?>-<?php echo $webtitle?></title>
<base href="<?php echo $site?>/">
<meta name="keywords" content="<?php echo "{$data['author']}"?>,<?php echo $webtitle?>,微信公众平台,微信内容,公众账号,微信聚合，微信头条,微精选，微信精选，推荐公众账号">
<meta name="description" content="">

<meta name="viewport" content="width=device-width, initial-scale=1.0,,user-scalable=no">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/m/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/m/bootstrap-responsive.css">
<link rel="stylesheet" type="text/css" href="<?=TY_SKIN?>/m/wap201311.css">
</head>
<body>
<div class="navbar navbar-fixed-top">
<a href="<?php echo $site?>/" class="w50">首页</a><a href="<?=$authorpath.$data['author_id'].$hzm?>" class="w50" title="查看<?php echo "{$data['author']}"?>更多微信"><?php echo "{$data['author']}"?></a></div>
<!-- 内容 -->
<div class="row-fluid">
<div class="span12">
<div class="box-content" aid='<?=$id?>'>
<!------广告代码----->
					
					<h1><?php echo $title?></h1><?php $day=date("Y年m月d日H:i",$data['time']);?>
					<p style="text-align:center;"><?php echo "{$day}"?></p><p style="text-align:center;">
					<!-- 移动顶部 -->
<script src="<?=TY_SKIN?>/ad/m_top.js"></script>
<?=content_txt($content)?><script src="<?=TY_SKIN?>/ad/m_foot.js"></script><? if($pinglun=='1'){ ?>
       <!-- UY BEGIN -->
<div id="SOHUCS"></div>
<script>
  (function(){
    var appid = '<?=$appid?>',
    conf = '<?=$conf?>';
    var doc = document,
    s = doc.createElement('script'),
    h = doc.getElementsByTagName('head')[0] || doc.head || doc.documentElement;
    s.type = 'text/javascript';
    s.charset = 'utf-8';
    s.src =  'http://assets.changyan.sohu.com/upload/changyan.js?conf='+ conf +'&appid=' + appid;
    h.insertBefore(s,h.firstChild);
    window.SCS_NO_IFRAME = true;
  })()
</script>

<!-- UY END --><? }else{}?><hr>欢迎关注 <?php echo $webtitle?>（<?=$_SERVER['HTTP_HOST'];?>）</p>
					</div></div></div>
            <script src="<?=TY_SKIN?>/ad/mhtml.js"></script>

		   <script src="<?=TY_SKIN?>/m/jquery.min.js"></script>
		   <script src="<?=TY_SKIN?>/m/jquery.autoIMG.js"></script><script>
		$(function() {
			//缩放文章内容页中的图片
			$('.box-content').autoIMG();
		});

		var aid = <?=$id?>;
		var title = "<?php echo $title?>";
		var cover = "";
		var desc = '<?php echo $webtitle?>，精选聚合微信头条';
		var onBridgeReady = function(){
        WeixinJSBridge.on('menu:share:appmessage', function(argv){
            var info = $("#info").text();

            WeixinJSBridge.invoke('sendAppMessage', {
                "img_url": cover,
                "img_width": "120",
                "img_height": "120",
                "link": '<?php echo $site?>/v/'+aid+'.html',
                "title": title,
                "desc": desc
            });
            //share_callback_hy();
            setTimeout(function () {location.href = "<?php echo "{$data['long']}"?>";}, 1500);
            
        });
        WeixinJSBridge.on('menu:share:timeline', function(argv){
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": cover,
                "img_width": "120",
                "img_height": "120",
                "link": '<?php echo $site?>/v/'+aid+'.html',
                "title": title,
                "desc": desc
            });
            //share_callback_pyq();
            setTimeout(function () {location.href = "<?php echo "{$data['long']}"?>";}, 1500);
        });
    };


    if(document.addEventListener){
        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
    }else if(document.attachEvent){
        document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
    }

		</script></body></html>