1
This commit is contained in:
@@ -242,6 +242,17 @@ class Main extends Controller {
|
|||||||
->where('j_journal_stage.is_publish',0)
|
->where('j_journal_stage.is_publish',0)
|
||||||
->where('j_article.journal_id','in','1,4,7,8,10,6,14,11,15,17,20,21,22')
|
->where('j_article.journal_id','in','1,4,7,8,10,6,14,11,15,17,20,21,22')
|
||||||
->count();
|
->count();
|
||||||
|
//标题斜体
|
||||||
|
foreach ($list as $k => $v) {
|
||||||
|
$caches = $this->article_ltai_obj->where('article_id', $v['article_id'])->where('state', 0)->column('content');
|
||||||
|
$cache_title = $v['title'];
|
||||||
|
foreach ($caches as $val) {
|
||||||
|
$cache_title = str_replace($val, '<i>' . $val . '</i>', $cache_title);
|
||||||
|
}
|
||||||
|
$list[$k]['title'] = $cache_title;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach ($list as $k => $v) {
|
foreach ($list as $k => $v) {
|
||||||
$list[$k]['authortitle'] = $this->getAuthor($v);
|
$list[$k]['authortitle'] = $this->getAuthor($v);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user