$key['avatar'] = $key['avatar']; $key['type_account'] = $key['type_account']; $ID = $key['id_user']; $sendTo = null; } } } } //============ VERIFIED if ($key['type_account'] == '1') { $verified = ' <i class="fa fa-check-circle verified verified-min showTooltip" title="' . $_SESSION["LANG"]["verified"] . '" data-toggle="tooltip" data-placement="right"></i>'; } else { $verified = null; } if (mb_strlen($key['message'], 'utf8') > 45) { $message = _Function::cropString($key['message'], 45); } else { $message = $key['message']; } /* New - Readed */ if ($key['status'] == 'new' && $key['from'] != $_SESSION['authenticated']) { $styleStatus = ' unread-msg'; } else { $styleStatus = null; } ?> <!-- POSTS --> <li class="li-group hoverList" data-id="<?php echo strtotime($key['date']); ?> " data="<?php
public function status() { $output = $this->loadModel('User'); $this->_view->settings = $output->getSettings(); $this->_view->data = $output->getStatus($_GET['usr'], $_GET['id_status']); $this->_view->followingActive = $output->checkFollow($_SESSION['authenticated'], $this->_view->data->user_id); $this->_view->favorites = $output->getFavorites($_GET['id_status']); $this->_view->reply = $output->getReply($_GET['id_status']); $this->_view->countReply = count($this->_view->reply); $this->_view->notiMsg = $output->notificationsMessages(); $this->_view->notiIntera = $output->notificationsInteractions(); $this->_view->checkBlock = $output->checkUserBlock($_SESSION['authenticated'], $this->_view->data->user_id); $this->_view->activeRepost = $output->checkRepost($_GET['id_status'], $_SESSION['authenticated']); $this->_view->countRepost = $output->getRepostUser($_GET['id_status']); $this->_view->checkBlocked = $output->checkUserBlock($this->_view->data->user_id, $_SESSION['authenticated']); $this->_view->pagesGeneral = $output->getAllPagesGeneral(); //<--- INFO USER SESSION ACTIVE $this->_view->infoSession = $output->infoUser($_SESSION['authenticated']); //<--- WHO TO FOLLOWER $this->_view->whoToFollow = $output->whoToFollow($_SESSION['authenticated']); //<--- TRENDING TOPIC $this->_view->trending = $output->getTrendsTopic(); $chars = mb_strlen($this->_view->data->post_details, 'utf8'); if ($chars > 20) { $post_details = _Function::cropString($this->_view->data->post_details, 20) . " // "; } else { if ($this->_view->data->post_details == '') { $post_details = null; } else { $post_details = $this->_view->data->post_details . " // "; } } $this->_view->title = $_SESSION['LANG']['status'] . ' - ' . $post_details . stripslashes($this->_view->data->name) . " @" . $this->_view->data->username . " "; /* Show Views */ $this->_view->render('status', null); }