Example #1
0
 function widget($args, $instance)
 {
     global $mp;
     if (get_query_var('pagename') == 'cart') {
         return;
     }
     if ($instance['only_store_pages'] && !mp_is_shop_page()) {
         return;
     }
     extract($args);
     echo $before_widget;
     $title = $instance['title'];
     if (!empty($title)) {
         echo $before_title . apply_filters('widget_title', $title) . $after_title;
     }
     if (!empty($instance['custom_text'])) {
         echo '<div class="custom_text">' . $instance['custom_text'] . '</div>';
     }
     echo '<div class="mp_cart_widget_content">';
     mp_show_cart('widget');
     echo '</div>';
     echo $after_widget;
 }
Example #2
0
<?php

// custom template for shopping cart
get_header();
?>
<div id="content">
					<h1 class="post-title"><?php 
_e('Checkout', 'framemarket');
?>
</h1>
		<?php 
mp_show_cart('checkout');
?>
		<div class="clear"></div>
</div>
	<?php 
get_sidebar();
get_footer();
Example #3
0
function mp_cart_shortcode($atts)
{
    mp_show_cart();
}
Example #4
0
    do_action('bp_header');
    ?>
				<?php 
}
?>
			</div>
				<?php 
if (class_exists('MarketPress')) {
    $settings = get_option('mp_settings');
    if (!$settings['disable_cart']) {
        ?>
						<div id="panel">
							<div id="panel-inner" class="mp_cart_widget">
								<div class="mp_cart_widget_content">
								<?php 
        echo mp_show_cart('widget');
        ?>
								</div>
							<div class="clear"></div>
							</div>
							<div class="clear"></div>
					</div>
					<?php 
    }
}
?>
			<div id="branding-wrapper">
				<div id="branding">
					<div id="branding-inner">
					<?php 
$options = get_option('framemarket_theme_options');