function block($instance) { global $mp; echo '<div id="sidebar" style="border-left: none; padding: 0px; margin-bottom: 0px;">'; echo '<div class="well well-small">'; $title = $instance['title']; if (!empty($title)) { echo '<h4 class="page-header">' . apply_filters('widget_title', $title) . '</h4>'; } if (!empty($instance['custom_text'])) { echo '<div class="custom_text">' . $instance['custom_text'] . '</div>'; } echo '<div class="mp_cart_widget_content">'; $btnclass = mpt_load_mp_btn_color(); flexmarket_show_cart('widget', NULL, true, $btnclass); echo '</div>'; echo '</div>'; echo '</div>'; }
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">'; $btnclass = mpt_load_mp_btn_color(); flexmarket_show_cart('widget', NULL, true, $btnclass); echo '</div>'; echo $after_widget; }
</div><!-- / container --> </div><!-- / outercontainer --> </div><!-- / header-section --> <div class="content-section"> <div class="outercontainer"> <div class="clear padding30"></div> <div class="container" style="min-height: 450px;"> <?php if (class_exists('MarketPress')) { ?> <?php flexmarket_show_cart('checkout', '', 'true', $btnclass); ?> <?php } ?> <div class="clear padding20"></div> </div><!-- / container --> </div><!-- / outercontainer --> </div><!-- / content-section --> </div><!-- / page-wrapper -->