Example #1
0
                    </div>
                    <div class="payments-options">
                        <?php 
                _e("In order to make visible your ad to other users, it's required to pay a fee", '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 
Example #2
0
<br/>
                    </div>
                    <div class="payments-options">
                        <?php 
                _e("In order to make premium your ad , it's required to pay a fee", 'payment');
                ?>
.<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 {