function theme_uc_cart_block_title in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_cart/uc_cart.module \theme_uc_cart_block_title()
- 7.3 uc_cart/uc_cart.theme.inc \theme_uc_cart_block_title()
Theme the shopping cart block title
1 theme call to theme_uc_cart_block_title()
- uc_cart_block in uc_cart/
uc_cart.module - Implementation of hook_block().
File
- uc_cart/
uc_cart.module, line 301
Code
function theme_uc_cart_block_title($cart_image, $arrow_up_image) {
if (variable_get('uc_cart_block_image', TRUE)) {
$output = l('<img src="' . $cart_image . '" id="block-cart-title-image" alt="" />', 'cart', NULL, NULL, NULL, FALSE, TRUE);
}
$title = trim(variable_get('uc_cart_block_title', ''));
if (empty($title)) {
$title = t('Shopping cart');
}
if (variable_get('uc_cart_block_collapsible', TRUE)) {
$class = ' cart-block-toggle';
}
$output .= '<span class="block-cart-title-bar' . $class . '" id="block-cart-title-bar-text">' . '<span id="block-cart-title">' . check_plain($title) . '</span></span>';
if (variable_get('uc_cart_block_collapsible', TRUE)) {
$output .= '<span class="block-cart-title-bar cart-block-toggle" id="block-cart-title-bar-arrow">' . '<img id="block-cart-title-arrow" src="' . $arrow_up_image . '" alt="[]" title="' . t('Expand cart block.') . '" /></span>';
}
return $output;
}