/** * Gets formated price of current premium * * @return string */ function osc_premium_formated_price() { return (string) osc_format_price(osc_premium_field("i_price"), osc_premium_currency_symbol()); }
(<?php echo osc_premium_region(); ?> ) <?php } ?> </span> <span class="date"> <i class="fa fa-clock-o"></i> <?php echo osc_format_date(osc_premium_pub_date()); ?> </span> <?php if (osc_price_enabled_at_items()) { ?> <span class="currency-value"> <?php echo osc_format_price(osc_premium_price(), osc_premium_currency_symbol()); ?> </span> <?php } ?> </div> <p><?php echo osc_highlight(osc_premium_description(), 250); ?> </p> </div> <?php $admin = false; ?> <?php
/** PREMIUM CURRENCY by ERIC */ function osc_format_premium_price() { $price = osc_premium_field("i_price"); if ($price == null) { return osc_apply_filter('item_price_null', __('Check with seller')); } if ($price == 0) { return osc_apply_filter('item_price_zero', __('Free')); } $price = $price / 1000000; $currencyFormat = osc_locale_currency_format(); $currencyFormat = str_replace('{NUMBER}', number_format($price, osc_locale_num_dec(), osc_locale_dec_point(), osc_locale_thousands_sep()), $currencyFormat); $currencyFormat = str_replace('{CURRENCY}', osc_premium_currency_symbol(), $currencyFormat); return osc_apply_filter('item_price', $currencyFormat); }