</div> </div> <?php } ?> <?php if (in_array($section, array('all', 'purchasable'))) { ?> <div class="postbox margin10px0px"> <h3><?php _e('Purchasable Contents', 'mgm'); ?> </h3> <div class="inside"> <?php echo mgm_member_purchasable_contents('admin'); ?> </div> </div> <?php } ?> </div> </div>
/** * user purchasable contents */ function mgm_generate_purchasable_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); } //purchasable contents $html .= '<div class="postbox mgm_margin10px0px">' . '<h3>' . __('Purchasable Contents', 'mgm') . '</h3>' . '<div class="inside">' . mgm_member_purchasable_contents('user') . '</div>' . '</div>'; return $html; }