/**
  * Determine if there are any items in the cart
  *
  * @retuns bool whether items are in the cart for the current user.
  */
 function mp_items_in_cart()
 {
     if (mp_items_count_in_cart()) {
         return true;
     } else {
         return false;
     }
 }
Beispiel #2
0
    ?>
			<?php 
}
?>
			<div id="header-wrapper">
				<div id="header">
					<?php 
if (class_exists('MarketPress')) {
    $settings = get_option('mp_settings');
    if (!$settings['disable_cart']) {
        ?>
									<div id="cart-contents"><?php 
        _e('Cart:', 'framemarket');
        ?>
 <span><?php 
        echo sprintf(__('%s item(s)', 'framemarket'), mp_items_count_in_cart());
        ?>
</span></div>
						<div id="mp-cartsmall">
									<div id="toggle">
								<a id="open" class="open button" href="#"><?php 
        _e('View Cart', 'framemarket');
        ?>
</a>

							<a id="close" style="display: none;" class="close button" href="#"><?php 
        _e('Hide Cart', 'framemarket');
        ?>
</a>

							</div>