function get_button_unsubscribe($options = array()) { // only for sisow if ($this->setting['aquirer'] != 'sisow') { return parent::get_button_unsubscribe(); } // action $action = add_query_arg(array('module' => $this->code, 'method' => 'payment_unsubscribe'), mgm_home_url('payments')); // message $message = sprintf(__('You have subscribed to <b>%s</b> via <b>%s</b>, if you wish to unsubscribe, please click the following link. <br>', 'mgm'), get_option('blogname'), $this->name); // html $html = '<div class="mgm_margin_bottom_10px"> <h4>' . __('Unsubscribe', 'mgm') . '</h4> <div class="mgm_margin_bottom_10px">' . $message . '</div> </div> <form name="mgm_unsubscribe_form" id="mgm_unsubscribe_form" method="post" action="' . $action . '"> <input type="hidden" name="user_id" value="' . $options['user_id'] . '"/> <input type="hidden" name="membership_type" value="' . $options['membership_type'] . '"/> <input type="button" name="btn_unsubscribe" value="' . __('Unsubscribe', 'mgm') . '" onclick="confirm_unsubscribe(this)" class="button" /> </form>'; // return return $html; }