File: /www/wwwroot/doba123.com/wp-content/themes/duba2/single-product.php
<?php
/*
Template Name: 产品详情
Author: 畔游科技
Version: 1.0
*/
get_header();
?>
<div class="pz_banner">
<div class="nyBan">
<img src="<?php bloginfo('template_url'); ?>/static/picture/banner087401093.jpg" alt="" title="" class="visible-lg visible-md">
<img src="<?php bloginfo('template_url'); ?>/static/picture/banner08_25745768.jpg" alt="" title="" class="visible-sm visible-xs">
<div class="nyBanTit">
<h4>Article</h4>
<div class="local">
<a href="/">首页</a>/<?php the_category(","); ?>/<?php the_title(); ?>
</div>
</div>
</div>
<div class="nyNav">
<div class="pz_SideLayer"><li class="l1 first sl_p19">
<!-- <a class="hover" href="javascript:;" target="_self"><?php the_category(","); ?></a> -->
<?php the_category(","); ?>
</li></div>
</div>
</div>
<div class="pz_main">
<div class="newsDel">
<div class="container">
<div class="newsDel_le wow fadeInUp" style="width:100%;">
<div class="newsDelTit">
<h2><?php the_title(); ?></h2>
<script src="<?php bloginfo('template_url'); ?>/static/js/views-pz_ganyan_4.js"></script>
<span>日期:<?php the_time('Y-m-d'); ?> 阅读:<?php get_post_views($post -> ID); ?>次</span>
</div>
<div class="newsDel_m">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
<div class="newsPage">
<!-- <div class="newsPageTurn">
<span>
<a href="">← 上一篇</a>
<a href="47" class="next">下一篇 →</a>
</span>
</div> -->
<ul class="clearfix">
<?php
$categories = get_the_category();
$categoryIDS = array();
foreach ($categories as $category) {
array_push($categoryIDS, $category->term_id);
}
$categoryIDS = implode(",", $categoryIDS);
?>
<li class="py_next"><?php if (get_next_post($categoryIDS)) { next_post_link('上一篇: %link','%title',true);} else { echo "已是最新文章";} ?></li>
<li class="py_previou"><?php if (get_previous_post($categoryIDS)) { previous_post_link('下一篇: %link','%title',true);} else { echo "已是最后文章";} ?></li>
</ul>
<div class="newsShare" style="float: right;">
<div class="bdsharebuttonbox"> <span>分享:</span><a href="" class="bds_more" data-cmd="more"></a><a href="" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a></div>
<script>
if ($(window).width() >= 992) {
window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "1", "bdSize": "24" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
}
if ($(window).width() < 992) {
window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "1", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
}
</script>
</div>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>