public static function uninstall() { //loading data lib require_once self::get_base_path() . "/data.php"; if (!GFPayPalPro::has_access("gravityforms_paypalpro_uninstall")) { die(__("You don't have adequate permission to uninstall the PayPal Pro Add-On.", "gravityformspaypalpro")); } //droping all tables GFPayPalProData::drop_tables(); //removing options delete_option("gf_paypalpro_version"); delete_option("gf_paypalpro_settings"); //Deactivating plugin $plugin = "gravityformspaypalpro/paypalpro.php"; deactivate_plugins($plugin); update_option('recently_activated', array($plugin => time()) + (array) get_option('recently_activated')); }
<link rel="stylesheet" href="<?php echo GFPayPalPro::get_base_url() . "/css/confirmation.css"; ?> " /> <?php if (empty($products["products"])) { ?> <div class="error"><?php printf(__("Your cart is empty. Order could not be processed. %sReturn to site%s", "gravityformspaypalpro"), "<a href='" . home_url() . "'>", "</a>"); ?> </div> <?php } else { ?> <!-- begin product checkout table markup --> <form method='post'> <div class="gf_checkout_review_table_wrapper"> <h2 class="gf_checkout_heading"><?php _e("Checkout", "gravityformspaypalpro"); ?> </h2> <table cellspacing="0" class="gf_checkout_review_table"> <thead> <tr> <td colspan="4" class="gf_checkout_review_table_title"><?php _e("Order Review", "gravityformspaypalpro"); ?> </td>