/** * Return the complete code for the lms cart * @return <string> */ public static function cart() { require_once _lms_ . '/lib/lib.cart.php'; Learning_Cart::init(); $html = '<div id="cart_box" class="cart_box" style="display:' . (Learning_Cart::cartItemCount() == 0 ? 'none' : 'inline') . ';">'; $html .= '<a id="cart_action" href="index.php?r=cart/show"><span>' . Lang::t('_SHOPPING_CART', 'catalogue') . ' <sub class="num_notify" id="cart_element">' . Learning_Cart::cartItemCount() . '</sub></span></a></div>'; return $html; }