perm->forum_can(($is_topic ? 'dt' : 'dr' ), $forumid)
&& (WPF()->perm->forum_can( ($is_topic ? 'dot' : 'dor'), $forumid)
|| $diff < WPF()->post->options[($is_topic ? 'dot' : 'dor').'_durr'])) {
$a = ( $is_topic ) ? 'wpftopicdelete' : 'wpfreplydelete';
$b = ( $is_topic ) ? $topicid : $postid;
echo '';
}
}
wpforo_post_buttons( 'icon-text', $buttons, $forum, $topic, $post );
?>