File: /www/wwwroot/gxdaosen.net/wp-content/themes/simplepark/archive.php
<?php get_header();
$detect = new Mobile_Detect();
if ($detect->isMobile()){
get_template_part( 'move/archive' );
}
elseif($detect->isTablet()){
get_template_part( 'move/archive' );
}else{
$word_t8=get_option('mytheme_word_t8');
$word_t12=get_option('mytheme_word_t12');
?>
<div id="page_top">
<div class="page_top_in">
<h1> <?php if($word_t12!=""){echo $word_t12;}else{echo '找到标签:';} single_tag_title(); ?></h1>
<p><?php if($word_t8!=""){echo $word_t8;}else{echo 'Screening using labels article';} ?></p>
</div>
</div>
<div id="page_muen_nav"> <b><?php if(get_option('mytheme_word_t11')==""){echo '您现在所在的位置';}else{ echo get_option('mytheme_word_t11');}; ?></b><?php if( is_front_page() || is_home()) {echo "<a>首页</a>";}else{if (function_exists('get_breadcrumbs')){get_breadcrumbs();}}?></div>
<?php get_template_part( 'category/product_nav' ); ?>
<div id="content">
<div class="left_mian"><?php get_sidebar(); ?></div>
<div class="right_mian">
<ul class="bigpic_loop" id="category_pic_smaoll">
<?php if(get_option('mytheme_list_nmber5')==""){$nmnber =12;}else{ $nmnber =get_option('mytheme_list_nmber5');}
$posts = query_posts($query_string . '&showposts='.$nmnber); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<li>
<div class="loop_big_a">
<a href="<?php the_permalink() ?>">
<?php $tit= get_the_title();if (has_post_thumbnail()) { the_post_thumbnail('news-sidbar-thumb' ,array('alt' =>$tit, 'title'=> $tit ));}?>
</a>
<b>
<a class="title"><?php echo mb_strimwidth(get_the_title(), 0, 15,"...") ?></a>
<a data-lightbox="example-set" href="<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), "full" , false, '' );echo $src[0];?>" class="lightboxlink"></a>
<a href="<?php the_permalink() ?>" target="_blank" class="link"></a>
</b>
</div>
</li>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</ul>
<div class="pager"> <?php par_pagenavi(); ?> </div>
</div>
</div>
<?php };get_footer(); ?>