public function isQuickpost($post_replies, $closed, $is_admmod)
    {
        $quickpost = false;
        if (ForumSettings::get('o_quickpost') == '1' &&
            ($post_replies == '1' || ($post_replies == '' && User::get()->g_post_replies == '1')) &&
            ($closed == '0' || $is_admmod)) {
            $required_fields = ['req_message' => __('Message')];
            if (User::get()->is_guest) {
                $required_fields['req_username'] = __('Guest name');
                if (ForumSettings::get('p_force_guest_email') == '1') {
                    $required_fields['req_email'] = __('Email');
                }
            }
            $quickpost = true;
        }

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

        return $quickpost;
    }
public function isQuickpost($post_replies, $closed, $is_admmod)
    {
        $quickpost = false;
        if (ForumSettings::get('o_quickpost') == '1' &&
            ($post_replies == '1' || ($post_replies == '' && User::get()->g_post_replies == '1')) &&
            ($closed == '0' || $is_admmod)) {
            $required_fields = ['req_message' => __('Message')];
            if (User::get()->is_guest) {
                $required_fields['req_username'] = __('Guest name');
                if (ForumSettings::get('p_force_guest_email') == '1') {
                    $required_fields['req_email'] = __('Email');
                }
            }
            $quickpost = true;
        }

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

        return $quickpost;
    }
public function isQuickpost ( $ post_replies , $ closed , $ is_admmod ) { $ quickpost = false ; if ( ForumSettings :: get ( 'o_quickpost' ) == '1' && ( $ post_replies == '1' || ( $ post_replies == '' && User :: get ( ) -> g_post_replies == '1' ) ) && ( $ closed == '0' || $ is_admmod ) ) { $ required_fields = [ 'req_message' => __ ( 'Message' ) ] ; if ( User :: get ( ) -> is_guest ) { $ required_fields [ 'req_username' ] = __ ( 'Guest name' ) ; if ( ForumSettings :: get ( 'p_force_guest_email' ) == '1' ) { $ required_fields [ 'req_email' ] = __ ( 'Email' ) ; } } $ quickpost = true ; } $ quickpost = Container :: get ( 'hooks' ) -> fire ( 'model.topic.isQuickpost' , $ quickpost , $ post_replies , $ closed , $ is_admmod ) ; return $ quickpost ; }
Should we display the quickpost?
@param $post_replies
@param $closed
@param $is_admmod
@return bool
Should we display the quickpost?