"Algerian Dinar (DZD)", "XAL" => "Aluminium Ounces (XAL)", "ARS" => "Argentine Peso (ARS)", "AWG" => "Aruba Florin (AWG)", "AUD" => "Australian Dollar (AUD)", "BSD" => "Bahamian Dollar (BSD)", "BHD" => "Bahraini Dinar (BHD)", "BDT" => "Bangladesh Taka (BDT)", "BBD" => "Barbados Dollar (BBD)", "BYR" => "Belarus Ruble (BYR)", "BZD" => "Belize Dollar (BZD)", "BMD" => "Bermuda Dollar (BMD)", "BTN" => "Bhutan Ngultrum (BTN)", "BOB" => "Bolivian Boliviano (BOB)", "BRL" => "Brazilian Real (BRL)", "GBP" => "British Pound (GBP)", "BND" => "Brunei Dollar (BND)", "BGN" => "Bulgarian Lev (BGN)", "BIF" => "Burundi Franc (BIF)", "KHR" => "Cambodia Riel (KHR)", "CAD" => "Canadian Dollar (CAD)", "KYD" => "Cayman Islands Dollar (KYD)", "XOF" => "CFA Franc (BCEAO) (XOF)", "XAF" => "CFA Franc (BEAC) (XAF)", "CLP" => "Chilean Peso (CLP)", "CNY" => "Chinese Yuan (CNY)", "COP" => "Colombian Peso (COP)", "KMF" => "Comoros Franc (KMF)", "XCP" => "Copper Ounces (XCP)", "CRC" => "Costa Rica Colon (CRC)", "HRK" => "Croatian Kuna (HRK)", "CUP" => "Cuban Peso (CUP)", "CYP" => "Cyprus Pound (CYP)", "CZK" => "Czech Koruna (CZK)", "DKK" => "Danish Krone (DKK)", "DJF" => "Dijibouti Franc (DJF)", "DOP" => "Dominican Peso (DOP)", "XCD" => "East Caribbean Dollar (XCD)", "ECS" => "Ecuador Sucre (ECS)", "EGP" => "Egyptian Pound (EGP)", "SVC" => "El Salvador Colon (SVC)", "ERN" => "Eritrea Nakfa (ERN)", "EEK" => "Estonian Kroon (EEK)", "ETB" => "Ethiopian Birr (ETB)", "EUR" => "Euro (EUR)", "FKP" => "Falkland Islands Pound (FKP)", "GMD" => "Gambian Dalasi (GMD)", "GHC" => "Ghanian Cedi (GHC)", "GIP" => "Gibraltar Pound (GIP)", "XAU" => "Gold Ounces (XAU)", "GTQ" => "Guatemala Quetzal (GTQ)", "GNF" => "Guinea Franc (GNF)", "HTG" => "Haiti Gourde (HTG)", "HNL" => "Honduras Lempira (HNL)", "HKD" => "Hong Kong Dollar (HKD)", "HUF" => "Hungarian Forint (HUF)", "ISK" => "Iceland Krona (ISK)", "INR" => "Indian Rupee (INR)", "IDR" => "Indonesian Rupiah (IDR)", "IRR" => "Iran Rial (IRR)", "ILS" => "Israeli Shekel (ILS)", "JMD" => "Jamaican Dollar (JMD)", "JPY" => "Japanese Yen (JPY)", "JOD" => "Jordanian Dinar (JOD)", "KZT" => "Kazakhstan Tenge (KZT)", "KES" => "Kenyan Shilling (KES)", "KRW" => "Korean Won (KRW)", "KWD" => "Kuwaiti Dinar (KWD)", "LAK" => "Lao Kip (LAK)", "LVL" => "Latvian Lat (LVL)", "LBP" => "Lebanese Pound (LBP)", "LSL" => "Lesotho Loti (LSL)", "LYD" => "Libyan Dinar (LYD)", "LTL" => "Lithuanian Lita (LTL)", "MOP" => "Macau Pataca (MOP)", "MKD" => "Macedonian Denar (MKD)", "MGF" => "Malagasy Franc (MGF)", "MWK" => "Malawi Kwacha (MWK)", "MYR" => "Malaysian Ringgit (MYR)", "MVR" => "Maldives Rufiyaa (MVR)", "MTL" => "Maltese Lira (MTL)", "MRO" => "Mauritania Ougulya (MRO)", "MUR" => "Mauritius Rupee (MUR)", "MXN" => "Mexican Peso (MXN)", "MDL" => "Moldovan Leu (MDL)", "MNT" => "Mongolian Tugrik (MNT)", "MAD" => "Moroccan Dirham (MAD)", "MZM" => "Mozambique Metical (MZM)", "NAD" => "Namibian Dollar (NAD)", "NPR" => "Nepalese Rupee (NPR)", "ANG" => "Neth Antilles Guilder (ANG)", "TRY" => "New Turkish Lira (TRY)", "NZD" => "New Zealand Dollar (NZD)", "NIO" => "Nicaragua Cordoba (NIO)", "NGN" => "Nigerian Naira (NGN)", "NOK" => "Norwegian Krone (NOK)", "OMR" => "Omani Rial (OMR)", "XPF" => "Pacific Franc (XPF)", "PKR" => "Pakistani Rupee (PKR)", "XPD" => "Palladium Ounces (XPD)", "PAB" => "Panama Balboa (PAB)", "PGK" => "Papua New Guinea Kina (PGK)", "PYG" => "Paraguayan Guarani (PYG)", "PEN" => "Peruvian Nuevo Sol (PEN)", "PHP" => "Philippine Peso (PHP)", "XPT" => "Platinum Ounces (XPT)", "PLN" => "Polish Zloty (PLN)", "QAR" => "Qatar Rial (QAR)", "ROL" => "Romanian Leu (ROL)", "RON" => "Romanian New Leu (RON)", "RUB" => "Russian Rouble (RUB)", "RWF" => "Rwanda Franc (RWF)", "WST" => "Samoa Tala (WST)", "STD" => "Sao Tome Dobra (STD)", "SAR" => "Saudi Arabian Riyal (SAR)", "SCR" => "Seychelles Rupee (SCR)", "SLL" => "Sierra Leone Leone (SLL)", "XAG" => "Silver Ounces (XAG)", "SGD" => "Singapore Dollar (SGD)", "SKK" => "Slovak Koruna (SKK)", "SIT" => "Slovenian Tolar (SIT)", "SOS" => "Somali Shilling (SOS)", "ZAR" => "South African Rand (ZAR)", "LKR" => "Sri Lanka Rupee (LKR)", "SHP" => "St Helena Pound (SHP)", "SDD" => "Sudanese Dinar (SDD)", "SRG" => "Surinam Guilder (SRG)", "SZL" => "Swaziland Lilageni (SZL)", "SEK" => "Swedish Krona (SEK)", "CHF" => "Swiss Franc (CHF)", "SYP" => "Syrian Pound (SYP)", "TWD" => "Taiwan Dollar (TWD)", "TZS" => "Tanzanian Shilling (TZS)", "THB" => "Thai Baht (THB)", "TOP" => "Tonga Pa'anga (TOP)", "TTD" => "Trinidad&Tobago Dollar (TTD)", "TND" => "Tunisian Dinar (TND)", "USD" => "U.S. Dollar (USD)", "AED" => "UAE Dirham (AED)", "UGX" => "Ugandan Shilling (UGX)", "UAH" => "Ukraine Hryvnia (UAH)", "UYU" => "Uruguayan New Peso (UYU)", "VUV" => "Vanuatu Vatu (VUV)", "VEB" => "Venezuelan Bolivar (VEB)", "VND" => "Vietnam Dong (VND)", "YER" => "Yemen Riyal (YER)", "ZMK" => "Zambian Kwacha (ZMK)", "ZWD" => "Zimbabwe Dollar (ZWD)" ); // =============================================================================== // The Code // =============================================================================== // Put functions into one big function we'll call at the plugins_loaded // action. This ensures that all required plugin functions are defined. // Initialisation function widget_curreX_init() { // ======================================================================= // This is the function that outputs the Currency Converter code for // NON-WIDGET based THEMES // ======================================================================= function show_currex( $default_from, $default_to, $decimal_places, $type = 'html', $title = '' ) { if( 'html' == $type ): ?>
Amount:

From:

To:
Result:
0.00
* Rates by Yahoo! Finance

Get Adobe Flash player

"", 'default_from' => "USD", 'default_to' => "USD", 'decimal_places' => '2', 'widget-type' => 'html' ); } // widget_currex_options() // ======================================================================= // This is the function that outputs the Currency Converter code. // ======================================================================= function widget_curreX( $args ) { // ===================================================================== // $args is an array of strings that help widgets to conform to // the active theme: before_widget, before_title, after_widget, // and after_title are the array keys. Default tags: li and h2. // ===================================================================== extract( $args ); // ===================================================================== // Each widget can store and retrieve its own options. // Here we retrieve any options that may have been set by the user // relying on widget defaults to fill the gaps. // ===================================================================== // ===================================================================== // Get General Options // ===================================================================== $options = array_merge( widget_curreX_options(), get_option( CURREX_OPTIONS ) ); // Returned by get_option(), but we don't need the Zeroeth element unset( $options[0] ); // Check if HTML or Flash Widget if( 'html' == $options['widget-type'] ): // ===================================================================== // These lines generate our output. Widgets can be very complex // but as you can see here, they can also be very, very simple. // ===================================================================== echo $before_widget . $before_title . $options['title'] . $after_title; ?>
Amount:

From:

To:
Result:
0.00
* Rates by Yahoo! Finance

Get Adobe Flash player

Need help?

curreX v Settings


Title:  

Widget type:       •    

Default Source Currency:   />


Default Destination Currency:   />


Number of decimal places in Result (Precision):