ID, 'corepress_post_meta', true),true); if (has_excerpt()) { $postitem['content'] = get_the_excerpt(); if (strlen(preg_replace("/[\s]{2,}/", "", $postitem['content'])) == 0) { $postitem['content'] = mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, $set['routine']['summary_lenth'], "……"); } } else { $postitem['content'] = mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, $set['routine']['summary_lenth'], "……"); } if (post_password_required()) { $postitem['content'] = '内容已加密,请输入密码以后查看'; } $postitem['thumbnail'] = null; if (has_post_thumbnail()) { if ($postitem['post_meta']['postshow'] == 1) { $postitem['thumbnail'] = get_the_post_thumbnail_url($post, 'full'); } else { $postitem['thumbnail'] = get_the_post_thumbnail_url($post, 'thumbnail'); } } else if ($set['routine']['autothumbnail'] == 1) { $preg = '//i'; preg_match($preg, $post->post_content, $imgArr); if (count($imgArr) != 0) { $postitem['thumbnail'] = $imgArr[1]; } } if ($postitem['thumbnail'] == null) { $postitem['thumbnail'] = $set['routine']['defaultthumbnail']; } $postitem['views'] = null; if (function_exists('the_views')) { $postitem['views'] = intval(get_post_meta($post->ID, 'views', true)); } $postitem['url'] = get_the_permalink(); $postitem['author'] = get_the_author(); $postitem['time'] = get_the_time('Y-m-d'); $postitem['commentsnum'] = get_comments_number(); $postitem['title'] = get_the_title(); $postitem['category'] = get_the_category(); foreach ($postitem['category'] as $item) { $item->url = get_category_link($item->cat_ID); } $target = ''; if ($set['routine']['opennewlink'] == 1) { $target = '_blank'; } if ($set['module']['imglazyload'] == 1) { $pathname = 'data-original'; $imgtag = ''; }else { $imgtag = ''; } if ($postitem['post_meta']['postshow'] == 1) { ?>
  • 置顶

    name ?>
  • 置顶

    name ?>