.icon {width: 18px; height: 18px;vertical-align: -3px;fill: currentColor;overflow: hidden;}'; } if ($set['theme']['bagimg'] != null) { if (!is_page_template('page-login.php') && !is_page_template('page-reg.php')) { if ($set['theme']['bagimg_showtype'] == 1) { echo ""; } else { echo ""; } } } if ($set['routine']['favicon'] != null) { ?> '; } else { echo ''; } ?> " . base64_decode($set['code']['css']) . ""; } if (is_home()) { file_load_lib('swiper/swiper.min.css', 'css'); file_load_lib('swiper/swiper.min.js', 'js'); } global $set; if (is_home()) { if ($set['seo']['openseo'] == 1) { if ($set['seo']['indextitle'] != '') { $title = $set['seo']['indextitle']; } else { $title = get_bloginfo('name'); } } else { $title = get_bloginfo('name'); } } elseif (is_single() || is_page()) { if ($set['post']['imgradius'] == 1) { ?> {$title}"; $keywords = ''; $description = ''; if (is_home()) { if ($set['seo']['description'] != null) { $description = $set['seo']['description']; } else { $description = get_bloginfo('description'); } if ($set['seo']['keyword'] != null) { $keywords = $set['seo']['keyword']; } } else if (is_single() || is_page()) { global $post; global $corepress_post_meta; $corepress_post_meta = json_decode(get_post_meta($post->ID, 'corepress_post_meta', true), true); if (empty($corepress_post_meta['seo']['open'])) { $corepress_post_meta['seo']['open'] = 0; } if (empty($corepress_post_meta['closesidebar'])) { $corepress_post_meta['closesidebar'] = 0; } if (empty($corepress_post_meta['postrighttag']['open'])) { $corepress_post_meta['postrighttag']['open'] = 0; } if (empty($corepress_post_meta['catalog'])) { $corepress_post_meta['catalog'] = 0; } if ($corepress_post_meta['seo']['open'] == 1) { $description = $corepress_post_meta['seo']['description']; $keywords = $corepress_post_meta['seo']['keywords']; } else { $description = str_replace("\n", "", mb_strimwidth(strip_tags($post->post_content), 0, 200, "…", 'utf-8')); $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag) { $keywords = $keywords . $tag->name . ", "; } $keywords = rtrim($keywords, ', '); } } elseif (is_tag()) { // 标签的description可以到后台 - 文章 - 标签,修改标签的描述 $description = tag_description(); $keywords = single_tag_title('', false); } elseif (is_category()) { $catid = corepress_get_current_category_id(); $cat_seo = get_option('corepress_cat_set_' . $catid); if ($cat_seo['description'] == '') { $description = category_description(); } else { $description = $cat_seo['description']; } if ($cat_seo['keywords'] == '') { $keywords = single_tag_title('', false); } else { $keywords = $cat_seo['keywords']; } if ($set['seo']['openseo'] != 1) { if ($set['seo']['catseo'] == 1) { ?>