Emoji picker, Search and Themes updates
This commit is contained in:
9
modules/search.php
Normal file
9
modules/search.php
Normal file
@ -0,0 +1,9 @@
|
||||
<div class='element'>
|
||||
<div class='avatar' style='background-image:url(:avatar:) :style:'></div>
|
||||
<div class='post' id="searchbox" style="padding-top: 15px; padding-bottom: 15px;">
|
||||
<form method="get">
|
||||
<input type="text" name="search" style='width:80%' placeholder="Type your search here">
|
||||
<input type="submit" value="" class="fontello">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
@ -67,6 +67,7 @@
|
||||
<h2>Theme.</h2>
|
||||
<select name='theme' onChange='themecheck(this)'>
|
||||
<?php
|
||||
echo "<option value='default' ".($user_settings['theme'] == "default" ? "selected" : "").">default</option>";
|
||||
foreach(themes("list") as $name){
|
||||
echo "<option value='$name' ".($user_settings['theme'] == $name ? "selected" : "").">$name</option>";
|
||||
}
|
||||
|
@ -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