get_results($group_sql,ARRAY_A); $categorylist .= ""; if(get_option('wpsc_default_category') == 'all') { $selected = "selected='selected'"; } else { $selected = ''; } $categorylist .= "".__('Show All Products', 'wpsc').""; if(get_option('wpsc_default_category') == 'list') { $selected = "selected='selected'"; } else { $selected = ''; } $categorylist .= "".__('Show Category List', 'wpsc').""; if(get_option('wpsc_default_category') == 'all+list') { $selected = "selected='selected'"; } else { $selected = ''; } $categorylist .= "".__('Show All Products + Category List', 'wpsc').""; $categorylist .=""; foreach($group_data as $group) { $cat_sql = "SELECT * FROM `".WPSC_TABLE_PRODUCT_CATEGORIES."` WHERE `group_id` IN ({$group['id']}) AND `active`='1'"; $category_data = $wpdb->get_results($cat_sql,ARRAY_A); if($category_data != null) { $categorylist .= ""; foreach((array)$category_data as $category) { if(get_option('wpsc_default_category') == $category['id']) { $selected = "selected='selected'"; } else { $selected = ""; } $categorylist .= "".$category['name'].""; } $categorylist .= ""; } } $categorylist .= ""; return $categorylist; } function wpsc_options_presentation(){ global $wpdb; ?>
Move your files to a safe place", 'wpsc'), wp_nonce_url("admin.php?wpsc_admin_action=copy_themes", 'copy_themes') ); ?>
name="wpsc_options[dropshop_display]" /> name="wpsc_options[dropshop_display]"/>
name="wpsc_options[wpsc_dropshop_theme]" /> name="wpsc_options[wpsc_dropshop_theme]"/> name="wpsc_options[wpsc_dropshop_theme]"/>