/** * Maybe redirect */ public static function maybe_process_the_order() { $gateways = array('appthemes_pronamic_ideal', 'appthemes_pronamic_pay', 'appthemes_pronamic_pay_bancontact', 'appthemes_pronamic_pay_bank_transfer', 'appthemes_pronamic_pay_credit_card', 'appthemes_pronamic_pay_direct_debit', 'appthemes_pronamic_pay_sofort'); foreach ($gateways as $gateway) { if (filter_has_var(INPUT_POST, $gateway)) { process_the_order(); break; } } }
<div class="content_pricing"> <div id="breadcrumb"><?php cp_breadcrumb(); ?> </div> <div class="shadowblock_out"> <div class="shadowblock"> <div class="post"> <div class="order-gateway"> <?php process_the_order(); ?> </div> <div class="clr"></div> </div><!--/post--> </div><!--/shadowblock--> </div><!--/shadowblock_out--> </div><!--/content_pricing--> <?php /*?><div class="content"> <div class="content_botbg"> <div class="content_res">
/** * Maybe redirect */ public static function maybe_process_the_order() { if (filter_has_var(INPUT_POST, 'appthemes_pronamic_ideal')) { process_the_order(); } }