</a></h1> <div class="article_meta"> <span><i class="fa fa-user"></i> <?php echo blog_author($author); ?> </span> <span><i class="fa fa-clock-o"></i> <?php echo timeago($date, true); ?> </span> <span><i class="fa fa-eye"></i> <?php echo $views; ?> 次浏览</span> <span><i class="fa fa fa-folder-open"></i> <?php blog_sort($logid); ?> </span> <?php echo editflg($logid, $author); ?> </div> </header> <article class="article_content"> <?php echo handleContent($log_content); #日志正文 echo blog_att($logid); #附件格式化 ?> <div class="article_copy">转载请注明本文标题和链接:《<a href="<?php
$blogs = blog_list($search_key); if (strlen(trim($search_key)) > 0) { $page_title = $lang['search'] . ' :: ' . $search_key; } } else { if (!empty($category_name)) { $blogs = blog_list_by_category($category_name); $page_title = $lang['category'] . ' :: ' . $category_name; } else { if (!empty($archive_date)) { $blogs = blog_list_by_archive($archive_date); $page_title = $lang['archive'] . ' :: ' . $archive_date; } } } $page_blogs = blog_page($curr_page, blog_sort($blogs)); $blogs = $page_blogs['blogs']; $pager_html = $page_blogs['pager']; $page_body = TPL_FOLDER . '/' . $site_tpl . '/main.php'; } else { include_once 'geshi/geshi.php'; $blog = blog_read($blog_serial, $category_name); $blog['content'] = reformat_embeded_code($blog['content']); $comments = comment_list_by_blog($blog_serial); $comments = comment_sort($comments); $page_title = $blog['title']; $page_body = TPL_FOLDER . '/' . $site_tpl . '/blog_comment.php'; } break; } include_once TPL_FOLDER . '/' . $site_tpl . '/layout.php';
<?php if (!empty($logs)) { foreach ($logs as $value) { ?> <article> <div class="description"> <ul class="item"> <li class="time-icon"> <?php echo gmdate('Y-n-j', $value['date']); ?> </li> <li> <?php blog_sort($value['logid']); ?> </li> <li> <?php blog_tag($value['logid']); ?> </li> </ul> </div> <div class="content"> <div class="item"> <h3> <a href="<?php echo $value['log_url']; ?>
} } function rss_create($arr_blog_list) { global $site_name; global $site_slogan; global $context_root; echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"; echo "<rss version=\"2.0\">\n"; echo "<channel>\n"; echo "<title><![CDATA[{$site_name}]]></title>\n"; echo "<description><![CDATA[{$site_slogan}]]></description>\n"; echo "<link>http://" . $_SERVER['HTTP_HOST'] . $context_root . "</link>\n"; if (!empty($arr_blog_list)) { foreach ($arr_blog_list as $blog) { echo "<item>\n"; echo "<title><![CDATA[{$blog['title']}]]></title>\n"; echo "<link>http://" . $_SERVER['HTTP_HOST'] . $context_root . "index.php?b={$blog['serial']}&c={$blog['category']}</link>\n"; echo "<description><![CDATA[{$blog['content']}]]></description>"; echo "<category><![CDATA[{$blog['category']}]]></category>\n"; echo "<comments>http://" . $_SERVER['HTTP_HOST'] . $context_root . "index.php?b={$blog['serial']}&c={$blog['category']}</comments>\n"; echo "<pubDate>" . date('r', $blog['timestamp']) . "</pubDate>\n"; echo "</item>\n"; } } echo "</channel>\n"; echo "</rss>"; } include_once 'secret.php'; $page_blogs = blog_page(1, blog_sort(blog_list())); rss_create($page_blogs['blogs']);