diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-08 21:08:01 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-08 21:08:01 +0000 |
| commit | ddbe562f9c3bc646fb85da0a0252eff711d050bb (patch) | |
| tree | cc54ad8e1648dc42ccc66ada885d967c2e8ccf44 /inc/display.php | |
| parent | 001989876f02cd5cc2b032daeec09428d25b1786 (diff) | |
Optionally allow the moving of single replies
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php index e2d23215..b78639d6 100644 --- a/inc/display.php +++ b/inc/display.php @@ -349,9 +349,14 @@ class Post { if (!empty($this->file) && $this->file != "deleted" && $this->file != null && $this->thumb != 'spoiler' && hasPermission($config['mod']['spoilerimage'], $board['uri'], $this->mod) && $config['spoiler_images']) $built .= ' ' . secure_link_confirm($config['mod']['link_spoilerimage'], 'Spoiler File', 'Are you sure you want to spoiler this file?', $board['uri'] . '/spoiler/' . $this->id); + // Move post + if (hasPermission($config['mod']['move'], $board['uri'], $this->mod) && $config['move_replies']) + $built .= ' <a title="Move reply to another board" href="?/' . $board['uri'] . '/move_reply/' . $this->id . '">' . $config['mod']['link_move'] . '</a>'; + // Edit post if (hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) $built .= ' <a title="'._('Edit post').'" href="?/' . $board['dir'] . 'edit' . ($config['mod']['raw_html_default'] ? '_raw' : '') . '/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>'; + if (!empty($built)) $built = '<span class="controls">' . $built . '</span>'; |
