You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
2.5 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  2. <meta name="viewport" content="width=device-width, initial-scale=1">
  3. <title><?php if(empty($post["seotitle"])){echo $post["name"];}else{echo $post["seotitle"];} ?></title>
  4. <link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body>
  5. @include('home.common.header')
  6. <div class="container">
  7. <div class="row row-offcanvas row-offcanvas-right">
  8. <div class="col-xs-12 col-sm-9">
  9. <div class="bread"><a href="/"><?php echo sysconfig('CMS_INDEXNAME'); ?></a> > <?php echo get_cat_path($post["id"]); ?></div>
  10. <h1 class="page-header"><?php echo $post["name"]; ?></h1>
  11. <?php if(!empty($posts)){foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?>
  12. <strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?>..</p>
  13. <div class="info"><span class="fl"><?php $taglist=taglist($row['id']);if($taglist){foreach($taglist as $row){ ?><a href="<?php echo get_front_url(array("tagid"=>$row['id'],"type"=>'tags')); ?>"><?php echo $row['tag']; ?></a><?php }} ?><em><?php echo date("m-d H:i",$row['pubdate']); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php }} ?><div id="lad2"><script>ljs2();</script></div>
  14. <div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div>
  15. </div><!--/.col-xs-12.col-sm-9-->
  16. <div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar">
  17. <div class="panel panel-info">
  18. <div class="panel-heading">热门推荐</div>
  19. <div class="list-group"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>
  20. <a class="list-group-item" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><?php }} ?>
  21. </div>
  22. </div>
  23. </div><!--/.sidebar-offcanvas--></div><!--/row-->
  24. </div><!-- /.container -->
  25. @include('home.common.footer')</body></html>