global $pmpro_payflow_error; $pmpro_payflow_error = true; $msg = -1; $msgt = __("The billing details for this level are not supported by Payflow. 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_checkLevelForBraintreeCompatibility()) { $msg = -1; $msgt = __("The billing details for some of your membership levels is not supported by Braintree.", "pmpro"); if ($view == "pmpro-membershiplevels" && !empty($_REQUEST['edit']) && $_REQUEST['edit'] > 0) { if (!pmpro_checkLevelForBraintreeCompatibility($_REQUEST['edit'])) { 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) {
$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
<th></th> </tr> </thead> <tbody> <?php $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_error<?php } ?>"> <td><?php echo $level->id?></td> <td><?php echo $level->name?></td> <td> <?php if(pmpro_isLevelFree($level)) { ?> FREE <?php } else { ?> <?php echo $pmpro_currency_symbol?><?php echo $level->initial_payment?> <?php } ?> </td> <td> <?php if(!pmpro_isLevelRecurring($level)) { ?> -- <?php } else { ?> <?php echo $pmpro_currency_symbol?><?php echo $level->billing_amount?> every <?php echo $level->cycle_number.' '.sornot($level->cycle_period,$level->cycle_number)?>