Emoji picker, Search and Themes updates
This commit is contained in:
@ -201,6 +201,18 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
|
||||
$post['id'] = $elem['id'];
|
||||
$post['avatar'] = $elem['account']['avatar'];
|
||||
$post['text'] = processText($elem);
|
||||
|
||||
if (!empty($elem['poll'])){
|
||||
$post['text'] .= "<br>";
|
||||
$votes = $elem['poll']['votes_count'];
|
||||
$post['text'] .= "<div class='poll'><b>Votes: $votes</b><br>";
|
||||
|
||||
foreach ($elem['poll']['options'] as $option){
|
||||
$post['text'] .= "<div class='polloption'>".$option['title']."</div>";
|
||||
}
|
||||
$post['text'] .= "</div>";
|
||||
}
|
||||
|
||||
|
||||
$post['spoiler'] = (empty($elem['spoiler_text']) ? "" : "<span style='font-weight:bold;font-size:20px;'>" . $elem['spoiler_text'] . "</span><br>");
|
||||
$post['media'] = "";
|
||||
@ -341,7 +353,9 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
|
||||
'mode' => $tl['mode']
|
||||
)));
|
||||
|
||||
if ($tl['mode'] != "search"){
|
||||
echo "<div class='element'><div class='avatar' style='height:0px;'></div><div class='loadmore' style='display:table-cell; height:50px; line-height:50px;'><a class='link' onClick='return false;' style='margin:5px;' href='?next=$next&" . $query . "'>Load More Posts</a></div></div>";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user