public function getPostLink($topic_id, $closed, $post_replies, $is_admmod)
    {
        $closed = Container::get('hooks')
            ->fire('model.topic.getPostLinkStart', $closed, $topic_id, $post_replies, $is_admmod);

        if ($closed == '0') {
            if (($post_replies == '' && User::get()->g_post_replies == '1') || $post_replies == '1' || $is_admmod) {
                $post_link = "\t\t\t".'<p class="postlink conr"><a class="btn btn-primary btn-sm" href="'.
                    Router::pathFor('newReply', ['tid' => $topic_id]).'">'.__('Post reply').'</a></p>'."\n";
            } else {
                $post_link = '';
            }
        } else {
            $post_link = __('Topic closed');

            if ($is_admmod) {
                $post_link .= ' / <a class="btn btn-primary btn-sm" href="'.
                    Router::pathFor('newReply', ['tid' => $topic_id]).'">'. __('Post reply').'</a>';
            }

            $post_link = "\t\t\t".'<p class="postlink conr">'.$post_link.'</p>'."\n";
        }

        $post_link = Container::get('hooks')
            ->fire('model.topic.getPostLinkFinish', $post_link, $topic_id, $closed, $post_replies, $is_admmod);

        return $post_link;
    }