function theme_uc_ajax_cart_cart_links in Ubercart AJAX Cart 7.2
Same name and namespace in other branches
- 6.2 uc_ajax_cart.theme.inc \theme_uc_ajax_cart_cart_links()
@todo Please document this function.
See also
1 theme call to theme_uc_ajax_cart_cart_links()
- uc_ajax_cart_preprocess_uc_ajax_cart_block_content in ./
uc_ajax_cart.module - @todo Please document this function.
File
- ./
uc_ajax_cart.theme.inc, line 12 - All theming functions
Code
function theme_uc_ajax_cart_cart_links() {
$items[] = array(
'data' => l(t('View cart'), 'cart', array(
'attributes' => array(
'rel' => 'nofollow',
),
)),
'class' => array(
'cart-block-view-cart',
),
);
// Only add the checkout link if checkout is enabled.
if (variable_get('uc_checkout_enabled', TRUE)) {
$items[] = array(
'data' => l(t('Checkout'), 'cart/checkout', array(
'attributes' => array(
'rel' => 'nofollow',
),
)),
'class' => array(
'cart-block-checkout',
),
);
}
return theme('item_list', array(
'items' => $items,
'title' => NULL,
'type' => 'ul',
'attributes' => array(
'class' => array(
'links',
),
),
));
}