";
if (!empty($options['grav_x'])) $x = $options['grav_x'];
else $x = 80;
if (!empty($options['grav_y'])) $y = $options['grav_y'];
else $y = 80;
if (!empty($options['email']) && $options['grav_on'] == 1) echo "";
if (@$options['grav_on'] == 2) echo "
";
echo @$options['text'];
echo "
There was an error uploading your file. The error is: " . $upload['error'] . " There was an error resize the image There was an error resize the image The file type that you've uploaded is not an image Help us to improve our plugin. Your feedback will be appreciated. Feel free to post your comment
Help us to improve our plugin. Your feedback will be appreciated. Feel free to post your comment
To configure this widget go to (Settings/About Me 3000) or click /wp-admin/options-general.php?page=About-Me'>here
';
echo ('About Me 3000 Plugin notice: Structure of the Social links changed. Please check your links on the settings page');
echo "
');
$options['text'] = stripslashes($_POST['aboutme-text']);
$options['email'] = strip_tags(stripslashes(strtolower($_POST['aboutme-email'])));
$options['promote_on'] = @$_POST["aboutme-promote_on"];
$options['frame_on'] = @$_POST["aboutme-frame_on"];
$options['alignright_on'] = @$_POST["aboutme-alignright_on"];
$options['email_on'] = @$_POST["aboutme-email_on"];
$options['grav_on'] = @$_POST["aboutme-grav_on"];
$options['grav_x'] = @$_POST["aboutme-grav_x"];
$options['grav_y'] = @$_POST["aboutme-grav_y"];
$options['counter_on'] = @$_POST["aboutme-counter_on"];
$options['vanityurl_on'] = @$_POST["aboutme-vanityurl_on"];
for ($i = 0; $i < count($arr_am_titles); $i++) {
$tag_id = str_replace(' ','',strtolower($arr_am_titles[$i]));
$options[$tag_id] = $_POST["aboutme-" . $tag_id];
$options[$tag_id . "_on"] = @$_POST["aboutme-" . $tag_id . "_on"];
}
if (!empty($_FILES['wp_custom_attachment']['name'])) {
// Setup the array of supported file types. In this case, it's just PDF.
$supported_types = array('image/jpeg', 'image/png', 'image/gif');
// Get the file type of the upload
$arr_file_type = wp_check_filetype(basename($_FILES['wp_custom_attachment']['name']));
$uploaded_type = $arr_file_type['type'];
// Check if the type is supported. If not, throw an error.
if (in_array($uploaded_type, $supported_types)) {
// Use the WordPress API to upload the file
$upload = wp_upload_bits($_FILES['wp_custom_attachment']['name'], null, file_get_contents($_FILES['wp_custom_attachment']['tmp_name']));
if (isset($upload['error']) && $upload['error'] != 0) {
echo ""; print_r($upload); echo "
";
if (file_exists($options['image'])) @unlink($options['image']);
if (file_exists(str_replace('-avat', '', $options['image']))) @unlink(str_replace('-avat', '', $options['image']));
$thumb = @image_resize($upload['file'], 80, 80, true, 'avat');
if (is_object($thumb)) {
echo ""; print_r($thumb); echo "
";
} // end if/else
} else {
echo "Please leave comment...