private static function list_letters() { if (!self::is_gravityforms_supported()) { die(__(sprintf("PayPal Add-On requires Gravity Forms %s. Upgrade automatically on the %sPlugin page%s.", self::$min_gravityforms_version, "<a href='plugins.php'>", "</a>"), "gravityformspaypal")); } if (rgpost('action') == "delete") { check_admin_referer("list_action", "letters_list"); $id = absint($_POST["action_argument"]); TemplateData::delete_letters_feed($id); ?> <div class="updated fade" style="padding:6px"><?php _e("Feed deleted.", "templatemerge"); ?> </div> <?php } else { if (!empty($_POST["bulk_action"])) { check_admin_referer("list_action", "letters_list"); $selected_feeds = $_POST["feed"]; if (is_array($selected_feeds)) { foreach ($selected_feeds as $feed_id) { TemplateData::delete_letters_feed($feed_id); } } ?> <div class="updated fade" style="padding:6px"><?php _e("Feeds deleted.", "templatemerge"); ?> </div> <?php } } require_once self::get_base_path() . DIRECTORY_SEPARATOR . "list_letters_page.php"; }