}
?>

		
		<?php 
if (in_array($section, array('all', 'purchased'))) {
    ?>

		<div class="postbox margin10px0px">
			<h3><?php 
    _e('Purchased Contents', 'mgm');
    ?>
</h3>
			<div class="inside">
				<?php 
    echo mgm_member_purchased_contents('admin');
    ?>

			</div>
		</div>
		<?php 
}
?>

		
		<?php 
if (in_array($section, array('all', 'purchasable'))) {
    ?>

		<div class="postbox margin10px0px">
			<h3><?php 
/**
 * user purchased contents	 
 */
function mgm_generate_purchased_contents()
{
    $css_group = mgm_get_css_group();
    $html = '';
    if ($css_group != 'none') {
        //expand this if needed
        $css_link_format = '<link rel="stylesheet" href="%s" type="text/css" media="all" />';
        $css_file = MGM_ASSETS_URL . 'css/' . $css_group . '/mgm.pages.css';
        $html .= sprintf($css_link_format, $css_file);
    }
    //already purchased contents
    $html .= '<div class="postbox mgm_margin10px0px">' . '<h3>' . __('Purchased Contents', 'mgm') . '</h3>' . '<div class="inside">' . mgm_member_purchased_contents('user') . '</div>' . '</div>';
    return $html;
}