function theme_uc_price in Ubercart 7.3
Same name and namespace in other branches
- 6.2 uc_store/uc_store.module \theme_uc_price()
Displays a price in the standard format and with consistent markup.
Parameters
$variables: An associative array containing:
- price: A numerical price value.
- suffixes: An array of suffixes to be attached to this price.
23 theme calls to theme_uc_price()
- theme_uc_cart_block_items in uc_cart/
uc_cart.theme.inc - Themes the table listing the items in the shopping cart block.
- theme_uc_cart_block_summary in uc_cart/
uc_cart.theme.inc - Themes the summary table at the bottom of the default shopping cart block.
- theme_uc_cart_review_table in uc_cart/
uc_cart_checkout_pane.inc - Formats the cart contents table on the checkout page.
- theme_uc_payment_totals in payment/
uc_payment/ uc_payment.theme.inc - Generates markup for payment totals.
- theme_uc_product_price in uc_product/
uc_product.theme.inc - Formats a product's price.
File
- uc_store/
uc_store.theme.inc, line 18 - Theme functions for the uc_store module.
Code
function theme_uc_price($variables) {
$output = '<span class="uc-price">' . uc_currency_format($variables['price']) . '</span>';
if (!empty($variables['suffixes'])) {
$output .= '<span class="price-suffixes">' . implode(' ', $variables['suffixes']) . '</span>';
}
return $output;
}