<?php if (git_get_option('git_adindex_02')) { printf('<div class="banner banner-sticky">' . git_get_option('git_adindex_02') . '</div>'); } if (is_home() && git_get_option('hot_list_check')) { ?> <div><div class="left-ad" style="clear: both;background-color: #fff; width: 30%;float: left;margin-right:2%;"></div><div class="hot-posts"> <h2 class="title"><?php echo git_get_option('hot_list_title'); ?> </h2> <ul><?php hot_posts_list($days = git_get_option('hot_list_date') ? git_get_option('hot_list_date') : 30, $nums = git_get_option('hot_list_number') ? git_get_option('hot_list_number') : 5); ?> </ul> </div></div> <?php } ?> <style type="text/css">.widget-title{background:#FFFFFF;} .title-h2{ height: 45px; border-bottom: 1px solid #90BBA8; margin: 5px 20px;}</style> <!-- 最新文章开始 --> <div class="relates"><h2 class="title"><small>最新文章</small><span class="more" style="float:right;"><a style="left: 0px;" href="/archives" title="阅读更多" target="_blank"><small>阅读更多</small></a></span></h2> <ul style="padding: 5px 0px 15px 20px;"> <?php query_posts('showposts=5'); while (have_posts()) { the_post(); ?> <li><i class="fa fa-minus"></i><a href="<?php
<?php if (dopt('d_adindex_02_b')) { printf('<div class="banner banner-sticky">' . dopt('d_adindex_02') . '</div>'); } if (is_home() && dopt('hot_list_check')) { ?> <div><div class="left-ad" style="clear: both;background-color: #fff; width: 30%;float: left;margin-right:2%;"></div><div class="hot-posts"> <h2 class="title"><?php echo dopt('hot_list_title'); ?> </h2> <ul><?php hot_posts_list($days = dopt('hot_list_date'), $nums = dopt('hot_list_number')); ?> </ul> </div></div> <?php } if (wp_is_mobile()) { if (dopt('Mobiled_adindex_02_b')) { printf('<div class="banner-sticky">' . dopt('Mobiled_adindex_02') . '</div>'); } } $_author = dopt('d_post_author_b'); $_time = dopt('d_post_time_b'); $_views = dopt('d_post_views_b'); $_comment = dopt('d_post_comment_b'); $_like = dopt('d_post_like_b'); while (have_posts()) { the_post(); $_thumbnail = false;
<?php if( dopt('d_adindex_02_b') ) printf('<div class="banner banner-sticky">'.dopt('d_adindex_02').'</div>'); ?> <?php if(is_home()&& dopt('hot_list_check') ){ ?> <div><div class="left-ad" style="clear: both;background-color: #fff; width: 30%;float: left;margin-right:2%;"></div><div class="hot-posts"> <h2 class="title"><?php echo dopt('hot_list_title') ?></h2> <ul><?php hot_posts_list($days=dopt('hot_list_date'), $nums=dopt('hot_list_number')); ?></ul> </div></div> <?php } ?> <?php if (wp_is_mobile() ): ?><?php if( dopt('Mobiled_adindex_02_b') ) printf('<div class="banner-sticky">'.dopt('Mobiled_adindex_02').'</div>'); ?><?php endif ;?> <?php $_author = dopt('d_post_author_b'); $_time = dopt('d_post_time_b'); $_views = dopt('d_post_views_b'); $_comment = dopt('d_post_comment_b'); $_like = dopt('d_post_like_b'); ?> <?php while ( have_posts() ) : the_post(); ?> <?php $_thumbnail = false; if( has_post_thumbnail() || !dopt('d_thumbnail_b') ){ $_thumbnail = true; } ?> <article class="excerpt<?php echo !$_thumbnail ? ' excerpt-nothumbnail' : '' ?>"> <header><?php if( !is_category() ) {$category = get_the_category(); if($category[0]){echo '<a class="label label-important" href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'<i class="label-arrow"></i></a>';} };?><h2><a target="_blank" href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> <?php $t1=$post->post_date; $t2=date("Y-m-d H:i:s"); $diff=(strtotime($t2)-strtotime($t1))/3600; if($diff<12){echo '<img src="'.get_bloginfo("template_url").'/img/new.gif" alt="24小时内最新">';}?> </a></h2> </header>