You are here

function theme_uc_product_sell_price in Ubercart 5

Format the selling price based on the view mode.

Parameters

$price: The price amount.

$teaser: Passed from uc_product_view().

3 theme calls to theme_uc_product_sell_price()
uc_product_kit_view in uc_product_kit/uc_product_kit.module
Implementation of hook_view().
uc_product_table in uc_product/uc_product.module
Display product fields in a TAPIr table.
uc_product_view in uc_product/uc_product.module
Implementation of hook_view().

File

uc_product/uc_product.module, line 2411
The product module for Ubercart.

Code

function theme_uc_product_sell_price($price, $teaser = 0, $page = 0) {
  if ($teaser) {
    $output = '<div class="sell_price">';
    $output .= uc_currency_format($price);
    $output .= '</div>';
  }
  else {
    $output = '<div class="sell_price">';
    $output .= t('Price: !price', array(
      '!price' => uc_currency_format($price),
    ));
    $output .= '</div>';
  }
  return $output;
}