/* @var BooksCommentToComment $comment */ $class = $comment->rate < 0 ? 'commentFalse' : 'commentTrue'; ?> <div class="<?php echo $class; ?> commentToComment"> <div class="avatar"> </div> <div class="commentInfo"> <p class="user_name"><?php echo $comment->user->name; ?> </p><p class="comment_date"><time datetime="2014-12-09T13:55:16+02:00"><?php echo UserFunctions::getCommentDate($comment->date); ?> </time></p> </div> <div class="commentText containerShort"> <div class="comment_text"><?php echo $comment->comment; ?> </div> <div class="clear"></div> <div class="showHide description_change" other="<?php echo Yii::t('trans', 'Show less'); ?> "><?php echo Yii::t('trans', 'Show more'); ?>