.to_comment {display:inline-block;background-color:rgba(60, 255, 24, 0.23);color:black;font-weight:bold;padding:4px;margin:2px 0 8px 0;border-radius:8px;box-shadow:rgba(0, 0, 0, 0.219608) 2px 2px 2px}
.my_comment { animation-duration: 3s; animation-name: rainbowLink; animation-iteration-count: infinite; }
@keyframes rainbowLink {
0% { color: #ff2a2a; }
15% { color: #ff7a2a; }
30% { color: #ffc52a }
45% { color: #43ff2a; }
60% { color: #2a89ff; }
75% { color: #202082; }
90% { color: #6b2aff; }
100% { color: #e82aff; }
}
CSS 에 위 문구 추가
my_comment 는 그냥 무지개색으로했는데 하고싶은거 넣어도됨
to_comment 도 꾸밀사람은 꾸미셈
comment.html 열어서 {$comment->getContent(false)} 검색 이걸 아래 소스로 교체
<div class="my_comment"|cond="$oDocument->get('member_srl')==$comment->get('member_srl')" class="login_comment"|cond="$comment->get('member_srl')==$logged_info->member_srl">
<!--@if($comment->parent_srl)-->
{@
$oComment = &getModel('comment');
$comment_parent = $oComment->getComment($comment->parent_srl);
}
<div class="to_comment">
To. {$comment_parent->getNickName()}
</div>
<!--@end-->
{$comment->getContent(false)}
</div>
<!--@end-->