?> <div class="form-group"> <label class="col-sm-3 control-label"><?php echo Html::encode(Yii::t($field->getTranslationCategory(), $field->title)); ?> </label> <?php if (strtolower($field->title) == 'about') { ?> <div class="col-sm-9"> <p class="form-control-static"><?php echo humhub\widgets\RichText::widget(['text' => $field->getUserValue($user, false)]); ?> </p> </div> <?php } else { ?> <div class="col-sm-9"> <p class="form-control-static"><?php echo $field->getUserValue($user, false); ?> </p> </div> <?php } ?>
<?php use yii\helpers\Html; $commentedObject = $source->content->getPolymorphicRelation(); echo Yii::t('CommentModule.views_notifications_newCommented', "%displayName% commented %contentTitle%.", array('%displayName%' => '<strong>' . Html::encode($source->user->displayName) . '</strong>', '%contentTitle%' => $this->context->getContentInfo($commentedObject))); ?> <em>"<?php echo humhub\widgets\RichText::widget(['text' => $source->message, 'minimal' => true, 'maxLength' => 400]); ?> "</em>
<?php } ?> </small> </h4> <div class="content" id="comment_editarea_<?php echo $comment->id; ?> "> <span id="comment-message-<?php echo $comment->id; ?> "><?php echo humhub\widgets\RichText::widget(['text' => $comment->message]); ?> </span> <?php echo humhub\modules\file\widgets\ShowFiles::widget(array('object' => $comment)); ?> </div> <div class="wall-entry-controls"> <?php echo humhub\modules\like\widgets\LikeLink::widget(array('object' => $comment)); ?> </div> </div> <hr> </div>
$description = trim($file->description) ? $file->description : ''; $size = $file->getSize(); $creator = $file->creator; $editor = $file->editor; $updatedAt = $file->content->updated_at; $createdAt = $file->content->created_at; ?> <div class="cfiles-wallout-file" id="cfiles-wallout-file-<?php echo $file->id; ?> "> <div class="file-wallentry-header" style="overflow: hidden; margin-bottom: 20px;"> <div><?php echo humhub\widgets\RichText::widget(['text' => $description, 'record' => $file]); ?> </div> </div> <div class="file-wallentry-content" style="overflow: hidden;"> <div class="preview"> <?php echo FilePreview::widget(['file' => $file, 'width' => 600, 'height' => 350, 'htmlConf' => ['class' => 'preview', 'id' => 'cfiles-wallout-file-preview-' . $file->id]]); ?> </div> <hr /> <ul> <li> <span><?php echo Yii::t('CfilesModule.base', 'Created at:');
<?php use yii\helpers\Html; $richOutput = humhub\widgets\RichText::widget(['text' => $post->message]); ?> <span id="post-content-<?php echo $post->id; ?> " style="overflow: hidden; margin-bottom: 5px;"> <?php print $richOutput; ?> </span> <a class="more-link-post hidden" id="more-link-post-<?php echo $post->id; ?> " data-state="down" style="margin: 20px 0 20px 0;" href="javascript:showMore(<?php echo $post->id; ?> );"><i class="fa fa-arrow-down"></i> <?php echo Yii::t('PostModule.widgets_views_post', 'Read full post...'); ?> </a> <script type="text/javascript"> <?php if ($justEdited) { ?> $('#post-content-<?php
echo \humhub\modules\questionanswer\widgets\ProfileWidget::widget(array('user' => $user, 'timestamp' => $question_answer['created_at'])); ?> </div> </div> <div class='qanda-comments-panel'> <?php $comments = $answerModel->comments; echo "<h5 style='padding-left:4px;'>"; echo count($comments); echo " Comments</h5>"; if ($comments) { foreach ($comments as $comment) { echo '<div style="border-bottom:1px solid #d8d8d8; padding: 4px;">'; print humhub\widgets\RichText::widget(['text' => $comment->post_text]); echo '<div class="row"><div class="col-sm-6">'; echo "<a class='display-name' href=\"" . \yii\helpers\Url::toRoute(['/user/profile', 'uguid' => $comment->user->guid]) . "\">" . $comment->user->displayName . "</a>"; echo " • " . date('Y-m-d H:i:s', strtotime($comment->created_at)); echo '</div>'; echo '<div class="col-sm-6">'; echo "<small>"; if (Yii::$app->user->isAdmin()) { echo Html::a('<div class="qanda-button pull-right"><span class="icon icon-trash"></span> Delete</div>', ['delete', 'id' => $comment->id], array('submit' => url::to('delete', array('id' => $comment->id)), 'confirm' => "Are you sure want to delete?", 'csrf' => true, 'params' => array('YII_CSRF_TOKEN' => Yii::$app->request->csrfToken))); } if (Yii::$app->user->isAdmin() || $comment->created_by == Yii::$app->user->id) { echo Html::a("<div class='qanda-button pull-right'><span class='icon icon-pencil'></span> Edit</div>", array('//questionanswer/comment/update', 'id' => $comment->id)); } echo "</small>"; echo '</div></div>'; echo '</div>';
<?php use yii\helpers\Html; use humhub\modules\like\widgets\LikeLink; use humhub\modules\comment\widgets\CommentLink; use humhub\modules\cfiles\widgets\FolderPreview; ?> <div class="cfiles-wallout-folder"> <div class="folder-wallentry-header" style="overflow: hidden; margin-bottom: 20px;"> <div><?php echo humhub\widgets\RichText::widget(['text' => trim($folder->description) ? $folder->description : '', 'record' => $folder]); ?> </div> </div> <div class="folder-wallentry-content" id="cfiles-wallout-folder-content-<?php echo $folder->id; ?> " style="overflow: hidden;"> <div class="preview"> <?php echo FolderPreview::widget(['folder' => $folder, 'lightboxDataParent' => "#cfiles-wallout-folder-content-{$folder->id}", 'lightboxDataGallery' => "FilesModule-Gallery-{$folder->id}"]); ?> </div> </div> <a class="more-link-cfiles-wallout-folder hidden" id="more-link-cfiles-wallout-folder-<?php echo $folder->id; ?> " data-state="down" style="margin: 20px 0 20px 0; display: block;" href="javascript:showMoreFiles(<?php echo $folder->id;