__('General', 'wpsc'), // handler action suffix => tab text
'presentation' => __('Presentation', 'wpsc'),
'admin' => __('Admin', 'wpsc'),
'shipping' => __('Shipping', 'wpsc'),
'gateway' => __('Payment Options', 'wpsc'),
'import' => __('Import', 'wpsc'),
'checkout' => __('Checkout', 'wpsc')
);
return apply_filters('wpsc_settings_tabs', $_default_tabs);
}
/*
* Display settings tabs
*/
function wpsc_the_settings_tabs(){
global $redir_tab;
$tabs = wpsc_settings_tabs();
if ( !empty($tabs) ) {
echo '';
echo "\n";
//echo "
";
echo '
';
echo "";
}
}
function country_list($selected_country = null) {
global $wpdb;
$output = "";
$output .= "";
$country_data = $wpdb->get_results("SELECT * FROM `".WPSC_TABLE_CURRENCY_LIST."` ORDER BY `country` ASC",ARRAY_A);
foreach ((array)$country_data as $country) {
$selected ='';
if($selected_country == $country['isocode']) {
$selected = "selected='selected'";
}
$output .= "";
}
return $output;
}
/*
* Get Shipping Form for wp-admin
*/
function wpsc_get_shipping_form($shippingname) {
global $wpdb, $wpsc_shipping_modules;
if(array_key_exists($shippingname, $wpsc_shipping_modules)){
$shipping_forms = $wpsc_shipping_modules[$shippingname]->getForm();
$shipping_module_name = $wpsc_shipping_modules[$shippingname]->name;
$output = array('name' => $shipping_module_name, 'form_fields' => $shipping_forms, 'has_submit_button' => 1);
} else {
$output = array('name' => ' ', 'form_fields' => TXT_WPSC_CONFIGURE_SHIPPING_MODULES, 'has_submit_button' => 0);
}
return $output;
}
function wpsc_settings_page_update_notification(){
if (isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['shipadd']) ) { ?>