$actions = array(); if ($NeoFrag->user() && is_null($data['parent_id'])) { $actions[] = '<a class="comment-reply" href="#" data-comment-id="' . $data['comment_id'] . '">' . icon('fa-mail-reply') . ' ' . $NeoFrag->lang('reply') . '</a>'; } if ($NeoFrag->user('admin') || $NeoFrag->user() && $NeoFrag->user('user_id') == $data['user_id']) { $actions[] = button_delete('ajax/comments/delete/' . $data['comment_id'] . '.html'); } if ($actions) { echo '<div class="pull-right">' . implode($actions) . '</div>'; } ?> <h4 class="media-heading"> <?php echo $data['user_id'] ? $NeoFrag->user->link($data['user_id'], $data['username']) : i18n('guest'); ?> <small><?php echo icon('fa-clock-o') . ' ' . time_span($data['date']); ?> </small> </h4> <?php echo $data['content'] ? strtolink(nl2br($data['content']), TRUE) : '<i>' . $NeoFrag->lang('removed_message') . '</i>'; ?> </div> </div> <hr<?php if (!is_null($data['parent_id'])) { echo ' class="comments-child"'; } ?> />
<?php if ($NeoFrag->user() && $NeoFrag->user('user_id') == $message['user_id'] || $NeoFrag->access('talks', 'delete', $message['talk_id'])) { echo '<div class="pull-' . ($media == 'right' ? 'left' : 'right') . '">' . button_delete('ajax/talks/delete/' . $message['message_id'] . '.html') . '</div>'; } ?> <h4 class="media-heading"> <?php $title = array($message['user_id'] ? $NeoFrag->user->link($message['user_id'], $message['username']) : '<i>' . i18n('guest') . '</i>', '<small>' . icon('fa-clock-o') . ' ' . time_span($message['date']) . '</small>'); if ($media == 'right') { $title = array_reverse($title); } echo implode(' ', $title); ?> </h4> <?php echo $message['message'] ? strtolink($message['message']) : '<i>' . i18n('removed_message') . '</i>'; ?> </div> <?php $output = array($avatar, ob_get_clean()); if ($media == 'right') { $output = array_reverse($output); } echo implode($output); ?> </div> <?php if ($i < $count - 1) { echo '<hr style="margin: 15px 0;" />'; } $user_id = $message['user_id'];
function bbcode($string) { return nl2br(strtolink(NeoFrag::loader()->load->library('text_editor')->bbcode2html($string), TRUE)); }
?> </td> </tr> <?php } ?> <?php if (!empty($data['website'])) { ?> <tr> <td class="col-lg-3 col-md-4 col-xs-5"><b><?php echo icon('fa-globe') . ' ' . i18n('website'); ?> </b></td> <td class="col-lg-9 col-md-8 col-xs-7"><?php echo strtolink($data['website']); ?> </td> </tr> <?php } ?> <?php if (!empty($data['quote'])) { ?> <tr> <td class="col-lg-3 col-md-4 col-xs-5"><b><?php echo icon('fa-bookmark') . ' ' . i18n('quote'); ?> </b></td> <td class="col-lg-9 col-md-8 col-xs-7"><?php