added feature: stick/unstick topic
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -380,7 +380,7 @@ hr {
|
||||
}
|
||||
|
||||
.topic_mod {
|
||||
width: 80px;
|
||||
width: 100px;
|
||||
float: right;
|
||||
}
|
||||
.p_uinfo {
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
for ($i=0; $i<count($this->TPL['topics_list']); $i++)
|
||||
{
|
||||
echo '<div class="row">'."\n";
|
||||
echo "\t\t\t".'<div class="tc1"><a href="index.php?mode=viewtopic&id='.$this->TPL['topics_list'][$i]['topic_id'].'" class="sect">'.$this->TPL['topics_list'][$i]['topic_title'].'</a></div>'."\n";
|
||||
$sticky = ($this->TPL['topics_list'][$i]['sticky']) ? '<span style="font-weight: bold">Sticky</span>: ' : '';
|
||||
echo "\t\t\t".'<div class="tc1"><a href="index.php?mode=viewtopic&id='.$this->TPL['topics_list'][$i]['topic_id'].'">'.$sticky.$this->TPL['topics_list'][$i]['topic_title'].'</a></div>'."\n";
|
||||
echo "\t\t\t".'<div class="tc2" style="width: 150px">';
|
||||
if ($this->TPL['topics_list'][$i]['user_id'] != null)
|
||||
echo '<a href="index.php?mode=viewprofile&id='.$this->TPL['topics_list'][$i]['user_id'].'">'.$this->colorRank($this->TPL['topics_list'][$i]['user_nick'], $this->TPL['topics_list'][$i]['user_rank']).'</a>';
|
||||
|
||||
@@ -108,6 +108,9 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="tc1 tc4">
|
||||
<a href="index.php?mode=moderate&submode=sticktopic&id=<?= $_GET['id']; ?>">
|
||||
<img src="templates/images/<? if ($this->TPL['topic_info']['topic_sticky']) echo 'un'; ?>stick.gif" alt="stick">
|
||||
</a>
|
||||
<a href="index.php?mode=moderate&submode=deletetopic&id=<?= $_GET['id']; ?>">
|
||||
<img src="templates/images/delete.gif" alt="delete">
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user