-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,6 @@ | |
|
||
源码版本:V1.11 ————— 同上 | ||
|
||
源码版本:V1.12 ————— 同上 | ||
源码版本:V1.12 ————— 同上 | ||
|
||
源码版本:V1.13 ————— 同上 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
namespace frontend\components; | ||
|
||
use yii\base\Widget; | ||
use yii\helpers\Html; | ||
|
||
class RctReplyWidget extends Widget | ||
{ | ||
public $recentComments; | ||
|
||
public function init() | ||
{ | ||
parent::init(); | ||
} | ||
|
||
public function run() | ||
{ | ||
$commentString=''; | ||
|
||
foreach ($this->recentComments as $comment) | ||
{ | ||
$commentString.='<div class="post">'. | ||
'<div class="title">'. | ||
'<p style="color:#777777;font-style:italic;">'. | ||
nl2br($comment->content).'</p>'. | ||
'<p class="text"> <span class="glyphicon glyphicon-user" aria-hidden="ture"> | ||
</span> '.Html::encode($comment->user->username).'</p>'. | ||
|
||
'<p style="font-size:8pt;color:bule"> | ||
《<a href="'.$comment->post->url.'">'.Html::encode($comment->post->title).'</a>》</p>'. | ||
'<hr></div></div>'; | ||
} | ||
return $commentString; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters