$fields['url']);*/ $fields_dup['data'] = array("postid" => $post->ID, "sharelink" => $fields['url']); $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); $fields_dup['big_picture'] = $url; $fields_dup['buttons'] = '[{"id": "id1", "text": "Settings", "icon": "ic_menu_manage"}, {"id": "id2", "text": "Share", "icon": "ic_menu_share"}]'; unset($fields_dup['url']); /* Send another notification via cURL */ $ch = curl_init(); $onesignal_post_url = "https://onesignal.com/api/v1/notifications"; /* Hopefully OneSignal::get_onesignal_settings(); can be called outside of the plugin */ $onesignal_wp_settings = OneSignal::get_onesignal_settings(); $onesignal_auth_key = $onesignal_wp_settings['app_rest_api_key']; curl_setopt($ch, CURLOPT_URL, $onesignal_post_url); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Authorization: Basic ' . $onesignal_auth_key )); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields_dup)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Optional: Turn off host verification if SSL errors for local testing // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); /* Optional: cURL settings to help log cURL output response curl_setopt($ch, CURLOPT_FAILONERROR, false); curl_setopt($ch, CURLOPT_HTTP200ALIASES, array(400)); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_STDERR, $out); */ $response = curl_exec($ch); /* Optional: Log cURL output response fclose($out); $debug_output = ob_get_clean(); $curl_effective_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); $curl_http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); $curl_total_time = curl_getinfo($ch, CURLINFO_TOTAL_TIME); onesignal_debug('OneSignal API POST Data:', $fields); onesignal_debug('OneSignal API URL:', $curl_effective_url); onesignal_debug('OneSignal API Response Status Code:', $curl_http_code); if ($curl_http_code != 200) { onesignal_debug('cURL Request Time:', $curl_total_time, 'seconds'); onesignal_debug('cURL Error Number:', curl_errno($ch)); onesignal_debug('cURL Error Description:', curl_error($ch)); onesignal_debug('cURL Response:', print_r($response, true)); onesignal_debug('cURL Verbose Log:', $debug_output); } */ curl_close($ch); return $fields; } ?> Amazing facts about Human Heart | Amazing Facts

Interesting facts about Human Heart

Amazing Facts

human-heart--201. A woman’s heart typically beats faster than a man’s. The heart of an average man beats approximately 70 times a minute, whereas the average woman has a heart rate of 78 beats per minute.

02. Blood is actually a tissue. When the body is at rest, it takes only six seconds for the blood to go from the heart to the lungs and back, only eight seconds for it to go the brain and back, and only 16 seconds for it to reach the toes and travel all the way back to the heart.

03. Physician Erasistratus of Chios (304-250 B.C.) was the first to discover that the heart functioned as a natural pump.

human-heart-104. In his text De Humani Corporis Fabrica Libri Septem, the father of modern anatomy, Andreas Vesalius (1514-1564), argued that the blood seeped from one ventricle to another through mysterious pores.

05. Galen argued that the heart constantly produced blood. However, William Harvey’s (1578-1657) discovery of the circulation system in 1616 revealed that there was a finite amount of blood in the body and that it circulated in one direction.

heart-and-cardiogram06.Prolonged snoring can enlarge the heart

07. Some heavy snorers may have a condition called obtrusive sleep apnea (OSA), which can negatively affect the heart.

08. The right atrium holds about 3.5 tablespoons of blood. The right ventricle holds slightly more than a quarter cup of blood. The left atrium holds the same amount of blood as the right, but its walls are three times thicker.

red blood cell09. Grab a tennis ball and squeeze it tightly: that’s how hard the beating heart works to pump blood.

10. In 1903, physiologist Willem Einthoven (1860-1927) invented the electrocardiograph, which measures electric current in the heart.

11.A large-buxomed female patient prompted a physician to invent the stethoscope

human-heart-fact12. An anonymous contributor to the Hippocratic Collection (or Canon) believed vessel valves kept impurities out of the heart, since the intelligence of man was believed to lie in the left cavity.

13. Plato theorized that reasoning originated with the brain, but that passions originated in the “fiery” heart.

14. The human heart is not on the left-hand side of the body; it’s in the middle.

NEXT