$sqlQuery = "SELECT * FROM {$wpdb->pmpro_membership_levels} "; if ($s) { $sqlQuery .= "WHERE name LIKE '%{$s}%' "; } $sqlQuery .= "ORDER BY id ASC"; $levels = $wpdb->get_results($sqlQuery, OBJECT); foreach ($levels as $level) { ?> <tr class="<?php if (!$level->allow_signups) { ?> pmpro_gray<?php } ?> <?php if (!pmpro_checkLevelForStripeCompatibility($level) || !pmpro_checkLevelForBraintreeCompatibility($level) || !pmpro_checkLevelForPayflowCompatibility($level) || !pmpro_checkLevelForTwoCheckoutCompatibility($level)) { ?> pmpro_error<?php } ?> "> <td><?php echo $level->id; ?> </td> <td><?php echo $level->name; ?> </td> <td> <?php
global $pmpro_braintree_error; $pmpro_braintree_error = true; $msg = -1; $msgt = __("The billing details for this level are not supported by Braintree. Please review the notes in the Billing Details section below.", "pmpro"); } } elseif ($view == "pmpro-membershiplevels") { $msgt .= " " . __("The levels with issues are highlighted below.", "pmpro"); } else { $msgt .= " <a href=\"?page=pmpro-membershiplevels\">" . __("Please edit your levels", "pmpro") . "</a>."; } } if (!pmpro_checkLevelForTwoCheckoutCompatibility()) { $msg = -1; $msgt = __("The billing details for some of your membership levels is not supported by TwoCheckout.", "pmpro"); if ($view == "pmpro-membershiplevels" && !empty($_REQUEST['edit']) && $_REQUEST['edit'] > 0) { if (!pmpro_checkLevelForTwoCheckoutCompatibility($_REQUEST['edit'])) { global $pmpro_twocheckout_error; $pmpro_twocheckout_error = true; $msg = -1; $msgt = __("The billing details for this level are not supported by 2Checkout. Please review the notes in the Billing Details section below.", "pmpro"); } } elseif ($view == "pmpro-membershiplevels") { $msgt .= " " . __("The levels with issues are highlighted below.", "pmpro"); } else { $msgt .= " <a href=\"?page=pmpro-membershiplevels\">" . __("Please edit your levels", "pmpro") . "</a>."; } } if (!empty($msg)) { ?> <div id="message" class="<?php if ($msg > 0) {