?> .<br/> <?php echo sprintf(__("The current fee for this category is: %.2f %s", 'payment'), $category_fee, osc_get_preference('currency', 'payment')); ?> <br/> <?php if (osc_is_web_user_logged_in()) { $wallet = ModelPayment::newInstance()->getWallet(osc_logged_user_id()); if (isset($wallet['formatted_amount']) && $wallet['formatted_amount'] >= $category_fee) { wallet_button($category_fee, sprintf(__("Premium fee for item %d at %s", "payment"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email'])); } else { payment_buttons($category_fee, sprintf(__("Premium fee for item %d at %s", "payment"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email'])); } } else { payment_buttons($category_fee, sprintf(__("Premium fee for item %d at %s", "payment"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email'])); } ?> </div> <div style="clear:both;"></div> <?php payment_buttons_js(); ?> </div> <?php } else { // PRICE IS ZERO! ?> <h1><?php _e('There was an error', 'payment'); ?>
.<br/> <?php echo sprintf(__('The current fee for this category is: %.2f %s', 'payment'), $category_fee, osc_get_preference('currency', 'payment')); ?> <br/> <ul class="payments-ul"> <?php if (osc_is_web_user_logged_in()) { $wallet = ModelPayment::newInstance()->getWallet(osc_logged_user_id()); if (isset($wallet['formatted_amount']) && $wallet['formatted_amount'] >= $category_fee) { wallet_button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email'])); } else { payment_buttons($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email'])); } } else { payment_buttons($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email'])); } ?> </ul> </div> <div style="clear:both;"></div> <?php payment_buttons_js(); ?> </div> <?php } else { // PRICE IS ZERO! ?> <h1><?php _e("There was an error", 'payment');
echo $credit_msg; ?> </h2> <?php $pack_n = 0; foreach ($packs as $pack) { $pack_n++; ?> <div> <h3><?php echo sprintf(__('Credit pack #%d', 'payment'), $pack_n); ?> </h3> <div><label><?php _e("Price", "payment"); ?> :</label> <?php echo $pack . " " . osc_get_preference('currency', 'payment'); ?> </div> <ul class="payments-ul"> <?php payment_buttons($pack, sprintf(__("Credit for %s %s at %s", "payment"), $pack, osc_get_preference("currency", "payment"), osc_page_title()), '301x' . $pack, array('user' => @$user['pk_i_id'], 'itemid' => @$user['pk_i_id'], 'email' => @$user['s_email'])); ?> </ul> </div> <div style="clear:both;"></div> <br/> <?php } payment_buttons_js();