$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 red fort Indian monument | Amazing Facts

Amazing Facts About Red fort Indian monument

Amazing Facts

The Red Fort,Not only  we Indians appreciate the majesty of this vast architectural wonder, but it draws interest from across the world. However, while we all know about the Red Fort and most if us have paid a visit at least once, we often overlook the secrets  of this monument has to share with us. So here are some amazing interesting facts that you probably did not know about the expanse of red that glorifies the streets of Chandni Chowk.

interesting facts about red fort1. The Red Fort was originally white!
Yes, it’s called the Red Fort, but it was not originally built that way. As per the Archaeological Survey of India, parts of the building were made of lime stone. When the white stone started chipping off, the building was painted red by the British.

2. The fort owes its name to the boundary walls
The high boundary walls were meant to provide maximum security to the royals. Since it was constructed in red stone and bricks the British called it Red Fort, and the natives translated it to the Lal Qila.

3. Qila-e-Mubarak was what the Red Fort used to be
The Red Fort as we know it, was actually called Qila-e-Mubarak or the blessed fort. The monument was constructed when Mughal emperor Shah Jahan decided to shift his capital from Agra to Delhi.

4. It took 10 long years to built the Red Fort
It is quite obvious that with limited machinery, construction in those days took longer. But 10 years! Ustad Hamid and Ustad Ahmed, the pioneering architects of Shah Jahan’s time, started the construction in 1638 and finally completed it in 1648.

amazing facts about red fort5. The Kohinoor diamond was part of the furniture
The Kohinoor diamond was actually part of Shah Jahan’s throne, Made of solid gold and studded with precious stones, the extravagant royal seat stood in Diwan-i-Khas (the hall of private audience), flaunting the world’s largest diamond.

6. The main entrance of the fort is called Lahore gate
The Red Fort has two main gates – the Delhi gate and the Lahore gate. The Lahore gate got its name because of its orientation towards Lahore. After all, India and Pakistan used to be the same country once.

7. There is also a water gate
There is a third minor exit to the fort. Originally on the riverbank it was meant to ensure easy access to the river Yamuna. However, over the years, the course of the river changed but the name remained.

8. The shape of the Red Fort 
A bird’s eye view of this amazing architectural splendor (spread over 256 acres) reveals its octagonal shape. The shape of the encircling red wall of the fort actually looks like an octagon.

9. The Rang Mahal was named quite aptly
The Rang Mahal – literally meaning the palace of colours – was the residence of the emperor’s wives, mistresses and maids. The emperor being one lucky man, lived right next door in the Khas Mahal so that he could visit the palace for dinner, or stroll over for coffee. However, the entry for others, except the princes was forbidden.

10. Bahadur Shah was trialed by the British in his own
Bahadur Shah was trialed in his own ancestral home by the British on charges of treason. The trial that took place in Diwan-i-Khas in front of British court found Shah Zafar guilty, after which he was stripped of his title and exiled to Rangoon (now Myanmar).

architecture facts about red fort11. Independence Day speech
Every year on Independence Day, our Prime Minister gives a speech and addressing the people of the nation and hoists the national flag at the Red Fort. This tradition has been continuing since the first Independence Day of India.

12. The British stripped the fort of all its valuables
At the end of the Mughal rule, the British took over the fort. They not only stripped it of its valuables and sold them, but also damaged monuments and buildings inside. The drain of wealth theory is actually explicit in this case!

13. The Red Fort is a world heritage site
The UNESCO has named the Red Fort as a world heritage site in 2007 for its historical and cultural significance. An architectural wonder India should be proud of.