')!== false){ $content = preg_replace("/(@|√|!|x|i)>/",'',$content); } //排除login if (strpos( $content, '[login')!== false){ $pattern = self::get_shortcode_regex(array('login')); $content = preg_replace("/$pattern/",'',$content); } return $content; } /** * 文章以及搜索页面的导航条 * @param $archive * @param $WebUrl */ public static function BreadcrumbNavigation($archive, $WebUrl){ $WebUrl = $WebUrl . '/'; $options = mget(); if (@in_array("sreenshot",$options->featuresetup) && $archive->is("post")){ $screenshotStyle='.breadcrumb i.fontello.fontello-weibo:after { padding: 0 5px 0 5px; color: #ccc; content: "/\00a0"; }'; $screenshot = ' '; }else{ $screenshot = ""; $screenshotStyle=""; } echo ''; }else{ if ($archive->is('page')) { echo '
  • '.$archive->title.'  
  • '; }else{ echo '
  • '._mt("正文").'  
  • '; } echo '
    '._mt("分享到").': '.$screenshot.'
    '; echo ''; } } /** * 文章页面标题 * @param $archive * @param $isLogin * @return string */ public static function exportPostPageHeader($archive, $isLogin){ $html = ""; $html .= '

    '.$archive->title; $html .= ''; if ($isLogin) { if ($archive->is("page")) { $html .= ' '; }else { $html .= ' '; } } if ($archive ->is("page")) { $html .= '

    '; }else { $html .= '';//此时不用封闭header标签 } return $html; } /** * 输出DNS预加载信息 * @return string */ public static function exportDNSPrefetch() { $defaultDomain = array(); $customDomain = mget()->dnsPrefetch; if (!empty($customDomain)) { $customDomain = mb_split("\n", $customDomain); $defaultDomain = array_merge($defaultDomain, $customDomain); $defaultDomain = array_unique($defaultDomain); } $html = "\n"; foreach ($defaultDomain as $domain) { $domain = trim($domain, " \t\n\r\0\x0B/"); if (!empty($domain)) { $html .= "\n"; } } return $html; } /** * 选择左侧边栏配色 * @return string */ public static function selectAsideStyle(){ $html = ""; $options = mget(); switch($options->themetype){ case 0: $html .= '