</thead> <tbody> <?php foreach ($c_reports as $rp) { $count = QNA::get_reports_count($rp->id); ?> <tr> <td><a href="/questions/question.php?id=<?php echo $rp->id; ?> "><?php echo $rp->content; ?> </a></td> <td><?php echo View::user($rp->uid); ?> </td> <td><?php echo $count; ?> </td> <td><?php echo get_timeago($rp->rp_date); ?> </td> <td><a href="report.php?id=<?php echo $rp->id; ?> ">View Details</a></td> </tr>
} elseif ($type == "p") { $post_id = BASE_URL . "user/posts/{$id}/"; $pc = "post"; } elseif ($type == "c") { $post_id = BASE_URL . "questions/question.php?id={$id}"; $pc = "comment"; } else { continue; } ?> <div class="ui segment like-feed"> <div class="header user-details"> <i class="thumbs up blue large icon"></i> <div class="summary"> <?php echo View::user($value['user_id'], true); ?> Liked a <a href="<?php echo $post_id; ?> "><?php echo $pc; ?> </a> <span class="time datetime" title="<?php echo $value['date'] . " GMT" . Date('P'); ?> "><?php echo $value['date']; ?> </span>
<div class="ui grid"> <div class="two wide column cmt_avatar"> <a class="" href="/user/<?php echo $c->uid; ?> /"> <img class="" src="<?php echo $c->path; ?> "> </a> </div> <div class="fourteen wide column user-details"> <div class="content"> <?php echo View::user($c->uid, true, 'author'); ?> <div class="metadata"> <a class="time" href="question.php?id=<?php echo $c->id; ?> "> <span id="post-date" title="<?php echo $c->created; ?> "><?php echo $c->created; ?> </span> </a><?php echo $edited;
$sec = "messages"; include_once ROOT_PATH . "inc/head.php"; $messages = Messages::getConvo(USER_ID, $user_id); ?> <div class="main"> <div class="ui container section message-list"> <?php if ($staff) { ?> <h3>Your messages with the admin.</h3> <?php } else { ?> <h3>Your messages with <?php echo View::user($user_id); ?> </h3> <?php } ?> <?php if (empty($messages)) { echo "There are no messages between you and " . $user->full_name . " yet.<br><br>"; echo "<a class=\"btn btn-success\" href=\"compose.php?to={$user_id}\">Compose a new message</a>"; } foreach ($messages as $message) { $sender = new User($message->sender_id); $sender = $sender->user; $sstaf = $sender->id == 1 ? true : false; $self = USER_ID == $sender->id ? true : false;
<td class="center aligned">-</td> </tr> </tbody> <?php } else { ?> <tbody> <?php foreach ($reps as $rp) { ?> <tr id="<?php echo $rp->rp_id; ?> "> <td><?php echo View::user($rp->reporter); ?> </td> <td><p><?php echo $rp->r_content; ?> </p></td> <td><?php echo get_timeago($rp->rp_date); ?> </td> <td class="center aligned"><i class="ui remove icon"></i></td> </tr> <?php } ?>
<div class="content"> <div class="ui grid"> <div class="two wide column cmt_avatar"> <a href="/user/<?php echo $comment->uid; ?> /"> <img class="" src="<?php echo $comment->path; ?> "> </a> </div> <div class="fourteen wide column user-details"> <?php echo View::user($comment->uid, true, 'author'); ?> <div class="metadata"> <a class="time" href="question.php?id=<?php echo $comment->id; ?> "> <span class="datetime" title="<?php echo $comment_date . " GMT" . Date('P'); ?> "><?php echo $comment_date; ?> </span> </a><?php echo $edited;