It seems we can’t find what you’re looking for. Perhaps searching can help.
Settings for the Advanced uploader plugin
'; } // ------------------------------------------------------------------ // Browser conversion Callback function // ------------------------------------------------------------------ // // creates a checkbox for Wordpress Galleries settings // function adv_file_upload_setting_browser () { $browser = get_option('adv_file_upload_browser'); echo ""; echo " Create additonal images sizes in browser"; echo ""; echo " Scan Uploads directory for new destinations
\n"; echo "Note: Thumbnail images are only created when adding to Wordpress Library\n"; echo "Note: When adding to Wordpress Library your directory needs to be within the default upload directory
\n"; } // ------------------------------------------------------------------ // Validate destination field // ------------------------------------------------------------------ // // This function is needed to check that the destiantion exist // function adv_file_upload_validate_destination ($input) { if (!isset($input)) return $input; $valid_input = array(); foreach ($input as $id => $dest) { // register destination requires a label if( $dest['label'] == '' ) { add_settings_error( 'Destination', // setting title 0, // error ID __('A label is required for all destinations','wptuts_textdomain'), // error message 'error' // type of message ); $valid_input[$id]['error']['label'] = true; } // register destination does not exist error if( is_dir( ABSPATH . $dest['dest'] ) == FALSE ) { add_settings_error( 'Destination', // setting title 1, // error ID __('Expecting a valid directory! Please fix, the directory needs to exist in the filesystem first.','wptuts_textdomain'), // error message 'error' // type of message ); $valid_input[$id]['error']['dest'] = true; } // register destination does is not in uploads directory error $upload_dir = wp_upload_dir(); //get upload base dir $default_dir = str_replace ( ABSPATH, '', $upload_dir['basedir'] ); //remove site root if( array_key_exists('library',$dest) && !preg_match( '#^' . $default_dir . '/#', $dest['dest'] ) && !preg_match( '#^' . $default_dir . '$#', $dest['dest'] ) ) { add_settings_error( 'Destination', // setting title 2, // error ID __('To add to Wordpress Library Destination must be in within uploads directory! Please fix.','wptuts_textdomain'), // error message 'error' // type of message ); $valid_input[$id]['error']['library'] = true; } $valid_input[$id]['label'] = $dest['label']; $valid_input[$id]['dest'] = rtrim($dest['dest'], "/"); $valid_input[$id]['library'] = array_key_exists('library',$dest) ? $dest['library'] : 0; $valid_input[$id]['type'] = ""; $valid_input[$id]['id'] = ""; } return $valid_input; } // ------------------------------------------------------------------ // Progress Bar Colour Callback function // ------------------------------------------------------------------ // // creates a boxes for destination settings // function adv_file_upload_setting_prog() { $progress = get_option('adv_file_upload_progress'); $errors = get_settings_errors( 'adv_file_upload_progress'); $destStyle = ""; foreach ($errors as $error) { if ($error['code']) { $destStyle = "background-color: #ffebe8;"; $progress = $error['code']; } } // show Progress colour echo ""; echo "This should be an HTML colour code. e.g. #0063a6It seems we can’t find what you’re looking for. Perhaps searching can help.