theme_uc_cart_block_title

Function theme_uc_cart_block_title() in uc_cart.module:

<?php
  theme_uc_cart_block_title
($cart_image, $uc_cart_path, $arrow_up_image)
?>


Description:

This function themes the title bar of the shopping cart block for display. You can use this to override parts of the function, because changing the title through the block configuration pages has the dual effect of removing the images and Javascript that some folks would prefer to keep.

Parameters:
  • $cart_image - the URI to the shopping cart icon
  • $uc_cart_path - the base path for the cart module directory
  • $arrow_up_image - the URI for the up arrow image
Return value:

A string containing the HTML output for the title of the shopping cart block.


Example:

<?php
// The default function from uc_cart.module.

function theme_uc_cart_block_title($cart_image, $uc_cart_path, $arrow_up_image) {
 
$output = l('<img src="'. $cart_image .'" id="block-cart-title-image" alt="" />', 'cart', NULL, NULL, NULL, FALSE, TRUE)
             .
'<span class="block-cart-title-bar" id="block-cart-title-bar-text" onclick="cart_toggle(\''. $uc_cart_path .'\');">'
            
.'<span id="block-cart-title">'. t('Shopping Cart') .'</span></span>'
            
.'<span class="block-cart-title-bar" id="block-cart-title-bar-arrow" onclick="cart_toggle(\''. $uc_cart_path .'\');">'
            
.'<img id="block-cart-title-arrow" "src="'. $arrow_up_image .'" alt="[]" title="'. t('Expand cart block.') .'" /></span>';

  return
$output;
}
?>