$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 music… | Amazing Facts

Amazing facts about music…

Amazing Facts
gandharva-maha-vidyalaya

1. The first music school in India is “Gandharva maha vidyalaya” in lahore (which was then a part of India) on may 5 th 1901.

ms-subulakshmi

2. First musician to receive Padma bhushan award MS Subulakshmi.

illayaraja

3. The first Indian to compose sympony was Illayaraja. In july 1993.

violin

4. Most expensive musical instrument in the world stra divarius violin, sold for $ 15.9 million.

brain

5. Only few activities in our day to day life utilizes the entire brain, music is one of them.

6. Playing music regularly will physically alter your brain structure.

7. According to a study, learning a musical instrument can improve reasoning skills.

listening-music-while-excercise

8. Listening to music while exercising can significantly improve your work out performance.

music in bar

9.  Faster music will make u drink faster and louder music in a bar will drink more in a shorter period of time.

heart beat

10. Heart beat can change to mimics the music you listen too.

Pain Concept.

11. Music has been found to have overall positive effects on pain management, It reduces chronic pain by by 21 % and depression by 25%.

growing-plant

12. A 2007 study found that music, especially classical music helps plants grow faster.

humming

13. A song that gets stuck in your head on repeat is called ear worm