?> </div> </div> </footer> <script type="text/javascript"> $('.site_loading').animate({'width':'90%'},50); //第四个节点 </script> </div> </section> <?php get_template_part('framework/modules/loginbox'); get_template_part('framework/modules/floatbutton'); ?> <!-- /.Footer Nav Wrap --> <?php $layout = fun_get_layout(); if (is_home() && $layout == 'blocks') { ?> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?> /js/jquery.masonry.js"></script> <script type="text/javascript"> $(function(){ var $container = $('#fluid_blocks'), $items = $('#fluid_blocks .masonry-box'); $items.imagesLoaded(function(){ $items.fadeIn(); $container.masonry({ itemSelector:'.masonry-box', gutterWidth:0,
/** * * 页面meta信息条 * @param unknown_type $special */ function fun_post_meta($special = 0) { $layout = fun_get_layout(); if (is_singular()) { ?> <div id="single-meta"> <span class="single-meta-author"><i class="fa fa-user"> </i><?php the_author_posts_link(); ?> </span> <span class="single-meta-time"><i class="fa fa-calendar"> </i><?php echo timeago(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?> </span> <?php if (is_single()) { ?> <span class="single-meta-category"><i class="fa fa-folder-open"> </i><?php the_category(' ', ''); ?> </span><?php } ?> <?php if (current_user_can('level_7')) { ?> <span class="single-meta-edit"><i class="fa fa-edit"> </i><?php edit_post_link(__(' 编辑 ', 'xiapistudio')); ?> </span><?php } ?> <span class="single-meta-comments"><?php if (comments_open()) { ?> | <i class="fa fa-comments"></i> <a href="#" class="commentbtn"><?php comments_number(__('抢沙发', 'xiapistudio'), __('1 条评论', 'xiapistudio'), __('% 条评论', 'xiapistudio')); ?> </a><?php } else { ?> | <i class="fa fa-comments"></i><?php _e(' 评论关闭', 'xiapistudio'); } ?> </span> <span class="single-meta-views"><i class="fa fa-fire"></i> <?php echo fun_get_traffic('single', get_the_ID()); ?> </span> </div> <?php } elseif (is_search() || is_home() && $layout == 'blog' || is_category() && $special == 0 || is_tag() || is_date()) { ?> <div class="meta"> <?php if (!is_category()) { ?> <span class="postlist-meta-cat"><i class="fa fa-bookmark"></i><?php the_category(' ', false); ?> </span><?php } ?> <span class="postlist-meta-time"><i class="fa fa-calendar"></i><?php echo timeago(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?> </span> <span class="postlist-meta-views"><i class="fa fa-fire"></i><?php echo '浏览: ' . fun_get_traffic('single', get_the_ID()); ?> </span> <span class="postlist-meta-comments"><?php if (comments_open()) { ?> <i class="fa fa-comments"></i><a href="<?php comments_link(); ?> "><?php comments_number(__('<span>评论: </span>0', 'xiapistudio'), __('<span>评论: </span>1', 'xiapistudio'), __('<span>评论: </span>%', 'xiapistudio')); ?> </a><?php } ?> </span> </div> <?php } elseif (is_home() || is_category() && $special == 1) { ?> <div class="postlist-meta"> <div class="postlist-meta-time"><i class="fa fa-calendar"></i> <?php echo date('Y-m-j', get_the_time('U')); ?> </div> <div class="postlist-meta-views" style="float:right;"><i class="fa fa-fire"></i> <?php echo fun_get_traffic('single', get_the_ID()); ?> </div> <?php get_template_part('framework/modules/like_collect_meta'); ?> </div> <?php } else { ?> <div id="single-meta"> <span class="single-meta-author"><i class="fa fa-user"> </i><?php the_author_posts_link(); ?> </span> <span class="single-meta-edit"><?php edit_post_link(__(' 编辑 ', 'xiapistudio')); ?> </span> <span class="single-meta-time"><i class="fa fa-calendar"> </i><?php echo timeago(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?> </span> <span class="single-meta-comments"><?php if (comments_open()) { ?> | <i class="fa fa-comments"></i> <a href="<?php comments_link(); ?> "><?php comments_number(__('0 条评论', 'xiapistudio'), __('1 条评论', 'xiapistudio'), __('% 条评论', 'xiapistudio')); ?> </a><?php } else { ?> | <i class="fa fa-comments"></i><?php _e(' 评论关闭', 'xiapistudio'); } ?> </span> <span class="single-meta-views"><i class="fa fa-fire"></i> <?php echo fun_get_traffic('single', get_the_ID()); ?> </span> </div> <?php } }
<?php /*************************************** Theme Name: Change Theme Theme URI: https://github.com/xiapistudio/change Description: Chage主题,虾皮工作室专用 Version: 1.0.0 Author: 虾皮工作室 Author URI: http://www.xiapistudio.com/ License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html ***************************************/ if (!have_posts()) { //如果没有文章,则显示未找到页面 get_template_part('framework/modules/not-found'); } else { global $loop_layout; //如果为空,获取对应的设置 if (empty($loop_layout)) { $loop_layout = fun_get_layout(); } //根据设置,选择相应的模板 switch ($loop_layout) { default: get_template_part('framework/loops/loop-blog'); } }