/** * Displays a list of popular products ordered by sales. * * @param int num Optional, max number of products to display. Defaults to 5 */ function mp_popular_products_sc($atts) { extract(shortcode_atts(array('number' => 5), $atts)); return mp_popular_products(false, $number); }
_e('Categories', 'framemarket'); ?> </h3> <div class="widget"> <?php framemarket_mp_list_categories(); ?> </div> <h3 class="widgettitle"><?php _e('Popular Products', 'framemarket'); ?> </h3> <div class="widget"> <?php mp_popular_products(); ?> </div> <h3 class="widgettitle"><?php _e('Tag Cloud', 'framemarket'); ?> </h3> <div class="widget"> <?php mp_tag_cloud(); ?> </div> <?php } ?>