Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:写得不错, 但是有一些重要的数据 , 还是要给出注释的, 以方便阅读,例如常量: SITE_DOME
综合应用前边知识。
把源码贴如下:
<!-- 头部导航部分 -->
<?php include __DIR__ . './inc/header.php'; ?>
<!-- 循环取出推荐的图文 -->
<?php
/**
* Undocumented function
*
* @param [type] $articles 文章数据
* @param [type] $num 每次取出的文章数量
* @return void
*/
function recommadArticle($articles, $num)
{
// $recommadArticle = [];
$i = 0;
foreach ($articles as $article) {
if ($article['is_recommad'] === 1) {
$recommadArticle[] = $article;
$i++;
if ($i === $num) {
break;
}
}
};
return $recommadArticle;
}
$recommadArticles = recommadArticle($articles, 5);
// 随机文章
/**
* Undocumented function
*
* @param [type] $articles 调用文章库
* @param [type] $num 调用随机文章数量
* @return void
*/
function randomArticle($articles, $num)
{
$randomArticle = array_rand($articles, $num);
foreach ($randomArticle as $key) {
$randomArticles[] = $articles[$key];
}
return $randomArticles;
}
$randomArticles = randomArticle($articles, 6);
// 取出一定数量的最新文章
function newArticle($articles, $num)
{
$i = 0;
foreach ($articles as $article) {
$newArticles[] = $article;
$i++;
if ($i === $num) {
break;
}
}
return $newArticles;
}
$newArticles = newArticle($articles, 8);
//通过文章cid取出栏目名称
function readCateName($categries, $cid)
{
foreach ($categries as $categry) {
if ($categry['id'] === $cid) {
$categrieName = $categry['name'];
return $categrieName;
}
}
}
?>
<!-- 页面主体部分 -->
<main>
<div class="container">
<div class="row">
<div class="col-md-8">
<section>
<div class="recommend-pic">
<div class="title"><span>推荐图文</span></div>
<div class="recommend-content">
<?php foreach ($recommadArticles as $recommadArticle) : ?>
<span>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $recommadArticle['id']; ?>"><img src="<?php echo SITE_DOME . $recommadArticle['img']; ?>" alt=""></a>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $recommadArticle['id']; ?>"><?php echo $recommadArticle['title'] ?></a>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="article-list">
<div class="title"><span>最新文章</span></div>
<?php foreach ($newArticles as $newArticle) : ?>
<div class="article-content">
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><img src="<?php echo SITE_DOME . $newArticle['img']; ?>" alt=""></a>
<div class="article-items">
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><?php echo $newArticle['title']; ?></a>
<p><?php echo $newArticle['discript']; ?></p>
<div class="article-tags">
<span>
<i class="glyphicon glyphicon-folder-open"></i>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><?php echo readCateName($categries, $newArticle['cid']); ?></a>
</span>
<time><i class="glyphicon glyphicon-time"></i> <?php echo $newArticle['time']; ?></time>
<span>
<i class="glyphicon glyphicon-tags"></i>
<?php $tags = explode(',',$newArticle['tags']); ?>
<?php foreach($tags as $k=>$v): ?>
<a href=""><?php echo $v; ?></a>
<?php endforeach; ?>
</span>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</section>
</div>
<div class="col-md-4">
<aside>
<div class="aside-ad">
<img src="./static/images/1.jpg" alt="">
</div>
<div class="aside-new">
<div class="title"><span>随机文章</span></div>
<div class="new-items">
<?php foreach($randomArticles as $randomArticle) :?>
<span>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $randomArticle['id']; ?>"><img src="<?php echo SITE_DOME . $randomArticle['img']; ?>" alt=""></a>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $randomArticle['id']; ?>"><?php echo $randomArticle['title']; ?></a>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="aside-tags">
<div class="title"><span>标签云</span></div>
<div class="tags-items">
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
</div>
</div>
<div class="aside-link">
<div class="title"><span>友情链接</span></div>
<div class="link-items">
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
</div>
</div>
</aside>
</div>
</div>
</div>
</main>
<!-- 页面底部 -->
<?php include "./inc/footer.php" ?>
</body>
</html>
<?php include __DIR__ . '/config.php'; ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo SITE_NAME;?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="<?php echo SITE_DOME ; ?>/static/css/index.css">
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="col-md-12 self-nav">
<span><?php echo SITE_NAME;?></span>
<a href="<?php echo SITE_DOME;?>" class="active"><i class="glyphicon glyphicon-home"></i>首页</a>
<?php foreach($categries as $categry):?>
<a href="<? echo SITE_DOME . $categry['url'];?>"><i class="glyphicon glyphicon-education"></i><? echo $categry['name'];?></a>
<? endforeach;?>
</div>
</div>
</div>
</header>
<footer>
</footer>
<!-- 头部导航部分 -->
<?php include __DIR__ . './inc/header.php'; ?>
<?php
$id = $_GET['cid'];
/**
* Undocumented function
*
* @param [type] $articles 文章库
* @param [type] $id 传入cid
* @return void
*/
//通过获取get提交栏目id取出当前栏目下文章。
function cateArticle($articles,$id){
foreach ($articles as $article){
if ($article['cid'] === intval($id)){
$cateArticle[] = $article;
}
}
return $cateArticle;
}
$cateArticles = cateArticle($articles,$id);
// 随机文章
/**
* Undocumented function
*
* @param [type] $articles 调用文章库
* @param [type] $num 调用随机文章数量
* @return void
*/
function randomArticle($articles, $num)
{
$randomArticle = array_rand($articles, $num);
foreach ($randomArticle as $key) {
$randomArticles[] = $articles[$key];
}
return $randomArticles;
}
$randomArticles = randomArticle($articles, 6);
// 取出一定数量的最新文章
function newArticle($articles, $num)
{
$i = 0;
foreach ($articles as $article) {
$newArticles[] = $article;
$i++;
if ($i === $num) {
break;
}
}
return $newArticles;
}
$newArticles = newArticle($articles, 8);
//通过文章cid取出栏目名称
function readCateName($categries, $cid)
{
foreach ($categries as $categry) {
if ($categry['id'] === $cid) {
$categrieName = $categry['name'];
return $categrieName;
}
}
}
?>
<!-- 页面主体部分 -->
<main>
<div class="container">
<div class="row">
<div class="col-md-8">
<section>
<div class="article-list">
<div class="title"><span><?php echo $categries[$id-1]['name']; ?></span></div>
<?php foreach ($cateArticles as $cateArticle) : ?>
<div class="article-content">
<a href="<?php echo SITE_DOME . '/article.php?id=' . $cateArticle['id']; ?>"><img src="<?php echo SITE_DOME . $cateArticle['img']; ?>" alt=""></a>
<div class="article-items">
<a href="<?php echo SITE_DOME . '/article.php?id=' . $cateArticle['id']; ?>"><?php echo $cateArticle['title']; ?></a>
<p><?php echo $cateArticle['discript']; ?></p>
<div class="article-tags">
<span>
<i class="glyphicon glyphicon-folder-open"></i>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $cateArticle['cid']; ?>"><?php echo readCateName($categries, $newArticle['cid']); ?></a>
</span>
<time><i class="glyphicon glyphicon-time"></i> <?php echo $cateArticle['time']; ?></time>
<span>
<i class="glyphicon glyphicon-tags"></i>
<?php $tags = explode(',',$cateArticle['tags']); ?>
<?php foreach($tags as $k=>$v): ?>
<a href=""><?php echo $v; ?></a>
<?php endforeach; ?>
</span>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</section>
</div>
<div class="col-md-4">
<aside>
<div class="aside-ad">
<img src="./static/images/1.jpg" alt="">
</div>
<div class="aside-new">
<div class="title"><span>随机文章</span></div>
<div class="new-items">
<?php foreach($randomArticles as $randomArticle) :?>
<span>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $randomArticle['id']; ?>"><img src="<?php echo SITE_DOME . $randomArticle['img']; ?>" alt=""></a>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $randomArticle['id']; ?>"><?php echo $randomArticle['title']; ?></a>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="aside-tags">
<div class="title"><span>标签云</span></div>
<div class="tags-items">
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
</div>
</div>
<div class="aside-new">
<div class="title"><span>最新文章</span></div>
<div class="new-items">
<?php foreach($newArticles as $newArticle) :?>
<span>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><img src="<?php echo SITE_DOME . $newArticle['img']; ?>" alt=""></a>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><?php echo $newArticle['title']; ?></a>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="aside-link">
<div class="title"><span>友情链接</span></div>
<div class="link-items">
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
</div>
</div>
</aside>
</div>
</div>
</div>
</main>
<!-- 页面底部 -->
<?php include "./inc/footer.php" ?>
</body>
</html>
<!-- 头部导航部分 -->
<?php include __DIR__ . './inc/header.php'; ?>
<?php
$id = $_GET['id'];
$article = $articles[$id];
// 随机文章
/**
* Undocumented function
*
* @param [type] $articles 调用文章库
* @param [type] $num 调用随机文章数量
* @return void
*/
function randomArticle($articles, $num)
{
$randomArticle = array_rand($articles, $num);
foreach ($randomArticle as $key) {
$randomArticles[] = $articles[$key];
}
return $randomArticles;
}
$randomArticles = randomArticle($articles, 6);
// 取出一定数量的最新文章
function newArticle($articles, $num)
{
$i = 0;
foreach ($articles as $article) {
$newArticles[] = $article;
$i++;
if ($i === $num) {
break;
}
}
return $newArticles;
}
$newArticles = newArticle($articles, 8);
//通过文章cid取出栏目名称
function readCateName($categries, $cid)
{
foreach ($categries as $categry) {
if ($categry['id'] === $cid) {
$categrieName = $categry['name'];
return $categrieName;
}
}
}
?>
<!-- 页面主体部分 -->
<main>
<div class="container">
<div class="row">
<div class="col-md-8">
<section>
<div class="breadcrumb">
<i class="glyphicon glyphicon-home"></i><a href="<?php echo SITE_DOME;?>">首页</a><i class="glyphicon glyphicon-menu-right"></i><?php echo readCateName($categries, $article['cid']); ?><i class="glyphicon glyphicon-menu-right"></i>正文
</div>
<div class="article-content">
<h1><?php echo $article['title']; ?></h1>
<span>
<i class="glyphicon glyphicon-folder-open"></i>
<a href=""><?php echo readCateName($categries, $article['cid']); ?></a>
<i class="glyphicon glyphicon-time"></i>
<time><?php echo $article['time'] ?></time>
<i class="glyphicon glyphicon-tags"></i>
<?php $tags = explode(',',$article['tags']); ?>
<?php foreach($tags as $k=>$v): ?>
<a href=""><?php echo $v; ?></a>
<?php endforeach; ?>
</span>
<article>
<?php echo $article['content']; ?>
</article>
</div>
</section>
</div>
<div class="col-md-4">
<aside>
<div class="aside-ad">
<img src="./static/images/1.jpg" alt="">
</div>
<div class="aside-new">
<div class="title"><span>随机文章</span></div>
<div class="new-items">
<?php foreach ($randomArticles as $randomArticle) : ?>
<span>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $randomArticle['id']; ?>"><img src="<?php echo SITE_DOME . $randomArticle['img']; ?>" alt=""></a>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $randomArticle['id']; ?>"><?php echo $randomArticle['title']; ?></a>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="aside-tags">
<div class="title"><span>标签云</span></div>
<div class="tags-items">
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
<a href="">标签</a>
</div>
</div>
<div class="aside-new">
<div class="title"><span>最新文章</span></div>
<div class="new-items">
<?php foreach ($newArticles as $newArticle) : ?>
<span>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><img src="<?php echo SITE_DOME . $newArticle['img']; ?>" alt=""></a>
<a href="<?php echo SITE_DOME . '/article.php?id=' . $newArticle['id']; ?>"><?php echo $newArticle['title']; ?></a>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="aside-link">
<div class="title"><span>友情链接</span></div>
<div class="link-items">
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
<a href="">友情链接</a>
</div>
</div>
</aside>
</div>
</div>
</div>
</main>
<!-- 页面底部 -->
<?php include "./inc/footer.php" ?>
</body>
</html>
body {
background-color: #f4f4f4;
display: flex;
flex-direction: column;
}
img {
width: 100%;
display: block
}
.title {
border-bottom: 1px solid #eee;
box-sizing: border-box;
display: flex;
}
.title>span {
border-bottom: 2px solid #35AADC;
font-size: 18px;
padding: 0 0 10px 0;
}
/* 头部导航css */
header {
background-color: #333D46;
color: #fff;
height: 50px;
margin-bottom: 15px;
}
header .self-nav {
display: flex;
align-items: center;
}
header .self-nav>span {
font-size: 28px;
margin: 0 15px;
line-height: 50px;
}
header .self-nav>a {
color: #fff;
font-size: 16px;
padding: 0 15px;
height: 50px;
line-height: 50px;
}
header .self-nav>a>i {
font-size: 12px;
margin: 0 5px;
}
header .self-nav>a:hover,
header .self-nav .active {
background-color: #000;
text-decoration: none;
color: #ddd;
}
/* 主体部分css */
main {
overflow-y: scroll;
}
/* 主题部分推荐推文 */
main .recommend-pic {
padding: 20px;
padding-top: 15px;
background-color: #fff;
border: 1px solid #eee;
height: 350px;
}
main .recommend-pic>.recommend-content {
width: 100%;
height: 250px;
margin: 10px 0;
display: grid;
grid-template-columns: 2fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-template-areas: "img1 img2 img3" " img1 img4 img5";
grid-gap: 10px;
}
main .recommend-pic>.recommend-content>span:nth-of-type(1) {
grid-area: img1;
}
main .recommend-pic>.recommend-content>span:nth-of-type(2) {
grid-area: img2;
}
main .recommend-pic>.recommend-content>span:nth-of-type(3) {
grid-area: img3;
}
main .recommend-pic>.recommend-content>span:nth-of-type(4) {
grid-area: img4;
}
main .recommend-pic>.recommend-content>span:nth-of-type(5) {
grid-area: img5;
}
main .recommend-pic>.recommend-content>span>a:last-of-type {
display: none;
}
main .recommend-pic>.recommend-content img {
height: 100%;
}
/* 主题部分文章列表 */
main .article-list {
padding: 20px;
background-color: #fff;
margin-top: 15px;
display: flex;
flex-direction: column;
}
main .article-list>.article-content {
height: 250px;
margin-top: 15px;
display: grid;
grid-template-columns: repeat(2, 1fr);
border: 1px solid #eee;
box-sizing: border-box;
}
main .article-list>.article-content:hover {
box-shadow: 0 0 1px #888;
}
main .article-list>.article-content img {
height: 100%;
}
main .article-list>.article-content>a {
padding: 0 20px 0 0;
overflow: hidden;
}
main .article-list>.article-content>.article-items {
display: flex;
flex-direction: column;
}
main .article-list>.article-content>.article-items>a {
font-size: 18px;
color: #333;
padding-top: 15px;
}
main .article-list>.article-content>.article-items>a:hover {
text-decoration: none;
color: #35AADC;
}
main .article-list>.article-content>.article-items>p {
margin: 10px 0;
color: #555;
}
main .article-list>.article-content>.article-items>.article-tags {
font-size: 12px;
color: #999;
display: flex;
}
main .article-list>.article-content>.article-items>.article-tags>time {
margin: 0 10px;
}
main .article-list>.article-content>.article-items>.article-tags a {
color: #999;
}
main .article-list>.article-content>.article-items>.article-tags a:hover {
text-decoration: none;
}
/* 主体侧边栏css */
main aside>.aside-ad {
padding: 20px;
background-color: #fff;
}
main aside>.aside-new {
padding: 20px;
background-color: #fff;
margin-top: 15px;
}
main aside>.aside-new>.new-items {
display: flex;
flex-direction: column;
}
main aside>.aside-new>.new-items img {
height: 100%;
}
main aside>.aside-new>.new-items>span {
height: 60px;
margin-top: 15px;
border: 1px solid #eee;
display: grid;
grid-template-columns: 1fr 2.5fr;
grid-gap: 15px;
box-sizing: border-box;
overflow: hidden;
}
main aside>.aside-new>.new-items>span>:last-of-type {
color: #555;
padding-top: 10px;
}
main aside>.aside-new>.new-items>span>a:hover {
text-decoration: none;
color: #35AADC;
}
main aside>.aside-tags {
padding: 20px;
background-color: #fff;
margin-top: 15px;
}
main aside>.aside-tags>.tags-items {
display: flex;
flex-flow: row wrap;
padding-top: 15px;
}
main aside>.aside-tags>.tags-items>a {
padding: 3px 8px;
background-color: #35AADC;
color: #fff;
margin: 5px 10px;
border-radius: 3px;
}
/* 友情链接css */
main aside>.aside-link {
padding: 20px;
background-color: #fff;
margin-top: 15px;
}
main aside>.aside-link>.link-items {
display: flex;
flex-direction: column;
padding-top: 10px;
}
main aside>.aside-link>.link-items>a {
height: 30px;
margin: 5px 0;
padding: 5px 10px;
border: 1px solid #eee;
color: #555;
}
main aside>.aside-link>.link-items>a:hover {
text-decoration: none;
color: #35AADC;
}
/* 底部css */
footer {
margin-top: 15px;
background-color: #222222;
height: 80px;
}
/* 文章详情页 */
main .breadcrumb {
display: flex;
align-items: center;
font-size: 12px;
color: #555;
}
main .breadcrumb>i {
font-size: 10px;
margin: 0 10px;
}
main .breadcrumb a {
color: #555;
}
main .article-content {
padding: 20px;
background-color: #fff;
display: flex;
flex-direction: column;
}
main .article-content>h1 {
font-size: 28px;
margin: 10px auto;
}
main .article-content>span {
font-size: 12px;
color: #333;
margin: 20px auto;
display: flex;
align-items: center;
}
main .article-content>span>i {
font-size: 10px;
color: #555;
margin: 0 10px;
}
main .article-content>span>a {
margin: 0 5px;
}
main .article-content>article {
font-size: 1.5rem;
line-height: 2.8rem;
border-top: 1px solid #eee;
padding: 20px 0;
}
<?php
// 定义全站常量
const SITE_NAME = '优秀作文网';
const SITE_DOME = 'http://php.io/blog';
$categries = [
['id'=>1,'name'=>'小学作文','url'=>'/list.php?cid=1'],
['id'=>2,'name'=>'初中作文','url'=>'/list.php?cid=2'],
['id'=>3,'name'=>'高中作文','url'=>'/list.php?cid=3'],
['id'=>4,'name'=>'考试作文','url'=>'/list.php?cid=4']
];
$articles = [
['id'=>1,'title'=>'人性最大的善良,是换位思考','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/1.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>1,'time'=>'2020/01/10' ],
['id'=>2,'title'=>'别在最好的年纪,活得太安逸','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/2.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>1,'time'=>'2020/01/10'],
['id'=>3,'title'=>'和明白人说话,和踏实人做事,和厚道人谈情','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/3.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>1,'time'=>'2020/01/10'],
['id'=>4,'title'=>'不念过去,不畏将来,不负余生','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/4.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>2,'time'=>'2020/01/10'],
['id'=>5,'title'=>'总有人,在等你回家','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/5.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>3,'time'=>'2020/01/10'],
['id'=>6,'title'=>'不要在乎一城一池的得失','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/6.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>2,'time'=>'2020/01/10'],
['id'=>7,'title'=>'人性最大的善良,是换位思考','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/7.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>4,'time'=>'2020/01/10'],
['id'=>8,'title'=>'人性最大的善良,是换位思考','discript'=>'懂得慈悲,近城远山,都是人间。人生海海,谁人不是举步维艰,孤独前往。 但这世界啊,美就美在,有人是照耀他人的光,有人是等待黎明的夜。孤独不会消失,灵魂却可相拥。','tags'=>'灵魂,善良,孤独人性,换位思考','img'=>'/static/images/8.jpg','is_recommad'=>1,'content'=>'人间百态,各有所难杨绛先生曾写过一句话:“当你身居高位时,看到的都是浮华春梦;当你身处卑微,才有机缘看到世态真相。” 人间百态,各有所难,每个人只看到自己眼中的世界,看不到全貌。 生而为人,最可怕的就是:你生活在光亮里,就认为整个世界都是光亮的。','cid'=>1,'time'=>'2020/01/10']
];
?>