<?php 
/* Top Shopping Cart  */ 
?>
<div id="mini-cart">
   <div class="basket dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" title="<?php echo $this->__('View Cart') ?>">       
       <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('cart') ?> <?php if(Mage::helper('checkout/cart')->getSummaryCount() > 1) { echo Mage::helper('checkout/cart')->getSummaryCount() . $this->__(' items'); } elseif(Mage::helper('checkout/cart')->getSummaryCount() == 1) { echo $this->__('1 item'); }  else { echo $this->__('0 item'); } ?></a>
    </div> <!--basket dropdown-toggle-->
    <div class="dropdown-menu">
       <div class="block-content">
         <?php $_items = $this->getRecentItems() ?>
         <?php if(count($_items)): ?>   
           <div class="block-subtitle"><?php echo $this->__('Recently added item(s)') ?></div> 
            <ol id="cart-sidebar" class="mini-products-list">
               <?php foreach($_items as $_item): ?>
                   <?php echo $this->getItemHtml($_item) ?>
               <?php endforeach; ?>               
            </ol>                              
            <div class="prices-wrap">
               <div class="prices">
                  <span class=""><?php echo $this->__('Total:') ?></span>
                  <span class="price"><?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?></span>
               </div> <!--prices-->
            </div> <!--prices-wrap-->
            <div class="actions">
              <button type="button" class="view-cart" onclick="window.location='<?php echo $this->getUrl('checkout/cart') ?>';" title="<?php echo $this->__('View Cart') ?>" ><span><?php echo $this->__('View Cart') ?></span></button>                 
              <button type="button" title="<?php echo $this->__('Checkout') ?>" class="btn-checkout" onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';"><span><?php echo $this->__('Checkout') ?></span></button>                         
            </div>  <!--actions-->
           <?php else: ?>               
                <p class="a-center noitem"><?php echo $this->__('You have no items in your shopping cart.') ?></p>               
            <?php endif ?>
       </div> <!--block-content-->
    </div> <!--dropdown-menu-->
</div> <!--#mini-cart-->